./PaxHeaders.10109/avahi-0.70000644000000000000000000000013213130652073012257 xustar0030 mtime=1499681851.247962354 30 atime=1499681851.279961638 30 ctime=1499681851.247962354 avahi-0.7/0000755000175000017500000000000013130652073013606 5ustar00lathiatlathiat00000000000000avahi-0.7/PaxHeaders.10109/initscript0000644000000000000000000000013213130652072014311 xustar0030 mtime=1499681850.715974224 30 atime=1499681851.279961638 30 ctime=1499681850.715974224 avahi-0.7/initscript/0000755000175000017500000000000013130652072015775 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/PaxHeaders.10109/slackware0000644000000000000000000000013213130652072016265 xustar0030 mtime=1499681850.727973958 30 atime=1499681851.279961638 30 ctime=1499681850.727973958 avahi-0.7/initscript/slackware/0000755000175000017500000000000013130652072017751 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/slackware/PaxHeaders.10109/avahi-daemon.in0000644000000000000000000000013213130651643021226 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681850.727973958 avahi-0.7/initscript/slackware/avahi-daemon.in0000644000175000017500000000304113130651643022633 0ustar00lathiatlathiat00000000000000#!/bin/bash # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # Start/stop/restart the avahi daemon: PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="Avahi mDNS/DNS-SD Daemon" NAME="avahi-daemon" DAEMON="@sbindir@/$NAME" avahid_start() { echo "Starting $DESC: $DAEMON -D" $DAEMON -D } avahid_status() { $DAEMON -c [ $? = 0 ] } avahid_stop() { echo -en "Stopping $DESC: " $DAEMON -c [ $? != 0 ] echo "stopped"; $DAEMON -k 2>/dev/null } avahid_restart() { avahid_stop avahid_start } case "$1" in 'start') if ( ! avahid_status ); then avahid_start else echo "$DESC is already running (will not start it twice)." fi ;; 'stop') avahid_stop ;; 'restart') avahid_restart ;; 'status') if ( avahid_status ); then echo "$DESC is currently running" else echo "$DESC is not running." fi ;; *) echo "usage $0 start|stop|status|restart" esac avahi-0.7/initscript/slackware/PaxHeaders.10109/avahi-dnsconfd.in0000644000000000000000000000013213130651643021561 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681850.727973958 avahi-0.7/initscript/slackware/avahi-dnsconfd.in0000644000175000017500000000313313130651643023170 0ustar00lathiatlathiat00000000000000#!/bin/bash # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # Start/stop/restart the avahi dnsconfd daemon: PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="Avahi mDNS/DNS-SD DNS Server Configuration Daemon" NAME="avahi-dnsconfd" DAEMON="@sbindir@/$NAME" avahidns_start() { echo "Starting $DESC: $DAEMON -D" $DAEMON -D } avahidns_status() { $DAEMON -c [ $? = 0 ] } avahidns_stop() { echo -en "Stopping $DESC: " $DAEMON -c [ $? != 0 ] echo "stopped"; $DAEMON -k 2>/dev/null } avahidns_restart() { avahidns_stop avahidns_start } case "$1" in 'start') if ( ! avahidns_status ); then avahidns_start else echo "$DESC is already running (will not start it twice)." fi ;; 'stop') avahidns_stop ;; 'restart') avahidns_restart ;; 'status') if ( avahidns_status ); then echo "$DESC is currently running" else echo "$DESC is not running." fi ;; *) echo "usage $0 start|stop|status|restart" esac avahi-0.7/initscript/slackware/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643020401 xustar0030 mtime=1499681699.139369856 30 atime=1499681796.861177498 30 ctime=1499681850.727973958 avahi-0.7/initscript/slackware/Makefile.am0000644000175000017500000000207313130651643022012 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. initddir = $(sysconfdir)/rc.d EXTRA_DIST = avahi-daemon.in avahi-dnsconfd.in initd_SCRIPTS = rc.avahidaemon rc.avahidnsconfd CLEANFILES = rc.avahidaemon rc.avahidnsconfd rc.avahidaemon: avahi-daemon.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ rc.avahidnsconfd: avahi-dnsconfd.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-0.7/initscript/slackware/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011020377 xustar0030 mtime=1499681801.957063502 29 atime=1499681806.74095651 30 ctime=1499681850.727973958 avahi-0.7/initscript/slackware/Makefile.in0000644000175000017500000005101013130652011022004 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/slackware ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ initddir = $(sysconfdir)/rc.d EXTRA_DIST = avahi-daemon.in avahi-dnsconfd.in initd_SCRIPTS = rc.avahidaemon rc.avahidnsconfd CLEANFILES = rc.avahidaemon rc.avahidnsconfd all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/slackware/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/slackware/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile rc.avahidaemon: avahi-daemon.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ rc.avahidnsconfd: avahi-dnsconfd.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016424 xustar0030 mtime=1499681801.817066633 30 atime=1499681806.676957942 30 ctime=1499681850.611976546 avahi-0.7/initscript/Makefile.in0000644000175000017500000006007113130652011020037 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @TARGET_LFS_TRUE@am__append_1 = lfs @TARGET_DEBIAN_TRUE@am__append_2 = debian @TARGET_GENTOO_TRUE@am__append_3 = gentoo @TARGET_SUSE_TRUE@am__append_4 = suse @TARGET_FEDORA_TRUE@am__append_5 = fedora @TARGET_MANDRIVA_TRUE@am__append_6 = mandriva @TARGET_DARWIN_TRUE@am__append_7 = darwin @TARGET_FREEBSD_TRUE@am__append_8 = freebsd @TARGET_SLACKWARE_TRUE@am__append_9 = slackware subdir = initscript ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = lfs debian gentoo suse fedora mandriva darwin freebsd \ slackware am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = $(am__append_1) $(am__append_2) $(am__append_3) \ $(am__append_4) $(am__append_5) $(am__append_6) \ $(am__append_7) $(am__append_8) $(am__append_9) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/PaxHeaders.10109/debian0000644000000000000000000000013013130652072015531 xustar0029 mtime=1499681850.63597601 30 atime=1499681851.279961638 29 ctime=1499681850.63597601 avahi-0.7/initscript/debian/0000755000175000017500000000000013130652072017217 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/debian/PaxHeaders.10109/avahi-daemon.in0000644000000000000000000000013113130651643020473 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 29 ctime=1499681850.63597601 avahi-0.7/initscript/debian/avahi-daemon.in0000755000175000017500000001001113130651643022077 0ustar00lathiatlathiat00000000000000#!/bin/sh # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # # avahi avahi daemon # Daemon for ZeroConf # # Authors: # if [ -f /lib/lsb/init-functions ] then . /lib/lsb/init-functions else # int log_begin_message (char *message) log_begin_msg () { if [ -z "$1" ]; then return 1 fi echo " * $@" } # int log_end_message (int exitstatus) log_end_msg () { # If no arguments were passed, return [ -z "$1" ] && return 1 # Only do the fancy stuff if we have an appropriate terminal # and if /usr is already mounted TPUT=/usr/bin/tput EXPR=/usr/bin/expr if [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1; then COLS=`$TPUT cols` if [ -n "$COLS" ]; then COL=`$EXPR $COLS - 7` else COL=73 fi UP=`$TPUT cuu1` END=`$TPUT hpa $COL` START=`$TPUT hpa 0` RED=`$TPUT setaf 1` NORMAL=`$TPUT op` if [ $1 -eq 0 ]; then echo "$UP$END[ ok ]" else echo -e "$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]" fi else if [ $1 -eq 0 ]; then echo " ...done." else echo " ...fail!" fi fi return $1 } log_warning_msg () { if log_use_fancy_output; then YELLOW=`$TPUT setaf 3` NORMAL=`$TPUT op` echo "$YELLOW*$NORMAL $@" else echo "$@" fi } fi #set -e PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="Avahi mDNS/DNS-SD Daemon" NAME="avahi-daemon" DAEMON="@sbindir@/$NAME" SCRIPTNAME=/etc/init.d/$NAME # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 # don't start if /etc/default/avahi-daemon says so. AVAHI_DAEMON_START=1 test -f /etc/default/avahi-daemon && . /etc/default/avahi-daemon if [ "$AVAHI_DAEMON_START" != "1" -a "$1" != "stop" ]; then log_warning_msg "Not starting $DESC $NAME, disabled via /etc/default/$NAME" exit 0 fi # # Function that starts the daemon/service. # d_start() { modprobe capability >/dev/null 2>&1 || true $DAEMON -c && return 0 if [ -s /etc/localtime ]; then if [ ! -d /etc/avahi/etc ]; then mkdir -p @sysconfdir@/avahi/etc >/dev/null 2>&1 fi cp -fp /etc/localtime @sysconfdir@/avahi/etc >/dev/null 2>&1 fi; $DAEMON -D } # # Function that stops the daemon/service. # d_stop() { $DAEMON -c && $DAEMON -k } # # Function that reload the config file for the daemon/service. # d_reload() { $DAEMON -c && $DAEMON -r } # # Function that check the status of the daemon/service. # d_status() { $DAEMON -c status=$? if [ $status = 0 ]; then echo "$DESC is running" return 0 else echo "$DESC is not running" return 3 fi } case "$1" in start) log_begin_msg "Starting $DESC: $NAME" d_start log_end_msg $? ;; stop) log_begin_msg "Stopping $DESC: $NAME" d_stop log_end_msg $? ;; reload) log_begin_msg "Reloading services for $DESC: $NAME" d_reload log_end_msg $? ;; restart|force-reload) log_begin_msg "Restarting $DESC: $NAME" $DAEMON -c && d_stop d_start log_end_msg $? ;; status) d_status ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|reload|status}" >&2 exit 1 ;; esac exit $? avahi-0.7/initscript/debian/PaxHeaders.10109/avahi-dnsconfd.in0000644000000000000000000000013113130651643021026 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 29 ctime=1499681850.63597601 avahi-0.7/initscript/debian/avahi-dnsconfd.in0000755000175000017500000000776113130651643022454 0ustar00lathiatlathiat00000000000000#!/bin/sh # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # # avahi-dnsconfd avahi dns configuration daemon # Daemon for ZeroConf # # Authors: # if [ -f /lib/lsb/init-functions ] then . /lib/lsb/init-functions else # int log_begin_message (char *message) log_begin_msg () { if [ -z "$1" ]; then return 1 fi echo " * $@" } # int log_end_message (int exitstatus) log_end_msg () { # If no arguments were passed, return [ -z "$1" ] && return 1 # Only do the fancy stuff if we have an appropriate terminal # and if /usr is already mounted TPUT=/usr/bin/tput EXPR=/usr/bin/expr if [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1; then COLS=`$TPUT cols` if [ -n "$COLS" ]; then COL=`$EXPR $COLS - 7` else COL=73 fi UP=`$TPUT cuu1` END=`$TPUT hpa $COL` START=`$TPUT hpa 0` RED=`$TPUT setaf 1` NORMAL=`$TPUT op` if [ $1 -eq 0 ]; then echo "$UP$END[ ok ]" else echo -e "$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]" fi else if [ $1 -eq 0 ]; then echo " ...done." else echo " ...fail!" fi fi return $1 } log_warning_msg () { if log_use_fancy_output; then YELLOW=`$TPUT setaf 3` NORMAL=`$TPUT op` echo "$YELLOW*$NORMAL $@" else echo "$@" fi } fi #set -e PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="Avahi Unicast DNS Configuration Daemon" NAME="avahi-dnsconfd" DAEMON="@sbindir@/$NAME" SCRIPTNAME=/etc/init.d/$NAME # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 # don't start if /etc/default/avahi-dnsconfd says so. AVAHI_DNSCONFD_START=1 test -f /etc/default/avahi-dnsconfd && . /etc/default/avahi-dnsconfd if [ "$AVAHI_DNSCONFD_START" != "1" -a "$1" != "stop" ]; then log_warning_msg "Not starting $DESC $NAME, disabled via /etc/default/$NAME" exit 0 fi # # Function that starts the daemon/service. # d_start() { $DAEMON -c [ $? = 0 ] && exit 0 if [ -s /etc/localtime ]; then if [ ! -d /etc/avahi/etc ]; then mkdir -p @sysconfdir@/avahi/etc >/dev/null 2>&1 fi cp -fp /etc/localtime @sysconfdir@/avahi/etc >/dev/null 2>&1 fi; $DAEMON -D } # # Function that stops the daemon/service. # d_stop() { $DAEMON -c [ $? != 0 ] && exit 0 $DAEMON -k } # # Function that reload the config file for the daemon/service. # d_refresh() { $DAEMON -c [ $? != 0 ] && exit 0 $DAEMON -r } # # Function that check the status of the daemon/service. # d_status() { $DAEMON -c [ $? = 0 ] && echo "$DESC is running" || echo "$DESC is not running" } case "$1" in start) log_begin_msg "Starting $DESC: $NAME" d_start log_end_msg $? ;; stop) log_begin_msg "Stopping $DESC: $NAME" d_stop log_end_msg $? ;; refresh) log_begin_msg "Refreshing $DESC: $NAME" d_refresh log_end_msg $? ;; reload|restart|force-reload) log_begin_msg "Restarting $DESC: $NAME" $DAEMON -c && d_stop d_start log_end_msg $? ;; status) d_status ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|reload}" >&2 exit 1 ;; esac exit 0 avahi-0.7/initscript/debian/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011017645 xustar0030 mtime=1499681801.853065827 30 atime=1499681806.684957762 29 ctime=1499681850.63597601 avahi-0.7/initscript/debian/Makefile.in0000644000175000017500000005115413130652011021263 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/debian ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ initddir = $(sysconfdir)/init.d EXTRA_DIST = \ avahi-daemon.in \ avahi-dnsconfd.in initd_SCRIPTS = \ avahi-daemon \ avahi-dnsconfd CLEANFILES = \ avahi-daemon \ avahi-dnsconfd all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/debian/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/debian/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile avahi-daemon: avahi-daemon.in sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@sysconfdir\@,$(sysconfdir),g' \ $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@sysconfdir\@,$(sysconfdir),g' \ $< > $@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/debian/PaxHeaders.10109/Makefile.am0000644000000000000000000000013113130651643017646 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.857177587 29 ctime=1499681850.63597601 avahi-0.7/initscript/debian/Makefile.am0000644000175000017500000000224513130651643021261 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. initddir = $(sysconfdir)/init.d EXTRA_DIST = \ avahi-daemon.in \ avahi-dnsconfd.in initd_SCRIPTS = \ avahi-daemon \ avahi-dnsconfd CLEANFILES = \ avahi-daemon \ avahi-dnsconfd avahi-daemon: avahi-daemon.in sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@sysconfdir\@,$(sysconfdir),g' \ $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@sysconfdir\@,$(sysconfdir),g' \ $< > $@ chmod +x $@ avahi-0.7/initscript/PaxHeaders.10109/darwin0000644000000000000000000000013213130652072015575 xustar0030 mtime=1499681850.703974493 30 atime=1499681851.279961638 30 ctime=1499681850.703974493 avahi-0.7/initscript/darwin/0000755000175000017500000000000013130652072017261 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/darwin/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017711 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.857177587 30 ctime=1499681850.699974579 avahi-0.7/initscript/darwin/Makefile.am0000644000175000017500000000241013130651643021315 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. initddir = /Library/LaunchDaemons/ EXTRA_DIST = \ org.freedesktop.avahi-daemon.plist.in \ org.freedesktop.avahi-dnsconfd.plist.in initd_SCRIPTS = \ org.freedesktop.avahi-daemon.plist \ org.freedesktop.avahi-dnsconfd.plist CLEANFILES = \ org.freedesktop.avahi-daemon.plist \ org.freedesktop.avahi-dnsconfd.plist org.freedesktop.avahi-daemon.plist: org.freedesktop.avahi-daemon.plist.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ org.freedesktop.avahi-dnsconfd.plist: org.freedesktop.avahi-dnsconfd.plist.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ avahi-0.7/initscript/darwin/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011017710 xustar0030 mtime=1499681801.837066185 30 atime=1499681806.724956869 30 ctime=1499681850.699974579 avahi-0.7/initscript/darwin/Makefile.in0000644000175000017500000005131713130652011021326 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/darwin ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ initddir = /Library/LaunchDaemons/ EXTRA_DIST = \ org.freedesktop.avahi-daemon.plist.in \ org.freedesktop.avahi-dnsconfd.plist.in initd_SCRIPTS = \ org.freedesktop.avahi-daemon.plist \ org.freedesktop.avahi-dnsconfd.plist CLEANFILES = \ org.freedesktop.avahi-daemon.plist \ org.freedesktop.avahi-dnsconfd.plist all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/darwin/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/darwin/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile org.freedesktop.avahi-daemon.plist: org.freedesktop.avahi-daemon.plist.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ org.freedesktop.avahi-dnsconfd.plist: org.freedesktop.avahi-dnsconfd.plist.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/darwin/PaxHeaders.10109/org.freedesktop.avahi-dnsconfd.plist.in0000644000000000000000000000013213130651643025323 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.703974493 avahi-0.7/initscript/darwin/org.freedesktop.avahi-dnsconfd.plist.in0000644000175000017500000000064513130651643026737 0ustar00lathiatlathiat00000000000000 Label org.freedesktop.avahi-dnsconfd OnDemand ProgramArguments @sbindir@/avahi-dnsconfd ServiceIPC avahi-0.7/initscript/darwin/PaxHeaders.10109/org.freedesktop.avahi-daemon.plist.in0000644000000000000000000000013213130651643024770 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.699974579 avahi-0.7/initscript/darwin/org.freedesktop.avahi-daemon.plist.in0000644000175000017500000000064113130651643026400 0ustar00lathiatlathiat00000000000000 Label org.freedesktop.avahi-daemon OnDemand ProgramArguments @sbindir@/avahi-daemon ServiceIPC avahi-0.7/initscript/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016425 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.853177677 30 ctime=1499681850.611976546 avahi-0.7/initscript/Makefile.am0000644000175000017500000000213413130651643020034 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. SUBDIRS = if TARGET_LFS SUBDIRS += lfs endif if TARGET_DEBIAN SUBDIRS += debian endif if TARGET_GENTOO SUBDIRS += gentoo endif if TARGET_SUSE SUBDIRS += suse endif if TARGET_FEDORA SUBDIRS += fedora endif if TARGET_MANDRIVA SUBDIRS += mandriva endif if TARGET_DARWIN SUBDIRS += darwin endif if TARGET_FREEBSD SUBDIRS += freebsd endif if TARGET_SLACKWARE SUBDIRS += slackware endif avahi-0.7/initscript/PaxHeaders.10109/freebsd0000644000000000000000000000013213130652072015723 xustar0030 mtime=1499681850.715974224 30 atime=1499681851.279961638 30 ctime=1499681850.715974224 avahi-0.7/initscript/freebsd/0000755000175000017500000000000013130652072017407 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/freebsd/PaxHeaders.10109/avahi-daemon.sh.in0000644000000000000000000000013213130651643021275 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.715974224 avahi-0.7/initscript/freebsd/avahi-daemon.sh.in0000644000175000017500000000147313130651643022711 0ustar00lathiatlathiat00000000000000#!/bin/sh # # $FreeBSD: /repoman/r/pcvs/ports/net/avahi/files/avahi-daemon.sh,v 1.2 2005/11/19 05:55:56 marcus Exp $ # # PROVIDE: avahi_daemon # REQUIRE: DAEMON dbus # KEYWORD: FreeBSD # # Avahi's mDNSResponder, a Zeroconf (Bonjour) service advertisement daemon. # avahi_daemon_enable=${avahi_daemon_enable-"NO"} avahi_daemon_flags=${avahi_daemon_flags-"-D"} . /etc/rc.subr name=avahi_daemon rcvar=`set_rcvar` start_cmd=avahi_daemon_start stop_cmd=avahi_daemon_stop avahi_daemon_bin=@sbindir@/avahi-daemon avahi_daemon_start() { checkyesno avahi_daemon_enable && echo "Starting avahi-daemon." && \ ${avahi_daemon_bin} ${avahi_daemon_flags} } avahi_daemon_stop() { checkyesno avahi_daemon_enable && echo "Stopping avahi-daemon." && \ ${avahi_daemon_bin} -k } load_rc_config ${name} run_rc_command "$1" avahi-0.7/initscript/freebsd/PaxHeaders.10109/avahi-dnsconfd.sh.in0000644000000000000000000000013213130651643021630 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.715974224 avahi-0.7/initscript/freebsd/avahi-dnsconfd.sh.in0000644000175000017500000000205713130651643023243 0ustar00lathiatlathiat00000000000000#!/bin/sh # # $FreeBSD: /repoman/r/pcvs/ports/net/avahi/files/avahi-dnsconfd.sh,v 1.4 2005/11/19 06:36:09 ahze Exp $ # # PROVIDE: avahi_dnsconfd # REQUIRE: DAEMON dbus avahi_daemon # KEYWORD: FreeBSD # # avahi-dnsconfd connects to a running avahi-daemon and runs the script # @sysconfdir@/avahi/avahi-dnsconfd.action for each unicast DNS server that # is announced on the local LAN. This is useful for configuring unicast # DNS servers in a DHCP-like fashion with mDNS. # avahi_dnsconfd_enable=${avahi_dnsconfd_enable-"NO"} avahi_dnsconfd_flags=${avahi_dnsconfd_flags-"-D"} . /etc/rc.subr name=avahi_dnsconfd rcvar=`set_rcvar` start_cmd=avahi_dnsconfd_start stop_cmd=avahi_dnsconfd_stop avahi_dnsconfd_bin=@sbindir@/avahi-dnsconfd avahi_dnsconfd_start() { checkyesno avahi_dnsconfd_enable && echo "Starting avahi-dnsconfd." && \ ${avahi_dnsconfd_bin} ${avahi_dnsconfd_flags} } avahi_dnsconfd_stop() { checkyesno avahi_dnsconfd_enable && echo "Stopping avahi-dnsconfd." && \ ${avahi_dnsconfd_bin} -k } load_rc_config ${name} run_rc_command "$1" avahi-0.7/initscript/freebsd/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643020037 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.849177766 30 ctime=1499681850.711974314 avahi-0.7/initscript/freebsd/Makefile.am0000644000175000017500000000221513130651643021446 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. initddir = $(sysconfdir)/rc.d EXTRA_DIST = \ avahi-daemon.sh.in \ avahi-dnsconfd.sh.in initd_SCRIPTS = \ avahi-daemon.sh \ avahi-dnsconfd.sh CLEANFILES = \ avahi-daemon.sh \ avahi-dnsconfd.sh avahi-daemon.sh: avahi-daemon.sh.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-dnsconfd.sh: avahi-dnsconfd.sh.in sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@sysconfdir\@,$(sysconfdir),g' \ $< > $@ chmod +x $@ avahi-0.7/initscript/freebsd/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011020036 xustar0030 mtime=1499681801.889065023 30 atime=1499681806.732956689 30 ctime=1499681850.715974224 avahi-0.7/initscript/freebsd/Makefile.in0000644000175000017500000005112713130652011021453 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/freebsd ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ initddir = $(sysconfdir)/rc.d EXTRA_DIST = \ avahi-daemon.sh.in \ avahi-dnsconfd.sh.in initd_SCRIPTS = \ avahi-daemon.sh \ avahi-dnsconfd.sh CLEANFILES = \ avahi-daemon.sh \ avahi-dnsconfd.sh all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/freebsd/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/freebsd/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile avahi-daemon.sh: avahi-daemon.sh.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-dnsconfd.sh: avahi-dnsconfd.sh.in sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@sysconfdir\@,$(sysconfdir),g' \ $< > $@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/PaxHeaders.10109/suse0000644000000000000000000000013213130652072015270 xustar0030 mtime=1499681850.663975385 30 atime=1499681851.279961638 30 ctime=1499681850.663975385 avahi-0.7/initscript/suse/0000755000175000017500000000000013130652072016754 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/suse/PaxHeaders.10109/avahi-daemon.in0000644000000000000000000000013213130651643020231 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681850.663975385 avahi-0.7/initscript/suse/avahi-daemon.in0000644000175000017500000000230113130651643021634 0ustar00lathiatlathiat00000000000000#! /bin/sh ### BEGIN INIT INFO # Provides: avahi # Required-Start: $network $remote_fs dbus # Required-Stop: $network $remote_fs dbus # Default-Start: 3 5 # Default-Stop: # Short-Description: ZeroConf daemon # Description: Avahi, a ZeroConf daemon for mDNS and service registration ### END INIT INFO AVAHI_BIN=@sbindir@/avahi-daemon test -x $AVAHI_BIN || exit 5 . /etc/rc.status rc_reset case "$1" in start) echo -n "Starting Avahi daemon " $AVAHI_BIN -D rc_status -v ;; stop) echo -n "Shutting down Avahi daemon " $AVAHI_BIN -k 2>/dev/null || /bin/true rc_status -v ;; try-restart|condrestart) if test "$1" = "condrestart"; then echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}" fi $0 status if test $? = 0; then $0 restart else rc_reset fi rc_status ;; restart) $0 stop $0 start rc_status ;; force-reload|reload) echo -n "Reloading Avahi daemon " $AVAHI_BIN -r rc_status -v ;; status) echo -n "Checking for Avahi daemon: " $AVAHI_BIN -c || _rc_status=3 rc_status -v ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}" exit 1 ;; esac avahi-0.7/initscript/suse/PaxHeaders.10109/avahi-dnsconfd.in0000644000000000000000000000013213130651643020564 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681850.663975385 avahi-0.7/initscript/suse/avahi-dnsconfd.in0000644000175000017500000000240413130651643022173 0ustar00lathiatlathiat00000000000000#! /bin/sh ### BEGIN INIT INFO # Provides: avahi-dnsconfd # Required-Start: $remote_fs avahi # Required-Stop: $remote_fs avahi # Default-Start: 3 5 # Default-Stop: # Short-Description: ZeroConf daemon # Description: Avahi, a ZeroConf daemon for mDNS and service registration ### END INIT INFO AVAHI_BIN=@sbindir@/avahi-dnsconfd test -x $AVAHI_BIN || exit 5 . /etc/rc.status rc_reset case "$1" in start) echo -n "Starting Avahi DNS Configuration daemon " $AVAHI_BIN -D rc_status -v ;; stop) echo -n "Shutting down Avahi DNS Configuration daemon " $AVAHI_BIN -k 2>/dev/null || /bin/true rc_status -v ;; restart) $0 stop $0 start rc_status ;; try-restart|condrestart) if test "$1" = "condrestart"; then echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}" fi $0 status if test $? = 0; then $0 restart else rc_reset fi rc_status ;; force-reload|reload) echo -n "Reloading Avahi DNS Configuration daemon " $AVAHI_BIN -r rc_status -v ;; status) echo -n "Checking for Avahi DNS Configuration daemon: " $AVAHI_BIN -c || _rc_status=3 rc_status -v ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}" exit 1 ;; esac avahi-0.7/initscript/suse/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017404 xustar0030 mtime=1499681699.139369856 30 atime=1499681796.849177766 30 ctime=1499681850.659975475 avahi-0.7/initscript/suse/Makefile.am0000644000175000017500000000206113130651643021012 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. initddir = $(sysconfdir)/init.d EXTRA_DIST = avahi-daemon.in avahi-dnsconfd.in initd_SCRIPTS = avahi-daemon avahi-dnsconfd CLEANFILES = avahi-daemon avahi-dnsconfd avahi-daemon: avahi-daemon.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-0.7/initscript/suse/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011017403 xustar0030 mtime=1499681801.977063054 30 atime=1499681806.696957494 30 ctime=1499681850.659975475 avahi-0.7/initscript/suse/Makefile.in0000644000175000017500000005075713130652011021030 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/suse ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ initddir = $(sysconfdir)/init.d EXTRA_DIST = avahi-daemon.in avahi-dnsconfd.in initd_SCRIPTS = avahi-daemon avahi-dnsconfd CLEANFILES = avahi-daemon avahi-dnsconfd all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/suse/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/suse/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile avahi-daemon: avahi-daemon.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/PaxHeaders.10109/gentoo0000644000000000000000000000013213130652072015604 xustar0030 mtime=1499681850.647975742 30 atime=1499681851.279961638 30 ctime=1499681850.647975742 avahi-0.7/initscript/gentoo/0000755000175000017500000000000013130652072017270 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/gentoo/PaxHeaders.10109/avahi-daemon.in0000644000000000000000000000013213130651643020545 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.647975742 avahi-0.7/initscript/gentoo/avahi-daemon.in0000644000175000017500000000071713130651643022161 0ustar00lathiatlathiat00000000000000#!/sbin/openrc-run # Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 extra_started_commands="reload" depend() { before netmount nfsmount use net need dbus } start() { ebegin "Starting avahi-daemon" @sbindir@/avahi-daemon -D eend $? } stop() { ebegin "Stopping avahi-daemon" @sbindir@/avahi-daemon -k eend $? } reload() { ebegin "Reloading avahi-daemon" @sbindir@/avahi-daemon -r eend $? } avahi-0.7/initscript/gentoo/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017720 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.845177856 30 ctime=1499681850.647975742 avahi-0.7/initscript/gentoo/Makefile.am0000644000175000017500000000222013130651643021323 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. if !HAVE_DBUS NO_DBUS_DEPENDENCY=/need dbus/d endif initddir = $(sysconfdir)/init.d EXTRA_DIST = \ avahi-daemon.in \ avahi-dnsconfd.in initd_SCRIPTS = \ avahi-daemon \ avahi-dnsconfd CLEANFILES = \ avahi-daemon \ avahi-dnsconfd avahi-daemon: avahi-daemon.in sed -e 's,@sbindir\@,$(sbindir),g; $(NO_DBUS_DEPENDENCY)' $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-0.7/initscript/gentoo/PaxHeaders.10109/avahi-dnsconfd.in0000644000000000000000000000013213130651643021100 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.647975742 avahi-0.7/initscript/gentoo/avahi-dnsconfd.in0000644000175000017500000000071113130651643022506 0ustar00lathiatlathiat00000000000000#!/sbin/openrc-run # Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 extra_started_commands="reload" depend() { need avahi-daemon use net } start() { ebegin "Starting avahi-dnsconfd" @sbindir@/avahi-dnsconfd -D eend $? } stop() { ebegin "Stopping avahi-dnsconfd" @sbindir@/avahi-dnsconfd -k eend $? } reload() { ebegin "Reloading avahi-dnsconfd" @sbindir@/avahi-dnsconfd -r eend $? } avahi-0.7/initscript/gentoo/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011017717 xustar0030 mtime=1499681801.905064664 30 atime=1499681806.688957673 30 ctime=1499681850.647975742 avahi-0.7/initscript/gentoo/Makefile.in0000644000175000017500000005112513130652011021332 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/gentoo ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @HAVE_DBUS_FALSE@NO_DBUS_DEPENDENCY = /need dbus/d initddir = $(sysconfdir)/init.d EXTRA_DIST = \ avahi-daemon.in \ avahi-dnsconfd.in initd_SCRIPTS = \ avahi-daemon \ avahi-dnsconfd CLEANFILES = \ avahi-daemon \ avahi-dnsconfd all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/gentoo/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/gentoo/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile avahi-daemon: avahi-daemon.in sed -e 's,@sbindir\@,$(sbindir),g; $(NO_DBUS_DEPENDENCY)' $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/PaxHeaders.10109/mandriva0000644000000000000000000000013013130652072016110 xustar0029 mtime=1499681850.68797485 30 atime=1499681851.279961638 29 ctime=1499681850.68797485 avahi-0.7/initscript/mandriva/0000755000175000017500000000000013130652072017576 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/mandriva/PaxHeaders.10109/avahi-daemon.in0000644000000000000000000000013113130651643021052 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 29 ctime=1499681850.68797485 avahi-0.7/initscript/mandriva/avahi-daemon.in0000644000175000017500000000275513130651643022473 0ustar00lathiatlathiat00000000000000#! /bin/sh # ### BEGIN INIT INFO # Provides: avahi # Required-Start: $network messagebus # Required-Stop: $network messagebus # Default-Start: 3 5 # Description: Avahi, a ZeroConf daemon whichs implements an mDNS stack ### END INIT INFO AVAHI_BIN=@sbindir@/avahi-daemon test -x $AVAHI_BIN || exit 5 # Source function library. . /etc/init.d/functions . /etc/sysconfig/network # Check that networking is configured. [ "${NETWORKING}" = "no" ] && exit 0 start() { echo -n $"Starting Avahi daemon: " $AVAHI_BIN -D RETVAL=$? if [ $RETVAL = 0 ]; then touch /var/lock/subsys/avahi-daemon success $"$base startup" else failure $"$base startup" fi echo return $RETVAL } stop() { echo -n "Shutting down Avahi daemon: " $AVAHI_BIN -k RETVAL=$? if [ $RETVAL = 0 ]; then rm -f /var/lock/subsys/avahi-daemon success $"$base stop" else failure $"$base stop" fi echo return $RETVAL } reload() { echo -n "Reloading Avahi daemon: " $AVAHI_BIN -r RETVAL=$? [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup" echo return $RETVAL } restart() { stop start } RETVAL=0 # See how we were called. case "$1" in start) start ;; stop) stop ;; status) $AVAHI_BIN -c [ $? = 0 ] && echo "Avahi daemon is running" || echo "Avahi daemon is not running" ;; restart) restart ;; reload) reload ;; condrestart) $AVAHI_BIN -c [ $? = 0 ] && restart || : ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart}" exit 1 esac exit $? avahi-0.7/initscript/mandriva/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011020224 xustar0030 mtime=1499681801.937063948 30 atime=1499681806.720956958 29 ctime=1499681850.68797485 avahi-0.7/initscript/mandriva/Makefile.in0000644000175000017500000005100013130652011021630 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/mandriva ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ initddir = $(sysconfdir)/rc.d/init.d EXTRA_DIST = avahi-daemon.in avahi-dnsconfd.in initd_SCRIPTS = avahi-daemon avahi-dnsconfd CLEANFILES = avahi-daemon avahi-dnsconfd all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/mandriva/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/mandriva/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile avahi-daemon: avahi-daemon.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/mandriva/PaxHeaders.10109/Makefile.am0000644000000000000000000000013113130651643020225 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.837178035 29 ctime=1499681850.68797485 avahi-0.7/initscript/mandriva/Makefile.am0000644000175000017500000000206613130651643021641 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. initddir = $(sysconfdir)/rc.d/init.d EXTRA_DIST = avahi-daemon.in avahi-dnsconfd.in initd_SCRIPTS = avahi-daemon avahi-dnsconfd CLEANFILES = avahi-daemon avahi-dnsconfd avahi-daemon: avahi-daemon.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ chmod +x $@ avahi-0.7/initscript/mandriva/PaxHeaders.10109/avahi-dnsconfd.in0000644000000000000000000000013113130651643021405 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 29 ctime=1499681850.68797485 avahi-0.7/initscript/mandriva/avahi-dnsconfd.in0000644000175000017500000000302113130651643023011 0ustar00lathiatlathiat00000000000000#! /bin/sh # ### BEGIN INIT INFO # Provides: avahi-dnsconfd # Required-Start: avahi # Required-Stop: avahi # Default-Start: 3 5 # Description: A DNS configuration daemon using mDNS in a DHCP-like fashion ### END INIT INFO AVAHI_BIN=@sbindir@/avahi-dnsconfd test -x $AVAHI_BIN || exit 5 # Source function library. . /etc/init.d/functions . /etc/sysconfig/network # Check that networking is configured. [ ${NETWORKING} = "no" ] && exit 0 start() { echo -n $"Starting Avahi DNS daemon: " $AVAHI_BIN -D RETVAL=$? if [ $RETVAL = 0 ]; then touch /var/lock/subsys/avahi-dnsconfd success $"$base startup" else failure $"$base startup" fi echo return $RETVAL } stop() { echo -n "Shutting down Avahi DNS daemon: " $AVAHI_BIN -k RETVAL=$? if [ $RETVAL = 0 ]; then rm -f /var/lock/subsys/avahi-dnsconfd success $"$base stop" else failure $"$base stop" fi echo return $RETVAL } reload() { echo -n "Reloading Avahi DNS daemon: " $AVAHI_BIN -r RETVAL=$? [ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup" echo return $RETVAL } restart() { stop start } RETVAL=0 # See how we were called. case "$1" in start) start ;; stop) stop ;; status) $AVAHI_BIN -c [ $? = 0 ] && echo "Avahi DNS daemon is running" || echo "Avahi DNS daemon is not running" ;; restart) restart ;; reload) reload ;; condrestart) $AVAHI_BIN -c [ $? = 0 ] && restart || : ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart}" exit 1 esac exit $? avahi-0.7/initscript/PaxHeaders.10109/lfs0000644000000000000000000000013213130652072015075 xustar0030 mtime=1499681850.623976277 30 atime=1499681851.279961638 30 ctime=1499681850.623976277 avahi-0.7/initscript/lfs/0000755000175000017500000000000013130652072016561 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/lfs/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011017210 xustar0030 mtime=1499681801.921064306 30 atime=1499681806.712957137 30 ctime=1499681850.623976277 avahi-0.7/initscript/lfs/Makefile.in0000644000175000017500000005061113130652011020622 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/lfs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ initddir = $(sysconfdir)/rc.d/init.d EXTRA_DIST = avahi.in initd_SCRIPTS = avahi CLEANFILES = avahi all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/lfs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/lfs/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile avahi: avahi.in $(AM_V_GEN)sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@localstatedir\@,$(localstatedir),g' \ $< > $@ && \ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/lfs/PaxHeaders.10109/avahi.in0000644000000000000000000000013213130651643016575 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.623976277 avahi-0.7/initscript/lfs/avahi.in0000644000175000017500000000157213130651643020211 0ustar00lathiatlathiat00000000000000#!/bin/sh ######################################################################## # Begin $rc_base/init.d/avahi # # Description : Avahi daemon loader # # Authors : William Immendorf - will.immendorf@gmail.com # # Version : 00.00 # # Notes : Based off of the LFS 6.4 sysklogd script. # ######################################################################## . /etc/sysconfig/rc . ${rc_functions} case "${1}" in start) boot_mesg "Starting the Avahi daemon..." loadproc avahi-daemon -D ;; stop) boot_mesg "Stopping the Avahi daemon..." avahi-daemon -k evaluate_retval ;; reload) boot_mesg "Reloading the Avahi daemon..." reloadproc avahi-daemon -r ;; restart) ${0} stop sleep 1 ${0} start ;; status) statusproc avahi-daemon ;; *) echo "Usage: ${0} {start|stop|reload|restart|status}" exit 1 ;; esac # End $rc_base/init.d/avahi avahi-0.7/initscript/lfs/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017211 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.841177946 30 ctime=1499681850.623976277 avahi-0.7/initscript/lfs/Makefile.am0000644000175000017500000000171613130651643020625 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. initddir = $(sysconfdir)/rc.d/init.d EXTRA_DIST = avahi.in initd_SCRIPTS = avahi CLEANFILES = avahi avahi: avahi.in $(AM_V_GEN)sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@localstatedir\@,$(localstatedir),g' \ $< > $@ && \ chmod +x $@ avahi-0.7/initscript/PaxHeaders.10109/fedora0000644000000000000000000000013213130652072015551 xustar0030 mtime=1499681850.675975115 30 atime=1499681851.279961638 30 ctime=1499681850.675975115 avahi-0.7/initscript/fedora/0000755000175000017500000000000013130652072017235 5ustar00lathiatlathiat00000000000000avahi-0.7/initscript/fedora/PaxHeaders.10109/avahi-dnsconfd.in0000644000000000000000000000013213130651643021045 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.675975115 avahi-0.7/initscript/fedora/avahi-dnsconfd.in0000644000175000017500000000506013130651643022455 0ustar00lathiatlathiat00000000000000#!/bin/sh # # avahi-dnsconfd: Starts the Avahi DNS Configuration Daemon # # chkconfig: - 96 02 # description: avahi-dnsconfd connects to a running avahi-daemon and \ # runs the script /etc/avahi/dnsconf.action for each \ # unicast DNS server that is announced on the local \ # LAN. This is useful for configuring unicast DNS servers \ # in a DHCP-like fashion with mDNS. # processname: avahi-dnsconfd # pidfile: @localstatedir@/run/avahi-dnsconfd.pid ### BEGIN INIT INFO # Required-Start: avahi-daemon # Required-Stop: avahi-daemon # Should-Start: $syslog $network $local_fs # Should-Stop: $syslog $local_fs # Default-Start: 3 4 5 # Default-Stop: 0 1 2 6 # Short-Description: Starts the Avahi DNS Configuration Daemon # Description: avahi-dnsconfd connects to a running avahi-daemon # and runs the script /etc/avahi/dnsconf.action for # each unicast DNS server that is announced on the # local LAN. This is useful for configuring unicast # DNS servers in a DHCP-like fashion with mDNS. ### END INIT INFO AVAHI_BIN=@sbindir@/avahi-dnsconfd AVAHI_OPTS="-D" if [ "$1" = 'status' ]; then test -x $AVAHI_BIN || exit 4 else test -x $AVAHI_BIN || exit 5 fi # Source function library. . /etc/init.d/functions . /etc/sysconfig/network LOCKFILE=@localstatedir@/lock/subsys/avahi-dnsconfd PIDFILE=@localstatedir@/run/avahi-dnsconfd.pid RETVAL=0 base=${0##*/} start() { # Check that networking is configured. [ ${NETWORKING} = "no" ] && exit 1 echo -n $"Starting Avahi DNS daemon... " daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch ${LOCKFILE} return $RETVAL } stop() { echo -n $"Shutting down Avahi DNS daemon: " killproc -p ${PIDFILE} $AVAHI_BIN RETVAL=$? [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE} echo return $RETVAL } reload() { echo -n $"Reloading Avahi DNS daemon... " killproc -p ${PIDFILE} $AVAHI_BIN -HUP RETVAL=$? echo return $RETVAL } restart() { stop start } RETVAL=0 # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status -p ${PIDFILE} $AVAHI_BIN RETVAL=$? ;; restart) restart ;; reload) reload ;; condrestart) if [ -f $LOCKFILE ]; then restart fi ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart}" exit 2 ;; esac exit $RETVAL avahi-0.7/initscript/fedora/PaxHeaders.10109/avahi-daemon.in0000644000000000000000000000013213130651643020512 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.675975115 avahi-0.7/initscript/fedora/avahi-daemon.in0000644000175000017500000000501513130651643022122 0ustar00lathiatlathiat00000000000000#!/bin/sh # # avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack # # chkconfig: 345 24 02 # description: This is a daemon which runs on client machines to \ # perform Zeroconf service discovery on a \ # network. avahi-daemon must be running on systems that \ # use Avahi for service discovery. Avahi-daemon should \ # not be running otherwise. # processname: avahi-daemon # pidfile: @localstatedir@/run/avahi-daemon/pid ### BEGIN INIT INFO # Required-Start: messagebus # Required-Stop: messagebus # Should-Start: $syslog $network $local_fs # Should-Stop: $syslog $local_fs # Default-Start: 3 4 5 # Default-Stop: 0 1 2 6 # Short-Description: Starts the Avahi Daemon # Description: This is a daemon which runs on client machines to # perform Zeroconf service discovery on a # network. avahi-daemon must be running on systems # that use Avahi for service discovery. # Avahi-daemon should not be running otherwise. ### END INIT INFO AVAHI_BIN=@sbindir@/avahi-daemon AVAHI_OPTS="-D" if [ "$1" = 'status' ]; then test -x $AVAHI_BIN || exit 4 else test -x $AVAHI_BIN || exit 5 fi # Source function library. . /etc/init.d/functions . /etc/sysconfig/network LOCKFILE=@localstatedir@/lock/subsys/avahi-daemon PIDFILE=@localstatedir@/run/avahi-daemon/pid RETVAL=0 base=${0##*/} start() { # Check that networking is configured. [ ${NETWORKING} = "no" ] && exit 1 echo -n $"Starting Avahi daemon... " if [ -s /etc/localtime ]; then cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1 fi; daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch ${LOCKFILE} return $RETVAL } stop() { echo -n $"Shutting down Avahi daemon: " killproc -p ${PIDFILE} $AVAHI_BIN RETVAL=$? [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE} echo return $RETVAL } reload() { echo -n $"Reloading Avahi daemon... " killproc -p ${PIDFILE} $AVAHI_BIN -HUP RETVAL=$? echo return $RETVAL } restart() { stop start } RETVAL=0 # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status -p ${PIDFILE} $AVAHI_BIN RETVAL=$? ;; restart) restart ;; reload) reload ;; condrestart) if [ -f $LOCKFILE ]; then restart fi ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart}" exit 2 ;; esac exit $RETVAL avahi-0.7/initscript/fedora/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011017664 xustar0030 mtime=1499681801.869065469 30 atime=1499681806.704957316 30 ctime=1499681850.675975115 avahi-0.7/initscript/fedora/Makefile.in0000644000175000017500000005121013130652011021272 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = initscript/fedora ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(initddir)" SCRIPTS = $(initd_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ initddir = $(sysconfdir)/rc.d/init.d EXTRA_DIST = avahi-daemon.in avahi-dnsconfd.in initd_SCRIPTS = avahi-daemon avahi-dnsconfd CLEANFILES = avahi-daemon avahi-dnsconfd all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign initscript/fedora/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign initscript/fedora/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-initdSCRIPTS: $(initd_SCRIPTS) @$(NORMAL_INSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(initddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(initddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(initddir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(initddir)$$dir" || exit $$?; \ } \ ; done uninstall-initdSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(initd_SCRIPTS)'; test -n "$(initddir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(initddir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(initddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-initdSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-initdSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-initdSCRIPTS install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-initdSCRIPTS .PRECIOUS: Makefile avahi-daemon: avahi-daemon.in $(AM_V_GEN)sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@localstatedir\@,$(localstatedir),g' \ $< > $@ && \ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in $(AM_V_GEN)sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@localstatedir\@,$(localstatedir),g' \ $< > $@ && \ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/initscript/fedora/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017665 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.841177946 30 ctime=1499681850.671975206 avahi-0.7/initscript/fedora/Makefile.am0000644000175000017500000000230413130651643021273 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. initddir = $(sysconfdir)/rc.d/init.d EXTRA_DIST = avahi-daemon.in avahi-dnsconfd.in initd_SCRIPTS = avahi-daemon avahi-dnsconfd CLEANFILES = avahi-daemon avahi-dnsconfd avahi-daemon: avahi-daemon.in $(AM_V_GEN)sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@localstatedir\@,$(localstatedir),g' \ $< > $@ && \ chmod +x $@ avahi-dnsconfd: avahi-dnsconfd.in $(AM_V_GEN)sed \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@localstatedir\@,$(localstatedir),g' \ $< > $@ && \ chmod +x $@ avahi-0.7/PaxHeaders.10109/avahi-ui0000644000000000000000000000013013130652073013623 xustar0029 mtime=1499681851.22396289 30 atime=1499681851.279961638 29 ctime=1499681851.22396289 avahi-0.7/avahi-ui/0000755000175000017500000000000013130652073015311 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-ui/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011015736 xustar0030 mtime=1499681801.721068779 30 atime=1499681806.868953647 29 ctime=1499681851.22396289 avahi-0.7/avahi-ui/Makefile.in0000644000175000017500000013447113130652011017360 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_GTK2OR3_TRUE@am__append_1 = -DGNOMELOCALEDIR=\"$(datadir)/locale\" @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK_TRUE@am__append_2 = \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK_TRUE@ libavahi-ui.la @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@am__append_3 = \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@ libavahi-ui-gtk3.la @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_4 = ../avahi-utils/stdb.h ../avahi-utils/stdb.c @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_5 = -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_6 = -lgdbm @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_7 = -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_8 = -lgdbm @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_9 = ../avahi-utils/stdb.h ../avahi-utils/stdb.c @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_10 = -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_11 = -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@bin_PROGRAMS = bssh$(EXEEXT) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__append_12 = bssh.desktop bvnc.desktop subdir = avahi-ui ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__avahiinclude_HEADERS_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(avahiincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_gtk3_la_DEPENDENCIES = ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__DEPENDENCIES_1) am__libavahi_ui_gtk3_la_SOURCES_DIST = avahi-ui.h avahi-ui.c \ ../avahi-utils/stdb.h ../avahi-utils/stdb.c @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__objects_1 = libavahi_ui_gtk3_la-stdb.lo @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__objects_2 = libavahi_ui_gtk3_la-stdb.lo @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__objects_3 = libavahi_ui_gtk3_la-avahi-ui.lo \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__objects_1) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__objects_2) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am_libavahi_ui_gtk3_la_OBJECTS = $(am__objects_3) libavahi_ui_gtk3_la_OBJECTS = $(am_libavahi_ui_gtk3_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libavahi_ui_gtk3_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libavahi_ui_gtk3_la_CFLAGS) $(CFLAGS) \ $(libavahi_ui_gtk3_la_LDFLAGS) $(LDFLAGS) -o $@ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@am_libavahi_ui_gtk3_la_rpath = -rpath \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@ $(libdir) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_la_DEPENDENCIES = ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__DEPENDENCIES_1) am__libavahi_ui_la_SOURCES_DIST = avahi-ui.h avahi-ui.c \ ../avahi-utils/stdb.h ../avahi-utils/stdb.c @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__objects_4 = libavahi_ui_la-stdb.lo @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am__objects_5 = libavahi_ui_la-stdb.lo @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am_libavahi_ui_la_OBJECTS = libavahi_ui_la-avahi-ui.lo \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__objects_4) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__objects_5) libavahi_ui_la_OBJECTS = $(am_libavahi_ui_la_OBJECTS) libavahi_ui_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libavahi_ui_la_CFLAGS) $(CFLAGS) $(libavahi_ui_la_LDFLAGS) \ $(LDFLAGS) -o $@ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK_TRUE@am_libavahi_ui_la_rpath = -rpath \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK_TRUE@ $(libdir) PROGRAMS = $(bin_PROGRAMS) am__bssh_SOURCES_DIST = bssh.c @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am_bssh_OBJECTS = bssh-bssh.$(OBJEXT) bssh_OBJECTS = $(am_bssh_OBJECTS) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@bssh_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@ libavahi-ui.la @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@bssh_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@ libavahi-ui-gtk3.la bssh_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(bssh_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libavahi_ui_gtk3_la_SOURCES) $(libavahi_ui_la_SOURCES) \ $(bssh_SOURCES) DIST_SOURCES = $(am__libavahi_ui_gtk3_la_SOURCES_DIST) \ $(am__libavahi_ui_la_SOURCES_DIST) $(am__bssh_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(desktop_DATA) am__avahiinclude_HEADERS_DIST = avahi-ui.h HEADERS = $(avahiinclude_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' \ $(am__append_1) pkglibdatadir = $(libdir)/avahi desktopdir = $(datadir)/applications desktop_DATA = $(am__append_12) desktop_DATA_in = $(desktop_DATA_in_in:.in.in=.in) desktop_DATA_in_in = bssh.desktop.in.in bvnc.desktop.in.in EXTRA_DIST = $(desktop_DATA_in_in) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@avahiincludedir = $(includedir)/avahi-ui @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@avahiinclude_HEADERS = \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ avahi-ui.h @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@lib_LTLIBRARIES = $(am__append_2) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_3) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_la_SOURCES = \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ avahi-ui.h \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ avahi-ui.c \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_4) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_9) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_la_CFLAGS = $(AM_CFLAGS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(GTK20_CFLAGS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_5) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_10) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_la_LIBADD = $(AM_LDADD) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(GTK20_LIBS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_6) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_UI_VERSION_INFO) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_gtk3_la_SOURCES = $(libavahi_ui_la_SOURCES) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_gtk3_la_CFLAGS = $(AM_CFLAGS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(GTK30_CFLAGS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_7) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_11) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_gtk3_la_LIBADD = $(AM_LDADD) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(GTK30_LIBS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_8) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@libavahi_ui_gtk3_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_UI_VERSION_INFO) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@bssh_SOURCES = bssh.c @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@bssh_CFLAGS = $(AM_CFLAGS) $(GTK20_CFLAGS) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@bssh_CFLAGS = $(AM_CFLAGS) $(GTK30_CFLAGS) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@bssh_LDADD = $(AM_LDADD) $(GTK20_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la libavahi-ui.la @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@bssh_LDADD = $(AM_LDADD) $(GTK30_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la libavahi-ui-gtk3.la CLEANFILES = $(desktop_DATA) $(desktop_DATA_in) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-ui/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-ui/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libavahi-ui-gtk3.la: $(libavahi_ui_gtk3_la_OBJECTS) $(libavahi_ui_gtk3_la_DEPENDENCIES) $(EXTRA_libavahi_ui_gtk3_la_DEPENDENCIES) $(AM_V_CCLD)$(libavahi_ui_gtk3_la_LINK) $(am_libavahi_ui_gtk3_la_rpath) $(libavahi_ui_gtk3_la_OBJECTS) $(libavahi_ui_gtk3_la_LIBADD) $(LIBS) libavahi-ui.la: $(libavahi_ui_la_OBJECTS) $(libavahi_ui_la_DEPENDENCIES) $(EXTRA_libavahi_ui_la_DEPENDENCIES) $(AM_V_CCLD)$(libavahi_ui_la_LINK) $(am_libavahi_ui_la_rpath) $(libavahi_ui_la_OBJECTS) $(libavahi_ui_la_LIBADD) $(LIBS) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list bssh$(EXEEXT): $(bssh_OBJECTS) $(bssh_DEPENDENCIES) $(EXTRA_bssh_DEPENDENCIES) @rm -f bssh$(EXEEXT) $(AM_V_CCLD)$(bssh_LINK) $(bssh_OBJECTS) $(bssh_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bssh-bssh.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_ui_gtk3_la-avahi-ui.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_ui_gtk3_la-stdb.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_ui_la-avahi-ui.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_ui_la-stdb.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libavahi_ui_gtk3_la-avahi-ui.lo: avahi-ui.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_ui_gtk3_la_CFLAGS) $(CFLAGS) -MT libavahi_ui_gtk3_la-avahi-ui.lo -MD -MP -MF $(DEPDIR)/libavahi_ui_gtk3_la-avahi-ui.Tpo -c -o libavahi_ui_gtk3_la-avahi-ui.lo `test -f 'avahi-ui.c' || echo '$(srcdir)/'`avahi-ui.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_ui_gtk3_la-avahi-ui.Tpo $(DEPDIR)/libavahi_ui_gtk3_la-avahi-ui.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-ui.c' object='libavahi_ui_gtk3_la-avahi-ui.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_ui_gtk3_la_CFLAGS) $(CFLAGS) -c -o libavahi_ui_gtk3_la-avahi-ui.lo `test -f 'avahi-ui.c' || echo '$(srcdir)/'`avahi-ui.c libavahi_ui_gtk3_la-stdb.lo: ../avahi-utils/stdb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_ui_gtk3_la_CFLAGS) $(CFLAGS) -MT libavahi_ui_gtk3_la-stdb.lo -MD -MP -MF $(DEPDIR)/libavahi_ui_gtk3_la-stdb.Tpo -c -o libavahi_ui_gtk3_la-stdb.lo `test -f '../avahi-utils/stdb.c' || echo '$(srcdir)/'`../avahi-utils/stdb.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_ui_gtk3_la-stdb.Tpo $(DEPDIR)/libavahi_ui_gtk3_la-stdb.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-utils/stdb.c' object='libavahi_ui_gtk3_la-stdb.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_ui_gtk3_la_CFLAGS) $(CFLAGS) -c -o libavahi_ui_gtk3_la-stdb.lo `test -f '../avahi-utils/stdb.c' || echo '$(srcdir)/'`../avahi-utils/stdb.c libavahi_ui_la-avahi-ui.lo: avahi-ui.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_ui_la_CFLAGS) $(CFLAGS) -MT libavahi_ui_la-avahi-ui.lo -MD -MP -MF $(DEPDIR)/libavahi_ui_la-avahi-ui.Tpo -c -o libavahi_ui_la-avahi-ui.lo `test -f 'avahi-ui.c' || echo '$(srcdir)/'`avahi-ui.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_ui_la-avahi-ui.Tpo $(DEPDIR)/libavahi_ui_la-avahi-ui.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-ui.c' object='libavahi_ui_la-avahi-ui.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_ui_la_CFLAGS) $(CFLAGS) -c -o libavahi_ui_la-avahi-ui.lo `test -f 'avahi-ui.c' || echo '$(srcdir)/'`avahi-ui.c libavahi_ui_la-stdb.lo: ../avahi-utils/stdb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_ui_la_CFLAGS) $(CFLAGS) -MT libavahi_ui_la-stdb.lo -MD -MP -MF $(DEPDIR)/libavahi_ui_la-stdb.Tpo -c -o libavahi_ui_la-stdb.lo `test -f '../avahi-utils/stdb.c' || echo '$(srcdir)/'`../avahi-utils/stdb.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_ui_la-stdb.Tpo $(DEPDIR)/libavahi_ui_la-stdb.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-utils/stdb.c' object='libavahi_ui_la-stdb.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_ui_la_CFLAGS) $(CFLAGS) -c -o libavahi_ui_la-stdb.lo `test -f '../avahi-utils/stdb.c' || echo '$(srcdir)/'`../avahi-utils/stdb.c bssh-bssh.o: bssh.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bssh_CFLAGS) $(CFLAGS) -MT bssh-bssh.o -MD -MP -MF $(DEPDIR)/bssh-bssh.Tpo -c -o bssh-bssh.o `test -f 'bssh.c' || echo '$(srcdir)/'`bssh.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bssh-bssh.Tpo $(DEPDIR)/bssh-bssh.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bssh.c' object='bssh-bssh.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bssh_CFLAGS) $(CFLAGS) -c -o bssh-bssh.o `test -f 'bssh.c' || echo '$(srcdir)/'`bssh.c bssh-bssh.obj: bssh.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bssh_CFLAGS) $(CFLAGS) -MT bssh-bssh.obj -MD -MP -MF $(DEPDIR)/bssh-bssh.Tpo -c -o bssh-bssh.obj `if test -f 'bssh.c'; then $(CYGPATH_W) 'bssh.c'; else $(CYGPATH_W) '$(srcdir)/bssh.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bssh-bssh.Tpo $(DEPDIR)/bssh-bssh.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='bssh.c' object='bssh-bssh.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bssh_CFLAGS) $(CFLAGS) -c -o bssh-bssh.obj `if test -f 'bssh.c'; then $(CYGPATH_W) 'bssh.c'; else $(CYGPATH_W) '$(srcdir)/bssh.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-desktopDATA: $(desktop_DATA) @$(NORMAL_INSTALL) @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(desktopdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(desktopdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(desktopdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopdir)" || exit $$?; \ done uninstall-desktopDATA: @$(NORMAL_UNINSTALL) @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(desktopdir)'; $(am__uninstall_files_from_dir) install-avahiincludeHEADERS: $(avahiinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(avahiinclude_HEADERS)'; test -n "$(avahiincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahiincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahiincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahiincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahiincludedir)" || exit $$?; \ done uninstall-avahiincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahiinclude_HEADERS)'; test -n "$(avahiincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahiincludedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS) install-binPROGRAMS: install-libLTLIBRARIES installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(avahiincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @HAVE_DBUS_FALSE@install-exec-local: @HAVE_GLIB_FALSE@install-exec-local: @HAVE_GTK2OR3_FALSE@install-exec-local: clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahiincludeHEADERS install-desktopDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-exec-local \ install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahiincludeHEADERS uninstall-binPROGRAMS \ uninstall-desktopDATA uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ clean-libtool cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-avahiincludeHEADERS \ install-binPROGRAMS install-data install-data-am \ install-desktopDATA install-dvi install-dvi-am install-exec \ install-exec-am install-exec-local install-html \ install-html-am install-info install-info-am \ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-avahiincludeHEADERS uninstall-binPROGRAMS \ uninstall-desktopDATA uninstall-libLTLIBRARIES .PRECIOUS: Makefile @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@INTLTOOL_DESKTOP_RULE@ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@install-exec-local: @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ cd $(DESTDIR)/$(bindir) && \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ rm -f bvnc bshell && \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(LN_S) bssh bvnc && \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(LN_S) bssh bshell @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@bssh.desktop.in: bssh.desktop.in.in @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@bvnc.desktop.in: bvnc.desktop.in.in @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@ @INTLTOOL_DESKTOP_RULE@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-ui/PaxHeaders.10109/avahi-ui.c0000644000000000000000000000013113130651643015552 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 29 ctime=1499681851.22396289 avahi-0.7/avahi-ui/avahi-ui.c0000644000175000017500000015326213130651643017173 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include "avahi-ui.h" #if defined(HAVE_GDBM) || defined(HAVE_DBM) #include "../avahi-utils/stdb.h" #endif /* todo: i18n, HIGify */ struct _AuiServiceDialogPrivate { AvahiGLibPoll *glib_poll; AvahiClient *client; AvahiServiceBrowser **browsers; AvahiServiceResolver *resolver; AvahiDomainBrowser *domain_browser; gchar **browse_service_types; gchar *service_type; gchar *domain; gchar *service_name; AvahiProtocol address_family; AvahiAddress address; gchar *host_name; AvahiStringList *txt_data; guint16 port; gboolean resolve_service, resolve_service_done; gboolean resolve_host_name, resolve_host_name_done; GtkWidget *domain_label; GtkWidget *domain_button; GtkWidget *service_tree_view; GtkWidget *service_progress_bar; GtkListStore *service_list_store, *domain_list_store; GHashTable *service_type_names; guint service_pulse_timeout; guint domain_pulse_timeout; guint start_idle; AvahiIfIndex common_interface; AvahiProtocol common_protocol; GtkWidget *domain_dialog; GtkWidget *domain_entry; GtkWidget *domain_tree_view; GtkWidget *domain_progress_bar; GtkWidget *domain_ok_button; gint forward_response_id; }; enum { PROP_0, PROP_BROWSE_SERVICE_TYPES, PROP_DOMAIN, PROP_SERVICE_TYPE, PROP_SERVICE_NAME, PROP_ADDRESS, PROP_PORT, PROP_HOST_NAME, PROP_TXT_DATA, PROP_RESOLVE_SERVICE, PROP_RESOLVE_HOST_NAME, PROP_ADDRESS_FAMILY }; enum { SERVICE_COLUMN_IFACE, SERVICE_COLUMN_PROTO, SERVICE_COLUMN_TYPE, SERVICE_COLUMN_NAME, SERVICE_COLUMN_PRETTY_IFACE, SERVICE_COLUMN_PRETTY_TYPE, N_SERVICE_COLUMNS }; enum { DOMAIN_COLUMN_NAME, DOMAIN_COLUMN_REF, N_DOMAIN_COLUMNS }; static void aui_service_dialog_finalize(GObject *object); static void aui_service_dialog_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec); static void aui_service_dialog_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); static int get_default_response(GtkDialog *dlg) { gint ret = GTK_RESPONSE_NONE; if (gtk_window_get_default_widget(GTK_WINDOW(dlg))) /* Use the response of the default widget, if possible */ ret = gtk_dialog_get_response_for_widget(dlg, gtk_window_get_default_widget(GTK_WINDOW(dlg))); if (ret == GTK_RESPONSE_NONE) { /* Fall back to finding the first positive response */ GList *children, *t; gint bad = GTK_RESPONSE_NONE; t = children = gtk_container_get_children(GTK_CONTAINER(gtk_dialog_get_action_area(dlg))); while (t) { GtkWidget *child = t->data; ret = gtk_dialog_get_response_for_widget(dlg, child); if (ret == GTK_RESPONSE_ACCEPT || ret == GTK_RESPONSE_OK || ret == GTK_RESPONSE_YES || ret == GTK_RESPONSE_APPLY) break; if (ret != GTK_RESPONSE_NONE && bad == GTK_RESPONSE_NONE) bad = ret; t = t->next; } g_list_free (children); /* Fall back to finding the first negative response */ if (ret == GTK_RESPONSE_NONE) ret = bad; } return ret; } G_DEFINE_TYPE(AuiServiceDialog, aui_service_dialog, GTK_TYPE_DIALOG) static void aui_service_dialog_class_init(AuiServiceDialogClass *klass) { GObjectClass *object_class; avahi_init_i18n(); object_class = (GObjectClass*) klass; object_class->finalize = aui_service_dialog_finalize; object_class->set_property = aui_service_dialog_set_property; object_class->get_property = aui_service_dialog_get_property; g_object_class_install_property( object_class, PROP_BROWSE_SERVICE_TYPES, g_param_spec_pointer("browse_service_types", _("Browse Service Types"), _("A NULL terminated list of service types to browse for"), G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property( object_class, PROP_DOMAIN, g_param_spec_string("domain", _("Domain"), _("The domain to browse in, or NULL for the default domain"), NULL, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property( object_class, PROP_SERVICE_TYPE, g_param_spec_string("service_type", _("Service Type"), _("The service type of the selected service"), NULL, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property( object_class, PROP_SERVICE_NAME, g_param_spec_string("service_name", _("Service Name"), _("The service name of the selected service"), NULL, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property( object_class, PROP_ADDRESS, g_param_spec_pointer("address", _("Address"), _("The address of the resolved service"), G_PARAM_READABLE)); g_object_class_install_property( object_class, PROP_PORT, g_param_spec_uint("port", _("Port"), _("The IP port number of the resolved service"), 0, 0xFFFF, 0, G_PARAM_READABLE)); g_object_class_install_property( object_class, PROP_HOST_NAME, g_param_spec_string("host_name", _("Host Name"), _("The host name of the resolved service"), NULL, G_PARAM_READABLE)); g_object_class_install_property( object_class, PROP_TXT_DATA, g_param_spec_pointer("txt_data", _("TXT Data"), _("The TXT data of the resolved service"), G_PARAM_READABLE)); g_object_class_install_property( object_class, PROP_RESOLVE_SERVICE, g_param_spec_boolean("resolve_service", _("Resolve Service"), _("Resolve the selected service automatically before returning"), TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property( object_class, PROP_RESOLVE_HOST_NAME, g_param_spec_boolean("resolve_host_name", _("Resolve Service Host Name"), _("Resolve the host name of the selected service automatically before returning"), TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property( object_class, PROP_ADDRESS_FAMILY, g_param_spec_int("address_family", _("Address family"), _("The address family for host name resolution"), AVAHI_PROTO_UNSPEC, AVAHI_PROTO_INET6, AVAHI_PROTO_UNSPEC, G_PARAM_READABLE | G_PARAM_WRITABLE)); } GtkWidget *aui_service_dialog_new_valist( const gchar *title, GtkWindow *parent, const gchar *first_button_text, va_list varargs) { const gchar *button_text; gint dr; GtkWidget *w = (GtkWidget*)g_object_new( AUI_TYPE_SERVICE_DIALOG, #if !GTK_CHECK_VERSION (2,21,8) "has-separator", FALSE, #endif "title", title, NULL); if (parent) gtk_window_set_transient_for(GTK_WINDOW(w), parent); button_text = first_button_text; while (button_text) { gint response_id; response_id = va_arg(varargs, gint); gtk_dialog_add_button(GTK_DIALOG(w), button_text, response_id); button_text = va_arg(varargs, const gchar *); } gtk_dialog_set_response_sensitive(GTK_DIALOG(w), GTK_RESPONSE_ACCEPT, FALSE); gtk_dialog_set_response_sensitive(GTK_DIALOG(w), GTK_RESPONSE_OK, FALSE); gtk_dialog_set_response_sensitive(GTK_DIALOG(w), GTK_RESPONSE_YES, FALSE); gtk_dialog_set_response_sensitive(GTK_DIALOG(w), GTK_RESPONSE_APPLY, FALSE); if ((dr = get_default_response(GTK_DIALOG(w))) != GTK_RESPONSE_NONE) gtk_dialog_set_default_response(GTK_DIALOG(w), dr); return w; } GtkWidget* aui_service_dialog_new( const gchar *title, GtkWindow *parent, const gchar *first_button_text, ...) { GtkWidget *w; va_list varargs; va_start(varargs, first_button_text); w = aui_service_dialog_new_valist(title, parent, first_button_text, varargs); va_end(varargs); return w; } static gboolean service_pulse_callback(gpointer data) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(data); gtk_progress_bar_pulse(GTK_PROGRESS_BAR(d->priv->service_progress_bar)); return TRUE; } static gboolean domain_pulse_callback(gpointer data) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(data); gtk_progress_bar_pulse(GTK_PROGRESS_BAR(d->priv->domain_progress_bar)); return TRUE; } static void client_callback(AvahiClient *c, AvahiClientState state, void *userdata) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(userdata); if (state == AVAHI_CLIENT_FAILURE) { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Avahi client failure: %s"), avahi_strerror(avahi_client_errno(c))); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); gtk_dialog_response(GTK_DIALOG(d), GTK_RESPONSE_CANCEL); } } static void resolve_callback( AvahiServiceResolver *r G_GNUC_UNUSED, AvahiIfIndex interface G_GNUC_UNUSED, AvahiProtocol protocol G_GNUC_UNUSED, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags G_GNUC_UNUSED, void *userdata) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(userdata); switch (event) { case AVAHI_RESOLVER_FOUND: d->priv->resolve_service_done = 1; g_free(d->priv->service_name); d->priv->service_name = g_strdup(name); g_free(d->priv->service_type); d->priv->service_type = g_strdup(type); g_free(d->priv->domain); d->priv->domain = g_strdup(domain); g_free(d->priv->host_name); d->priv->host_name = g_strdup(host_name); d->priv->port = port; avahi_string_list_free(d->priv->txt_data); d->priv->txt_data = avahi_string_list_copy(txt); if (a) { d->priv->resolve_host_name_done = 1; d->priv->address = *a; } gtk_dialog_response(GTK_DIALOG(d), d->priv->forward_response_id); break; case AVAHI_RESOLVER_FAILURE: { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Avahi resolver failure: %s"), avahi_strerror(avahi_client_errno(d->priv->client))); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); gtk_dialog_response(GTK_DIALOG(d), GTK_RESPONSE_CANCEL); break; } } } static void browse_callback( AvahiServiceBrowser *b G_GNUC_UNUSED, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(userdata); switch (event) { case AVAHI_BROWSER_NEW: { gchar *ifs; const gchar *pretty_type = NULL; char ifname[IFNAMSIZ]; GtkTreeIter iter; GtkTreeSelection *selection; if (!(if_indextoname(interface, ifname))) g_snprintf(ifname, sizeof(ifname), "%i", interface); ifs = g_strdup_printf("%s %s", ifname, protocol == AVAHI_PROTO_INET ? "IPv4" : "IPv6"); if (d->priv->service_type_names) pretty_type = g_hash_table_lookup (d->priv->service_type_names, type); if (!pretty_type) { #if defined(HAVE_GDBM) || defined(HAVE_DBM) pretty_type = stdb_lookup(type); #else pretty_type = type; #endif } gtk_list_store_append(d->priv->service_list_store, &iter); gtk_list_store_set(d->priv->service_list_store, &iter, SERVICE_COLUMN_IFACE, interface, SERVICE_COLUMN_PROTO, protocol, SERVICE_COLUMN_NAME, name, SERVICE_COLUMN_TYPE, type, SERVICE_COLUMN_PRETTY_IFACE, ifs, SERVICE_COLUMN_PRETTY_TYPE, pretty_type, -1); g_free(ifs); if (d->priv->common_protocol == AVAHI_PROTO_UNSPEC) d->priv->common_protocol = protocol; if (d->priv->common_interface == AVAHI_IF_UNSPEC) d->priv->common_interface = interface; if (d->priv->common_interface != interface || d->priv->common_protocol != protocol) { gtk_tree_view_column_set_visible(gtk_tree_view_get_column(GTK_TREE_VIEW(d->priv->service_tree_view), 0), TRUE); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(d->priv->service_tree_view), TRUE); } selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->priv->service_tree_view)); if (!gtk_tree_selection_get_selected(selection, NULL, NULL)) { if (!d->priv->service_type || !d->priv->service_name || (avahi_domain_equal(d->priv->service_type, type) && strcasecmp(d->priv->service_name, name) == 0)) { GtkTreePath *path; gtk_tree_selection_select_iter(selection, &iter); path = gtk_tree_model_get_path(GTK_TREE_MODEL(d->priv->service_list_store), &iter); gtk_tree_view_set_cursor(GTK_TREE_VIEW(d->priv->service_tree_view), path, NULL, FALSE); gtk_tree_path_free(path); } } break; } case AVAHI_BROWSER_REMOVE: { GtkTreeIter iter; gboolean valid; valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(d->priv->service_list_store), &iter); while (valid) { gint _interface, _protocol; gchar *_name, *_type; gboolean found; gtk_tree_model_get(GTK_TREE_MODEL(d->priv->service_list_store), &iter, SERVICE_COLUMN_IFACE, &_interface, SERVICE_COLUMN_PROTO, &_protocol, SERVICE_COLUMN_NAME, &_name, SERVICE_COLUMN_TYPE, &_type, -1); found = _interface == interface && _protocol == protocol && strcasecmp(_name, name) == 0 && avahi_domain_equal(_type, type); g_free(_name); if (found) { gtk_list_store_remove(d->priv->service_list_store, &iter); break; } valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(d->priv->service_list_store), &iter); } break; } case AVAHI_BROWSER_FAILURE: { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Browsing for service type %s in domain %s failed: %s"), type, domain ? domain : _("n/a"), avahi_strerror(avahi_client_errno(d->priv->client))); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); /* Fall through */ } case AVAHI_BROWSER_ALL_FOR_NOW: if (d->priv->service_pulse_timeout > 0) { g_source_remove(d->priv->service_pulse_timeout); d->priv->service_pulse_timeout = 0; gtk_widget_hide(d->priv->service_progress_bar); } break; case AVAHI_BROWSER_CACHE_EXHAUSTED: ; } } static void domain_make_default_selection(AuiServiceDialog *d, const gchar *name, GtkTreeIter *iter) { GtkTreeSelection *selection; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(d->priv->domain_tree_view)); if (!gtk_tree_selection_get_selected(selection, NULL, NULL)) { if (avahi_domain_equal(gtk_entry_get_text(GTK_ENTRY(d->priv->domain_entry)), name)) { GtkTreePath *path; gtk_tree_selection_select_iter(selection, iter); path = gtk_tree_model_get_path(GTK_TREE_MODEL(d->priv->domain_list_store), iter); gtk_tree_view_set_cursor(GTK_TREE_VIEW(d->priv->domain_tree_view), path, NULL, FALSE); gtk_tree_path_free(path); } } } static void domain_browse_callback( AvahiDomainBrowser *b G_GNUC_UNUSED, AvahiIfIndex interface G_GNUC_UNUSED, AvahiProtocol protocol G_GNUC_UNUSED, AvahiBrowserEvent event, const char *name, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(userdata); switch (event) { case AVAHI_BROWSER_NEW: { GtkTreeIter iter; gboolean found = FALSE, valid; gint ref; valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(d->priv->domain_list_store), &iter); while (valid) { gchar *_name; gtk_tree_model_get(GTK_TREE_MODEL(d->priv->domain_list_store), &iter, DOMAIN_COLUMN_NAME, &_name, DOMAIN_COLUMN_REF, &ref, -1); found = avahi_domain_equal(_name, name); g_free(_name); if (found) break; valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(d->priv->domain_list_store), &iter); } if (found) gtk_list_store_set(d->priv->domain_list_store, &iter, DOMAIN_COLUMN_REF, ref + 1, -1); else { gtk_list_store_append(d->priv->domain_list_store, &iter); gtk_list_store_set(d->priv->domain_list_store, &iter, DOMAIN_COLUMN_NAME, name, DOMAIN_COLUMN_REF, 1, -1); } domain_make_default_selection(d, name, &iter); break; } case AVAHI_BROWSER_REMOVE: { gboolean valid; GtkTreeIter iter; valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(d->priv->domain_list_store), &iter); while (valid) { gint ref; gchar *_name; gboolean found; gtk_tree_model_get(GTK_TREE_MODEL(d->priv->domain_list_store), &iter, DOMAIN_COLUMN_NAME, &_name, DOMAIN_COLUMN_REF, &ref, -1); found = avahi_domain_equal(_name, name); g_free(_name); if (found) { if (ref <= 1) gtk_list_store_remove(d->priv->service_list_store, &iter); else gtk_list_store_set(d->priv->domain_list_store, &iter, DOMAIN_COLUMN_REF, ref - 1, -1); break; } valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(d->priv->domain_list_store), &iter); } break; } case AVAHI_BROWSER_FAILURE: { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Avahi domain browser failure: %s"), avahi_strerror(avahi_client_errno(d->priv->client))); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); /* Fall through */ } case AVAHI_BROWSER_ALL_FOR_NOW: if (d->priv->domain_pulse_timeout > 0) { g_source_remove(d->priv->domain_pulse_timeout); d->priv->domain_pulse_timeout = 0; gtk_widget_hide(d->priv->domain_progress_bar); } break; case AVAHI_BROWSER_CACHE_EXHAUSTED: ; } } static const gchar *get_domain_name(AuiServiceDialog *d) { const gchar *domain; g_return_val_if_fail(d, NULL); g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), NULL); if (d->priv->domain) return d->priv->domain; if (!(domain = avahi_client_get_domain_name(d->priv->client))) { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Failed to read Avahi domain: %s"), avahi_strerror(avahi_client_errno(d->priv->client))); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); return NULL; } return domain; } static gboolean start_callback(gpointer data) { int error; AuiServiceDialog *d = AUI_SERVICE_DIALOG(data); gchar **st; AvahiServiceBrowser **sb; unsigned i; const char *domain; d->priv->start_idle = 0; if (!d->priv->browse_service_types || !*d->priv->browse_service_types) { g_warning(_("Browse service type list is empty!")); return FALSE; } if (!d->priv->client) { if (!(d->priv->client = avahi_client_new(avahi_glib_poll_get(d->priv->glib_poll), 0, client_callback, d, &error))) { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Failed to connect to Avahi server: %s"), avahi_strerror(error)); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); gtk_dialog_response(GTK_DIALOG(d), GTK_RESPONSE_CANCEL); return FALSE; } } if (!(domain = get_domain_name(d))) { gtk_dialog_response(GTK_DIALOG(d), GTK_RESPONSE_CANCEL); return FALSE; } g_assert(domain); if (avahi_domain_equal(domain, "local.")) gtk_label_set_markup(GTK_LABEL(d->priv->domain_label), _("Browsing for services on local network:")); else { gchar *t = g_strdup_printf(_("Browsing for services in domain %s:"), domain); gtk_label_set_markup(GTK_LABEL(d->priv->domain_label), t); g_free(t); } if (d->priv->browsers) { for (sb = d->priv->browsers; *sb; sb++) avahi_service_browser_free(*sb); g_free(d->priv->browsers); d->priv->browsers = NULL; } gtk_list_store_clear(GTK_LIST_STORE(d->priv->service_list_store)); d->priv->common_interface = AVAHI_IF_UNSPEC; d->priv->common_protocol = AVAHI_PROTO_UNSPEC; gtk_tree_view_column_set_visible(gtk_tree_view_get_column(GTK_TREE_VIEW(d->priv->service_tree_view), 0), FALSE); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(d->priv->service_tree_view), FALSE); gtk_widget_show(d->priv->service_progress_bar); if (d->priv->service_pulse_timeout <= 0) d->priv->service_pulse_timeout = g_timeout_add(100, service_pulse_callback, d); for (i = 0; d->priv->browse_service_types[i]; i++) ; g_assert(i > 0); d->priv->browsers = g_new0(AvahiServiceBrowser*, i+1); for (st = d->priv->browse_service_types, sb = d->priv->browsers; *st; st++, sb++) { if (!(*sb = avahi_service_browser_new(d->priv->client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, *st, d->priv->domain, 0, browse_callback, d))) { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Failed to create browser for %s: %s"), *st, avahi_strerror(avahi_client_errno(d->priv->client))); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); gtk_dialog_response(GTK_DIALOG(d), GTK_RESPONSE_CANCEL); return FALSE; } } return FALSE; } static void aui_service_dialog_finalize(GObject *object) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(object); if (d->priv->domain_pulse_timeout > 0) g_source_remove(d->priv->domain_pulse_timeout); if (d->priv->service_pulse_timeout > 0) g_source_remove(d->priv->service_pulse_timeout); if (d->priv->start_idle > 0) g_source_remove(d->priv->start_idle); g_free(d->priv->host_name); g_free(d->priv->domain); g_free(d->priv->service_name); avahi_string_list_free(d->priv->txt_data); g_strfreev(d->priv->browse_service_types); if (d->priv->domain_browser) avahi_domain_browser_free(d->priv->domain_browser); if (d->priv->resolver) avahi_service_resolver_free(d->priv->resolver); if (d->priv->browsers) { AvahiServiceBrowser **sb; for (sb = d->priv->browsers; *sb; sb++) avahi_service_browser_free(*sb); g_free(d->priv->browsers); } if (d->priv->client) avahi_client_free(d->priv->client); if (d->priv->glib_poll) avahi_glib_poll_free(d->priv->glib_poll); if (d->priv->service_list_store) g_object_unref(d->priv->service_list_store); if (d->priv->domain_list_store) g_object_unref(d->priv->domain_list_store); if (d->priv->service_type_names) g_hash_table_unref (d->priv->service_type_names); g_free(d->priv); d->priv = NULL; G_OBJECT_CLASS(aui_service_dialog_parent_class)->finalize(object); } static void service_row_activated_callback(GtkTreeView *tree_view G_GNUC_UNUSED, GtkTreePath *path G_GNUC_UNUSED, GtkTreeViewColumn *column G_GNUC_UNUSED, gpointer user_data) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(user_data); gtk_dialog_response(GTK_DIALOG(d), get_default_response(GTK_DIALOG(d))); } static void service_selection_changed_callback(GtkTreeSelection *selection, gpointer user_data) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(user_data); gboolean b; b = gtk_tree_selection_get_selected(selection, NULL, NULL); gtk_dialog_set_response_sensitive(GTK_DIALOG(d), GTK_RESPONSE_ACCEPT, b); gtk_dialog_set_response_sensitive(GTK_DIALOG(d), GTK_RESPONSE_OK, b); gtk_dialog_set_response_sensitive(GTK_DIALOG(d), GTK_RESPONSE_YES, b); gtk_dialog_set_response_sensitive(GTK_DIALOG(d), GTK_RESPONSE_APPLY, b); } static void response_callback(GtkDialog *dialog, gint response, gpointer user_data) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(user_data); if ((response == GTK_RESPONSE_ACCEPT || response == GTK_RESPONSE_OK || response == GTK_RESPONSE_YES || response == GTK_RESPONSE_APPLY) && ((d->priv->resolve_service && !d->priv->resolve_service_done) || (d->priv->resolve_host_name && !d->priv->resolve_host_name_done))) { GtkTreeIter iter; gint interface, protocol; gchar *name, *type; GdkCursor *cursor; g_signal_stop_emission(dialog, g_signal_lookup("response", gtk_dialog_get_type()), 0); d->priv->forward_response_id = response; if (d->priv->resolver) return; g_return_if_fail(gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(d->priv->service_tree_view)), NULL, &iter)); gtk_tree_model_get(GTK_TREE_MODEL(d->priv->service_list_store), &iter, SERVICE_COLUMN_IFACE, &interface, SERVICE_COLUMN_PROTO, &protocol, SERVICE_COLUMN_NAME, &name, SERVICE_COLUMN_TYPE, &type, -1); g_return_if_fail(d->priv->client); gtk_widget_set_sensitive(GTK_WIDGET(dialog), FALSE); cursor = gdk_cursor_new(GDK_WATCH); gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(dialog)), cursor); #if GTK_CHECK_VERSION(3,0,0) g_object_unref(cursor); #else gdk_cursor_unref(cursor); #endif if (!(d->priv->resolver = avahi_service_resolver_new( d->priv->client, interface, protocol, name, type, d->priv->domain, d->priv->address_family, !d->priv->resolve_host_name ? AVAHI_LOOKUP_NO_ADDRESS : 0, resolve_callback, d))) { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Failed to create resolver for %s of type %s in domain %s: %s"), name, type, d->priv->domain, avahi_strerror(avahi_client_errno(d->priv->client))); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); gtk_dialog_response(GTK_DIALOG(d), GTK_RESPONSE_CANCEL); return; } } } static gboolean is_valid_domain_suffix(const gchar *n) { gchar label[AVAHI_LABEL_MAX]; if (!avahi_is_valid_domain_name(n)) return FALSE; if (!avahi_unescape_label(&n, label, sizeof(label))) return FALSE; /* At least one label */ return !!label[0]; } static void domain_row_activated_callback(GtkTreeView *tree_view G_GNUC_UNUSED, GtkTreePath *path G_GNUC_UNUSED, GtkTreeViewColumn *column G_GNUC_UNUSED, gpointer user_data) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(user_data); if (is_valid_domain_suffix(gtk_entry_get_text(GTK_ENTRY(d->priv->domain_entry)))) gtk_dialog_response(GTK_DIALOG(d->priv->domain_dialog), GTK_RESPONSE_ACCEPT); } static void domain_selection_changed_callback(GtkTreeSelection *selection G_GNUC_UNUSED, gpointer user_data) { GtkTreeIter iter; AuiServiceDialog *d = AUI_SERVICE_DIALOG(user_data); gchar *name; g_return_if_fail(gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(d->priv->domain_tree_view)), NULL, &iter)); gtk_tree_model_get(GTK_TREE_MODEL(d->priv->domain_list_store), &iter, DOMAIN_COLUMN_NAME, &name, -1); gtk_entry_set_text(GTK_ENTRY(d->priv->domain_entry), name); } static void domain_entry_changed_callback(GtkEditable *editable G_GNUC_UNUSED, gpointer user_data) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(user_data); gtk_widget_set_sensitive(d->priv->domain_ok_button, is_valid_domain_suffix(gtk_entry_get_text(GTK_ENTRY(d->priv->domain_entry)))); } static void domain_button_clicked(GtkButton *button G_GNUC_UNUSED, gpointer user_data) { GtkWidget *vbox, *vbox2, *scrolled_window; GtkTreeSelection *selection; GtkCellRenderer *renderer; GtkTreeViewColumn *column; AuiServiceDialog *d = AUI_SERVICE_DIALOG(user_data); AuiServiceDialogPrivate *p = d->priv; const gchar *domain; GtkTreeIter iter; g_return_if_fail(!p->domain_dialog); g_return_if_fail(!p->domain_browser); if (!(domain = get_domain_name(d))) { gtk_dialog_response(GTK_DIALOG(d), GTK_RESPONSE_CANCEL); return; } if (!(p->domain_browser = avahi_domain_browser_new(p->client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DOMAIN_BROWSER_BROWSE, 0, domain_browse_callback, d))) { GtkWidget *m = gtk_message_dialog_new(GTK_WINDOW(d), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Failed to create domain browser: %s"), avahi_strerror(avahi_client_errno(p->client))); gtk_dialog_run(GTK_DIALOG(m)); gtk_widget_destroy(m); gtk_dialog_response(GTK_DIALOG(d), GTK_RESPONSE_CANCEL); return; } p->domain_dialog = gtk_dialog_new(); gtk_container_set_border_width(GTK_CONTAINER(p->domain_dialog), 5); gtk_window_set_title(GTK_WINDOW(p->domain_dialog), _("Change domain")); #if !GTK_CHECK_VERSION(2,21,8) gtk_dialog_set_has_separator(GTK_DIALOG(p->domain_dialog), FALSE); #endif #if GTK_CHECK_VERSION(3,0,0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); #else vbox = gtk_vbox_new(FALSE, 8); #endif gtk_container_set_border_width(GTK_CONTAINER(vbox), 8); gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(p->domain_dialog))), vbox, TRUE, TRUE, 0); p->domain_entry = gtk_entry_new(); gtk_entry_set_max_length(GTK_ENTRY(p->domain_entry), AVAHI_DOMAIN_NAME_MAX); gtk_entry_set_text(GTK_ENTRY(p->domain_entry), domain); gtk_entry_set_activates_default(GTK_ENTRY(p->domain_entry), TRUE); g_signal_connect(p->domain_entry, "changed", G_CALLBACK(domain_entry_changed_callback), d); gtk_box_pack_start(GTK_BOX(vbox), p->domain_entry, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3,0,0) vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); #else vbox2 = gtk_vbox_new(FALSE, 8); #endif gtk_box_pack_start(GTK_BOX(vbox), vbox2, TRUE, TRUE, 0); scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_ETCHED_IN); gtk_box_pack_start(GTK_BOX(vbox2), scrolled_window, TRUE, TRUE, 0); p->domain_list_store = gtk_list_store_new(N_DOMAIN_COLUMNS, G_TYPE_STRING, G_TYPE_INT); p->domain_tree_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(p->domain_list_store)); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(p->domain_tree_view), FALSE); g_signal_connect(p->domain_tree_view, "row-activated", G_CALLBACK(domain_row_activated_callback), d); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(p->domain_tree_view)); gtk_tree_selection_set_mode(selection, GTK_SELECTION_BROWSE); g_signal_connect(selection, "changed", G_CALLBACK(domain_selection_changed_callback), d); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(_("Service Name"), renderer, "text", DOMAIN_COLUMN_NAME, NULL); gtk_tree_view_column_set_expand(column, TRUE); gtk_tree_view_append_column(GTK_TREE_VIEW(p->domain_tree_view), column); gtk_tree_view_set_search_column(GTK_TREE_VIEW(p->domain_tree_view), DOMAIN_COLUMN_NAME); gtk_container_add(GTK_CONTAINER(scrolled_window), p->domain_tree_view); p->domain_progress_bar = gtk_progress_bar_new(); gtk_progress_bar_set_text(GTK_PROGRESS_BAR(p->domain_progress_bar), _("Browsing...")); gtk_progress_bar_set_pulse_step(GTK_PROGRESS_BAR(p->domain_progress_bar), 0.1); gtk_box_pack_end(GTK_BOX(vbox2), p->domain_progress_bar, FALSE, FALSE, 0); gtk_dialog_add_button(GTK_DIALOG(p->domain_dialog), _("_Cancel"), GTK_RESPONSE_CANCEL); p->domain_ok_button = GTK_WIDGET(gtk_dialog_add_button(GTK_DIALOG(p->domain_dialog), _("_OK"), GTK_RESPONSE_ACCEPT)); gtk_dialog_set_default_response(GTK_DIALOG(p->domain_dialog), GTK_RESPONSE_ACCEPT); gtk_widget_set_sensitive(p->domain_ok_button, is_valid_domain_suffix(gtk_entry_get_text(GTK_ENTRY(p->domain_entry)))); gtk_widget_grab_default(p->domain_ok_button); gtk_widget_grab_focus(p->domain_entry); gtk_window_set_default_size(GTK_WINDOW(p->domain_dialog), 300, 300); gtk_widget_show_all(vbox); gtk_list_store_append(p->domain_list_store, &iter); gtk_list_store_set(p->domain_list_store, &iter, DOMAIN_COLUMN_NAME, "local", DOMAIN_COLUMN_REF, 1, -1); domain_make_default_selection(d, "local", &iter); p->domain_pulse_timeout = g_timeout_add(100, domain_pulse_callback, d); if (gtk_dialog_run(GTK_DIALOG(p->domain_dialog)) == GTK_RESPONSE_ACCEPT) aui_service_dialog_set_domain(d, gtk_entry_get_text(GTK_ENTRY(p->domain_entry))); gtk_widget_destroy(p->domain_dialog); p->domain_dialog = NULL; if (p->domain_pulse_timeout > 0) { g_source_remove(p->domain_pulse_timeout); p->domain_pulse_timeout = 0; } avahi_domain_browser_free(p->domain_browser); p->domain_browser = NULL; } static void aui_service_dialog_init(AuiServiceDialog *d) { GtkWidget *vbox, *vbox2, *scrolled_window; GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkTreeSelection *selection; AuiServiceDialogPrivate *p; p = d->priv = g_new(AuiServiceDialogPrivate, 1); p->host_name = NULL; p->domain = NULL; p->service_name = NULL; p->service_type = NULL; p->txt_data = NULL; p->browse_service_types = NULL; memset(&p->address, 0, sizeof(p->address)); p->port = 0; p->resolve_host_name = p->resolve_service = TRUE; p->resolve_host_name_done = p->resolve_service_done = FALSE; p->address_family = AVAHI_PROTO_UNSPEC; p->glib_poll = NULL; p->client = NULL; p->browsers = NULL; p->resolver = NULL; p->domain_browser = NULL; p->service_pulse_timeout = 0; p->domain_pulse_timeout = 0; p->start_idle = 0; p->common_interface = AVAHI_IF_UNSPEC; p->common_protocol = AVAHI_PROTO_UNSPEC; p->domain_dialog = NULL; p->domain_entry = NULL; p->domain_tree_view = NULL; p->domain_progress_bar = NULL; p->domain_ok_button = NULL; p->forward_response_id = GTK_RESPONSE_NONE; p->service_list_store = p->domain_list_store = NULL; p->service_type_names = NULL; gtk_container_set_border_width(GTK_CONTAINER(d), 5); #if GTK_CHECK_VERSION(3,0,0) vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); #else vbox = gtk_vbox_new(FALSE, 8); #endif gtk_container_set_border_width(GTK_CONTAINER(vbox), 8); gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(d))), vbox, TRUE, TRUE, 0); p->domain_label = gtk_label_new(_("Initializing...")); gtk_label_set_ellipsize(GTK_LABEL(p->domain_label), TRUE); gtk_misc_set_alignment(GTK_MISC(p->domain_label), 0, 0.5); gtk_box_pack_start(GTK_BOX(vbox), p->domain_label, FALSE, FALSE, 0); #if GTK_CHECK_VERSION(3,0,0) vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); #else vbox2 = gtk_vbox_new(FALSE, 8); #endif gtk_box_pack_start(GTK_BOX(vbox), vbox2, TRUE, TRUE, 0); scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW (scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW (scrolled_window), GTK_SHADOW_ETCHED_IN); gtk_box_pack_start(GTK_BOX(vbox2), scrolled_window, TRUE, TRUE, 0); p->service_list_store = gtk_list_store_new(N_SERVICE_COLUMNS, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); p->service_tree_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(p->service_list_store)); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(p->service_tree_view), FALSE); g_signal_connect(p->service_tree_view, "row-activated", G_CALLBACK(service_row_activated_callback), d); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(p->service_tree_view)); gtk_tree_selection_set_mode(selection, GTK_SELECTION_BROWSE); g_signal_connect(selection, "changed", G_CALLBACK(service_selection_changed_callback), d); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(_("Location"), renderer, "text", SERVICE_COLUMN_PRETTY_IFACE, NULL); gtk_tree_view_column_set_visible(column, FALSE); gtk_tree_view_append_column(GTK_TREE_VIEW(p->service_tree_view), column); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(_("Name"), renderer, "text", SERVICE_COLUMN_NAME, NULL); gtk_tree_view_column_set_expand(column, TRUE); gtk_tree_view_append_column(GTK_TREE_VIEW(p->service_tree_view), column); renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes(_("Type"), renderer, "text", SERVICE_COLUMN_PRETTY_TYPE, NULL); gtk_tree_view_column_set_visible(column, FALSE); gtk_tree_view_append_column(GTK_TREE_VIEW(p->service_tree_view), column); gtk_tree_view_set_search_column(GTK_TREE_VIEW(p->service_tree_view), SERVICE_COLUMN_NAME); gtk_container_add(GTK_CONTAINER(scrolled_window), p->service_tree_view); p->service_progress_bar = gtk_progress_bar_new(); gtk_progress_bar_set_text(GTK_PROGRESS_BAR(p->service_progress_bar), _("Browsing...")); gtk_progress_bar_set_pulse_step(GTK_PROGRESS_BAR(p->service_progress_bar), 0.1); gtk_box_pack_end(GTK_BOX(vbox2), p->service_progress_bar, FALSE, FALSE, 0); p->domain_button = gtk_button_new_with_mnemonic(_("_Domain...")); gtk_button_set_image(GTK_BUTTON(p->domain_button), gtk_image_new_from_icon_name("network-workgroup", GTK_ICON_SIZE_BUTTON)); g_signal_connect(p->domain_button, "clicked", G_CALLBACK(domain_button_clicked), d); gtk_box_pack_start(GTK_BOX(gtk_dialog_get_action_area(GTK_DIALOG(d))), p->domain_button, FALSE, TRUE, 0); gtk_button_box_set_child_secondary(GTK_BUTTON_BOX(gtk_dialog_get_action_area(GTK_DIALOG(d))), p->domain_button, TRUE); gtk_widget_show(p->domain_button); gtk_dialog_set_default_response(GTK_DIALOG(d), GTK_RESPONSE_ACCEPT); gtk_widget_grab_focus(p->service_tree_view); gtk_window_set_default_size(GTK_WINDOW(d), 400, 300); gtk_widget_show_all(vbox); p->glib_poll = avahi_glib_poll_new(NULL, G_PRIORITY_DEFAULT); p->service_pulse_timeout = g_timeout_add(100, service_pulse_callback, d); p->start_idle = g_idle_add(start_callback, d); g_signal_connect(d, "response", G_CALLBACK(response_callback), d); } static void restart_browsing(AuiServiceDialog *d) { g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); if (d->priv->start_idle <= 0) d->priv->start_idle = g_idle_add(start_callback, d); } void aui_service_dialog_set_browse_service_types(AuiServiceDialog *d, const char *type, ...) { va_list ap; const char *t; unsigned u; g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); g_return_if_fail(type); g_strfreev(d->priv->browse_service_types); va_start(ap, type); for (u = 1; va_arg(ap, const char *); u++) ; va_end(ap); d->priv->browse_service_types = g_new0(gchar*, u+1); d->priv->browse_service_types[0] = g_strdup(type); va_start(ap, type); for (u = 1; (t = va_arg(ap, const char*)); u++) d->priv->browse_service_types[u] = g_strdup(t); va_end(ap); if (d->priv->browse_service_types[0] && d->priv->browse_service_types[1]) { /* Multiple service types, show type-column */ gtk_tree_view_column_set_visible(gtk_tree_view_get_column(GTK_TREE_VIEW(d->priv->service_tree_view), 2), TRUE); } restart_browsing(d); } void aui_service_dialog_set_browse_service_typesv(AuiServiceDialog *d, const char *const*types) { g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); g_return_if_fail(types); g_return_if_fail(*types); g_strfreev(d->priv->browse_service_types); d->priv->browse_service_types = g_strdupv((char**) types); if (d->priv->browse_service_types[0] && d->priv->browse_service_types[1]) { /* Multiple service types, show type-column */ gtk_tree_view_column_set_visible(gtk_tree_view_get_column(GTK_TREE_VIEW(d->priv->service_tree_view), 2), TRUE); } restart_browsing(d); } const gchar*const* aui_service_dialog_get_browse_service_types(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), NULL); return (const char* const*) d->priv->browse_service_types; } void aui_service_dialog_set_service_type_name(AuiServiceDialog *d, const gchar *type, const gchar *name) { GtkTreeModel *m = NULL; GtkTreeIter iter; g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); g_return_if_fail(NULL != type); g_return_if_fail(NULL != name); if (NULL == d->priv->service_type_names) d->priv->service_type_names = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); g_hash_table_insert(d->priv->service_type_names, g_strdup(type), g_strdup(name)); if (d->priv->service_list_store) m = GTK_TREE_MODEL(d->priv->service_list_store); if (m && gtk_tree_model_get_iter_first(m, &iter)) { do { char *stored_type = NULL; gtk_tree_model_get(m, &iter, SERVICE_COLUMN_TYPE, &stored_type, -1); if (stored_type && g_str_equal(stored_type, type)) gtk_list_store_set(d->priv->service_list_store, &iter, SERVICE_COLUMN_PRETTY_TYPE, name, -1); } while (gtk_tree_model_iter_next(m, &iter)); } } void aui_service_dialog_set_domain(AuiServiceDialog *d, const char *domain) { g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); g_return_if_fail(!domain || is_valid_domain_suffix(domain)); g_free(d->priv->domain); d->priv->domain = domain ? avahi_normalize_name_strdup(domain) : NULL; restart_browsing(d); } const char* aui_service_dialog_get_domain(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), NULL); return d->priv->domain; } void aui_service_dialog_set_service_name(AuiServiceDialog *d, const char *name) { g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); g_free(d->priv->service_name); d->priv->service_name = g_strdup(name); } const char* aui_service_dialog_get_service_name(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), NULL); return d->priv->service_name; } void aui_service_dialog_set_service_type(AuiServiceDialog *d, const char*stype) { g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); g_free(d->priv->service_type); d->priv->service_type = g_strdup(stype); } const char* aui_service_dialog_get_service_type(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), NULL); return d->priv->service_type; } const AvahiAddress* aui_service_dialog_get_address(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), NULL); g_return_val_if_fail(d->priv->resolve_service_done && d->priv->resolve_host_name_done, NULL); return &d->priv->address; } guint16 aui_service_dialog_get_port(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), 0); g_return_val_if_fail(d->priv->resolve_service_done, 0); return d->priv->port; } const char* aui_service_dialog_get_host_name(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), NULL); g_return_val_if_fail(d->priv->resolve_service_done, NULL); return d->priv->host_name; } const AvahiStringList *aui_service_dialog_get_txt_data(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), NULL); g_return_val_if_fail(d->priv->resolve_service_done, NULL); return d->priv->txt_data; } void aui_service_dialog_set_resolve_service(AuiServiceDialog *d, gboolean resolve) { g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); d->priv->resolve_service = resolve; } gboolean aui_service_dialog_get_resolve_service(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), FALSE); return d->priv->resolve_service; } void aui_service_dialog_set_resolve_host_name(AuiServiceDialog *d, gboolean resolve) { g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); d->priv->resolve_host_name = resolve; } gboolean aui_service_dialog_get_resolve_host_name(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), FALSE); return d->priv->resolve_host_name; } void aui_service_dialog_set_address_family(AuiServiceDialog *d, AvahiProtocol proto) { g_return_if_fail(AUI_IS_SERVICE_DIALOG(d)); g_return_if_fail(proto == AVAHI_PROTO_UNSPEC || proto == AVAHI_PROTO_INET || proto == AVAHI_PROTO_INET6); d->priv->address_family = proto; } AvahiProtocol aui_service_dialog_get_address_family(AuiServiceDialog *d) { g_return_val_if_fail(AUI_IS_SERVICE_DIALOG(d), AVAHI_PROTO_UNSPEC); return d->priv->address_family; } static void aui_service_dialog_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(object); switch (prop_id) { case PROP_BROWSE_SERVICE_TYPES: aui_service_dialog_set_browse_service_typesv(d, g_value_get_pointer(value)); break; case PROP_DOMAIN: aui_service_dialog_set_domain(d, g_value_get_string(value)); break; case PROP_SERVICE_TYPE: aui_service_dialog_set_service_type(d, g_value_get_string(value)); break; case PROP_SERVICE_NAME: aui_service_dialog_set_service_name(d, g_value_get_string(value)); break; case PROP_RESOLVE_SERVICE: aui_service_dialog_set_resolve_service(d, g_value_get_boolean(value)); break; case PROP_RESOLVE_HOST_NAME: aui_service_dialog_set_resolve_host_name(d, g_value_get_boolean(value)); break; case PROP_ADDRESS_FAMILY: aui_service_dialog_set_address_family(d, g_value_get_int(value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); break; } } static void aui_service_dialog_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { AuiServiceDialog *d = AUI_SERVICE_DIALOG(object); switch (prop_id) { case PROP_BROWSE_SERVICE_TYPES: g_value_set_pointer(value, (gpointer) aui_service_dialog_get_browse_service_types(d)); break; case PROP_DOMAIN: g_value_set_string(value, aui_service_dialog_get_domain(d)); break; case PROP_SERVICE_TYPE: g_value_set_string(value, aui_service_dialog_get_service_type(d)); break; case PROP_SERVICE_NAME: g_value_set_string(value, aui_service_dialog_get_service_name(d)); break; case PROP_ADDRESS: g_value_set_pointer(value, (gpointer) aui_service_dialog_get_address(d)); break; case PROP_PORT: g_value_set_uint(value, aui_service_dialog_get_port(d)); break; case PROP_HOST_NAME: g_value_set_string(value, aui_service_dialog_get_host_name(d)); break; case PROP_TXT_DATA: g_value_set_pointer(value, (gpointer) aui_service_dialog_get_txt_data(d)); break; case PROP_RESOLVE_SERVICE: g_value_set_boolean(value, aui_service_dialog_get_resolve_service(d)); break; case PROP_RESOLVE_HOST_NAME: g_value_set_boolean(value, aui_service_dialog_get_resolve_host_name(d)); break; case PROP_ADDRESS_FAMILY: g_value_set_int(value, aui_service_dialog_get_address_family(d)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); break; } } avahi-0.7/avahi-ui/PaxHeaders.10109/bvnc.desktop.in.in0000644000000000000000000000013113130651643017240 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 29 ctime=1499681851.22396289 avahi-0.7/avahi-ui/bvnc.desktop.in.in0000644000175000017500000000035513130651643020653 0ustar00lathiatlathiat00000000000000[Desktop Entry] Version=1.0 _Name=Avahi VNC Server Browser _Comment=Browse for Zeroconf-enabled VNC Servers Exec=@bindir@/bvnc Terminal=false Type=Application Icon=network-wired Categories=GNOME;Network; StartupNotify=false GenericName= avahi-0.7/avahi-ui/PaxHeaders.10109/avahi-ui.h0000644000000000000000000000013213130651643015560 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.219962979 avahi-0.7/avahi-ui/avahi-ui.h0000644000175000017500000001573013130651643017175 0ustar00lathiatlathiat00000000000000#ifndef fooavahiuihfoo #define fooavahiuihfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include /** \file avahi-ui.h A Gtk dialog for browsing for services */ G_BEGIN_DECLS #ifndef DOXYGEN_SHOULD_SKIP_THIS #define AUI_TYPE_SERVICE_DIALOG (aui_service_dialog_get_type()) #define AUI_SERVICE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialog)) #define AUI_SERVICE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialogClass)) #define AUI_IS_SERVICE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AUI_TYPE_SERVICE_DIALOG)) #define AUI_IS_SERVICE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), AUI_TYPE_SERVICE_DIALOG)) #define AUI_SERVICE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AUI_TYPE_SERVICE_DIALOG, AuiServiceDialogClass)) typedef struct _AuiServiceDialogPrivate AuiServiceDialogPrivate; typedef struct _AuiServiceDialogClass AuiServiceDialogClass; struct _AuiServiceDialogClass { GtkDialogClass parent_class; /* Padding for future expansion */ void (*_aui_reserved1)(void); void (*_aui_reserved2)(void); void (*_aui_reserved3)(void); void (*_aui_reserved4)(void); }; struct _AuiServiceDialog { GtkDialog parent_instance; AuiServiceDialogPrivate *priv; }; /* ServiceDialog */ GType aui_service_dialog_get_type(void) G_GNUC_CONST; #endif /** The GTK service dialog structure */ typedef struct _AuiServiceDialog AuiServiceDialog; /** @{ \name Construction */ /** Create a new service browser dialog with the specific title, * parent window and the speicified buttons. The buttons are specified * in a similar way to GtkFileChooserDialog. Please note that at least * one button has to respond GTK_RESPONSE_ACCEPT. */ GtkWidget* aui_service_dialog_new( const gchar *title, GtkWindow *parent, const gchar *first_button_text, ...) G_GNUC_NULL_TERMINATED; /** \cond fulldocs */ GtkWidget *aui_service_dialog_new_valist( const gchar *title, GtkWindow *parent, const gchar *first_button_text, va_list varargs); /** \endcond */ /** @} */ /** @{ \name Service types to browse for */ /** Select the service types to browse for. Takes a NULL terminated list of DNS-SD service types. i.e. _http._tcp */ void aui_service_dialog_set_browse_service_types(AuiServiceDialog *d, const gchar *type, ...) G_GNUC_NULL_TERMINATED; /** Same as aui_service_dialog_set_browse_service_types() but take a NULL terminated array */ void aui_service_dialog_set_browse_service_typesv(AuiServiceDialog *d, const gchar *const*type); /** Return the service types currently browsed for. i.e. what was previously set with aui_service_dialog_set_browse_service_types() */ const gchar*const* aui_service_dialog_get_browse_service_types(AuiServiceDialog *d); /** Overwrite the pretty name shown in the service type column. \since 0.6.22 */ void aui_service_dialog_set_service_type_name(AuiServiceDialog *d, const gchar *type, const gchar *name); /** @} */ /** @{ \name Domain to browse in */ /** Set the domain to browse in */ void aui_service_dialog_set_domain(AuiServiceDialog *d, const gchar *domain); /** Query the domain that is browsed in */ const gchar* aui_service_dialog_get_domain(AuiServiceDialog *d); /** @} */ /** @{ \name Selected service item */ /** Set the service type for the service to select */ void aui_service_dialog_set_service_type(AuiServiceDialog *d, const gchar *name); /** Query the service type of the currently selected service */ const gchar* aui_service_dialog_get_service_type(AuiServiceDialog *d); /** Set the service name for the service to select */ void aui_service_dialog_set_service_name(AuiServiceDialog *d, const gchar *name); /** Query the service name of the currently select service */ const gchar* aui_service_dialog_get_service_name(AuiServiceDialog *d); /** @} */ /** @{ \name Resolved service information */ /** Return the IP address of the selected service. (Only valid if host name resolving has not been disabled via aui_service_dialog_set_resolve_host_name()) */ const AvahiAddress* aui_service_dialog_get_address(AuiServiceDialog *d); /** Return the IP port number of the selected service */ guint16 aui_service_dialog_get_port(AuiServiceDialog *d); /** Return the host name of the selected service */ const gchar* aui_service_dialog_get_host_name(AuiServiceDialog *d); /** Return the TXT metadata of the selected service */ const AvahiStringList *aui_service_dialog_get_txt_data(AuiServiceDialog *d); /** @} */ /** @{ \name Resolving settings */ /** Disable/Enable automatic service resolving. Disabling this feature * will require you to resolve the selected service on our own. I.e. the port * number, the TXT data and the host name/IP address will not be * available after a service has been selected. This functionality * offers a certain optimization in the traffic imposed on the * network. Most people will not want to touch this. */ void aui_service_dialog_set_resolve_service(AuiServiceDialog *d, gboolean resolve); /** Query the last status of aui_service_dialog_set_resolve_service() */ gboolean aui_service_dialog_get_resolve_service(AuiServiceDialog *d); /** Disable/Enable automatic host name resolving. Disabling this * feature will cause aui_service_dialog_get_address() return NULL in * all case because avahi-ui will not resolve the host name of the * selected service to an address. This is a slight optimization * regarding the traffic imposed by this query to the network. By * default, avahi-ui will resolve the host names of selected services. */ void aui_service_dialog_set_resolve_host_name(AuiServiceDialog *d, gboolean resolve); /** Query the last status of aui_service_dialog_set_resolve_host_name() */ gboolean aui_service_dialog_get_resolve_host_name(AuiServiceDialog *d); /** @} */ /** @{ \name Address family */ /** Select the address family to look for services of. This can be used to look only for IPv6 services or only for IPv4 services. By default avahi-ui will browse for both IPv4 and IPv6 services.*/ void aui_service_dialog_set_address_family(AuiServiceDialog *d, AvahiProtocol proto); /** Query the address family we're looking for. */ AvahiProtocol aui_service_dialog_get_address_family(AuiServiceDialog *d); /** @} */ G_END_DECLS #endif avahi-0.7/avahi-ui/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643015740 xustar0030 mtime=1499681699.127370127 30 atime=1499681796.865177408 30 ctime=1499681851.219962979 avahi-0.7/avahi-ui/Makefile.am0000644000175000017500000000672113130651643017355 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' pkglibdatadir=$(libdir)/avahi desktopdir = $(datadir)/applications desktop_DATA = desktop_DATA_in = $(desktop_DATA_in_in:.in.in=.in) desktop_DATA_in_in = bssh.desktop.in.in bvnc.desktop.in.in EXTRA_DIST = $(desktop_DATA_in_in) if HAVE_GTK2OR3 AM_CFLAGS += -DGNOMELOCALEDIR=\"$(datadir)/locale\" if HAVE_DBUS if HAVE_GLIB avahiincludedir=$(includedir)/avahi-ui avahiinclude_HEADERS = \ avahi-ui.h lib_LTLIBRARIES = if HAVE_GTK lib_LTLIBRARIES += \ libavahi-ui.la endif if HAVE_GTK3 lib_LTLIBRARIES += \ libavahi-ui-gtk3.la endif libavahi_ui_la_SOURCES = \ avahi-ui.h avahi-ui.c libavahi_ui_la_CFLAGS = $(AM_CFLAGS) $(GTK20_CFLAGS) libavahi_ui_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la ../avahi-glib/libavahi-glib.la $(GTK20_LIBS) libavahi_ui_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_UI_VERSION_INFO) libavahi_ui_gtk3_la_SOURCES = $(libavahi_ui_la_SOURCES) libavahi_ui_gtk3_la_CFLAGS = $(AM_CFLAGS) $(GTK30_CFLAGS) libavahi_ui_gtk3_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la ../avahi-glib/libavahi-glib.la $(GTK30_LIBS) libavahi_ui_gtk3_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_UI_VERSION_INFO) if HAVE_GDBM libavahi_ui_la_SOURCES += ../avahi-utils/stdb.h ../avahi-utils/stdb.c libavahi_ui_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" libavahi_ui_la_LIBADD += -lgdbm libavahi_ui_gtk3_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" libavahi_ui_gtk3_la_LIBADD += -lgdbm endif if HAVE_DBM libavahi_ui_la_SOURCES += ../avahi-utils/stdb.h ../avahi-utils/stdb.c libavahi_ui_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" libavahi_ui_gtk3_la_CFLAGS += -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" endif bin_PROGRAMS = bssh desktop_DATA += bssh.desktop bvnc.desktop @INTLTOOL_DESKTOP_RULE@ bssh_SOURCES = bssh.c if HAVE_GTK3 bssh_CFLAGS = $(AM_CFLAGS) $(GTK30_CFLAGS) bssh_LDADD = $(AM_LDADD) $(GTK30_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la libavahi-ui-gtk3.la else bssh_CFLAGS = $(AM_CFLAGS) $(GTK20_CFLAGS) bssh_LDADD = $(AM_LDADD) $(GTK20_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la libavahi-ui.la endif install-exec-local: cd $(DESTDIR)/$(bindir) && \ rm -f bvnc bshell && \ $(LN_S) bssh bvnc && \ $(LN_S) bssh bshell bssh.desktop.in: bssh.desktop.in.in $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@ bvnc.desktop.in: bvnc.desktop.in.in $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@ endif # HAVE_GLIB endif endif @INTLTOOL_DESKTOP_RULE@ CLEANFILES = $(desktop_DATA) $(desktop_DATA_in) avahi-0.7/avahi-ui/PaxHeaders.10109/bssh.c0000644000000000000000000000013113130651643015006 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 29 ctime=1499681851.22396289 avahi-0.7/avahi-ui/bssh.c0000644000175000017500000002022313130651643016415 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include "avahi-ui.h" typedef enum { COMMAND_HELP, COMMAND_SSH, COMMAND_VNC, COMMAND_SHELL } Command; typedef struct Config { char *domain; Command command; } Config; static void help(FILE *f, const char *argv0) { fprintf(f, _("%s [options]\n\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n"), argv0); } static int parse_command_line(Config *c, int argc, char *argv[]) { int o; static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "ssh", no_argument, NULL, 's' }, { "vnc", no_argument, NULL, 'v' }, { "shell", no_argument, NULL, 'S' }, { "domain", required_argument, NULL, 'd' }, { NULL, 0, NULL, 0 } }; while ((o = getopt_long(argc, argv, "hVd:svS", long_options, NULL)) >= 0) { switch(o) { case 'h': c->command = COMMAND_HELP; break; case 's': c->command = COMMAND_SSH; break; case 'v': c->command = COMMAND_VNC; break; case 'S': c->command = COMMAND_SHELL; break; case 'd': avahi_free(c->domain); c->domain = avahi_strdup(optarg); break; default: return -1; } } if (optind < argc) { fprintf(stderr, _("Too many arguments\n")); return -1; } return 0; } int main(int argc, char*argv[]) { GtkWidget *d; Config config; const char *argv0; avahi_init_i18n(); setlocale(LC_ALL, ""); if ((argv0 = strrchr(argv[0], '/'))) argv0++; else argv0 = argv[0]; if (g_str_has_suffix(argv[0], "bshell")) config.command = COMMAND_SHELL; else if (g_str_has_suffix(argv[0], "bvnc")) config.command = COMMAND_VNC; else config.command = COMMAND_SSH; /* defaults to local */ config.domain = NULL; if (parse_command_line(&config, argc, argv) < 0) { help(stderr, argv0); return 1; } bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); gtk_init(&argc, &argv); switch (config.command) { case COMMAND_HELP: help(stdout, argv0); return 0; break; case COMMAND_SHELL: d = aui_service_dialog_new(_("Choose Shell Server"), NULL, _("_Cancel"), GTK_RESPONSE_CANCEL, _("C_onnect"), GTK_RESPONSE_ACCEPT, NULL); aui_service_dialog_set_browse_service_types(AUI_SERVICE_DIALOG(d), "_rfb._tcp", "_ssh._tcp", NULL); aui_service_dialog_set_service_type_name(AUI_SERVICE_DIALOG(d), "_rfb._tcp", _("Desktop")); aui_service_dialog_set_service_type_name(AUI_SERVICE_DIALOG(d), "_ssh._tcp", _("Terminal")); break; case COMMAND_VNC: d = aui_service_dialog_new(_("Choose VNC server"), NULL, _("_Cancel"), GTK_RESPONSE_CANCEL, _("C_onnect"), GTK_RESPONSE_ACCEPT, NULL); aui_service_dialog_set_browse_service_types(AUI_SERVICE_DIALOG(d), "_rfb._tcp", NULL); break; case COMMAND_SSH: d = aui_service_dialog_new(_("Choose SSH server"), NULL, _("_Cancel"), GTK_RESPONSE_CANCEL, _("C_onnect"), GTK_RESPONSE_ACCEPT, NULL); aui_service_dialog_set_browse_service_types(AUI_SERVICE_DIALOG(d), "_ssh._tcp", NULL); break; } aui_service_dialog_set_domain (AUI_SERVICE_DIALOG(d), config.domain); aui_service_dialog_set_resolve_service(AUI_SERVICE_DIALOG(d), TRUE); aui_service_dialog_set_resolve_host_name(AUI_SERVICE_DIALOG(d), !avahi_nss_support()); gtk_window_present(GTK_WINDOW(d)); if (gtk_dialog_run(GTK_DIALOG(d)) == GTK_RESPONSE_ACCEPT) { char a[AVAHI_ADDRESS_STR_MAX], *u = NULL, *n = NULL; char *h = NULL, *t = NULL; const AvahiStringList *txt; t = g_strdup(aui_service_dialog_get_service_type(AUI_SERVICE_DIALOG(d))); n = g_strdup(aui_service_dialog_get_service_name(AUI_SERVICE_DIALOG(d))); if (avahi_nss_support()) h = g_strdup(aui_service_dialog_get_host_name(AUI_SERVICE_DIALOG(d))); else h = g_strdup(avahi_address_snprint(a, sizeof(a), aui_service_dialog_get_address(AUI_SERVICE_DIALOG(d)))); g_print(_("Connecting to '%s' ...\n"), n); if (avahi_domain_equal(t, "_rfb._tcp")) { char p[AVAHI_DOMAIN_NAME_MAX+16]; snprintf(p, sizeof(p), "%s:%u", h, aui_service_dialog_get_port(AUI_SERVICE_DIALOG(d))-5900); gtk_widget_destroy(d); g_print("vncviewer %s\n", p); execlp("xvncviewer", "xvncviewer", p, NULL); execlp("vncviewer", "vncviewer", p, NULL); } else { char p[16]; snprintf(p, sizeof(p), "%u", aui_service_dialog_get_port(AUI_SERVICE_DIALOG(d))); for (txt = aui_service_dialog_get_txt_data(AUI_SERVICE_DIALOG(d)); txt; txt = txt->next) { char *key, *value; if (avahi_string_list_get_pair((AvahiStringList*) txt, &key, &value, NULL) < 0) break; if (strcmp(key, "u") == 0) u = g_strdup(value); avahi_free(key); avahi_free(value); } gtk_widget_destroy(d); if (u) { g_print("ssh -p %s -l %s %s\n", p, u, h); if (isatty(0) || !getenv("DISPLAY")) execlp("ssh", "ssh", "-p", p, "-l", u, h, NULL); else { execlp("x-terminal-emulator", "x-terminal-emulator", "-T", n, "-e", "ssh", "-p", p, "-l", u, h, NULL); execlp("gnome-terminal", "gnome-terminal", "-t", n, "-x", "ssh", "-p", p, "-l", u, h, NULL); execlp("xterm", "xterm", "-T", n, "-e", "ssh", "-p", p, "-l", u, h, NULL); } } else { g_print("ssh -p %s %s\n", p, h); if (isatty(0) || !getenv("DISPLAY")) execlp("ssh", "ssh", "-p", p, h, NULL); else { execlp("x-terminal-emulator", "x-terminal-emulator", "-T", n, "-e", "ssh", "-p", p, h, NULL); execlp("gnome-terminal", "gnome-terminal", "-t", n, "-x", "ssh", "-p", p, h, NULL); execlp("xterm", "xterm", "-T", n, "-e", "ssh", "-p", p, h, NULL); } } } g_warning(_("execlp() failed: %s\n"), strerror(errno)); g_free(h); g_free(u); g_free(t); g_free(n); } else { gtk_widget_destroy(d); g_print(_("Canceled.\n")); } g_free(config.domain); return 1; } avahi-0.7/avahi-ui/PaxHeaders.10109/bssh.desktop.in.in0000644000000000000000000000013113130651643017247 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 29 ctime=1499681851.22396289 avahi-0.7/avahi-ui/bssh.desktop.in.in0000644000175000017500000000035513130651643020662 0ustar00lathiatlathiat00000000000000[Desktop Entry] Version=1.0 _Name=Avahi SSH Server Browser _Comment=Browse for Zeroconf-enabled SSH Servers Exec=@bindir@/bssh Terminal=false Type=Application Icon=network-wired Categories=GNOME;Network; StartupNotify=false GenericName= avahi-0.7/PaxHeaders.10109/avahi-discover-standalone0000644000000000000000000000013013130652072017151 xustar0029 mtime=1499681850.49197922 30 atime=1499681851.279961638 29 ctime=1499681850.49197922 avahi-0.7/avahi-discover-standalone/0000755000175000017500000000000013130652072020637 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-discover-standalone/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643021267 xustar0030 mtime=1499681699.115370395 30 atime=1499681796.829178214 30 ctime=1499681850.487979311 avahi-0.7/avahi-discover-standalone/Makefile.am0000644000175000017500000000325313130651643022701 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) interfaces = \ avahi-discover.ui # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' if HAVE_GTK2OR3 if HAVE_GLIB bin_PROGRAMS = \ avahi-discover-standalone avahi_discover_standalone_SOURCES = \ main.c avahi_discover_standalone_CFLAGS = \ $(AM_CFLAGS) \ -DAVAHI_INTERFACES_DIR=\"$(interfacesdir)\" avahi_discover_standalone_LDADD = \ $(AM_LDADD) \ ../avahi-common/libavahi-common.la \ ../avahi-glib/libavahi-glib.la \ ../avahi-core/libavahi-core.la if HAVE_GTK3 avahi_discover_standalone_CFLAGS += \ $(GLIB30_CFLAGS) $(GTK30_CFLAGS) avahi_discover_standalone_LDADD += \ $(GLIB30_LIBS) $(GTK30_LIBS) else avahi_discover_standalone_CFLAGS += \ $(GLIB20_CFLAGS) $(GTK20_CFLAGS) avahi_discover_standalone_LDADD += \ $(GLIB20_LIBS) $(GTK20_LIBS) endif interfaces_DATA = $(interfaces) endif # HAVE_GLIB else if HAVE_PYTHON_DBUS interfaces_DATA = endif endif EXTRA_DIST = \ $(interfaces) avahi-0.7/avahi-discover-standalone/PaxHeaders.10109/avahi-discover.ui0000644000000000000000000000013113130651643022475 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 29 ctime=1499681850.49197922 avahi-0.7/avahi-discover-standalone/avahi-discover.ui0000644000175000017500000001000513130651643024101 0ustar00lathiatlathiat00000000000000 True Avahi Discovery GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False 500 400 True False True False False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True 12 True False 12 True True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC GTK_SHADOW_IN GTK_CORNER_TOP_LEFT True True True False False True False False False 0 True True True True <i>No service currently selected.</i> False True GTK_JUSTIFY_LEFT False True 0 0.5 0 0 PANGO_ELLIPSIZE_NONE -1 False 0 0 False False avahi-0.7/avahi-discover-standalone/PaxHeaders.10109/Makefile.in0000644000000000000000000000012713130652011021272 xustar0030 mtime=1499681801.469074417 28 atime=1499681806.6609583 29 ctime=1499681850.49197922 avahi-0.7/avahi-discover-standalone/Makefile.in0000644000175000017500000007703113130652011022705 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@bin_PROGRAMS = avahi-discover-standalone$(EXEEXT) @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@am__append_1 = \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@ $(GLIB30_CFLAGS) $(GTK30_CFLAGS) @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@am__append_2 = \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@ $(GLIB30_LIBS) $(GTK30_LIBS) @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@am__append_3 = \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@ $(GLIB20_CFLAGS) $(GTK20_CFLAGS) @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@am__append_4 = \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@ $(GLIB20_LIBS) $(GTK20_LIBS) subdir = avahi-discover-standalone ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(interfacesdir)" PROGRAMS = $(bin_PROGRAMS) am__avahi_discover_standalone_SOURCES_DIST = main.c @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@am_avahi_discover_standalone_OBJECTS = avahi_discover_standalone-main.$(OBJEXT) avahi_discover_standalone_OBJECTS = \ $(am_avahi_discover_standalone_OBJECTS) am__DEPENDENCIES_1 = @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@@HAVE_GTK3_FALSE@ $(am__DEPENDENCIES_1) @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@avahi_discover_standalone_DEPENDENCIES = ../avahi-common/libavahi-common.la \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-core/libavahi-core.la \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__DEPENDENCIES_2) \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__DEPENDENCIES_3) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = avahi_discover_standalone_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(avahi_discover_standalone_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(avahi_discover_standalone_SOURCES) DIST_SOURCES = $(am__avahi_discover_standalone_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } DATA = $(interfaces_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' interfaces = \ avahi-discover.ui @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@avahi_discover_standalone_SOURCES = \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ main.c @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@avahi_discover_standalone_CFLAGS = \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(AM_CFLAGS) \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ -DAVAHI_INTERFACES_DIR=\"$(interfacesdir)\" \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_1) \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_3) @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@avahi_discover_standalone_LDADD = \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(AM_LDADD) \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ ../avahi-core/libavahi-core.la \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_2) \ @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@ $(am__append_4) @HAVE_GLIB_TRUE@@HAVE_GTK2OR3_TRUE@interfaces_DATA = $(interfaces) @HAVE_GTK2OR3_FALSE@@HAVE_PYTHON_DBUS_TRUE@interfaces_DATA = EXTRA_DIST = \ $(interfaces) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-discover-standalone/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-discover-standalone/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list avahi-discover-standalone$(EXEEXT): $(avahi_discover_standalone_OBJECTS) $(avahi_discover_standalone_DEPENDENCIES) $(EXTRA_avahi_discover_standalone_DEPENDENCIES) @rm -f avahi-discover-standalone$(EXEEXT) $(AM_V_CCLD)$(avahi_discover_standalone_LINK) $(avahi_discover_standalone_OBJECTS) $(avahi_discover_standalone_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_discover_standalone-main.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< avahi_discover_standalone-main.o: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_discover_standalone_CFLAGS) $(CFLAGS) -MT avahi_discover_standalone-main.o -MD -MP -MF $(DEPDIR)/avahi_discover_standalone-main.Tpo -c -o avahi_discover_standalone-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_discover_standalone-main.Tpo $(DEPDIR)/avahi_discover_standalone-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='avahi_discover_standalone-main.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_discover_standalone_CFLAGS) $(CFLAGS) -c -o avahi_discover_standalone-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c avahi_discover_standalone-main.obj: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_discover_standalone_CFLAGS) $(CFLAGS) -MT avahi_discover_standalone-main.obj -MD -MP -MF $(DEPDIR)/avahi_discover_standalone-main.Tpo -c -o avahi_discover_standalone-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_discover_standalone-main.Tpo $(DEPDIR)/avahi_discover_standalone-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='avahi_discover_standalone-main.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_discover_standalone_CFLAGS) $(CFLAGS) -c -o avahi_discover_standalone-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-interfacesDATA: $(interfaces_DATA) @$(NORMAL_INSTALL) @list='$(interfaces_DATA)'; test -n "$(interfacesdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(interfacesdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(interfacesdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(interfacesdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(interfacesdir)" || exit $$?; \ done uninstall-interfacesDATA: @$(NORMAL_UNINSTALL) @list='$(interfaces_DATA)'; test -n "$(interfacesdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(interfacesdir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(interfacesdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-interfacesDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-interfacesDATA .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-interfacesDATA \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-interfacesDATA .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-discover-standalone/PaxHeaders.10109/main.c0000644000000000000000000000013113130651643020322 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 29 ctime=1499681850.49197922 avahi-0.7/avahi-discover-standalone/main.c0000644000175000017500000002737513130651643021750 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include struct ServiceType; struct Service { struct ServiceType *service_type; gchar *service_name; gchar *domain_name; AvahiIfIndex interface; AvahiProtocol protocol; GtkTreeRowReference *tree_ref; }; struct ServiceType { gchar *service_type; AvahiSServiceBrowser *browser; GList *services; GtkTreeRowReference *tree_ref; }; static GtkWidget *main_window = NULL; static GtkTreeView *tree_view = NULL; static GtkTreeStore *tree_store = NULL; static GtkLabel *info_label = NULL; static AvahiServer *server = NULL; static AvahiSServiceTypeBrowser *service_type_browser = NULL; static GHashTable *service_type_hash_table = NULL; static AvahiSServiceResolver *service_resolver = NULL; static struct Service *current_service = NULL; static struct Service *get_service(const gchar *service_type, const gchar *service_name, const gchar*domain_name, AvahiIfIndex interface, AvahiProtocol protocol) { struct ServiceType *st; GList *l; if (!(st = g_hash_table_lookup(service_type_hash_table, service_type))) return NULL; for (l = st->services; l; l = l->next) { struct Service *s = l->data; if (s->interface == interface && s->protocol == protocol && avahi_domain_equal(s->service_name, service_name) && avahi_domain_equal(s->domain_name, domain_name)) return s; } return NULL; } static void free_service(struct Service *s) { GtkTreeIter iter; GtkTreePath *path; if (current_service == s) { current_service = NULL; if (service_resolver) { avahi_s_service_resolver_free(service_resolver); service_resolver = NULL; } gtk_label_set_text(info_label, "Service removed"); } s->service_type->services = g_list_remove(s->service_type->services, s); if ((path = gtk_tree_row_reference_get_path(s->tree_ref))) { gtk_tree_model_get_iter(GTK_TREE_MODEL(tree_store), &iter, path); gtk_tree_path_free(path); } gtk_tree_store_remove(tree_store, &iter); gtk_tree_row_reference_free(s->tree_ref); g_free(s->service_name); g_free(s->domain_name); g_free(s); } static void service_browser_callback( AVAHI_GCC_UNUSED AvahiSServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *service_name, const char *service_type, const char *domain_name, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { if (event == AVAHI_BROWSER_NEW) { struct Service *s; GtkTreeIter iter, piter; GtkTreePath *path, *ppath; gchar iface[256]; char name[IF_NAMESIZE]; s = g_new(struct Service, 1); s->service_name = g_strdup(service_name); s->domain_name = g_strdup(domain_name); s->interface = interface; s->protocol = protocol; s->service_type = g_hash_table_lookup(service_type_hash_table, service_type); g_assert(s->service_type); s->service_type->services = g_list_prepend(s->service_type->services, s); ppath = gtk_tree_row_reference_get_path(s->service_type->tree_ref); gtk_tree_model_get_iter(GTK_TREE_MODEL(tree_store), &piter, ppath); snprintf(iface, sizeof(iface), "%s %s", if_indextoname(interface, name), avahi_proto_to_string(protocol)); gtk_tree_store_append(tree_store, &iter, &piter); gtk_tree_store_set(tree_store, &iter, 0, s->service_name, 1, iface, 2, s, -1); path = gtk_tree_model_get_path(GTK_TREE_MODEL(tree_store), &iter); s->tree_ref = gtk_tree_row_reference_new(GTK_TREE_MODEL(tree_store), path); gtk_tree_path_free(path); gtk_tree_view_expand_row(tree_view, ppath, FALSE); gtk_tree_path_free(ppath); } else if (event == AVAHI_BROWSER_REMOVE) { struct Service* s; if ((s = get_service(service_type, service_name, domain_name, interface, protocol))) free_service(s); } } static void service_type_browser_callback( AVAHI_GCC_UNUSED AvahiSServiceTypeBrowser *b, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *service_type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void * userdata) { struct ServiceType *st; GtkTreePath *path; GtkTreeIter iter; if (event != AVAHI_BROWSER_NEW) return; if (g_hash_table_lookup(service_type_hash_table, service_type)) return; st = g_new(struct ServiceType, 1); st->service_type = g_strdup(service_type); st->services = NULL; gtk_tree_store_append(tree_store, &iter, NULL); gtk_tree_store_set(tree_store, &iter, 0, st->service_type, 1, "", 2, NULL, -1); path = gtk_tree_model_get_path(GTK_TREE_MODEL(tree_store), &iter); st->tree_ref = gtk_tree_row_reference_new(GTK_TREE_MODEL(tree_store), path); gtk_tree_path_free(path); g_hash_table_insert(service_type_hash_table, st->service_type, st); st->browser = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, st->service_type, domain, 0, service_browser_callback, NULL); } static void update_label(struct Service *s, const gchar *hostname, const AvahiAddress *a, guint16 port, AvahiStringList *txt) { gchar t[512], address[64], *txt_s; char name[IF_NAMESIZE]; if (a && hostname) { char na[AVAHI_ADDRESS_STR_MAX]; avahi_address_snprint(na, sizeof(na), a); snprintf(address, sizeof(address), "%s/%s:%u", hostname, na, port); if (txt) txt_s = avahi_string_list_to_string(txt); else txt_s = g_strdup("empty"); } else { snprintf(address, sizeof(address), "n/a"); txt_s = g_strdup("n/a"); } snprintf(t, sizeof(t), "Service Type: %s\n" "Service Name: %s\n" "Domain Name: %s\n" "Interface: %s %s\n" "Address: %s\n" "TXT Data: %s", s->service_type->service_type, s->service_name, s->domain_name, if_indextoname(s->interface,name), avahi_proto_to_string(s->protocol), address, txt_s); gtk_label_set_markup(info_label, t); g_free(txt_s); } static struct Service *get_service_on_cursor(void) { GtkTreePath *path; struct Service *s; GtkTreeIter iter; gtk_tree_view_get_cursor(tree_view, &path, NULL); if (!path) return NULL; gtk_tree_model_get_iter(GTK_TREE_MODEL(tree_store), &iter, path); gtk_tree_model_get(GTK_TREE_MODEL(tree_store), &iter, 2, &s, -1); gtk_tree_path_free(path); return s; } static void service_resolver_callback( AvahiSServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, AVAHI_GCC_UNUSED const char *name, AVAHI_GCC_UNUSED const char *type, AVAHI_GCC_UNUSED const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { struct Service *s; g_assert(r); if (!(s = get_service_on_cursor()) || userdata != s) { g_assert(r == service_resolver); avahi_s_service_resolver_free(service_resolver); service_resolver = NULL; return; } if (event == AVAHI_RESOLVER_FAILURE) { char t[256]; snprintf(t, sizeof(t), "Failed to resolve: %s.", avahi_strerror(avahi_server_errno(server))); gtk_label_set_markup(info_label, t); } else if (event == AVAHI_RESOLVER_FOUND) update_label(s, host_name, a, port, txt); } static void tree_view_on_cursor_changed(AVAHI_GCC_UNUSED GtkTreeView *tv, AVAHI_GCC_UNUSED gpointer userdata) { struct Service *s; if (!(s = get_service_on_cursor())) return; if (service_resolver) avahi_s_service_resolver_free(service_resolver); update_label(s, NULL, NULL, 0, NULL); service_resolver = avahi_s_service_resolver_new(server, s->interface, s->protocol, s->service_name, s->service_type->service_type, s->domain_name, AVAHI_PROTO_UNSPEC, 0, service_resolver_callback, s); } static gboolean main_window_on_delete_event(AVAHI_GCC_UNUSED GtkWidget *widget, AVAHI_GCC_UNUSED GdkEvent *event, AVAHI_GCC_UNUSED gpointer user_data) { gtk_main_quit(); return FALSE; } int main(int argc, char *argv[]) { GtkBuilder *ui; AvahiServerConfig config; GtkTreeViewColumn *c; gint error; AvahiGLibPoll *poll_api; gtk_init(&argc, &argv); avahi_set_allocator(avahi_glib_allocator()); poll_api = avahi_glib_poll_new(NULL, G_PRIORITY_DEFAULT); ui = gtk_builder_new(); gtk_builder_set_translation_domain(ui, "avahi"); gtk_builder_add_from_file(ui, AVAHI_INTERFACES_DIR"avahi-discover.ui", NULL); main_window = GTK_WIDGET(gtk_builder_get_object(ui, "main_window")); g_signal_connect(main_window, "delete-event", (GCallback) main_window_on_delete_event, NULL); tree_view = GTK_TREE_VIEW(gtk_builder_get_object(ui, "tree_view")); g_signal_connect(GTK_WIDGET(tree_view), "cursor-changed", (GCallback) tree_view_on_cursor_changed, NULL); info_label = GTK_LABEL(gtk_builder_get_object(ui, "info_label")); tree_store = gtk_tree_store_new(3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER); gtk_tree_view_set_model(tree_view, GTK_TREE_MODEL(tree_store)); gtk_tree_view_insert_column_with_attributes(tree_view, -1, "Name", gtk_cell_renderer_text_new(), "text", 0, NULL); gtk_tree_view_insert_column_with_attributes(tree_view, -1, "Interface", gtk_cell_renderer_text_new(), "text", 1, NULL); gtk_tree_view_column_set_resizable(c = gtk_tree_view_get_column(tree_view, 0), TRUE); gtk_tree_view_column_set_sizing(c, GTK_TREE_VIEW_COLUMN_GROW_ONLY); gtk_tree_view_column_set_expand(c, TRUE); service_type_hash_table = g_hash_table_new((GHashFunc) avahi_domain_hash, (GEqualFunc) avahi_domain_equal); avahi_server_config_init(&config); config.publish_hinfo = config.publish_addresses = config.publish_domain = config.publish_workstation = FALSE; server = avahi_server_new(avahi_glib_poll_get(poll_api), &config, NULL, NULL, &error); avahi_server_config_free(&config); g_assert(server); service_type_browser = avahi_s_service_type_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, argc >= 2 ? argv[1] : NULL, 0, service_type_browser_callback, NULL); gtk_main(); avahi_server_free(server); avahi_glib_poll_free(poll_api); return 0; } avahi-0.7/PaxHeaders.10109/avahi-daemon0000644000000000000000000000013213130652072014452 xustar0030 mtime=1499681850.543978063 30 atime=1499681851.279961638 30 ctime=1499681850.543978063 avahi-0.7/avahi-daemon/0000755000175000017500000000000013130652072016136 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-daemon/PaxHeaders.10109/ssh.service0000644000000000000000000000013213130651643016711 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.515978685 avahi-0.7/avahi-daemon/ssh.service0000644000175000017500000000205713130651643020324 0ustar00lathiatlathiat00000000000000 %h _ssh._tcp 22 avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.HostNameResolver.xml0000644000000000000000000000013213130651643024643 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.515978685 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.HostNameResolver.xml0000644000175000017500000000311013130651643026245 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-record-browser.c0000644000000000000000000000013213130651643020570 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.539978153 avahi-0.7/avahi-daemon/dbus-record-browser.c0000644000175000017500000001130513130651643022177 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" void avahi_dbus_record_browser_free(RecordBrowserInfo *i) { assert(i); if (i->record_browser) avahi_s_record_browser_free(i->record_browser); if (i->path) { dbus_connection_unregister_object_path(server->bus, i->path); avahi_free(i->path); } AVAHI_LLIST_REMOVE(RecordBrowserInfo, record_browsers, i->client->record_browsers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } DBusHandlerResult avahi_dbus_msg_record_browser_impl(DBusConnection *c, DBusMessage *m, void *userdata) { DBusError error; RecordBrowserInfo *i = userdata; assert(c); assert(m); assert(i); dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); /* Introspection */ if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.RecordBrowser.xml"); /* Access control */ if (strcmp(dbus_message_get_sender(m), i->client->name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_ACCESS_DENIED, NULL); if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "Free")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing RecordBrowser::Free message"); goto fail; } avahi_dbus_record_browser_free(i); return avahi_dbus_respond_ok(c, m); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } void avahi_dbus_record_browser_callback( AvahiSRecordBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata) { RecordBrowserInfo *i = userdata; DBusMessage *m = NULL; int32_t i_interface, i_protocol; uint32_t u_flags; assert(b); assert(i); i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; m = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, avahi_dbus_map_browse_signal_name(event)); if (!m) { avahi_log_error("Failed allocate message"); return; } if (event == AVAHI_BROWSER_NEW || event == AVAHI_BROWSER_REMOVE) { uint8_t rdata[0xFFFF]; size_t size; assert(record); if (!(dbus_message_append_args( m, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &record->key->name, DBUS_TYPE_UINT16, &record->key->clazz, DBUS_TYPE_UINT16, &record->key->type, DBUS_TYPE_INVALID))) goto fail; if ((size = avahi_rdata_serialize(record, rdata, sizeof(rdata))) == (size_t) -1 || avahi_dbus_append_rdata(m, rdata, size) < 0) { avahi_log_debug(__FILE__": Failed to append rdata"); dbus_message_unref(m); return; } dbus_message_append_args( m, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); } else if (event == AVAHI_BROWSER_FAILURE) avahi_dbus_append_server_error(m); dbus_message_set_destination(m, i->client->name); dbus_connection_send(server->bus, m, NULL); dbus_message_unref(m); return; fail: if (m) dbus_message_unref(m); } avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.DomainBrowser.xml0000644000000000000000000000013213130651643024156 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.511978776 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.DomainBrowser.xml0000644000175000017500000000324413130651643025570 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-util.h0000644000000000000000000000013113130651643016612 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 29 ctime=1499681850.53197833 avahi-0.7/avahi-daemon/dbus-util.h0000644000175000017500000000446713130651643020235 0ustar00lathiatlathiat00000000000000#ifndef foodbusutilhfoo #define foodbusutilhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include #include #include "dbus-internal.h" DBusHandlerResult avahi_dbus_respond_error(DBusConnection *c, DBusMessage *m, int error, const char *text); DBusHandlerResult avahi_dbus_respond_string(DBusConnection *c, DBusMessage *m, const char *text); DBusHandlerResult avahi_dbus_respond_int32(DBusConnection *c, DBusMessage *m, int32_t i); DBusHandlerResult avahi_dbus_respond_uint32(DBusConnection *c, DBusMessage *m, uint32_t u); DBusHandlerResult avahi_dbus_respond_boolean(DBusConnection *c, DBusMessage *m, int b); DBusHandlerResult avahi_dbus_respond_ok(DBusConnection *c, DBusMessage *m); DBusHandlerResult avahi_dbus_respond_path(DBusConnection *c, DBusMessage *m, const char *path); void avahi_dbus_append_server_error(DBusMessage *reply); const char *avahi_dbus_map_browse_signal_name(AvahiBrowserEvent e); const char *avahi_dbus_map_resolve_signal_name(AvahiResolverEvent e); DBusHandlerResult avahi_dbus_handle_introspect(DBusConnection *c, DBusMessage *m, const char *fname); void avahi_dbus_append_string_list(DBusMessage *reply, AvahiStringList *txt); int avahi_dbus_read_rdata(DBusMessage *m, int idx, void **rdata, uint32_t *size); int avahi_dbus_read_strlst(DBusMessage *m, int idx, AvahiStringList **l); int avahi_dbus_is_our_own_service(Client *c, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain); int avahi_dbus_append_rdata(DBusMessage *message, const void *rdata, size_t size); #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-sync-address-resolver.c0000644000000000000000000000013213130651643022067 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.539978153 avahi-0.7/avahi-daemon/dbus-sync-address-resolver.c0000644000175000017500000000573313130651643023506 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" #include "main.h" void avahi_dbus_sync_address_resolver_free(SyncAddressResolverInfo *i) { assert(i); if (i->address_resolver) avahi_s_address_resolver_free(i->address_resolver); dbus_message_unref(i->message); AVAHI_LLIST_REMOVE(SyncAddressResolverInfo, sync_address_resolvers, i->client->sync_address_resolvers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } void avahi_dbus_sync_address_resolver_callback(AvahiSAddressResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *address, const char *host_name, AvahiLookupResultFlags flags, void* userdata) { SyncAddressResolverInfo *i = userdata; assert(r); assert(address); assert(i); if (event == AVAHI_RESOLVER_FOUND) { char t[AVAHI_ADDRESS_STR_MAX], *pt = t; int32_t i_interface, i_protocol, i_aprotocol; uint32_t u_flags; DBusMessage *reply; assert(host_name); avahi_address_snprint(t, sizeof(t), address); i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; i_aprotocol = (int32_t) address->proto; u_flags = (uint32_t) flags; reply = dbus_message_new_method_return(i->message); if (!reply) { avahi_log_error("Failed allocate message"); goto finish; } dbus_message_append_args( reply, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_INT32, &i_aprotocol, DBUS_TYPE_STRING, &pt, DBUS_TYPE_STRING, &host_name, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); dbus_connection_send(server->bus, reply, NULL); dbus_message_unref(reply); } else { assert(event == AVAHI_RESOLVER_FAILURE); avahi_dbus_respond_error(server->bus, i->message, avahi_server_errno(avahi_server), NULL); } finish: avahi_dbus_sync_address_resolver_free(i); } avahi-0.7/avahi-daemon/PaxHeaders.10109/sd-daemon.c0000644000000000000000000000013213130651643016545 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.111370487 30 ctime=1499681850.527978419 avahi-0.7/avahi-daemon/sd-daemon.c0000644000175000017500000002633413130651643020164 0ustar00lathiatlathiat00000000000000/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ /*** Copyright 2010 Lennart Poettering Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ***/ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sd-daemon.h" int sd_listen_fds(int unset_environment) { #if defined(DISABLE_SYSTEMD) || !defined(__linux__) return 0; #else int r, fd; const char *e; char *p = NULL; unsigned long l; if (!(e = getenv("LISTEN_PID"))) { r = 0; goto finish; } errno = 0; l = strtoul(e, &p, 10); if (errno != 0) { r = -errno; goto finish; } if (!p || *p || l <= 0) { r = -EINVAL; goto finish; } /* Is this for us? */ if (getpid() != (pid_t) l) { r = 0; goto finish; } if (!(e = getenv("LISTEN_FDS"))) { r = 0; goto finish; } errno = 0; l = strtoul(e, &p, 10); if (errno != 0) { r = -errno; goto finish; } if (!p || *p) { r = -EINVAL; goto finish; } for (fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START + (int) l; fd ++) { int flags; if ((flags = fcntl(fd, F_GETFD)) < 0) { r = -errno; goto finish; } if (flags & FD_CLOEXEC) continue; if (fcntl(fd, F_SETFD, flags | FD_CLOEXEC) < 0) { r = -errno; goto finish; } } r = (int) l; finish: if (unset_environment) { unsetenv("LISTEN_PID"); unsetenv("LISTEN_FDS"); } return r; #endif } int sd_is_fifo(int fd, const char *path) { struct stat st_fd; if (fd < 0) return -EINVAL; memset(&st_fd, 0, sizeof(st_fd)); if (fstat(fd, &st_fd) < 0) return -errno; if (!S_ISFIFO(st_fd.st_mode)) return 0; if (path) { struct stat st_path; memset(&st_path, 0, sizeof(st_path)); if (stat(path, &st_path) < 0) { if (errno == ENOENT || errno == ENOTDIR) return 0; return -errno; } return st_path.st_dev == st_fd.st_dev && st_path.st_ino == st_fd.st_ino; } return 1; } static int sd_is_socket_internal(int fd, int type, int listening) { struct stat st_fd; if (fd < 0 || type < 0) return -EINVAL; if (fstat(fd, &st_fd) < 0) return -errno; if (!S_ISSOCK(st_fd.st_mode)) return 0; if (type != 0) { int other_type = 0; socklen_t l = sizeof(other_type); if (getsockopt(fd, SOL_SOCKET, SO_TYPE, &other_type, &l) < 0) return -errno; if (l != sizeof(other_type)) return -EINVAL; if (other_type != type) return 0; } if (listening >= 0) { int accepting = 0; socklen_t l = sizeof(accepting); if (getsockopt(fd, SOL_SOCKET, SO_ACCEPTCONN, &accepting, &l) < 0) return -errno; if (l != sizeof(accepting)) return -EINVAL; if (!accepting != !listening) return 0; } return 1; } union sockaddr_union { struct sockaddr sa; struct sockaddr_in in4; struct sockaddr_in6 in6; struct sockaddr_un un; struct sockaddr_storage storage; }; int sd_is_socket(int fd, int family, int type, int listening) { int r; if (family < 0) return -EINVAL; if ((r = sd_is_socket_internal(fd, type, listening)) <= 0) return r; if (family > 0) { union sockaddr_union sockaddr; socklen_t l; memset(&sockaddr, 0, sizeof(sockaddr)); l = sizeof(sockaddr); if (getsockname(fd, &sockaddr.sa, &l) < 0) return -errno; if (l < sizeof(sa_family_t)) return -EINVAL; return sockaddr.sa.sa_family == family; } return 1; } int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) { union sockaddr_union sockaddr; socklen_t l; int r; if (family != 0 && family != AF_INET && family != AF_INET6) return -EINVAL; if ((r = sd_is_socket_internal(fd, type, listening)) <= 0) return r; memset(&sockaddr, 0, sizeof(sockaddr)); l = sizeof(sockaddr); if (getsockname(fd, &sockaddr.sa, &l) < 0) return -errno; if (l < sizeof(sa_family_t)) return -EINVAL; if (sockaddr.sa.sa_family != AF_INET && sockaddr.sa.sa_family != AF_INET6) return 0; if (family > 0) if (sockaddr.sa.sa_family != family) return 0; if (port > 0) { if (sockaddr.sa.sa_family == AF_INET) { if (l < sizeof(struct sockaddr_in)) return -EINVAL; return htons(port) == sockaddr.in4.sin_port; } else { if (l < sizeof(struct sockaddr_in6)) return -EINVAL; return htons(port) == sockaddr.in6.sin6_port; } } return 1; } int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t length) { union sockaddr_union sockaddr; socklen_t l; int r; if ((r = sd_is_socket_internal(fd, type, listening)) <= 0) return r; memset(&sockaddr, 0, sizeof(sockaddr)); l = sizeof(sockaddr); if (getsockname(fd, &sockaddr.sa, &l) < 0) return -errno; if (l < sizeof(sa_family_t)) return -EINVAL; if (sockaddr.sa.sa_family != AF_UNIX) return 0; if (path) { if (length <= 0) length = strlen(path); if (length <= 0) /* Unnamed socket */ return l == offsetof(struct sockaddr_un, sun_path); if (path[0]) /* Normal path socket */ return (l >= offsetof(struct sockaddr_un, sun_path) + length + 1) && memcmp(path, sockaddr.un.sun_path, length+1) == 0; else /* Abstract namespace socket */ return (l == offsetof(struct sockaddr_un, sun_path) + length) && memcmp(path, sockaddr.un.sun_path, length) == 0; } return 1; } int sd_notify(int unset_environment, const char *state) { #if defined(DISABLE_SYSTEMD) || !defined(__linux__) || !defined(SOCK_CLOEXEC) return 0; #else int fd = -1, r; struct msghdr msghdr; struct iovec iovec; union sockaddr_union sockaddr; const char *e; if (!state) { r = -EINVAL; goto finish; } if (!(e = getenv("NOTIFY_SOCKET"))) return 0; /* Must be an abstract socket, or an absolute path */ if ((e[0] != '@' && e[0] != '/') || e[1] == 0) { r = -EINVAL; goto finish; } if ((fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0)) < 0) { r = -errno; goto finish; } memset(&sockaddr, 0, sizeof(sockaddr)); sockaddr.sa.sa_family = AF_UNIX; strncpy(sockaddr.un.sun_path, e, sizeof(sockaddr.un.sun_path)); if (sockaddr.un.sun_path[0] == '@') sockaddr.un.sun_path[0] = 0; memset(&iovec, 0, sizeof(iovec)); iovec.iov_base = (char*) state; iovec.iov_len = strlen(state); memset(&msghdr, 0, sizeof(msghdr)); msghdr.msg_name = &sockaddr; msghdr.msg_namelen = offsetof(struct sockaddr_un, sun_path) + strlen(e); if (msghdr.msg_namelen > sizeof(struct sockaddr_un)) msghdr.msg_namelen = sizeof(struct sockaddr_un); msghdr.msg_iov = &iovec; msghdr.msg_iovlen = 1; if (sendmsg(fd, &msghdr, MSG_NOSIGNAL) < 0) { r = -errno; goto finish; } r = 1; finish: if (unset_environment) unsetenv("NOTIFY_SOCKET"); if (fd >= 0) close(fd); return r; #endif } int sd_notifyf(int unset_environment, const char *format, ...) { #if defined(DISABLE_SYSTEMD) || !defined(__linux__) return 0; #else va_list ap; char *p = NULL; int r; va_start(ap, format); r = vasprintf(&p, format, ap); va_end(ap); if (r < 0 || !p) return -ENOMEM; r = sd_notify(unset_environment, p); free(p); return r; #endif } int sd_booted(void) { #if defined(DISABLE_SYSTEMD) || !defined(__linux__) return 0; #else struct stat a, b; /* We simply test whether the systemd cgroup hierarchy is * mounted */ if (lstat("/sys/fs/cgroup", &a) < 0) return 0; if (lstat("/sys/fs/cgroup/systemd", &b) < 0) return 0; return a.st_dev != b.st_dev; #endif } avahi-0.7/avahi-daemon/PaxHeaders.10109/simple-protocol.c0000644000000000000000000000013213130651643020026 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.519978599 avahi-0.7/avahi-daemon/simple-protocol.c0000644000175000017500000004106113130651643021437 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "simple-protocol.h" #include "main.h" #include "sd-daemon.h" #ifdef ENABLE_CHROOT #include "chroot.h" #endif #ifndef AF_LOCAL #define AF_LOCAL AF_UNIX #endif #ifndef PF_LOCAL #define PF_LOCAL PF_UNIX #endif #define BUFFER_SIZE (20*1024) #define CLIENTS_MAX 50 typedef struct Client Client; typedef struct Server Server; typedef enum { CLIENT_IDLE, CLIENT_RESOLVE_HOSTNAME, CLIENT_RESOLVE_ADDRESS, CLIENT_BROWSE_DNS_SERVERS, CLIENT_DEAD } ClientState; struct Client { Server *server; ClientState state; int fd; AvahiWatch *watch; char inbuf[BUFFER_SIZE], outbuf[BUFFER_SIZE]; size_t inbuf_length, outbuf_length; AvahiSHostNameResolver *host_name_resolver; AvahiSAddressResolver *address_resolver; AvahiSDNSServerBrowser *dns_server_browser; AvahiProtocol afquery; AVAHI_LLIST_FIELDS(Client, clients); }; struct Server { const AvahiPoll *poll_api; int fd; AvahiWatch *watch; AVAHI_LLIST_HEAD(Client, clients); unsigned n_clients; int remove_socket; }; static Server *server = NULL; static void client_work(AvahiWatch *watch, int fd, AvahiWatchEvent events, void *userdata); static void client_free(Client *c) { assert(c); assert(c->server->n_clients >= 1); c->server->n_clients--; if (c->host_name_resolver) avahi_s_host_name_resolver_free(c->host_name_resolver); if (c->address_resolver) avahi_s_address_resolver_free(c->address_resolver); if (c->dns_server_browser) avahi_s_dns_server_browser_free(c->dns_server_browser); c->server->poll_api->watch_free(c->watch); close(c->fd); AVAHI_LLIST_REMOVE(Client, clients, c->server->clients, c); avahi_free(c); } static void client_new(Server *s, int fd) { Client *c; assert(fd >= 0); c = avahi_new(Client, 1); c->server = s; c->fd = fd; c->state = CLIENT_IDLE; c->inbuf_length = c->outbuf_length = 0; c->host_name_resolver = NULL; c->address_resolver = NULL; c->dns_server_browser = NULL; c->watch = s->poll_api->watch_new(s->poll_api, fd, AVAHI_WATCH_IN, client_work, c); AVAHI_LLIST_PREPEND(Client, clients, s->clients, c); s->n_clients++; } static void client_output(Client *c, const uint8_t*data, size_t size) { size_t k, m; assert(c); assert(data); if (!size) return; k = sizeof(c->outbuf) - c->outbuf_length; m = size > k ? k : size; memcpy(c->outbuf + c->outbuf_length, data, m); c->outbuf_length += m; server->poll_api->watch_update(c->watch, AVAHI_WATCH_OUT); } static void client_output_printf(Client *c, const char *format, ...) { char *t; va_list ap; va_start(ap, format); t = avahi_strdup_vprintf(format, ap); va_end(ap); client_output(c, (uint8_t*) t, strlen(t)); avahi_free(t); } static void host_name_resolver_callback( AVAHI_GCC_UNUSED AvahiSHostNameResolver *r, AvahiIfIndex iface, AvahiProtocol protocol, AvahiResolverEvent event, const char *hostname, const AvahiAddress *a, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { Client *c = userdata; assert(c); if (event == AVAHI_RESOLVER_FAILURE) client_output_printf(c, "%+i %s\n", avahi_server_errno(avahi_server), avahi_strerror(avahi_server_errno(avahi_server))); else if (event == AVAHI_RESOLVER_FOUND) { char t[AVAHI_ADDRESS_STR_MAX]; avahi_address_snprint(t, sizeof(t), a); client_output_printf(c, "+ %i %u %s %s\n", iface, protocol, hostname, t); } c->state = CLIENT_DEAD; } static void address_resolver_callback( AVAHI_GCC_UNUSED AvahiSAddressResolver *r, AvahiIfIndex iface, AvahiProtocol protocol, AvahiResolverEvent event, AVAHI_GCC_UNUSED const AvahiAddress *a, const char *hostname, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { Client *c = userdata; assert(c); if (event == AVAHI_RESOLVER_FAILURE) client_output_printf(c, "%+i %s\n", avahi_server_errno(avahi_server), avahi_strerror(avahi_server_errno(avahi_server))); else if (event == AVAHI_RESOLVER_FOUND) client_output_printf(c, "+ %i %u %s\n", iface, protocol, hostname); c->state = CLIENT_DEAD; } static void dns_server_browser_callback( AVAHI_GCC_UNUSED AvahiSDNSServerBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AVAHI_GCC_UNUSED const char *host_name, const AvahiAddress *a, uint16_t port, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { Client *c = userdata; char t[AVAHI_ADDRESS_STR_MAX]; assert(c); if (!a) return; switch (event) { case AVAHI_BROWSER_FAILURE: client_output_printf(c, "%+i %s\n", avahi_server_errno(avahi_server), avahi_strerror(avahi_server_errno(avahi_server))); c->state = CLIENT_DEAD; break; case AVAHI_BROWSER_ALL_FOR_NOW: case AVAHI_BROWSER_CACHE_EXHAUSTED: break; case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE: avahi_address_snprint(t, sizeof(t), a); client_output_printf(c, "%c %i %u %s %u\n", event == AVAHI_BROWSER_NEW ? '>' : '<', interface, protocol, t, port); break; } } static void handle_line(Client *c, const char *s) { char cmd[64], arg[64]; int n_args; assert(c); assert(s); if (c->state != CLIENT_IDLE) return; if ((n_args = sscanf(s, "%63s %63s", cmd, arg)) < 1 ) { client_output_printf(c, "%+i Failed to parse command, try \"HELP\".\n", AVAHI_ERR_INVALID_OPERATION); c->state = CLIENT_DEAD; return; } if (strcmp(cmd, "HELP") == 0) { client_output_printf(c, "+ Available commands are:\n" "+ RESOLVE-HOSTNAME \n" "+ RESOLVE-HOSTNAME-IPV6 \n" "+ RESOLVE-HOSTNAME-IPV4 \n" "+ RESOLVE-ADDRESS
\n" "+ BROWSE-DNS-SERVERS\n" "+ BROWSE-DNS-SERVERS-IPV4\n" "+ BROWSE-DNS-SERVERS-IPV6\n"); c->state = CLIENT_DEAD; } else if (strcmp(cmd, "FUCK") == 0 && n_args == 1) { client_output_printf(c, "+ FUCK: Go fuck yourself!\n"); c->state = CLIENT_DEAD; } else if (strcmp(cmd, "RESOLVE-HOSTNAME-IPV4") == 0 && n_args == 2) { c->state = CLIENT_RESOLVE_HOSTNAME; if (!(c->host_name_resolver = avahi_s_host_name_resolver_new(avahi_server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, arg, c->afquery = AVAHI_PROTO_INET, AVAHI_LOOKUP_USE_MULTICAST, host_name_resolver_callback, c))) goto fail; avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg); } else if (strcmp(cmd, "RESOLVE-HOSTNAME-IPV6") == 0 && n_args == 2) { c->state = CLIENT_RESOLVE_HOSTNAME; if (!(c->host_name_resolver = avahi_s_host_name_resolver_new(avahi_server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, arg, c->afquery = AVAHI_PROTO_INET6, AVAHI_LOOKUP_USE_MULTICAST, host_name_resolver_callback, c))) goto fail; avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg); } else if (strcmp(cmd, "RESOLVE-HOSTNAME") == 0 && n_args == 2) { c->state = CLIENT_RESOLVE_HOSTNAME; if (!(c->host_name_resolver = avahi_s_host_name_resolver_new(avahi_server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, arg, c->afquery = AVAHI_PROTO_UNSPEC, AVAHI_LOOKUP_USE_MULTICAST, host_name_resolver_callback, c))) goto fail; avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg); } else if (strcmp(cmd, "RESOLVE-ADDRESS") == 0 && n_args == 2) { AvahiAddress addr; if (!(avahi_address_parse(arg, AVAHI_PROTO_UNSPEC, &addr))) { client_output_printf(c, "%+i Failed to parse address \"%s\".\n", AVAHI_ERR_INVALID_ADDRESS, arg); c->state = CLIENT_DEAD; } else { c->state = CLIENT_RESOLVE_ADDRESS; if (!(c->address_resolver = avahi_s_address_resolver_new(avahi_server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, &addr, AVAHI_LOOKUP_USE_MULTICAST, address_resolver_callback, c))) goto fail; } avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg); } else if (strcmp(cmd, "BROWSE-DNS-SERVERS-IPV4") == 0 && n_args == 1) { c->state = CLIENT_BROWSE_DNS_SERVERS; if (!(c->dns_server_browser = avahi_s_dns_server_browser_new(avahi_server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DNS_SERVER_RESOLVE, c->afquery = AVAHI_PROTO_INET, AVAHI_LOOKUP_USE_MULTICAST, dns_server_browser_callback, c))) goto fail; client_output_printf(c, "+ Browsing ...\n"); avahi_log_debug(__FILE__": Got %s request.", cmd); } else if (strcmp(cmd, "BROWSE-DNS-SERVERS-IPV6") == 0 && n_args == 1) { c->state = CLIENT_BROWSE_DNS_SERVERS; if (!(c->dns_server_browser = avahi_s_dns_server_browser_new(avahi_server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DNS_SERVER_RESOLVE, c->afquery = AVAHI_PROTO_INET6, AVAHI_LOOKUP_USE_MULTICAST, dns_server_browser_callback, c))) goto fail; client_output_printf(c, "+ Browsing ...\n"); avahi_log_debug(__FILE__": Got %s request.", cmd); } else if (strcmp(cmd, "BROWSE-DNS-SERVERS") == 0 && n_args == 1) { c->state = CLIENT_BROWSE_DNS_SERVERS; if (!(c->dns_server_browser = avahi_s_dns_server_browser_new(avahi_server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DNS_SERVER_RESOLVE, c->afquery = AVAHI_PROTO_UNSPEC, AVAHI_LOOKUP_USE_MULTICAST, dns_server_browser_callback, c))) goto fail; client_output_printf(c, "+ Browsing ...\n"); avahi_log_debug(__FILE__": Got %s request.", cmd); } else { client_output_printf(c, "%+i Invalid command \"%s\", try \"HELP\".\n", AVAHI_ERR_INVALID_OPERATION, cmd); c->state = CLIENT_DEAD; avahi_log_debug(__FILE__": Got invalid request '%s'.", cmd); } return; fail: client_output_printf(c, "%+i %s\n", avahi_server_errno(avahi_server), avahi_strerror(avahi_server_errno(avahi_server))); c->state = CLIENT_DEAD; } static void handle_input(Client *c) { assert(c); for (;;) { char *e; size_t k; if (!(e = memchr(c->inbuf, '\n', c->inbuf_length))) break; k = e - (char*) c->inbuf; *e = 0; handle_line(c, c->inbuf); c->inbuf_length -= k + 1; memmove(c->inbuf, e+1, c->inbuf_length); } } static void client_work(AvahiWatch *watch, AVAHI_GCC_UNUSED int fd, AvahiWatchEvent events, void *userdata) { Client *c = userdata; assert(c); if ((events & AVAHI_WATCH_IN) && c->inbuf_length < sizeof(c->inbuf)) { ssize_t r; if ((r = read(c->fd, c->inbuf + c->inbuf_length, sizeof(c->inbuf) - c->inbuf_length)) <= 0) { if (r < 0) avahi_log_warn("read(): %s", strerror(errno)); client_free(c); return; } c->inbuf_length += r; assert(c->inbuf_length <= sizeof(c->inbuf)); handle_input(c); } if ((events & AVAHI_WATCH_OUT) && c->outbuf_length > 0) { ssize_t r; if ((r = write(c->fd, c->outbuf, c->outbuf_length)) < 0) { avahi_log_warn("write(): %s", strerror(errno)); client_free(c); return; } assert((size_t) r <= c->outbuf_length); c->outbuf_length -= r; if (c->outbuf_length) memmove(c->outbuf, c->outbuf + r, c->outbuf_length - r); if (c->outbuf_length == 0 && c->state == CLIENT_DEAD) { client_free(c); return; } } c->server->poll_api->watch_update( watch, (c->outbuf_length > 0 ? AVAHI_WATCH_OUT : 0) | (c->inbuf_length < sizeof(c->inbuf) ? AVAHI_WATCH_IN : 0)); } static void server_work(AVAHI_GCC_UNUSED AvahiWatch *watch, int fd, AvahiWatchEvent events, void *userdata) { Server *s = userdata; assert(s); if (events & AVAHI_WATCH_IN) { int cfd; if ((cfd = accept(fd, NULL, NULL)) < 0) avahi_log_error("accept(): %s", strerror(errno)); else client_new(s, cfd); } } int simple_protocol_setup(const AvahiPoll *poll_api) { struct sockaddr_un sa; mode_t u; int n; assert(!server); server = avahi_new(Server, 1); server->poll_api = poll_api; server->remove_socket = 0; server->fd = -1; server->n_clients = 0; AVAHI_LLIST_HEAD_INIT(Client, server->clients); server->watch = NULL; u = umask(0000); if ((n = sd_listen_fds(1)) < 0) { avahi_log_warn("Failed to acquire systemd file descriptors: %s", strerror(-n)); goto fail; } if (n > 1) { avahi_log_warn("Too many systemd file descriptors passed."); goto fail; } if (n == 1) { int r; if ((r = sd_is_socket(SD_LISTEN_FDS_START, AF_LOCAL, SOCK_STREAM, 1)) < 0) { avahi_log_warn("Passed systemd file descriptor is of wrong type: %s", strerror(-r)); goto fail; } server->fd = SD_LISTEN_FDS_START; } else { if ((server->fd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0) { avahi_log_warn("socket(AF_LOCAL, SOCK_STREAM, 0): %s", strerror(errno)); goto fail; } memset(&sa, 0, sizeof(sa)); sa.sun_family = AF_LOCAL; strncpy(sa.sun_path, AVAHI_SOCKET, sizeof(sa.sun_path)-1); /* We simply remove existing UNIX sockets under this name. The Avahi daemon makes sure that it runs only once on a host, therefore sockets that already exist are stale and may be removed without any ill effects */ unlink(AVAHI_SOCKET); if (bind(server->fd, (struct sockaddr*) &sa, sizeof(sa)) < 0) { avahi_log_warn("bind(): %s", strerror(errno)); goto fail; } server->remove_socket = 1; if (listen(server->fd, SOMAXCONN) < 0) { avahi_log_warn("listen(): %s", strerror(errno)); goto fail; } } umask(u); server->watch = poll_api->watch_new(poll_api, server->fd, AVAHI_WATCH_IN, server_work, server); return 0; fail: umask(u); simple_protocol_shutdown(); return -1; } void simple_protocol_shutdown(void) { if (server) { if (server->remove_socket) #ifdef ENABLE_CHROOT avahi_chroot_helper_unlink(AVAHI_SOCKET); #else unlink(AVAHI_SOCKET); #endif while (server->clients) client_free(server->clients); if (server->watch) server->poll_api->watch_free(server->watch); if (server->fd >= 0) close(server->fd); avahi_free(server); server = NULL; } } void simple_protocol_restart_queries(void) { Client *c; /* Restart queries in case of local domain name changes */ assert(server); for (c = server->clients; c; c = c->clients_next) if (c->state == CLIENT_BROWSE_DNS_SERVERS && c->dns_server_browser) { avahi_s_dns_server_browser_free(c->dns_server_browser); c->dns_server_browser = avahi_s_dns_server_browser_new(avahi_server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DNS_SERVER_RESOLVE, c->afquery, AVAHI_LOOKUP_USE_MULTICAST, dns_server_browser_callback, c); } } avahi-0.7/avahi-daemon/PaxHeaders.10109/setproctitle.h0000644000000000000000000000013213130651643017424 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.527978419 avahi-0.7/avahi-daemon/setproctitle.h0000644000175000017500000000173113130651643021035 0ustar00lathiatlathiat00000000000000#ifndef foosetproctitlehfoo #define foosetproctitlehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include void avahi_init_proc_title(int argc, char **argv); void avahi_set_proc_title(const char *name, const char *fmt, ...) AVAHI_GCC_PRINTF_ATTR23; #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/avahi-dbus.conf0000644000000000000000000000013113130652016017416 xustar0030 mtime=1499681806.648958569 29 atime=1499681807.02895007 30 ctime=1499681850.507978865 avahi-0.7/avahi-daemon/avahi-dbus.conf0000644000175000017500000000217013130652016021026 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/static-services.h0000644000000000000000000000013213130651643020013 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.523978509 avahi-0.7/avahi-daemon/static-services.h0000644000175000017500000000171713130651643021430 0ustar00lathiatlathiat00000000000000#ifndef foostaticserviceshfoo #define foostaticserviceshfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ void static_service_load(int in_chroot); void static_service_free_all(void); void static_service_add_to_server(void); void static_service_remove_from_server(void); #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-service-browser.c0000644000000000000000000000013213130651643020752 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.535978239 avahi-0.7/avahi-daemon/dbus-service-browser.c0000644000175000017500000001065313130651643022366 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" void avahi_dbus_service_browser_free(ServiceBrowserInfo *i) { assert(i); if (i->service_browser) avahi_s_service_browser_free(i->service_browser); if (i->path) { dbus_connection_unregister_object_path(server->bus, i->path); avahi_free(i->path); } AVAHI_LLIST_REMOVE(ServiceBrowserInfo, service_browsers, i->client->service_browsers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } DBusHandlerResult avahi_dbus_msg_service_browser_impl(DBusConnection *c, DBusMessage *m, void *userdata) { DBusError error; ServiceBrowserInfo *i = userdata; assert(c); assert(m); assert(i); dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); /* Introspection */ if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.ServiceBrowser.xml"); /* Access control */ if (strcmp(dbus_message_get_sender(m), i->client->name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_ACCESS_DENIED, NULL); if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, "Free")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing ServiceBrowser::Free message"); goto fail; } avahi_dbus_service_browser_free(i); return avahi_dbus_respond_ok(c, m); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } void avahi_dbus_service_browser_callback(AvahiSServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AvahiLookupResultFlags flags, void* userdata) { ServiceBrowserInfo *i = userdata; DBusMessage *m; int32_t i_interface, i_protocol; uint32_t u_flags; assert(b); assert(i); m = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, avahi_dbus_map_browse_signal_name(event)); if (!m) { avahi_log_error("Failed allocate message"); return; } if (event == AVAHI_BROWSER_NEW) { /* Patch in AVAHI_LOOKUP_RESULT_OUR_OWN */ if (avahi_dbus_is_our_own_service(i->client, interface, protocol, name, type, domain) > 0) flags |= AVAHI_LOOKUP_RESULT_OUR_OWN; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (event == AVAHI_BROWSER_NEW || event == AVAHI_BROWSER_REMOVE) { assert(name); assert(type); assert(domain); dbus_message_append_args( m, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); } else if (event == AVAHI_BROWSER_FAILURE) avahi_dbus_append_server_error(m); dbus_message_set_destination(m, i->client->name); dbus_connection_send(server->bus, m, NULL); dbus_message_unref(m); } avahi-0.7/avahi-daemon/PaxHeaders.10109/sd-daemon.h0000644000000000000000000000013213130651643016552 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.527978419 avahi-0.7/avahi-daemon/sd-daemon.h0000644000175000017500000002411713130651643020166 0ustar00lathiatlathiat00000000000000/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ #ifndef foosddaemonhfoo #define foosddaemonhfoo /*** Copyright 2010 Lennart Poettering Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ***/ #include #include #ifdef __cplusplus extern "C" { #endif /* Reference implementation of a few systemd related interfaces for writing daemons. These interfaces are trivial to implement. To simplify porting we provide this reference implementation. Applications are welcome to reimplement the algorithms described here if they do not want to include these two source files. The following functionality is provided: - Support for logging with log levels on stderr - File descriptor passing for socket-based activation - Daemon startup and status notification - Detection of systemd boots You may compile this with -DDISABLE_SYSTEMD to disable systemd support. This makes all those calls NOPs that are directly related to systemd (i.e. only sd_is_xxx() will stay useful). Since this is drop-in code we don't want any of our symbols to be exported in any case. Hence we declare hidden visibility for all of them. You may find an up-to-date version of these source files online: http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c This should compile on non-Linux systems, too, but with the exception of the sd_is_xxx() calls all functions will become NOPs. See sd-daemon(7) for more information. */ #ifndef _sd_printf_attr_ #if __GNUC__ >= 4 #define _sd_printf_attr_(a,b) __attribute__ ((format (printf, a, b))) #else #define _sd_printf_attr_(a,b) #endif #endif #ifndef _sd_hidden_ #if (__GNUC__ >= 4) && !defined(SD_EXPORT_SYMBOLS) #define _sd_hidden_ __attribute__ ((visibility("hidden"))) #else #define _sd_hidden_ #endif #endif /* Log levels for usage on stderr: fprintf(stderr, SD_NOTICE "Hello World!\n"); This is similar to printk() usage in the kernel. */ #define SD_EMERG "<0>" /* system is unusable */ #define SD_ALERT "<1>" /* action must be taken immediately */ #define SD_CRIT "<2>" /* critical conditions */ #define SD_ERR "<3>" /* error conditions */ #define SD_WARNING "<4>" /* warning conditions */ #define SD_NOTICE "<5>" /* normal but significant condition */ #define SD_INFO "<6>" /* informational */ #define SD_DEBUG "<7>" /* debug-level messages */ /* The first passed file descriptor is fd 3 */ #define SD_LISTEN_FDS_START 3 /* Returns how many file descriptors have been passed, or a negative errno code on failure. Optionally, removes the $LISTEN_FDS and $LISTEN_PID file descriptors from the environment (recommended, but problematic in threaded environments). If r is the return value of this function you'll find the file descriptors passed as fds SD_LISTEN_FDS_START to SD_LISTEN_FDS_START+r-1. Returns a negative errno style error code on failure. This function call ensures that the FD_CLOEXEC flag is set for the passed file descriptors, to make sure they are not passed on to child processes. If FD_CLOEXEC shall not be set, the caller needs to unset it after this call for all file descriptors that are used. See sd_listen_fds(3) for more information. */ int sd_listen_fds(int unset_environment) _sd_hidden_; /* Helper call for identifying a passed file descriptor. Returns 1 if the file descriptor is a FIFO in the file system stored under the specified path, 0 otherwise. If path is NULL a path name check will not be done and the call only verifies if the file descriptor refers to a FIFO. Returns a negative errno style error code on failure. See sd_is_fifo(3) for more information. */ int sd_is_fifo(int fd, const char *path) _sd_hidden_; /* Helper call for identifying a passed file descriptor. Returns 1 if the file descriptor is a socket of the specified family (AF_INET, ...) and type (SOCK_DGRAM, SOCK_STREAM, ...), 0 otherwise. If family is 0 a socket family check will not be done. If type is 0 a socket type check will not be done and the call only verifies if the file descriptor refers to a socket. If listening is > 0 it is verified that the socket is in listening mode. (i.e. listen() has been called) If listening is == 0 it is verified that the socket is not in listening mode. If listening is < 0 no listening mode check is done. Returns a negative errno style error code on failure. See sd_is_socket(3) for more information. */ int sd_is_socket(int fd, int family, int type, int listening) _sd_hidden_; /* Helper call for identifying a passed file descriptor. Returns 1 if the file descriptor is an Internet socket, of the specified family (either AF_INET or AF_INET6) and the specified type (SOCK_DGRAM, SOCK_STREAM, ...), 0 otherwise. If version is 0 a protocol version check is not done. If type is 0 a socket type check will not be done. If port is 0 a socket port check will not be done. The listening flag is used the same way as in sd_is_socket(). Returns a negative errno style error code on failure. See sd_is_socket_inet(3) for more information. */ int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) _sd_hidden_; /* Helper call for identifying a passed file descriptor. Returns 1 if the file descriptor is an AF_UNIX socket of the specified type (SOCK_DGRAM, SOCK_STREAM, ...) and path, 0 otherwise. If type is 0 a socket type check will not be done. If path is NULL a socket path check will not be done. For normal AF_UNIX sockets set length to 0. For abstract namespace sockets set length to the length of the socket name (including the initial 0 byte), and pass the full socket path in path (including the initial 0 byte). The listening flag is used the same way as in sd_is_socket(). Returns a negative errno style error code on failure. See sd_is_socket_unix(3) for more information. */ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t length) _sd_hidden_; /* Informs systemd about changed daemon state. This takes a number of newline separated environment-style variable assignments in a string. The following variables are known: READY=1 Tells systemd that daemon startup is finished (only relevant for services of Type=notify). The passed argument is a boolean "1" or "0". Since there is little value in signaling non-readiness the only value daemons should send is "READY=1". STATUS=... Passes a single-line status string back to systemd that describes the daemon state. This is free-from and can be used for various purposes: general state feedback, fsck-like programs could pass completion percentages and failing programs could pass a human readable error message. Example: "STATUS=Completed 66% of file system check..." ERRNO=... If a daemon fails, the errno-style error code, formatted as string. Example: "ERRNO=2" for ENOENT. BUSERROR=... If a daemon fails, the D-Bus error-style error code. Example: "BUSERROR=org.freedesktop.DBus.Error.TimedOut" MAINPID=... The main pid of a daemon, in case systemd did not fork off the process itself. Example: "MAINPID=4711" Daemons can choose to send additional variables. However, it is recommended to prefix variable names not listed above with X_. Returns a negative errno-style error code on failure. Returns > 0 if systemd could be notified, 0 if it couldn't possibly because systemd is not running. Example: When a daemon finished starting up, it could issue this call to notify systemd about it: sd_notify(0, "READY=1"); See sd_notifyf() for more complete examples. See sd_notify(3) for more information. */ int sd_notify(int unset_environment, const char *state) _sd_hidden_; /* Similar to sd_notify() but takes a format string. Example 1: A daemon could send the following after initialization: sd_notifyf(0, "READY=1\n" "STATUS=Processing requests...\n" "MAINPID=%lu", (unsigned long) getpid()); Example 2: A daemon could send the following shortly before exiting, on failure: sd_notifyf(0, "STATUS=Failed to start up: %s\n" "ERRNO=%i", strerror(errno), errno); See sd_notifyf(3) for more information. */ int sd_notifyf(int unset_environment, const char *format, ...) _sd_printf_attr_(2,3) _sd_hidden_; /* Returns > 0 if the system was booted with systemd. Returns < 0 on error. Returns 0 if the system was not booted with systemd. Note that all of the functions above handle non-systemd boots just fine. You should NOT protect them with a call to this function. Also note that this function checks whether the system, not the user session is controlled by systemd. However the functions above work for both user and system services. See sd_booted(3) for more information. */ int sd_booted(void) _sd_hidden_; #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-async-service-resolver.c0000644000000000000000000000013213130651643022243 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.535978239 avahi-0.7/avahi-daemon/dbus-async-service-resolver.c0000644000175000017500000001236413130651643023660 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" void avahi_dbus_async_service_resolver_free(AsyncServiceResolverInfo *i) { assert(i); if (i->service_resolver) avahi_s_service_resolver_free(i->service_resolver); if (i->path) { dbus_connection_unregister_object_path(server->bus, i->path); avahi_free(i->path); } AVAHI_LLIST_REMOVE(AsyncServiceResolverInfo, async_service_resolvers, i->client->async_service_resolvers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } void avahi_dbus_async_service_resolver_callback( AvahiSServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, void* userdata) { AsyncServiceResolverInfo *i = userdata; DBusMessage *reply; assert(r); assert(i); reply = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER, avahi_dbus_map_resolve_signal_name(event)); if (!reply) { avahi_log_error("Failed allocate message"); return; } if (event == AVAHI_RESOLVER_FOUND) { char t[AVAHI_ADDRESS_STR_MAX], *pt = t; int32_t i_interface, i_protocol, i_aprotocol; uint32_t u_flags; assert(host_name); /* avahi_log_debug(__FILE__": [%s] Successfully resolved service <%s.%s.%s>", i->path, name, type, domain); */ if (a) avahi_address_snprint(t, sizeof(t), a); else t[0] = 0; if (!name) name = ""; if (avahi_dbus_is_our_own_service(i->client, interface, protocol, name, type, domain) > 0) flags |= AVAHI_LOOKUP_RESULT_OUR_OWN; i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; if (a) i_aprotocol = (int32_t) a->proto; else i_aprotocol = AVAHI_PROTO_UNSPEC; u_flags = (uint32_t) flags; dbus_message_append_args( reply, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_STRING, &host_name, DBUS_TYPE_INT32, &i_aprotocol, DBUS_TYPE_STRING, &pt, DBUS_TYPE_UINT16, &port, DBUS_TYPE_INVALID); avahi_dbus_append_string_list(reply, txt); dbus_message_append_args( reply, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); } else { assert(event == AVAHI_RESOLVER_FAILURE); avahi_dbus_append_server_error(reply); } dbus_message_set_destination(reply, i->client->name); dbus_connection_send(server->bus, reply, NULL); dbus_message_unref(reply); } DBusHandlerResult avahi_dbus_msg_async_service_resolver_impl(DBusConnection *c, DBusMessage *m, void *userdata) { DBusError error; AsyncServiceResolverInfo *i = userdata; assert(c); assert(m); assert(i); dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); /* Introspection */ if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.ServiceResolver.xml"); /* Access control */ if (strcmp(dbus_message_get_sender(m), i->client->name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_ACCESS_DENIED, NULL); if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER, "Free")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing ServiceResolver::Free message"); goto fail; } avahi_dbus_async_service_resolver_free(i); return avahi_dbus_respond_ok(c, m); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } avahi-0.7/avahi-daemon/PaxHeaders.10109/ini-file-parser.h0000644000000000000000000000013213130651643017671 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.523978509 avahi-0.7/avahi-daemon/ini-file-parser.h0000644000175000017500000000276413130651643021311 0ustar00lathiatlathiat00000000000000#ifndef fooinifileparserhfoo #define fooinifileparserhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include typedef struct AvahiIniFile AvahiIniFile; typedef struct AvahiIniFilePair AvahiIniFilePair; typedef struct AvahiIniFileGroup AvahiIniFileGroup; struct AvahiIniFilePair { AVAHI_LLIST_FIELDS(AvahiIniFilePair, pairs); char *key, *value; }; struct AvahiIniFileGroup { AVAHI_LLIST_FIELDS(AvahiIniFileGroup, groups); char *name; AVAHI_LLIST_HEAD(AvahiIniFilePair, pairs); unsigned n_pairs; }; struct AvahiIniFile { AVAHI_LLIST_HEAD(AvahiIniFileGroup, groups); unsigned n_groups; }; AvahiIniFile* avahi_ini_file_load(const char *fname); void avahi_ini_file_free(AvahiIniFile *f); char** avahi_split_csv(const char *t); void avahi_strfreev(char **); #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/main.h0000644000000000000000000000013213130651643015627 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.519978599 avahi-0.7/avahi-daemon/main.h0000644000175000017500000000170013130651643017234 0ustar00lathiatlathiat00000000000000#ifndef foomainhfoo #define foomainhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include extern AvahiServer *avahi_server; extern AvahiSimplePoll *simple_poll_api; extern int nss_support; #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-async-host-name-resolver.c0000644000000000000000000000013213130651643022476 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.535978239 avahi-0.7/avahi-daemon/dbus-async-host-name-resolver.c0000644000175000017500000001070713130651643024112 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" void avahi_dbus_async_host_name_resolver_free(AsyncHostNameResolverInfo *i) { assert(i); if (i->host_name_resolver) avahi_s_host_name_resolver_free(i->host_name_resolver); if (i->path) { dbus_connection_unregister_object_path(server->bus, i->path); avahi_free(i->path); } AVAHI_LLIST_REMOVE(AsyncHostNameResolverInfo, async_host_name_resolvers, i->client->async_host_name_resolvers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } void avahi_dbus_async_host_name_resolver_callback(AvahiSHostNameResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *host_name, const AvahiAddress *a, AvahiLookupResultFlags flags, void* userdata) { AsyncHostNameResolverInfo *i = userdata; DBusMessage *reply; assert(r); assert(i); reply = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_HOST_NAME_RESOLVER, avahi_dbus_map_resolve_signal_name(event)); if (!reply) { avahi_log_error("Failed allocate message"); return; } if (event == AVAHI_RESOLVER_FOUND) { char t[AVAHI_ADDRESS_STR_MAX], *pt = t; int32_t i_interface, i_protocol, i_aprotocol; uint32_t u_flags; assert(a); assert(host_name); avahi_address_snprint(t, sizeof(t), a); i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; i_aprotocol = (int32_t) a->proto; u_flags = (uint32_t) flags; dbus_message_append_args( reply, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &host_name, DBUS_TYPE_INT32, &i_aprotocol, DBUS_TYPE_STRING, &pt, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); } else { assert(event == AVAHI_RESOLVER_FAILURE); avahi_dbus_append_server_error(reply); } dbus_message_set_destination(reply, i->client->name); dbus_connection_send(server->bus, reply, NULL); dbus_message_unref(reply); } DBusHandlerResult avahi_dbus_msg_async_host_name_resolver_impl(DBusConnection *c, DBusMessage *m, void *userdata) { DBusError error; AsyncHostNameResolverInfo *i = userdata; assert(c); assert(m); assert(i); dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); /* Introspection */ if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.HostNameResolver.xml"); /* Access control */ if (strcmp(dbus_message_get_sender(m), i->client->name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_ACCESS_DENIED, NULL); if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_HOST_NAME_RESOLVER, "Free")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing HostNameResolver::Free message"); goto fail; } avahi_dbus_async_host_name_resolver_free(i); return avahi_dbus_respond_ok(c, m); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-protocol.h0000644000000000000000000000013113130651643017476 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 29 ctime=1499681850.53197833 avahi-0.7/avahi-daemon/dbus-protocol.h0000644000175000017500000000227713130651643021116 0ustar00lathiatlathiat00000000000000#ifndef foodbusprotocolhfoo #define foodbusprotocolhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ int dbus_protocol_setup(const AvahiPoll *poll_api, int _disable_user_service_publishing, int _n_clients_max, int _n_objects_per_client_max, int _n_entries_per_entry_group_max, int force); void dbus_protocol_shutdown(void); void dbus_protocol_server_state_changed(AvahiServerState state); #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-util.c0000644000000000000000000000013113130651643016605 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 29 ctime=1499681850.53197833 avahi-0.7/avahi-daemon/dbus-util.c0000644000175000017500000002555213130651643020226 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #ifdef ENABLE_CHROOT #include "chroot.h" #endif #include "main.h" #include "dbus-util.h" DBusHandlerResult avahi_dbus_respond_error(DBusConnection *c, DBusMessage *m, int error, const char *text) { DBusMessage *reply; assert(-error > -AVAHI_OK); assert(-error < -AVAHI_ERR_MAX); if (!text) text = avahi_strerror(error); reply = dbus_message_new_error(m, avahi_error_number_to_dbus(error), text); if (!reply) { avahi_log_error("Failed allocate message"); return DBUS_HANDLER_RESULT_NEED_MEMORY; } dbus_connection_send(c, reply, NULL); dbus_message_unref(reply); avahi_log_debug(__FILE__": Responding error '%s' (%i)", text, error); return DBUS_HANDLER_RESULT_HANDLED; } DBusHandlerResult avahi_dbus_respond_string(DBusConnection *c, DBusMessage *m, const char *text) { DBusMessage *reply; reply = dbus_message_new_method_return(m); if (!reply) { avahi_log_error("Failed allocate message"); return DBUS_HANDLER_RESULT_NEED_MEMORY; } dbus_message_append_args(reply, DBUS_TYPE_STRING, &text, DBUS_TYPE_INVALID); dbus_connection_send(c, reply, NULL); dbus_message_unref(reply); return DBUS_HANDLER_RESULT_HANDLED; } DBusHandlerResult avahi_dbus_respond_int32(DBusConnection *c, DBusMessage *m, int32_t i) { DBusMessage *reply; reply = dbus_message_new_method_return(m); if (!reply) { avahi_log_error("Failed allocate message"); return DBUS_HANDLER_RESULT_NEED_MEMORY; } dbus_message_append_args(reply, DBUS_TYPE_INT32, &i, DBUS_TYPE_INVALID); dbus_connection_send(c, reply, NULL); dbus_message_unref(reply); return DBUS_HANDLER_RESULT_HANDLED; } DBusHandlerResult avahi_dbus_respond_uint32(DBusConnection *c, DBusMessage *m, uint32_t u) { DBusMessage *reply; reply = dbus_message_new_method_return(m); if (!reply) { avahi_log_error("Failed allocate message"); return DBUS_HANDLER_RESULT_NEED_MEMORY; } dbus_message_append_args(reply, DBUS_TYPE_UINT32, &u, DBUS_TYPE_INVALID); dbus_connection_send(c, reply, NULL); dbus_message_unref(reply); return DBUS_HANDLER_RESULT_HANDLED; } DBusHandlerResult avahi_dbus_respond_boolean(DBusConnection *c, DBusMessage *m, int b) { DBusMessage *reply; reply = dbus_message_new_method_return(m); if (!reply) { avahi_log_error("Failed allocate message"); return DBUS_HANDLER_RESULT_NEED_MEMORY; } dbus_message_append_args(reply, DBUS_TYPE_BOOLEAN, &b, DBUS_TYPE_INVALID); dbus_connection_send(c, reply, NULL); dbus_message_unref(reply); return DBUS_HANDLER_RESULT_HANDLED; } DBusHandlerResult avahi_dbus_respond_ok(DBusConnection *c, DBusMessage *m) { DBusMessage *reply; reply = dbus_message_new_method_return(m); if (!reply) { avahi_log_error("Failed allocate message"); return DBUS_HANDLER_RESULT_NEED_MEMORY; } dbus_connection_send(c, reply, NULL); dbus_message_unref(reply); return DBUS_HANDLER_RESULT_HANDLED; } DBusHandlerResult avahi_dbus_respond_path(DBusConnection *c, DBusMessage *m, const char *path) { DBusMessage *reply; reply = dbus_message_new_method_return(m); if (!reply) { avahi_log_error("Failed allocate message"); return DBUS_HANDLER_RESULT_NEED_MEMORY; } dbus_message_append_args(reply, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID); dbus_connection_send(c, reply, NULL); dbus_message_unref(reply); return DBUS_HANDLER_RESULT_HANDLED; } void avahi_dbus_append_server_error(DBusMessage *reply) { const char *t; t = avahi_error_number_to_dbus(avahi_server_errno(avahi_server)); dbus_message_append_args( reply, DBUS_TYPE_STRING, &t, DBUS_TYPE_INVALID); } const char *avahi_dbus_map_browse_signal_name(AvahiBrowserEvent e) { switch (e) { case AVAHI_BROWSER_NEW : return "ItemNew"; case AVAHI_BROWSER_REMOVE : return "ItemRemove"; case AVAHI_BROWSER_FAILURE : return "Failure"; case AVAHI_BROWSER_CACHE_EXHAUSTED : return "CacheExhausted"; case AVAHI_BROWSER_ALL_FOR_NOW : return "AllForNow"; } abort(); } const char *avahi_dbus_map_resolve_signal_name(AvahiResolverEvent e) { switch (e) { case AVAHI_RESOLVER_FOUND : return "Found"; case AVAHI_RESOLVER_FAILURE : return "Failure"; } abort(); } static char *file_get_contents(const char *fname) { int fd = -1; struct stat st; ssize_t size; char *buf = NULL; assert(fname); #ifdef ENABLE_CHROOT fd = avahi_chroot_helper_get_fd(fname); #else fd = open(fname, O_RDONLY); #endif if (fd < 0) { avahi_log_error("Failed to open %s: %s", fname, strerror(errno)); goto fail; } if (fstat(fd, &st) < 0) { avahi_log_error("stat(%s) failed: %s", fname, strerror(errno)); goto fail; } if (!(S_ISREG(st.st_mode))) { avahi_log_error("Invalid file %s", fname); goto fail; } if (st.st_size > 1024*1024) { /** 1MB */ avahi_log_error("File too large %s", fname); goto fail; } buf = avahi_new(char, st.st_size+1); if ((size = read(fd, buf, st.st_size)) < 0) { avahi_log_error("read() failed: %s\n", strerror(errno)); goto fail; } buf[size] = 0; close(fd); return buf; fail: if (fd >= 0) close(fd); if (buf) avahi_free(buf); return NULL; } DBusHandlerResult avahi_dbus_handle_introspect(DBusConnection *c, DBusMessage *m, const char *fname) { char *contents, *path; DBusError error; assert(c); assert(m); assert(fname); dbus_error_init(&error); if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_error("Error parsing Introspect message: %s", error.message); goto fail; } path = avahi_strdup_printf("%s/%s", AVAHI_DBUS_INTROSPECTION_DIR, fname); contents = file_get_contents(path); avahi_free(path); if (!contents) { avahi_log_error("Failed to load introspection data."); goto fail; } avahi_dbus_respond_string(c, m, contents); avahi_free(contents); return DBUS_HANDLER_RESULT_HANDLED; fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } void avahi_dbus_append_string_list(DBusMessage *reply, AvahiStringList *txt) { AvahiStringList *p; DBusMessageIter iter, sub; assert(reply); dbus_message_iter_init_append(reply, &iter); dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "ay", &sub); for (p = txt; p; p = p->next) { DBusMessageIter sub2; const uint8_t *data = p->text; dbus_message_iter_open_container(&sub, DBUS_TYPE_ARRAY, "y", &sub2); dbus_message_iter_append_fixed_array(&sub2, DBUS_TYPE_BYTE, &data, p->size); dbus_message_iter_close_container(&sub, &sub2); } dbus_message_iter_close_container(&iter, &sub); } int avahi_dbus_read_rdata(DBusMessage *m, int idx, void **rdata, uint32_t *size) { DBusMessageIter iter, sub; int n, j; uint8_t *k; assert(m); dbus_message_iter_init(m, &iter); for (j = 0; j < idx; j++) dbus_message_iter_next(&iter); if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_ARRAY || dbus_message_iter_get_element_type(&iter) != DBUS_TYPE_BYTE) goto fail; dbus_message_iter_recurse(&iter, &sub); dbus_message_iter_get_fixed_array(&sub, &k, &n); *rdata = k; *size = n; return 0; fail: avahi_log_warn("Error parsing data"); *rdata = NULL; size = 0; return -1; } int avahi_dbus_read_strlst(DBusMessage *m, int idx, AvahiStringList **l) { DBusMessageIter iter, sub; int j; AvahiStringList *strlst = NULL; assert(m); assert(l); dbus_message_iter_init(m, &iter); for (j = 0; j < idx; j++) dbus_message_iter_next(&iter); if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_ARRAY || dbus_message_iter_get_element_type(&iter) != DBUS_TYPE_ARRAY) goto fail; dbus_message_iter_recurse(&iter, &sub); for (;;) { int at, n; const uint8_t *k; DBusMessageIter sub2; if ((at = dbus_message_iter_get_arg_type(&sub)) == DBUS_TYPE_INVALID) break; assert(at == DBUS_TYPE_ARRAY); if (dbus_message_iter_get_element_type(&sub) != DBUS_TYPE_BYTE) goto fail; dbus_message_iter_recurse(&sub, &sub2); k = (const uint8_t*) ""; n = 0; dbus_message_iter_get_fixed_array(&sub2, &k, &n); if (!k) k = (const uint8_t*) ""; strlst = avahi_string_list_add_arbitrary(strlst, k, n); dbus_message_iter_next(&sub); } *l = strlst; return 0; fail: avahi_log_warn("Error parsing TXT data"); avahi_string_list_free(strlst); *l = NULL; return -1; } int avahi_dbus_is_our_own_service(Client *c, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain) { AvahiSEntryGroup *g; if (avahi_server_get_group_of_service(avahi_server, interface, protocol, name, type, domain, &g) == AVAHI_OK) { EntryGroupInfo *egi; for (egi = c->entry_groups; egi; egi = egi->entry_groups_next) if (egi->entry_group == g) return 1; } return 0; } int avahi_dbus_append_rdata(DBusMessage *message, const void *rdata, size_t size) { DBusMessageIter iter, sub; assert(message); dbus_message_iter_init_append(message, &iter); if (!(dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE_AS_STRING, &sub)) || !(dbus_message_iter_append_fixed_array(&sub, DBUS_TYPE_BYTE, &rdata, size)) || !(dbus_message_iter_close_container(&iter, &sub))) return -1; return 0; } avahi-0.7/avahi-daemon/PaxHeaders.10109/chroot.c0000644000000000000000000000013213130651643016174 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.527978419 avahi-0.7/avahi-daemon/chroot.c0000644000175000017500000002537313130651643017615 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include "chroot.h" #include "caps.h" #include "setproctitle.h" enum { AVAHI_CHROOT_SUCCESS = 0, AVAHI_CHROOT_FAILURE, AVAHI_CHROOT_GET_RESOLV_CONF, #ifdef HAVE_DBUS AVAHI_CHROOT_GET_SERVER_INTROSPECT, AVAHI_CHROOT_GET_ENTRY_GROUP_INTROSPECT, AVAHI_CHROOT_GET_ADDRESS_RESOLVER_INTROSPECT, AVAHI_CHROOT_GET_DOMAIN_BROWSER_INTROSPECT, AVAHI_CHROOT_GET_HOST_NAME_RESOLVER_INTROSPECT, AVAHI_CHROOT_GET_SERVICE_BROWSER_INTROSPECT, AVAHI_CHROOT_GET_SERVICE_RESOLVER_INTROSPECT, AVAHI_CHROOT_GET_SERVICE_TYPE_BROWSER_INTROSPECT, AVAHI_CHROOT_GET_RECORD_BROWSER_INTROSPECT, #endif AVAHI_CHROOT_UNLINK_PID, AVAHI_CHROOT_UNLINK_SOCKET, AVAHI_CHROOT_MAX }; static const char* const get_file_name_table[AVAHI_CHROOT_MAX] = { NULL, NULL, "/etc/resolv.conf", #ifdef HAVE_DBUS AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.Server.xml", AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.EntryGroup.xml", AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.AddressResolver.xml", AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.DomainBrowser.xml", AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.HostNameResolver.xml", AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.ServiceBrowser.xml", AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.ServiceResolver.xml", AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.ServiceTypeBrowser.xml", AVAHI_DBUS_INTROSPECTION_DIR"/org.freedesktop.Avahi.RecordBrowser.xml", #endif NULL, NULL }; static const char *const unlink_file_name_table[AVAHI_CHROOT_MAX] = { NULL, NULL, NULL, #ifdef HAVE_DBUS NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, #endif AVAHI_DAEMON_RUNTIME_DIR"/pid", AVAHI_SOCKET }; static int helper_fd = -1; static int send_fd(int fd, int payload_fd) { uint8_t dummy = AVAHI_CHROOT_SUCCESS; struct iovec iov; struct msghdr msg; union { struct cmsghdr hdr; char buf[CMSG_SPACE(sizeof(int))]; } cmsg; /* Send a file descriptor over the socket */ memset(&iov, 0, sizeof(iov)); memset(&msg, 0, sizeof(msg)); memset(&cmsg, 0, sizeof(cmsg)); iov.iov_base = &dummy; iov.iov_len = sizeof(dummy); msg.msg_iov = &iov; msg.msg_iovlen = 1; msg.msg_name = NULL; msg.msg_namelen = 0; msg.msg_control = &cmsg; msg.msg_controllen = sizeof(cmsg); msg.msg_flags = 0; cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int)); cmsg.hdr.cmsg_level = SOL_SOCKET; cmsg.hdr.cmsg_type = SCM_RIGHTS; *((int*) CMSG_DATA(&cmsg.hdr)) = payload_fd; if (sendmsg(fd, &msg, 0) < 0) { avahi_log_error("sendmsg() failed: %s", strerror(errno)); return -1; } return 0; } static int recv_fd(int fd) { uint8_t dummy; struct iovec iov; struct msghdr msg; union { struct cmsghdr hdr; char buf[CMSG_SPACE(sizeof(int))]; } cmsg; /* Receive a file descriptor from a socket */ memset(&iov, 0, sizeof(iov)); memset(&msg, 0, sizeof(msg)); memset(&cmsg, 0, sizeof(cmsg)); iov.iov_base = &dummy; iov.iov_len = sizeof(dummy); msg.msg_iov = &iov; msg.msg_iovlen = 1; msg.msg_name = NULL; msg.msg_namelen = 0; msg.msg_control = cmsg.buf; msg.msg_controllen = sizeof(cmsg); msg.msg_flags = 0; cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int)); cmsg.hdr.cmsg_level = SOL_SOCKET; cmsg.hdr.cmsg_type = SCM_RIGHTS; *((int*) CMSG_DATA(&cmsg.hdr)) = -1; if (recvmsg(fd, &msg, 0) <= 0) { avahi_log_error("recvmsg() failed: %s", strerror(errno)); return -1; } else { struct cmsghdr* h; if (dummy != AVAHI_CHROOT_SUCCESS) { errno = EINVAL; return -1; } if (!(h = CMSG_FIRSTHDR(&msg))) { avahi_log_error("recvmsg() sent no fd."); errno = EINVAL; return -1; } assert(h->cmsg_len = CMSG_LEN(sizeof(int))); assert(h->cmsg_level = SOL_SOCKET); assert(h->cmsg_type == SCM_RIGHTS); return *((int*)CMSG_DATA(h)); } } static int helper_main(int fd) { int ret = 1; assert(fd >= 0); /* This is the main function of our helper process which is forked * off to access files outside the chroot environment. Keep in * mind that this code is security sensitive! */ avahi_log_debug(__FILE__": chroot() helper started"); for (;;) { uint8_t command; ssize_t r; if ((r = read(fd, &command, sizeof(command))) <= 0) { /* EOF? */ if (r == 0) break; avahi_log_error(__FILE__": read() failed: %s", strerror(errno)); goto fail; } assert(r == sizeof(command)); avahi_log_debug(__FILE__": chroot() helper got command %02x", command); switch (command) { #ifdef HAVE_DBUS case AVAHI_CHROOT_GET_SERVER_INTROSPECT: case AVAHI_CHROOT_GET_ENTRY_GROUP_INTROSPECT: case AVAHI_CHROOT_GET_ADDRESS_RESOLVER_INTROSPECT: case AVAHI_CHROOT_GET_DOMAIN_BROWSER_INTROSPECT: case AVAHI_CHROOT_GET_HOST_NAME_RESOLVER_INTROSPECT: case AVAHI_CHROOT_GET_SERVICE_BROWSER_INTROSPECT: case AVAHI_CHROOT_GET_SERVICE_RESOLVER_INTROSPECT: case AVAHI_CHROOT_GET_SERVICE_TYPE_BROWSER_INTROSPECT: case AVAHI_CHROOT_GET_RECORD_BROWSER_INTROSPECT: #endif case AVAHI_CHROOT_GET_RESOLV_CONF: { int payload; if ((payload = open(get_file_name_table[(int) command], O_RDONLY)) < 0) { uint8_t c = AVAHI_CHROOT_FAILURE; avahi_log_error(__FILE__": open() failed: %s", strerror(errno)); if (write(fd, &c, sizeof(c)) != sizeof(c)) { avahi_log_error(__FILE__": write() failed: %s\n", strerror(errno)); goto fail; } break; } if (send_fd(fd, payload) < 0) goto fail; close(payload); break; } case AVAHI_CHROOT_UNLINK_SOCKET: case AVAHI_CHROOT_UNLINK_PID: { uint8_t c = AVAHI_CHROOT_SUCCESS; unlink(unlink_file_name_table[(int) command]); if (write(fd, &c, sizeof(c)) != sizeof(c)) { avahi_log_error(__FILE__": write() failed: %s\n", strerror(errno)); goto fail; } break; } default: avahi_log_error(__FILE__": Unknown command %02x.", command); break; } } ret = 0; fail: avahi_log_debug(__FILE__": chroot() helper exiting with return value %i", ret); return ret; } int avahi_chroot_helper_start(const char *argv0) { int sock[2]; pid_t pid; assert(helper_fd < 0); if (socketpair(AF_UNIX, SOCK_STREAM, 0, sock) < 0) { avahi_log_error("socketpair() failed: %s", strerror(errno)); return -1; } if ((pid = fork()) < 0) { close(sock[0]); close(sock[1]); avahi_log_error(__FILE__": fork() failed: %s", strerror(errno)); return -1; } else if (pid == 0) { /* Drop all remaining capabilities */ avahi_caps_drop_all(); avahi_set_proc_title(argv0, "%s: chroot helper", argv0); daemon_retval_done(); close(sock[0]); helper_main(sock[1]); _exit(0); } close(sock[1]); helper_fd = sock[0]; return 0; } void avahi_chroot_helper_shutdown(void) { if (helper_fd <= 0) return; close(helper_fd); helper_fd = -1; } int avahi_chroot_helper_get_fd(const char *fname) { if (helper_fd >= 0) { uint8_t command; for (command = 2; command < AVAHI_CHROOT_MAX; command++) if (get_file_name_table[(int) command] && strcmp(fname, get_file_name_table[(int) command]) == 0) break; if (command >= AVAHI_CHROOT_MAX) { avahi_log_error("chroot() helper accessed for invalid file name"); errno = EACCES; return -1; } assert(get_file_name_table[(int) command]); if (write(helper_fd, &command, sizeof(command)) < 0) { avahi_log_error("write() failed: %s\n", strerror(errno)); return -1; } return recv_fd(helper_fd); } else return open(fname, O_RDONLY); } FILE *avahi_chroot_helper_get_file(const char *fname) { FILE *f; int fd; if ((fd = avahi_chroot_helper_get_fd(fname)) < 0) return NULL; f = fdopen(fd, "r"); assert(f); return f; } int avahi_chroot_helper_unlink(const char *fname) { if (helper_fd >= 0) { uint8_t c, command; ssize_t r; for (command = 2; command < AVAHI_CHROOT_MAX; command++) if (unlink_file_name_table[(int) command] && strcmp(fname, unlink_file_name_table[(int) command]) == 0) break; if (command >= AVAHI_CHROOT_MAX) { avahi_log_error("chroot() helper accessed for invalid file name"); errno = EACCES; return -1; } if (write(helper_fd, &command, sizeof(command)) < 0 && (errno != EPIPE && errno != ECONNRESET)) { avahi_log_error("write() failed: %s\n", strerror(errno)); return -1; } if ((r = read(helper_fd, &c, sizeof(c))) < 0 && (errno != EPIPE && errno != ECONNRESET)) { avahi_log_error("read() failed: %s\n", r < 0 ? strerror(errno) : "EOF"); return -1; } return 0; } else return unlink(fname); } avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-async-address-resolver.c0000644000000000000000000000013113130651643022227 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 29 ctime=1499681850.53197833 avahi-0.7/avahi-daemon/dbus-async-address-resolver.c0000644000175000017500000001070413130651643023641 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" void avahi_dbus_async_address_resolver_free(AsyncAddressResolverInfo *i) { assert(i); if (i->address_resolver) avahi_s_address_resolver_free(i->address_resolver); if (i->path) { dbus_connection_unregister_object_path(server->bus, i->path); avahi_free(i->path); } AVAHI_LLIST_REMOVE(AsyncAddressResolverInfo, async_address_resolvers, i->client->async_address_resolvers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } void avahi_dbus_async_address_resolver_callback(AvahiSAddressResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *address, const char *host_name, AvahiLookupResultFlags flags, void* userdata) { AsyncAddressResolverInfo *i = userdata; DBusMessage *reply; assert(r); assert(i); reply = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_ADDRESS_RESOLVER, avahi_dbus_map_resolve_signal_name(event)); if (!reply) { avahi_log_error("Failed allocate message"); return; } if (event == AVAHI_RESOLVER_FOUND) { char t[AVAHI_ADDRESS_STR_MAX], *pt = t; int32_t i_interface, i_protocol, i_aprotocol; uint32_t u_flags; assert(address); assert(host_name); avahi_address_snprint(t, sizeof(t), address); i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; i_aprotocol = (int32_t) address->proto; u_flags = (uint32_t) flags; dbus_message_append_args( reply, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_INT32, &i_aprotocol, DBUS_TYPE_STRING, &pt, DBUS_TYPE_STRING, &host_name, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); } else { assert(event == AVAHI_RESOLVER_FAILURE); avahi_dbus_append_server_error(reply); } dbus_message_set_destination(reply, i->client->name); dbus_connection_send(server->bus, reply, NULL); dbus_message_unref(reply); } DBusHandlerResult avahi_dbus_msg_async_address_resolver_impl(DBusConnection *c, DBusMessage *m, void *userdata) { DBusError error; AsyncAddressResolverInfo *i = userdata; assert(c); assert(m); assert(i); dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); /* Introspection */ if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.AddressResolver.xml"); /* Access control */ if (strcmp(dbus_message_get_sender(m), i->client->name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_ACCESS_DENIED, NULL); if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ADDRESS_RESOLVER, "Free")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing AddressResolver::Free message"); goto fail; } avahi_dbus_async_address_resolver_free(i); return avahi_dbus_respond_ok(c, m); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-protocol.c0000644000000000000000000000013113130651643017471 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 29 ctime=1499681850.53197833 avahi-0.7/avahi-daemon/dbus-protocol.c0000644000175000017500000013043513130651643021107 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "dbus-protocol.h" #include "dbus-util.h" #include "dbus-internal.h" #include "main.h" /* #define VALGRIND_WORKAROUND 1 */ #define RECONNECT_MSEC 3000 Server *server = NULL; static int dbus_connect(void); static void dbus_disconnect(void); static void client_free(Client *c) { assert(server); assert(c); while (c->entry_groups) avahi_dbus_entry_group_free(c->entry_groups); while (c->sync_host_name_resolvers) avahi_dbus_sync_host_name_resolver_free(c->sync_host_name_resolvers); while (c->async_host_name_resolvers) avahi_dbus_async_host_name_resolver_free(c->async_host_name_resolvers); while (c->sync_address_resolvers) avahi_dbus_sync_address_resolver_free(c->sync_address_resolvers); while (c->async_address_resolvers) avahi_dbus_async_address_resolver_free(c->async_address_resolvers); while (c->domain_browsers) avahi_dbus_domain_browser_free(c->domain_browsers); while (c->service_type_browsers) avahi_dbus_service_type_browser_free(c->service_type_browsers); while (c->service_browsers) avahi_dbus_service_browser_free(c->service_browsers); while (c->sync_service_resolvers) avahi_dbus_sync_service_resolver_free(c->sync_service_resolvers); while (c->async_service_resolvers) avahi_dbus_async_service_resolver_free(c->async_service_resolvers); while (c->record_browsers) avahi_dbus_record_browser_free(c->record_browsers); assert(c->n_objects == 0); avahi_free(c->name); AVAHI_LLIST_REMOVE(Client, clients, server->clients, c); avahi_free(c); assert(server->n_clients >= 1); server->n_clients --; } static Client *client_get(const char *name, int create) { Client *client; assert(server); assert(name); for (client = server->clients; client; client = client->clients_next) if (!strcmp(name, client->name)) return client; if (!create) return NULL; if (server->n_clients >= server->n_clients_max) return NULL; /* If not existent yet, create a new entry */ client = avahi_new(Client, 1); client->id = server->current_id++; client->name = avahi_strdup(name); client->current_id = 0; client->n_objects = 0; AVAHI_LLIST_HEAD_INIT(EntryGroupInfo, client->entry_groups); AVAHI_LLIST_HEAD_INIT(SyncHostNameResolverInfo, client->sync_host_name_resolvers); AVAHI_LLIST_HEAD_INIT(AsyncHostNameResolverInfo, client->async_host_name_resolvers); AVAHI_LLIST_HEAD_INIT(SyncAddressResolverInfo, client->sync_address_resolvers); AVAHI_LLIST_HEAD_INIT(AsyncAddressResolverInfo, client->async_address_resolvers); AVAHI_LLIST_HEAD_INIT(DomainBrowserInfo, client->domain_browsers); AVAHI_LLIST_HEAD_INIT(ServiceTypeBrowserInfo, client->service_type_browsers); AVAHI_LLIST_HEAD_INIT(ServiceBrowserInfo, client->service_browsers); AVAHI_LLIST_HEAD_INIT(SyncServiceResolverInfo, client->sync_service_resolvers); AVAHI_LLIST_HEAD_INIT(AsyncServiceResolverInfo, client->async_service_resolvers); AVAHI_LLIST_HEAD_INIT(RecordBrowserInfo, client->record_browsers); AVAHI_LLIST_PREPEND(Client, clients, server->clients, client); server->n_clients++; assert(server->n_clients > 0); return client; } static void reconnect_callback(AvahiTimeout *t, AVAHI_GCC_UNUSED void *userdata) { assert(!server->bus); if (dbus_connect() < 0) { struct timeval tv; avahi_log_debug(__FILE__": Connection failed, retrying in %ims...", RECONNECT_MSEC); avahi_elapse_time(&tv, RECONNECT_MSEC, 0); server->poll_api->timeout_update(t, &tv); } else { avahi_log_debug(__FILE__": Successfully reconnected."); server->poll_api->timeout_update(t, NULL); } } static DBusHandlerResult msg_signal_filter_impl(AVAHI_GCC_UNUSED DBusConnection *c, DBusMessage *m, AVAHI_GCC_UNUSED void *userdata) { DBusError error; dbus_error_init(&error); /* avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", */ /* dbus_message_get_interface(m), */ /* dbus_message_get_path(m), */ /* dbus_message_get_member(m)); */ if (dbus_message_is_signal(m, DBUS_INTERFACE_LOCAL, "Disconnected")) { struct timeval tv; if (server->reconnect) { avahi_log_warn("Disconnected from D-Bus, trying to reconnect in %ims...", RECONNECT_MSEC); dbus_disconnect(); avahi_elapse_time(&tv, RECONNECT_MSEC, 0); if (server->reconnect_timeout) server->poll_api->timeout_update(server->reconnect_timeout, &tv); else server->reconnect_timeout = server->poll_api->timeout_new(server->poll_api, &tv, reconnect_callback, NULL); } else { avahi_log_warn("Disconnected from D-Bus, exiting."); raise(SIGTERM); } return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_signal(m, DBUS_INTERFACE_DBUS, "NameAcquired")) { char *name; if (!dbus_message_get_args(m, &error, DBUS_TYPE_STRING, &name, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing NameAcquired message"); goto fail; } /* avahi_log_info(__FILE__": name acquired (%s)", name); */ return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_signal(m, DBUS_INTERFACE_DBUS, "NameOwnerChanged")) { char *name, *old, *new; if (!dbus_message_get_args(m, &error, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &old, DBUS_TYPE_STRING, &new, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing NameOwnerChanged message"); goto fail; } if (!*new) { Client *client; if ((client = client_get(name, FALSE))) { avahi_log_debug(__FILE__": client %s vanished.", name); client_free(client); } } } fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } static DBusHandlerResult msg_server_impl(DBusConnection *c, DBusMessage *m, AVAHI_GCC_UNUSED void *userdata) { DBusError error; dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.Server.xml"); else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetHostName")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing Server::GetHostName message"); goto fail; } return avahi_dbus_respond_string(c, m, avahi_server_get_host_name(avahi_server)); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "SetHostName")) { char *name; if (!dbus_message_get_args(m, &error, DBUS_TYPE_STRING, &name, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing Server::SetHostName message"); goto fail; } if (avahi_server_set_host_name(avahi_server, name) < 0) return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); avahi_log_info("Changing host name to '%s'.", name); return avahi_dbus_respond_ok(c, m); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetDomainName")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing Server::GetDomainName message"); goto fail; } return avahi_dbus_respond_string(c, m, avahi_server_get_domain_name(avahi_server)); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetHostNameFqdn")) { if (!(dbus_message_get_args(m, &error, DBUS_TYPE_INVALID))) { avahi_log_warn("Error parsing Server::GetHostNameFqdn message"); goto fail; } return avahi_dbus_respond_string(c, m, avahi_server_get_host_name_fqdn(avahi_server)); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "IsNSSSupportAvailable")) { if (!(dbus_message_get_args(m, &error, DBUS_TYPE_INVALID))) { avahi_log_warn("Error parsing Server::IsNSSSupportAvailable message"); goto fail; } return avahi_dbus_respond_boolean(c, m, nss_support); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetVersionString")) { if (!(dbus_message_get_args(m, &error, DBUS_TYPE_INVALID))) { avahi_log_warn("Error parsing Server::GetVersionString message"); goto fail; } return avahi_dbus_respond_string(c, m, PACKAGE_STRING); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetAPIVersion")) { if (!(dbus_message_get_args(m, &error, DBUS_TYPE_INVALID))) { avahi_log_warn("Error parsing Server::GetAPIVersion message"); goto fail; } return avahi_dbus_respond_uint32(c, m, AVAHI_DBUS_API_VERSION); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetState")) { AvahiServerState state; if (!(dbus_message_get_args(m, &error, DBUS_TYPE_INVALID))) { avahi_log_warn("Error parsing Server::GetState message"); goto fail; } state = avahi_server_get_state(avahi_server); return avahi_dbus_respond_int32(c, m, (int32_t) state); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetLocalServiceCookie")) { if (!(dbus_message_get_args(m, &error, DBUS_TYPE_INVALID))) { avahi_log_warn("Error parsing Server::GetLocalServiceCookie message"); goto fail; } return avahi_dbus_respond_uint32(c, m, avahi_server_get_local_service_cookie(avahi_server)); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetNetworkInterfaceNameByIndex")) { int32_t idx; char name[IF_NAMESIZE]; if (!(dbus_message_get_args(m, &error, DBUS_TYPE_INT32, &idx, DBUS_TYPE_INVALID))) { avahi_log_warn("Error parsing Server::GetNetworkInterfaceNameByIndex message"); goto fail; } #ifdef VALGRIND_WORKAROUND return respond_string(c, m, "blah"); #else if ((!if_indextoname(idx, name))) { char txt[256]; snprintf(txt, sizeof(txt), "OS Error: %s", strerror(errno)); return avahi_dbus_respond_error(c, m, AVAHI_ERR_OS, txt); } return avahi_dbus_respond_string(c, m, name); #endif } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetNetworkInterfaceIndexByName")) { char *n; int32_t idx; if (!(dbus_message_get_args(m, &error, DBUS_TYPE_STRING, &n, DBUS_TYPE_INVALID)) || !n) { avahi_log_warn("Error parsing Server::GetNetworkInterfaceIndexByName message"); goto fail; } #ifdef VALGRIND_WORKAROUND return respond_int32(c, m, 1); #else if (!(idx = if_nametoindex(n))) { char txt[256]; snprintf(txt, sizeof(txt), "OS Error: %s", strerror(errno)); return avahi_dbus_respond_error(c, m, AVAHI_ERR_OS, txt); } return avahi_dbus_respond_int32(c, m, idx); #endif } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetAlternativeHostName")) { char *n, * t; if (!(dbus_message_get_args(m, &error, DBUS_TYPE_STRING, &n, DBUS_TYPE_INVALID)) || !n) { avahi_log_warn("Error parsing Server::GetAlternativeHostName message"); goto fail; } t = avahi_alternative_host_name(n); avahi_dbus_respond_string(c, m, t); avahi_free(t); return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetAlternativeServiceName")) { char *n, *t; if (!(dbus_message_get_args(m, &error, DBUS_TYPE_STRING, &n, DBUS_TYPE_INVALID)) || !n) { avahi_log_warn("Error parsing Server::GetAlternativeServiceName message"); goto fail; } t = avahi_alternative_service_name(n); avahi_dbus_respond_string(c, m, t); avahi_free(t); return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "EntryGroupNew")) { Client *client; EntryGroupInfo *i; static const DBusObjectPathVTable vtable = { NULL, avahi_dbus_msg_entry_group_impl, NULL, NULL, NULL, NULL }; if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing Server::EntryGroupNew message"); goto fail; } if (server->disable_user_service_publishing) return avahi_dbus_respond_error(c, m, AVAHI_ERR_NOT_PERMITTED, NULL); if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn("Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn("Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } i = avahi_new(EntryGroupInfo, 1); i->id = ++client->current_id; i->client = client; i->path = NULL; i->n_entries = 0; AVAHI_LLIST_PREPEND(EntryGroupInfo, entry_groups, client->entry_groups, i); client->n_objects++; if (!(i->entry_group = avahi_s_entry_group_new(avahi_server, avahi_dbus_entry_group_callback, i))) { avahi_dbus_entry_group_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } i->path = avahi_strdup_printf("/Client%u/EntryGroup%u", client->id, i->id); dbus_connection_register_object_path(c, i->path, &vtable, i); return avahi_dbus_respond_path(c, m, i->path); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "ResolveHostName")) { Client *client; int32_t interface, protocol, aprotocol; uint32_t flags; char *name; SyncHostNameResolverInfo *i; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_INT32, &aprotocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || !name) { avahi_log_warn("Error parsing Server::ResolveHostName message"); goto fail; } if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn("Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn("Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } i = avahi_new(SyncHostNameResolverInfo, 1); i->client = client; i->message = dbus_message_ref(m); AVAHI_LLIST_PREPEND(SyncHostNameResolverInfo, sync_host_name_resolvers, client->sync_host_name_resolvers, i); client->n_objects++; if (!(i->host_name_resolver = avahi_s_host_name_resolver_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, name, (AvahiProtocol) aprotocol, (AvahiLookupFlags) flags, avahi_dbus_sync_host_name_resolver_callback, i))) { avahi_dbus_sync_host_name_resolver_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "ResolveAddress")) { Client *client; int32_t interface, protocol; uint32_t flags; char *address; SyncAddressResolverInfo *i; AvahiAddress a; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &address, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || !address) { avahi_log_warn("Error parsing Server::ResolveAddress message"); goto fail; } if (!avahi_address_parse(address, AVAHI_PROTO_UNSPEC, &a)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_INVALID_ADDRESS, NULL); if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn("Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn("Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } i = avahi_new(SyncAddressResolverInfo, 1); i->client = client; i->message = dbus_message_ref(m); AVAHI_LLIST_PREPEND(SyncAddressResolverInfo, sync_address_resolvers, client->sync_address_resolvers, i); client->n_objects++; if (!(i->address_resolver = avahi_s_address_resolver_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, &a, (AvahiLookupFlags) flags, avahi_dbus_sync_address_resolver_callback, i))) { avahi_dbus_sync_address_resolver_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "DomainBrowserNew")) { Client *client; DomainBrowserInfo *i; static const DBusObjectPathVTable vtable = { NULL, avahi_dbus_msg_domain_browser_impl, NULL, NULL, NULL, NULL }; int32_t interface, protocol, type; uint32_t flags; char *domain; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &domain, DBUS_TYPE_INT32, &type, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || type < 0 || type >= AVAHI_DOMAIN_BROWSER_MAX) { avahi_log_warn("Error parsing Server::DomainBrowserNew message"); goto fail; } if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn("Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn("Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } if (!*domain) domain = NULL; i = avahi_new(DomainBrowserInfo, 1); i->id = ++client->current_id; i->client = client; i->path = NULL; AVAHI_LLIST_PREPEND(DomainBrowserInfo, domain_browsers, client->domain_browsers, i); client->n_objects++; if (!(i->domain_browser = avahi_s_domain_browser_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, domain, (AvahiDomainBrowserType) type, (AvahiLookupFlags) flags, avahi_dbus_domain_browser_callback, i))) { avahi_dbus_domain_browser_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } i->path = avahi_strdup_printf("/Client%u/DomainBrowser%u", client->id, i->id); dbus_connection_register_object_path(c, i->path, &vtable, i); return avahi_dbus_respond_path(c, m, i->path); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "ServiceTypeBrowserNew")) { Client *client; ServiceTypeBrowserInfo *i; static const DBusObjectPathVTable vtable = { NULL, avahi_dbus_msg_service_type_browser_impl, NULL, NULL, NULL, NULL }; int32_t interface, protocol; uint32_t flags; char *domain; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing Server::ServiceTypeBrowserNew message"); goto fail; } if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn("Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn("Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } if (!*domain) domain = NULL; i = avahi_new(ServiceTypeBrowserInfo, 1); i->id = ++client->current_id; i->client = client; i->path = NULL; AVAHI_LLIST_PREPEND(ServiceTypeBrowserInfo, service_type_browsers, client->service_type_browsers, i); client->n_objects++; if (!(i->service_type_browser = avahi_s_service_type_browser_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, domain, (AvahiLookupFlags) flags, avahi_dbus_service_type_browser_callback, i))) { avahi_dbus_service_type_browser_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } i->path = avahi_strdup_printf("/Client%u/ServiceTypeBrowser%u", client->id, i->id); dbus_connection_register_object_path(c, i->path, &vtable, i); return avahi_dbus_respond_path(c, m, i->path); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "ServiceBrowserNew")) { Client *client; ServiceBrowserInfo *i; static const DBusObjectPathVTable vtable = { NULL, avahi_dbus_msg_service_browser_impl, NULL, NULL, NULL, NULL }; int32_t interface, protocol; uint32_t flags; char *domain, *type; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || !type) { avahi_log_warn("Error parsing Server::ServiceBrowserNew message"); goto fail; } if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn("Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn("Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } if (!*domain) domain = NULL; i = avahi_new(ServiceBrowserInfo, 1); i->id = ++client->current_id; i->client = client; i->path = NULL; AVAHI_LLIST_PREPEND(ServiceBrowserInfo, service_browsers, client->service_browsers, i); client->n_objects++; if (!(i->service_browser = avahi_s_service_browser_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, type, domain, (AvahiLookupFlags) flags, avahi_dbus_service_browser_callback, i))) { avahi_dbus_service_browser_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } i->path = avahi_strdup_printf("/Client%u/ServiceBrowser%u", client->id, i->id); dbus_connection_register_object_path(c, i->path, &vtable, i); return avahi_dbus_respond_path(c, m, i->path); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "ResolveService")) { Client *client; int32_t interface, protocol, aprotocol; uint32_t flags; char *name, *type, *domain; SyncServiceResolverInfo *i; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_INT32, &aprotocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || !type) { avahi_log_warn("Error parsing Server::ResolveService message"); goto fail; } if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn("Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn("Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } if (!*domain) domain = NULL; if (!*name) name = NULL; i = avahi_new(SyncServiceResolverInfo, 1); i->client = client; i->message = dbus_message_ref(m); AVAHI_LLIST_PREPEND(SyncServiceResolverInfo, sync_service_resolvers, client->sync_service_resolvers, i); client->n_objects++; if (!(i->service_resolver = avahi_s_service_resolver_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, name, type, domain, (AvahiProtocol) aprotocol, (AvahiLookupFlags) flags, avahi_dbus_sync_service_resolver_callback, i))) { avahi_dbus_sync_service_resolver_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "ServiceResolverNew")) { Client *client; int32_t interface, protocol, aprotocol; uint32_t flags; char *name, *type, *domain; AsyncServiceResolverInfo *i; static const DBusObjectPathVTable vtable = { NULL, avahi_dbus_msg_async_service_resolver_impl, NULL, NULL, NULL, NULL }; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_INT32, &aprotocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || !type) { avahi_log_warn("Error parsing Server::ServiceResolverNew message"); goto fail; } if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn(__FILE__": Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn(__FILE__": Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } if (!*domain) domain = NULL; if (!*name) name = NULL; i = avahi_new(AsyncServiceResolverInfo, 1); i->id = ++client->current_id; i->client = client; i->path = NULL; AVAHI_LLIST_PREPEND(AsyncServiceResolverInfo, async_service_resolvers, client->async_service_resolvers, i); client->n_objects++; if (!(i->service_resolver = avahi_s_service_resolver_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, name, type, domain, (AvahiProtocol) aprotocol, (AvahiLookupFlags) flags, avahi_dbus_async_service_resolver_callback, i))) { avahi_dbus_async_service_resolver_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } /* avahi_log_debug(__FILE__": [%s], new service resolver for <%s.%s.%s>", i->path, name, type, domain); */ i->path = avahi_strdup_printf("/Client%u/ServiceResolver%u", client->id, i->id); dbus_connection_register_object_path(c, i->path, &vtable, i); return avahi_dbus_respond_path(c, m, i->path); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "HostNameResolverNew")) { Client *client; int32_t interface, protocol, aprotocol; uint32_t flags; char *name; AsyncHostNameResolverInfo *i; static const DBusObjectPathVTable vtable = { NULL, avahi_dbus_msg_async_host_name_resolver_impl, NULL, NULL, NULL, NULL }; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_INT32, &aprotocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || !name) { avahi_log_warn("Error parsing Server::HostNameResolverNew message"); goto fail; } if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn(__FILE__": Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn(__FILE__": Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } i = avahi_new(AsyncHostNameResolverInfo, 1); i->id = ++client->current_id; i->client = client; i->path = NULL; AVAHI_LLIST_PREPEND(AsyncHostNameResolverInfo, async_host_name_resolvers, client->async_host_name_resolvers, i); client->n_objects++; if (!(i->host_name_resolver = avahi_s_host_name_resolver_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, name, aprotocol, (AvahiLookupFlags) flags, avahi_dbus_async_host_name_resolver_callback, i))) { avahi_dbus_async_host_name_resolver_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } i->path = avahi_strdup_printf("/Client%u/HostNameResolver%u", client->id, i->id); dbus_connection_register_object_path(c, i->path, &vtable, i); return avahi_dbus_respond_path(c, m, i->path); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "AddressResolverNew")) { Client *client; int32_t interface, protocol; uint32_t flags; char *address; AsyncAddressResolverInfo *i; AvahiAddress a; static const DBusObjectPathVTable vtable = { NULL, avahi_dbus_msg_async_address_resolver_impl, NULL, NULL, NULL, NULL }; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &address, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || !address) { avahi_log_warn("Error parsing Server::AddressResolverNew message"); goto fail; } if (!avahi_address_parse(address, AVAHI_PROTO_UNSPEC, &a)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_INVALID_ADDRESS, NULL); if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn(__FILE__": Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn(__FILE__": Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } i = avahi_new(AsyncAddressResolverInfo, 1); i->id = ++client->current_id; i->client = client; i->path = NULL; AVAHI_LLIST_PREPEND(AsyncAddressResolverInfo, async_address_resolvers, client->async_address_resolvers, i); client->n_objects++; if (!(i->address_resolver = avahi_s_address_resolver_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, &a, (AvahiLookupFlags) flags, avahi_dbus_async_address_resolver_callback, i))) { avahi_dbus_async_address_resolver_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } i->path = avahi_strdup_printf("/Client%u/AddressResolver%u", client->id, i->id); dbus_connection_register_object_path(c, i->path, &vtable, i); return avahi_dbus_respond_path(c, m, i->path); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "RecordBrowserNew")) { Client *client; RecordBrowserInfo *i; static const DBusObjectPathVTable vtable = { NULL, avahi_dbus_msg_record_browser_impl, NULL, NULL, NULL, NULL }; int32_t interface, protocol; uint32_t flags; char *name; uint16_t type, clazz; AvahiKey *key; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_UINT16, &clazz, DBUS_TYPE_UINT16, &type, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || !name) { avahi_log_warn("Error parsing Server::RecordBrowserNew message"); goto fail; } if (!avahi_is_valid_domain_name(name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_INVALID_DOMAIN_NAME, NULL); if (!(client = client_get(dbus_message_get_sender(m), TRUE))) { avahi_log_warn("Too many clients, client request failed."); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_CLIENTS, NULL); } if (client->n_objects >= server->n_objects_per_client_max) { avahi_log_warn("Too many objects for client '%s', client request failed.", client->name); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_OBJECTS, NULL); } i = avahi_new(RecordBrowserInfo, 1); i->id = ++client->current_id; i->client = client; i->path = NULL; AVAHI_LLIST_PREPEND(RecordBrowserInfo, record_browsers, client->record_browsers, i); client->n_objects++; key = avahi_key_new(name, clazz, type); assert(key); if (!(i->record_browser = avahi_s_record_browser_new(avahi_server, (AvahiIfIndex) interface, (AvahiProtocol) protocol, key, (AvahiLookupFlags) flags, avahi_dbus_record_browser_callback, i))) { avahi_key_unref(key); avahi_dbus_record_browser_free(i); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } avahi_key_unref(key); i->path = avahi_strdup_printf("/Client%u/RecordBrowser%u", client->id, i->id); dbus_connection_register_object_path(c, i->path, &vtable, i); return avahi_dbus_respond_path(c, m, i->path); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } void dbus_protocol_server_state_changed(AvahiServerState state) { DBusMessage *m; int32_t t; const char *e; if (!server || !server->bus) return; m = dbus_message_new_signal(AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "StateChanged"); if (!m) { avahi_log_error("Failed allocate message"); return; } t = (int32_t) state; if (state == AVAHI_SERVER_COLLISION) e = AVAHI_DBUS_ERR_COLLISION; else if (state == AVAHI_SERVER_FAILURE) e = avahi_error_number_to_dbus(avahi_server_errno(avahi_server)); else e = AVAHI_DBUS_ERR_OK; dbus_message_append_args(m, DBUS_TYPE_INT32, &t, DBUS_TYPE_STRING, &e, DBUS_TYPE_INVALID); dbus_connection_send(server->bus, m, NULL); dbus_message_unref(m); } static int dbus_connect(void) { DBusError error; static const DBusObjectPathVTable server_vtable = { NULL, msg_server_impl, NULL, NULL, NULL, NULL }; assert(server); assert(!server->bus); dbus_error_init(&error); #ifdef HAVE_DBUS_BUS_GET_PRIVATE if (!(server->bus = dbus_bus_get_private(DBUS_BUS_SYSTEM, &error))) { assert(dbus_error_is_set(&error)); avahi_log_error("dbus_bus_get_private(): %s", error.message); goto fail; } #else { const char *a; if (!(a = getenv("DBUS_SYSTEM_BUS_ADDRESS")) || !*a) a = DBUS_SYSTEM_BUS_DEFAULT_ADDRESS; if (!(server->bus = dbus_connection_open_private(a, &error))) { assert(dbus_error_is_set(&error)); avahi_log_error("dbus_bus_open_private(): %s", error.message); goto fail; } if (!dbus_bus_register(server->bus, &error)) { assert(dbus_error_is_set(&error)); avahi_log_error("dbus_bus_register(): %s", error.message); goto fail; } } #endif if (avahi_dbus_connection_glue(server->bus, server->poll_api) < 0) { avahi_log_error("avahi_dbus_connection_glue() failed"); goto fail; } dbus_connection_set_exit_on_disconnect(server->bus, FALSE); if (dbus_bus_request_name( server->bus, AVAHI_DBUS_NAME, #if (DBUS_VERSION_MAJOR == 0) && (DBUS_VERSION_MINOR < 60) DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT, #else DBUS_NAME_FLAG_DO_NOT_QUEUE, #endif &error) != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) { if (dbus_error_is_set(&error)) { avahi_log_error("dbus_bus_request_name(): %s", error.message); goto fail; } avahi_log_error("Failed to acquire D-Bus name '"AVAHI_DBUS_NAME"'"); goto fail; } if (!(dbus_connection_add_filter(server->bus, msg_signal_filter_impl, (void*) server->poll_api, NULL))) { avahi_log_error("dbus_connection_add_filter() failed"); goto fail; } dbus_bus_add_match(server->bus, "type='signal',""interface='" DBUS_INTERFACE_DBUS "'", &error); if (dbus_error_is_set(&error)) { avahi_log_error("dbus_bus_add_match(): %s", error.message); goto fail; } if (!(dbus_connection_register_object_path(server->bus, AVAHI_DBUS_PATH_SERVER, &server_vtable, NULL))) { avahi_log_error("dbus_connection_register_object_path() failed"); goto fail; } return 0; fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); if (server->bus) { #ifdef HAVE_DBUS_CONNECTION_CLOSE dbus_connection_close(server->bus); #else dbus_connection_disconnect(server->bus); #endif dbus_connection_unref(server->bus); server->bus = NULL; } return -1; } static void dbus_disconnect(void) { assert(server); while (server->clients) client_free(server->clients); assert(server->n_clients == 0); if (server->bus) { #ifdef HAVE_DBUS_CONNECTION_CLOSE dbus_connection_close(server->bus); #else dbus_connection_disconnect(server->bus); #endif dbus_connection_unref(server->bus); server->bus = NULL; } } int dbus_protocol_setup(const AvahiPoll *poll_api, int _disable_user_service_publishing, int _n_clients_max, int _n_objects_per_client_max, int _n_entries_per_entry_group_max, int force) { server = avahi_new(Server, 1); AVAHI_LLIST_HEAD_INIT(Clients, server->clients); server->current_id = 0; server->n_clients = 0; server->bus = NULL; server->poll_api = poll_api; server->reconnect_timeout = NULL; server->reconnect = force; server->disable_user_service_publishing = _disable_user_service_publishing; server->n_clients_max = _n_clients_max > 0 ? _n_clients_max : DEFAULT_CLIENTS_MAX; server->n_objects_per_client_max = _n_objects_per_client_max > 0 ? _n_objects_per_client_max : DEFAULT_OBJECTS_PER_CLIENT_MAX; server->n_entries_per_entry_group_max = _n_entries_per_entry_group_max > 0 ? _n_entries_per_entry_group_max : DEFAULT_ENTRIES_PER_ENTRY_GROUP_MAX; if (dbus_connect() < 0) { struct timeval tv; if (!force) goto fail; avahi_log_warn("WARNING: Failed to contact D-Bus daemon, retrying in %ims.", RECONNECT_MSEC); avahi_elapse_time(&tv, RECONNECT_MSEC, 0); server->reconnect_timeout = server->poll_api->timeout_new(server->poll_api, &tv, reconnect_callback, NULL); } return 0; fail: if (server->bus) { #ifdef HAVE_DBUS_CONNECTION_CLOSE dbus_connection_close(server->bus); #else dbus_connection_disconnect(server->bus); #endif dbus_connection_unref(server->bus); } avahi_free(server); server = NULL; return -1; } void dbus_protocol_shutdown(void) { if (server) { dbus_disconnect(); if (server->reconnect_timeout) server->poll_api->timeout_free(server->reconnect_timeout); avahi_free(server); server = NULL; } } avahi-0.7/avahi-daemon/PaxHeaders.10109/avahi-service.dtd0000644000000000000000000000013213130651643017755 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.515978685 avahi-0.7/avahi-daemon/avahi-service.dtd0000644000175000017500000000114413130651643021364 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/static-hosts.c0000644000000000000000000000013213130651643017323 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.523978509 avahi-0.7/avahi-daemon/static-hosts.c0000644000175000017500000001604513130651643020740 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "main.h" #include "static-hosts.h" typedef struct StaticHost StaticHost; struct StaticHost { AvahiSEntryGroup *group; int iteration; char *host; AvahiAddress address; AVAHI_LLIST_FIELDS(StaticHost, hosts); }; static AVAHI_LLIST_HEAD(StaticHost, hosts) = NULL; static int current_iteration = 0; static void add_static_host_to_server(StaticHost *h); static void remove_static_host_from_server(StaticHost *h); static void entry_group_callback(AvahiServer *s, AVAHI_GCC_UNUSED AvahiSEntryGroup *eg, AvahiEntryGroupState state, void* userdata) { StaticHost *h; assert(s); assert(eg); h = userdata; switch (state) { case AVAHI_ENTRY_GROUP_COLLISION: avahi_log_error("Host name conflict for \"%s\", not established.", h->host); break; case AVAHI_ENTRY_GROUP_ESTABLISHED: avahi_log_notice ("Static host name \"%s\" successfully established.", h->host); break; case AVAHI_ENTRY_GROUP_FAILURE: avahi_log_notice ("Failed to establish static host name \"%s\": %s.", h->host, avahi_strerror (avahi_server_errno (s))); break; case AVAHI_ENTRY_GROUP_UNCOMMITED: case AVAHI_ENTRY_GROUP_REGISTERING: ; } } static StaticHost *static_host_new(void) { StaticHost *s; s = avahi_new(StaticHost, 1); s->group = NULL; s->host = NULL; s->iteration = current_iteration; AVAHI_LLIST_PREPEND(StaticHost, hosts, hosts, s); return s; } static void static_host_free(StaticHost *s) { assert(s); AVAHI_LLIST_REMOVE(StaticHost, hosts, hosts, s); if (s->group) avahi_s_entry_group_free (s->group); avahi_free(s->host); avahi_free(s); } static StaticHost *static_host_find(const char *host, const AvahiAddress *a) { StaticHost *h; assert(host); assert(a); for (h = hosts; h; h = h->hosts_next) if (!strcmp(h->host, host) && !avahi_address_cmp(a, &h->address)) return h; return NULL; } static void add_static_host_to_server(StaticHost *h) { if (!h->group) if (!(h->group = avahi_s_entry_group_new (avahi_server, entry_group_callback, h))) { avahi_log_error("avahi_s_entry_group_new() failed: %s", avahi_strerror(avahi_server_errno(avahi_server))); return; } if (avahi_s_entry_group_is_empty(h->group)) { AvahiProtocol p; int err; const AvahiServerConfig *config; config = avahi_server_get_config(avahi_server); p = (h->address.proto == AVAHI_PROTO_INET && config->publish_a_on_ipv6) || (h->address.proto == AVAHI_PROTO_INET6 && config->publish_aaaa_on_ipv4) ? AVAHI_PROTO_UNSPEC : h->address.proto; if ((err = avahi_server_add_address(avahi_server, h->group, AVAHI_IF_UNSPEC, p, 0, h->host, &h->address)) < 0) { avahi_log_error ("Static host name %s: avahi_server_add_address failure: %s", h->host, avahi_strerror(err)); return; } avahi_s_entry_group_commit (h->group); } } static void remove_static_host_from_server(StaticHost *h) { if (h->group) avahi_s_entry_group_reset (h->group); } void static_hosts_add_to_server(void) { StaticHost *h; for (h = hosts; h; h = h->hosts_next) add_static_host_to_server(h); } void static_hosts_remove_from_server(void) { StaticHost *h; for (h = hosts; h; h = h->hosts_next) remove_static_host_from_server(h); } void static_hosts_load(int in_chroot) { FILE *f; unsigned int line = 0; StaticHost *h, *next; const char *filename = in_chroot ? "/hosts" : AVAHI_CONFIG_DIR "/hosts"; if (!(f = fopen(filename, "r"))) { if (errno != ENOENT) avahi_log_error ("Failed to open static hosts file: %s", strerror (errno)); return; } current_iteration++; while (!feof(f)) { unsigned int len; char ln[256], *s; char *host, *ip; AvahiAddress a; if (!fgets(ln, sizeof (ln), f)) break; line++; /* Find the start of the line, ignore whitespace */ s = ln + strspn(ln, " \t"); /* Set the end of the string to NULL */ s[strcspn(s, "#\r\n")] = 0; /* Ignore blank lines */ if (*s == 0) continue; /* Read the first string (ip) up to the next whitespace */ len = strcspn(s, " \t"); ip = avahi_strndup(s, len); /* Skip past it */ s += len; /* Find the next token */ s += strspn(s, " \t"); len = strcspn(s, " \t"); host = avahi_strndup(s, len); if (*host == 0) { avahi_log_error("%s:%d: Error, unexpected end of line!", filename, line); avahi_free(host); avahi_free(ip); goto fail; } /* Skip over the host */ s += len; /* Skip past any more spaces */ s += strspn(s, " \t"); /* Anything left? */ if (*s != 0) { avahi_log_error ("%s:%d: Junk on the end of the line!", filename, line); avahi_free(host); avahi_free(ip); goto fail; } if (!avahi_address_parse(ip, AVAHI_PROTO_UNSPEC, &a)) { avahi_log_error("Static host name %s: failed to parse address %s", host, ip); avahi_free(host); avahi_free(ip); goto fail; } avahi_free(ip); if ((h = static_host_find(host, &a))) avahi_free(host); else { h = static_host_new(); h->host = host; h->address = a; avahi_log_info("Loading new static hostname %s.", h->host); } h->iteration = current_iteration; } for (h = hosts; h; h = next) { next = h->hosts_next; if (h->iteration != current_iteration) { avahi_log_info("Static hostname %s vanished, removing.", h->host); static_host_free(h); } } fail: fclose(f); } void static_hosts_free_all (void) { while(hosts) static_host_free(hosts); } avahi-0.7/avahi-daemon/PaxHeaders.10109/static-services.c0000644000000000000000000000013213130651643020006 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.519978599 avahi-0.7/avahi-daemon/static-services.c0000644000175000017500000006453613130651643021433 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #ifdef USE_EXPAT_H #include #endif /* USE_EXPAT_H */ #ifdef USE_BSDXML_H #include #endif /* USE_BSDXML_H */ #include #include #include #include #include #include #include #include "main.h" #include "static-services.h" typedef struct StaticService StaticService; typedef struct StaticServiceGroup StaticServiceGroup; struct StaticService { StaticServiceGroup *group; char *type; char *domain_name; char *host_name; uint16_t port; int protocol; AvahiStringList *subtypes; AvahiStringList *txt_records; AVAHI_LLIST_FIELDS(StaticService, services); }; struct StaticServiceGroup { char *filename; time_t mtime; char *name, *chosen_name; int replace_wildcards; AvahiSEntryGroup *entry_group; AVAHI_LLIST_HEAD(StaticService, services); AVAHI_LLIST_FIELDS(StaticServiceGroup, groups); }; static AVAHI_LLIST_HEAD(StaticServiceGroup, groups) = NULL; static char *replacestr(const char *pattern, const char *a, const char *b) { char *r = NULL, *e, *n; while ((e = strstr(pattern, a))) { char *k; k = avahi_strndup(pattern, e - pattern); if (r) n = avahi_strdup_printf("%s%s%s", r, k, b); else n = avahi_strdup_printf("%s%s", k, b); avahi_free(k); avahi_free(r); r = n; pattern = e + strlen(a); } if (!r) return avahi_strdup(pattern); n = avahi_strdup_printf("%s%s", r, pattern); avahi_free(r); return n; } static void add_static_service_group_to_server(StaticServiceGroup *g); static void remove_static_service_group_from_server(StaticServiceGroup *g); static StaticService *static_service_new(StaticServiceGroup *group) { StaticService *s; assert(group); s = avahi_new(StaticService, 1); s->group = group; s->type = s->host_name = s->domain_name = NULL; s->port = 0; s->protocol = AVAHI_PROTO_UNSPEC; s->txt_records = NULL; s->subtypes = NULL; AVAHI_LLIST_PREPEND(StaticService, services, group->services, s); return s; } static StaticServiceGroup *static_service_group_new(char *filename) { StaticServiceGroup *g; assert(filename); g = avahi_new(StaticServiceGroup, 1); g->filename = avahi_strdup(filename); g->mtime = 0; g->name = g->chosen_name = NULL; g->replace_wildcards = 0; g->entry_group = NULL; AVAHI_LLIST_HEAD_INIT(StaticService, g->services); AVAHI_LLIST_PREPEND(StaticServiceGroup, groups, groups, g); return g; } static void static_service_free(StaticService *s) { assert(s); AVAHI_LLIST_REMOVE(StaticService, services, s->group->services, s); avahi_free(s->type); avahi_free(s->host_name); avahi_free(s->domain_name); avahi_string_list_free(s->txt_records); avahi_string_list_free(s->subtypes); avahi_free(s); } static void static_service_group_free(StaticServiceGroup *g) { assert(g); if (g->entry_group) avahi_s_entry_group_free(g->entry_group); while (g->services) static_service_free(g->services); AVAHI_LLIST_REMOVE(StaticServiceGroup, groups, groups, g); avahi_free(g->filename); avahi_free(g->name); avahi_free(g->chosen_name); avahi_free(g); } static void entry_group_callback(AvahiServer *s, AVAHI_GCC_UNUSED AvahiSEntryGroup *eg, AvahiEntryGroupState state, void* userdata) { StaticServiceGroup *g = userdata; assert(s); assert(g); switch (state) { case AVAHI_ENTRY_GROUP_COLLISION: { char *n; remove_static_service_group_from_server(g); n = avahi_alternative_service_name(g->chosen_name); avahi_free(g->chosen_name); g->chosen_name = n; avahi_log_notice("Service name conflict for \"%s\" (%s), retrying with \"%s\".", g->name, g->filename, g->chosen_name); add_static_service_group_to_server(g); break; } case AVAHI_ENTRY_GROUP_ESTABLISHED: avahi_log_info("Service \"%s\" (%s) successfully established.", g->chosen_name, g->filename); break; case AVAHI_ENTRY_GROUP_FAILURE: avahi_log_warn("Failed to publish service \"%s\" (%s): %s", g->chosen_name, g->filename, avahi_strerror(avahi_server_errno(s))); remove_static_service_group_from_server(g); break; case AVAHI_ENTRY_GROUP_UNCOMMITED: case AVAHI_ENTRY_GROUP_REGISTERING: ; } } static void add_static_service_group_to_server(StaticServiceGroup *g) { StaticService *s; assert(g); if (g->entry_group && !avahi_s_entry_group_is_empty(g->entry_group)) /* This service group is already registered in the server */ return; if (!g->chosen_name || (g->replace_wildcards && strstr(g->name, "%h"))) { avahi_free(g->chosen_name); if (g->replace_wildcards) { char label[AVAHI_LABEL_MAX]; const char *p; p = avahi_server_get_host_name(avahi_server); avahi_unescape_label(&p, label, sizeof(label)); g->chosen_name = replacestr(g->name, "%h", label); } else g->chosen_name = avahi_strdup(g->name); } if (!g->entry_group) g->entry_group = avahi_s_entry_group_new(avahi_server, entry_group_callback, g); assert(avahi_s_entry_group_is_empty(g->entry_group)); for (s = g->services; s; s = s->services_next) { AvahiStringList *i; if (avahi_server_add_service_strlst( avahi_server, g->entry_group, AVAHI_IF_UNSPEC, s->protocol, 0, g->chosen_name, s->type, s->domain_name, s->host_name, s->port, s->txt_records) < 0) { avahi_log_error("Failed to add service '%s' of type '%s', ignoring service group (%s): %s", g->chosen_name, s->type, g->filename, avahi_strerror(avahi_server_errno(avahi_server))); remove_static_service_group_from_server(g); return; } for (i = s->subtypes; i; i = i->next) { if (avahi_server_add_service_subtype( avahi_server, g->entry_group, AVAHI_IF_UNSPEC, s->protocol, 0, g->chosen_name, s->type, s->domain_name, (char*) i->text) < 0) { avahi_log_error("Failed to add subtype '%s' for service '%s' of type '%s', ignoring subtype (%s): %s", i->text, g->chosen_name, s->type, g->filename, avahi_strerror(avahi_server_errno(avahi_server))); } } } avahi_s_entry_group_commit(g->entry_group); } static void remove_static_service_group_from_server(StaticServiceGroup *g) { assert(g); if (g->entry_group) avahi_s_entry_group_reset(g->entry_group); } typedef enum { XML_TAG_INVALID, XML_TAG_SERVICE_GROUP, XML_TAG_NAME, XML_TAG_SERVICE, XML_TAG_TYPE, XML_TAG_SUBTYPE, XML_TAG_DOMAIN_NAME, XML_TAG_HOST_NAME, XML_TAG_PORT, XML_TAG_TXT_RECORD } xml_tag_name; typedef enum { TXT_RECORD_VALUE_TEXT, TXT_RECORD_VALUE_BINARY_HEX, TXT_RECORD_VALUE_BINARY_BASE64, } txt_record_value_type; struct xml_userdata { StaticServiceGroup *group; StaticService *service; xml_tag_name current_tag; int failed; char *buf; txt_record_value_type txt_type; char *txt_key; }; #ifndef XMLCALL #define XMLCALL #endif static void XMLCALL xml_start(void *data, const char *el, const char *attr[]) { struct xml_userdata *u = data; assert(u); if (u->failed) return; if (u->current_tag == XML_TAG_INVALID && strcmp(el, "service-group") == 0) { if (attr[0]) goto invalid_attr; u->current_tag = XML_TAG_SERVICE_GROUP; } else if (u->current_tag == XML_TAG_SERVICE_GROUP && strcmp(el, "name") == 0) { u->current_tag = XML_TAG_NAME; if (attr[0]) { if (strcmp(attr[0], "replace-wildcards") == 0) u->group->replace_wildcards = strcmp(attr[1], "yes") == 0; else goto invalid_attr; if (attr[2]) goto invalid_attr; } } else if (u->current_tag == XML_TAG_SERVICE_GROUP && strcmp(el, "service") == 0) { u->current_tag = XML_TAG_SERVICE; assert(!u->service); u->service = static_service_new(u->group); if (attr[0]) { if (strcmp(attr[0], "protocol") == 0) { AvahiProtocol protocol; if (strcmp(attr[1], "ipv4") == 0) { protocol = AVAHI_PROTO_INET; } else if (strcmp(attr[1], "ipv6") == 0) { protocol = AVAHI_PROTO_INET6; } else if (strcmp(attr[1], "any") == 0) { protocol = AVAHI_PROTO_UNSPEC; } else { avahi_log_error("%s: parse failure: invalid protocol specification \"%s\".", u->group->filename, attr[1]); u->failed = 1; return; } u->service->protocol = protocol; } else goto invalid_attr; if (attr[2]) goto invalid_attr; } } else if (u->current_tag == XML_TAG_SERVICE && strcmp(el, "type") == 0) { if (attr[0]) goto invalid_attr; u->current_tag = XML_TAG_TYPE; } else if (u->current_tag == XML_TAG_SERVICE && strcmp(el, "subtype") == 0) { if (attr[0]) goto invalid_attr; u->current_tag = XML_TAG_SUBTYPE; } else if (u->current_tag == XML_TAG_SERVICE && strcmp(el, "domain-name") == 0) { if (attr[0]) goto invalid_attr; u->current_tag = XML_TAG_DOMAIN_NAME; } else if (u->current_tag == XML_TAG_SERVICE && strcmp(el, "host-name") == 0) { if (attr[0]) goto invalid_attr; u->current_tag = XML_TAG_HOST_NAME; } else if (u->current_tag == XML_TAG_SERVICE && strcmp(el, "port") == 0) { if (attr[0]) goto invalid_attr; u->current_tag = XML_TAG_PORT; } else if (u->current_tag == XML_TAG_SERVICE && strcmp(el, "txt-record") == 0) { if (attr[0]) { if (strcmp(attr[0], "value-format") == 0) { txt_record_value_type value_type; if (strcmp(attr[1], "text") == 0) { value_type = TXT_RECORD_VALUE_TEXT; } else if (strcmp(attr[1], "binary-hex") == 0) { value_type = TXT_RECORD_VALUE_BINARY_HEX; } else if (strcmp(attr[1], "binary-base64") == 0) { value_type = TXT_RECORD_VALUE_BINARY_BASE64; } else { avahi_log_error("%s: parse failure: invalid txt record value format specification \"%s\".", u->group->filename, attr[1]); u->failed = 1; return; } u->txt_type = value_type; if (attr[2]) goto invalid_attr; } else goto invalid_attr; } else u->txt_type = TXT_RECORD_VALUE_TEXT; u->current_tag = XML_TAG_TXT_RECORD; } else { avahi_log_error("%s: parse failure: didn't expect element <%s>.", u->group->filename, el); u->failed = 1; } return; invalid_attr: avahi_log_error("%s: parse failure: invalid attribute for element <%s>.", u->group->filename, el); u->failed = 1; return; } static uint8_t hex(char c) { if ((c >= '0') && (c <= '9')) return c - '0'; if ((c >= 'A') && (c <= 'F')) return c - 'A' + 10; if ((c >= 'a') && (c <= 'f')) return c - 'a' + 10; return 0xFF; } static int decode_hex_buf(struct xml_userdata *u, uint8_t **out_buf, size_t *out_buf_len) { const char *buf = (u->buf != NULL) ? u->buf : ""; size_t buf_len = strlen(buf); uint8_t *raw_buf; size_t iter; size_t raw_buf_len; if (buf_len % 2) { avahi_log_error("%s: parse failure: hex value of the txt record should have an even length", u->group->filename); u->failed = 1; return -1; } raw_buf_len = buf_len / 2; raw_buf = avahi_malloc(raw_buf_len); for (iter = 0; iter < raw_buf_len; iter++) { uint8_t high_nibble = hex(buf[iter * 2]); uint8_t low_nibble = hex(buf[iter * 2 + 1]); if (high_nibble > 0xF || low_nibble > 0xF) { avahi_log_error("%s: parse failure: failed to parse hex data: invalid hex data", u->group->filename); u->failed = 1; avahi_free(raw_buf); return -1; } raw_buf[iter] = (high_nibble << 4) | low_nibble; } *out_buf = raw_buf; *out_buf_len = raw_buf_len; return 0; } static uint8_t base64(char c) { if (c >= 'A' && c <= 'Z') return c - 'A'; if (c >= 'a' && c <= 'z') return c - 'a' + 26; if (c >= '0' && c <= '9') return c - '0' + 52; if (c == '+') return 62; if (c == '/') return 63; return 255; } static int base64_error(struct xml_userdata *u, uint8_t *raw_buf) { avahi_log_error("%s: parse failure: failed to parse base64 data: invalid base64 data", u->group->filename); u->failed = 1; avahi_free(raw_buf); return -1; } static int decode_base64_buf(struct xml_userdata *u, uint8_t **out_buf, size_t *out_buf_len) { const char *buf = (u->buf != NULL) ? u->buf : ""; size_t buf_len = strlen(buf); uint8_t *raw_buf; size_t iter, raw_iter; size_t raw_buf_len; size_t buf_len_no_equals = buf_len; if (buf_len % 4) { avahi_log_error("%s: parse failure: length of the base64 value of the txt record should be a multiple of 4", u->group->filename); u->failed = 1; return -1; } raw_buf_len = (buf_len / 4) * 3; if (buf_len > 0 && buf[buf_len - 1] == '=') { buf_len_no_equals -= 4; raw_buf_len--; if (buf[buf_len - 2] == '=') raw_buf_len--; } raw_buf = avahi_malloc(raw_buf_len); for (iter = 0, raw_iter = 0; iter < buf_len_no_equals; iter += 4, raw_iter += 3) { uint8_t nibble1 = base64(buf[iter + 0]); uint8_t nibble2 = base64(buf[iter + 1]); uint8_t nibble3 = base64(buf[iter + 2]); uint8_t nibble4 = base64(buf[iter + 3]); if (nibble1 > 63 || nibble2 > 63 || nibble3 > 63 || nibble4 > 63) return base64_error(u, raw_buf); raw_buf[raw_iter + 0] = (nibble1 << 2) | (nibble2 >> 4); raw_buf[raw_iter + 1] = (nibble2 << 4) | (nibble3 >> 2); raw_buf[raw_iter + 2] = (nibble3 << 6) | nibble4; } if (buf_len_no_equals < buf_len) { uint8_t nibble1 = base64(buf[iter + 0]); uint8_t nibble2 = base64(buf[iter + 1]); if (nibble1 > 63 || nibble2 > 63) return base64_error(u, raw_buf); raw_buf[raw_iter + 0] = (nibble1 << 2) | (nibble2 >> 4); if (buf[iter + 2] != '=') { uint8_t nibble3 = base64(buf[iter + 2]); if (nibble3 > 63) return base64_error(u, raw_buf); raw_buf[raw_iter + 1] = (nibble2 << 4) | (nibble3 >> 2); } } *out_buf = raw_buf; *out_buf_len = raw_buf_len; return 0; } static void XMLCALL xml_end(void *data, AVAHI_GCC_UNUSED const char *el) { struct xml_userdata *u = data; assert(u); if (u->failed) return; switch (u->current_tag) { case XML_TAG_SERVICE_GROUP: if (!u->group->name || !u->group->services) { avahi_log_error("%s: parse failure: service group incomplete.", u->group->filename); u->failed = 1; return; } u->current_tag = XML_TAG_INVALID; break; case XML_TAG_SERVICE: if (!u->service->type) { avahi_log_error("%s: parse failure: service incomplete.", u->group->filename); u->failed = 1; return; } u->service = NULL; u->current_tag = XML_TAG_SERVICE_GROUP; break; case XML_TAG_NAME: u->current_tag = XML_TAG_SERVICE_GROUP; break; case XML_TAG_PORT: { int p; assert(u->service); p = u->buf ? atoi(u->buf) : 0; if (p < 0 || p > 0xFFFF) { avahi_log_error("%s: parse failure: invalid port specification \"%s\".", u->group->filename, u->buf); u->failed = 1; return; } u->service->port = (uint16_t) p; u->current_tag = XML_TAG_SERVICE; break; } case XML_TAG_TXT_RECORD: { assert(u->service); if (u->txt_key != NULL) { size_t key_len = strlen(u->txt_key); uint8_t *value_buf; uint8_t *free_value_buf = NULL; size_t value_buf_len = 0; switch (u->txt_type) { case TXT_RECORD_VALUE_TEXT: value_buf_len = strlen(u->buf); value_buf = (uint8_t*)u->buf; break; case TXT_RECORD_VALUE_BINARY_HEX: if (decode_hex_buf(u, &value_buf, &value_buf_len) < 0) return; free_value_buf = value_buf; break; case TXT_RECORD_VALUE_BINARY_BASE64: if (decode_base64_buf(u, &value_buf, &value_buf_len) < 0) return; free_value_buf = value_buf; break; default: assert(0); } u->service->txt_records = avahi_string_list_add_anonymous(u->service->txt_records, key_len + 1 + value_buf_len); memcpy(u->service->txt_records->text, u->txt_key, key_len); u->service->txt_records->text[key_len] = '='; memcpy(u->service->txt_records->text + key_len + 1, value_buf, value_buf_len); avahi_free(u->txt_key); u->txt_key = NULL; avahi_free(free_value_buf); } else u->service->txt_records = avahi_string_list_add(u->service->txt_records, u->buf ? u->buf : ""); u->current_tag = XML_TAG_SERVICE; u->txt_type = TXT_RECORD_VALUE_TEXT; break; } case XML_TAG_SUBTYPE: { assert(u->service); u->service->subtypes = avahi_string_list_add(u->service->subtypes, u->buf ? u->buf : ""); u->current_tag = XML_TAG_SERVICE; break; } case XML_TAG_TYPE: case XML_TAG_DOMAIN_NAME: case XML_TAG_HOST_NAME: u->current_tag = XML_TAG_SERVICE; break; case XML_TAG_INVALID: ; } avahi_free(u->buf); u->buf = NULL; } static char *append_cdata(char *t, const char *n, int length) { char *r, *k; if (!length) return t; k = avahi_strndup(n, length); if (t) { r = avahi_strdup_printf("%s%s", t, k); avahi_free(k); avahi_free(t); } else r = k; return r; } static void XMLCALL xml_cdata(void *data, const XML_Char *s, int len) { struct xml_userdata *u = data; assert(u); if (u->failed) return; switch (u->current_tag) { case XML_TAG_NAME: u->group->name = append_cdata(u->group->name, s, len); break; case XML_TAG_TYPE: assert(u->service); u->service->type = append_cdata(u->service->type, s, len); break; case XML_TAG_DOMAIN_NAME: assert(u->service); u->service->domain_name = append_cdata(u->service->domain_name, s, len); break; case XML_TAG_HOST_NAME: assert(u->service); u->service->host_name = append_cdata(u->service->host_name, s, len); break; case XML_TAG_PORT: case XML_TAG_SUBTYPE: assert(u->service); u->buf = append_cdata(u->buf, s, len); break; case XML_TAG_TXT_RECORD: assert(u->service); if (u->txt_key == NULL) { char *equals = memchr(s, '=', len); if (equals != NULL) { u->txt_key = append_cdata(u->buf, s, equals - s); u->buf = NULL; /* len is now length of the rest of the string past the equals sign */ len -= equals - s + 1; s = equals + 1; } } if (len > 0) u->buf = append_cdata(u->buf, s, len); break; case XML_TAG_SERVICE_GROUP: case XML_TAG_SERVICE: case XML_TAG_INVALID: ; } } static int static_service_group_load(StaticServiceGroup *g) { XML_Parser parser = NULL; int fd = -1; struct xml_userdata u; int r = -1; struct stat st; ssize_t n; assert(g); u.buf = NULL; u.group = g; u.service = NULL; u.current_tag = XML_TAG_INVALID; u.failed = 0; u.txt_type = TXT_RECORD_VALUE_TEXT; u.txt_key = NULL; /* Cleanup old data in this service group, if available */ remove_static_service_group_from_server(g); while (g->services) static_service_free(g->services); avahi_free(g->name); avahi_free(g->chosen_name); g->name = g->chosen_name = NULL; g->replace_wildcards = 0; if (!(parser = XML_ParserCreate(NULL))) { avahi_log_error("XML_ParserCreate() failed."); goto finish; } if ((fd = open(g->filename, O_RDONLY)) < 0) { avahi_log_error("open(\"%s\", O_RDONLY): %s", g->filename, strerror(errno)); goto finish; } if (fstat(fd, &st) < 0) { avahi_log_error("fstat(): %s", strerror(errno)); goto finish; } g->mtime = st.st_mtime; XML_SetUserData(parser, &u); XML_SetElementHandler(parser, xml_start, xml_end); XML_SetCharacterDataHandler(parser, xml_cdata); do { void *buffer; #define BUFSIZE (10*1024) if (!(buffer = XML_GetBuffer(parser, BUFSIZE))) { avahi_log_error("XML_GetBuffer() failed."); goto finish; } if ((n = read(fd, buffer, BUFSIZE)) < 0) { avahi_log_error("read(): %s\n", strerror(errno)); goto finish; } if (!XML_ParseBuffer(parser, n, n == 0)) { avahi_log_error("XML_ParseBuffer() failed at line %d: %s.\n", (int) XML_GetCurrentLineNumber(parser), XML_ErrorString(XML_GetErrorCode(parser))); goto finish; } } while (n != 0); if (!u.failed) r = 0; finish: if (fd >= 0) close(fd); if (parser) XML_ParserFree(parser); avahi_free(u.buf); return r; } static void load_file(char *n) { StaticServiceGroup *g; assert(n); for (g = groups; g; g = g->groups_next) if (strcmp(g->filename, n) == 0) return; avahi_log_info("Loading service file %s.", n); g = static_service_group_new(n); if (static_service_group_load(g) < 0) { avahi_log_error("Failed to load service group file %s, ignoring.", g->filename); static_service_group_free(g); } } void static_service_load(int in_chroot) { StaticServiceGroup *g, *n; glob_t globbuf; int globret; char **p; for (g = groups; g; g = n) { struct stat st; n = g->groups_next; if (stat(g->filename, &st) < 0) { if (errno == ENOENT) avahi_log_info("Service group file %s vanished, removing services.", g->filename); else avahi_log_warn("Failed to stat() file %s, ignoring: %s", g->filename, strerror(errno)); static_service_group_free(g); } else if (st.st_mtime != g->mtime) { avahi_log_info("Service group file %s changed, reloading.", g->filename); if (static_service_group_load(g) < 0) { avahi_log_warn("Failed to load service group file %s, removing service.", g->filename); static_service_group_free(g); } } } memset(&globbuf, 0, sizeof(globbuf)); if ((globret = glob(in_chroot ? "/services/*.service" : AVAHI_SERVICE_DIR "/*.service", GLOB_ERR, NULL, &globbuf)) != 0) switch (globret) { #ifdef GLOB_NOSPACE case GLOB_NOSPACE: avahi_log_error("Not enough memory to read service directory "AVAHI_SERVICE_DIR"."); break; #endif #ifdef GLOB_NOMATCH case GLOB_NOMATCH: avahi_log_info("No service file found in "AVAHI_SERVICE_DIR"."); break; #endif default: avahi_log_error("Failed to read "AVAHI_SERVICE_DIR"."); break; } else { for (p = globbuf.gl_pathv; *p; p++) load_file(*p); globfree(&globbuf); } } void static_service_free_all(void) { while (groups) static_service_group_free(groups); } void static_service_add_to_server(void) { StaticServiceGroup *g; for (g = groups; g; g = g->groups_next) add_static_service_group_to_server(g); } void static_service_remove_from_server(void) { StaticServiceGroup *g; for (g = groups; g; g = g->groups_next) remove_static_service_group_from_server(g); } avahi-0.7/avahi-daemon/PaxHeaders.10109/main.c0000644000000000000000000000013213130651643015622 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.519978599 avahi-0.7/avahi-daemon/main.c0000644000175000017500000014230113130651643017232 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_SYS_FILIO_H #include #endif #include #include #include #include #include #include #include #ifdef HAVE_INOTIFY #include #endif #ifdef HAVE_KQUEUE #include #include #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef ENABLE_CHROOT #include "chroot.h" #include "caps.h" #endif #include "setproctitle.h" #include "main.h" #include "simple-protocol.h" #include "static-services.h" #include "static-hosts.h" #include "ini-file-parser.h" #include "sd-daemon.h" #ifdef HAVE_DBUS #include "dbus-protocol.h" #endif AvahiServer *avahi_server = NULL; AvahiSimplePoll *simple_poll_api = NULL; static char *argv0 = NULL; int nss_support = 0; typedef enum { DAEMON_RUN, DAEMON_KILL, DAEMON_VERSION, DAEMON_HELP, DAEMON_RELOAD, DAEMON_CHECK } DaemonCommand; typedef struct { AvahiServerConfig server_config; DaemonCommand command; int daemonize; int use_syslog; char *config_file; #ifdef HAVE_DBUS int enable_dbus; int fail_on_missing_dbus; unsigned n_clients_max; unsigned n_objects_per_client_max; unsigned n_entries_per_entry_group_max; #endif int drop_root; int set_rlimits; #ifdef ENABLE_CHROOT int use_chroot; #endif int modify_proc_title; int disable_user_service_publishing; int publish_resolv_conf; char ** publish_dns_servers; int debug; int rlimit_as_set, rlimit_core_set, rlimit_data_set, rlimit_fsize_set, rlimit_nofile_set, rlimit_stack_set; rlim_t rlimit_as, rlimit_core, rlimit_data, rlimit_fsize, rlimit_nofile, rlimit_stack; #ifdef RLIMIT_NPROC int rlimit_nproc_set; rlim_t rlimit_nproc; #endif } DaemonConfig; #define RESOLV_CONF "/etc/resolv.conf" #define BROWSE_DOMAINS_MAX 16 static AvahiSEntryGroup *dns_servers_entry_group = NULL; static AvahiSEntryGroup *resolv_conf_entry_group = NULL; static char **resolv_conf_name_servers = NULL; static char **resolv_conf_search_domains = NULL; static DaemonConfig config; static int has_prefix(const char *s, const char *prefix) { size_t l; l = strlen(prefix); return strlen(s) >= l && strncmp(s, prefix, l) == 0; } static int load_resolv_conf(void) { int ret = -1; FILE *f; int i = 0, j = 0; avahi_strfreev(resolv_conf_name_servers); resolv_conf_name_servers = NULL; avahi_strfreev(resolv_conf_search_domains); resolv_conf_search_domains = NULL; #ifdef ENABLE_CHROOT f = avahi_chroot_helper_get_file(RESOLV_CONF); #else f = fopen(RESOLV_CONF, "r"); #endif if (!f) { avahi_log_warn("Failed to open "RESOLV_CONF": %s", strerror(errno)); goto finish; } resolv_conf_name_servers = avahi_new0(char*, AVAHI_WIDE_AREA_SERVERS_MAX+1); resolv_conf_search_domains = avahi_new0(char*, BROWSE_DOMAINS_MAX+1); while (!feof(f)) { char ln[128]; char *p; if (!(fgets(ln, sizeof(ln), f))) break; ln[strcspn(ln, "\r\n#")] = 0; p = ln + strspn(ln, "\t "); if ((has_prefix(p, "nameserver ") || has_prefix(p, "nameserver\t")) && i < AVAHI_WIDE_AREA_SERVERS_MAX) { p += 10; p += strspn(p, "\t "); p[strcspn(p, "\t ")] = 0; resolv_conf_name_servers[i++] = avahi_strdup(p); } if ((has_prefix(p, "search ") || has_prefix(p, "search\t") || has_prefix(p, "domain ") || has_prefix(p, "domain\t"))) { p += 6; while (j < BROWSE_DOMAINS_MAX) { size_t k; p += strspn(p, "\t "); k = strcspn(p, "\t "); if (k > 0) { resolv_conf_search_domains[j++] = avahi_strndup(p, k); p += k; } if (!*p) break; } } } ret = 0; finish: if (ret != 0) { avahi_strfreev(resolv_conf_name_servers); resolv_conf_name_servers = NULL; avahi_strfreev(resolv_conf_search_domains); resolv_conf_search_domains = NULL; } if (f) fclose(f); return ret; } static AvahiSEntryGroup* add_dns_servers(AvahiServer *s, AvahiSEntryGroup* g, char **l) { char **p; assert(s); assert(l); if (!g) g = avahi_s_entry_group_new(s, NULL, NULL); assert(avahi_s_entry_group_is_empty(g)); for (p = l; *p; p++) { AvahiAddress a; if (!avahi_address_parse(*p, AVAHI_PROTO_UNSPEC, &a)) avahi_log_warn("Failed to parse address '%s', ignoring.", *p); else if (avahi_server_add_dns_server_address(s, g, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, NULL, AVAHI_DNS_SERVER_RESOLVE, &a, 53) < 0) { avahi_s_entry_group_free(g); avahi_log_error("Failed to add DNS server address: %s", avahi_strerror(avahi_server_errno(s))); return NULL; } } avahi_s_entry_group_commit(g); return g; } static void remove_dns_server_entry_groups(void) { if (resolv_conf_entry_group) avahi_s_entry_group_reset(resolv_conf_entry_group); if (dns_servers_entry_group) avahi_s_entry_group_reset(dns_servers_entry_group); } static void update_wide_area_servers(void) { AvahiAddress a[AVAHI_WIDE_AREA_SERVERS_MAX]; unsigned n = 0; char **p; if (!resolv_conf_name_servers) { avahi_server_set_wide_area_servers(avahi_server, NULL, 0); return; } for (p = resolv_conf_name_servers; *p && n < AVAHI_WIDE_AREA_SERVERS_MAX; p++) { if (!avahi_address_parse(*p, AVAHI_PROTO_UNSPEC, &a[n])) avahi_log_warn("Failed to parse address '%s', ignoring.", *p); else n++; } avahi_server_set_wide_area_servers(avahi_server, a, n); } static AvahiStringList *filter_duplicate_domains(AvahiStringList *l) { AvahiStringList *e, *n, *p; if (!l) return l; for (p = l, e = l->next; e; e = n) { n = e->next; if (avahi_domain_equal((char*) e->text, (char*) l->text)) { p->next = e->next; avahi_free(e); } else p = e; } l->next = filter_duplicate_domains(l->next); return l; } static void update_browse_domains(void) { AvahiStringList *l; int n; char **p; if (!resolv_conf_search_domains) { avahi_server_set_browse_domains(avahi_server, NULL); return; } l = avahi_string_list_copy(config.server_config.browse_domains); for (p = resolv_conf_search_domains, n = 0; *p && n < BROWSE_DOMAINS_MAX; p++, n++) { if (!avahi_is_valid_domain_name(*p)) avahi_log_warn("'%s' is no valid domain name, ignoring.", *p); else l = avahi_string_list_add(l, *p); } l = filter_duplicate_domains(l); avahi_server_set_browse_domains(avahi_server, l); avahi_string_list_free(l); } static void server_callback(AvahiServer *s, AvahiServerState state, void *userdata) { DaemonConfig *c = userdata; assert(s); assert(c); /* This function is possibly called before the global variable * avahi_server has been set, therefore we do it explicitly */ avahi_server = s; #ifdef HAVE_DBUS if (c->enable_dbus && state != AVAHI_SERVER_INVALID && state != AVAHI_SERVER_FAILURE) dbus_protocol_server_state_changed(state); #endif switch (state) { case AVAHI_SERVER_RUNNING: avahi_log_info("Server startup complete. Host name is %s. Local service cookie is %u.", avahi_server_get_host_name_fqdn(s), avahi_server_get_local_service_cookie(s)); sd_notifyf(0, "STATUS=Server startup complete. Host name is %s. Local service cookie is %u.", avahi_server_get_host_name_fqdn(s), avahi_server_get_local_service_cookie(s)); avahi_set_proc_title(argv0, "%s: running [%s]", argv0, avahi_server_get_host_name_fqdn(s)); static_service_add_to_server(); static_hosts_add_to_server(); remove_dns_server_entry_groups(); if (c->publish_resolv_conf && resolv_conf_name_servers && resolv_conf_name_servers[0]) resolv_conf_entry_group = add_dns_servers(s, resolv_conf_entry_group, resolv_conf_name_servers); if (c->publish_dns_servers && c->publish_dns_servers[0]) dns_servers_entry_group = add_dns_servers(s, dns_servers_entry_group, c->publish_dns_servers); simple_protocol_restart_queries(); break; case AVAHI_SERVER_COLLISION: { char *n; static_service_remove_from_server(); static_hosts_remove_from_server(); remove_dns_server_entry_groups(); n = avahi_alternative_host_name(avahi_server_get_host_name(s)); avahi_log_warn("Host name conflict, retrying with %s", n); sd_notifyf(0, "STATUS=Host name conflict, retrying with %s", n); avahi_set_proc_title(argv0, "%s: collision [%s]", argv0, n); avahi_server_set_host_name(s, n); avahi_free(n); break; } case AVAHI_SERVER_FAILURE: avahi_log_error("Server error: %s", avahi_strerror(avahi_server_errno(s))); sd_notifyf(0, "STATUS=Server error: %s", avahi_strerror(avahi_server_errno(s))); avahi_simple_poll_quit(simple_poll_api); break; case AVAHI_SERVER_REGISTERING: sd_notifyf(0, "STATUS=Registering host name %s", avahi_server_get_host_name_fqdn(s)); avahi_set_proc_title(argv0, "%s: registering [%s]", argv0, avahi_server_get_host_name_fqdn(s)); static_service_remove_from_server(); static_hosts_remove_from_server(); remove_dns_server_entry_groups(); break; case AVAHI_SERVER_INVALID: break; } } static void help(FILE *f) { fprintf(f, "%s [options]\n" " -h --help Show this help\n" " -D --daemonize Daemonize after startup (implies -s)\n" " -s --syslog Write log messages to syslog(3) instead of STDERR\n" " -k --kill Kill a running daemon\n" " -r --reload Request a running daemon to reload static services\n" " -c --check Return 0 if a daemon is already running\n" " -V --version Show version\n" " -f --file=FILE Load the specified configuration file instead of\n" " "AVAHI_CONFIG_FILE"\n" " --no-rlimits Don't enforce resource limits\n" " --no-drop-root Don't drop privileges\n" #ifdef ENABLE_CHROOT " --no-chroot Don't chroot()\n" #endif " --no-proc-title Don't modify process title\n" " --debug Increase verbosity\n", argv0); } static int parse_command_line(DaemonConfig *c, int argc, char *argv[]) { int o; enum { OPTION_NO_RLIMITS = 256, OPTION_NO_DROP_ROOT, #ifdef ENABLE_CHROOT OPTION_NO_CHROOT, #endif OPTION_NO_PROC_TITLE, OPTION_DEBUG }; static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "daemonize", no_argument, NULL, 'D' }, { "kill", no_argument, NULL, 'k' }, { "version", no_argument, NULL, 'V' }, { "file", required_argument, NULL, 'f' }, { "reload", no_argument, NULL, 'r' }, { "check", no_argument, NULL, 'c' }, { "syslog", no_argument, NULL, 's' }, { "no-rlimits", no_argument, NULL, OPTION_NO_RLIMITS }, { "no-drop-root", no_argument, NULL, OPTION_NO_DROP_ROOT }, #ifdef ENABLE_CHROOT { "no-chroot", no_argument, NULL, OPTION_NO_CHROOT }, #endif { "no-proc-title", no_argument, NULL, OPTION_NO_PROC_TITLE }, { "debug", no_argument, NULL, OPTION_DEBUG }, { NULL, 0, NULL, 0 } }; assert(c); while ((o = getopt_long(argc, argv, "hDkVf:rcs", long_options, NULL)) >= 0) { switch(o) { case 's': c->use_syslog = 1; break; case 'h': c->command = DAEMON_HELP; break; case 'D': c->daemonize = 1; break; case 'k': c->command = DAEMON_KILL; break; case 'V': c->command = DAEMON_VERSION; break; case 'f': avahi_free(c->config_file); c->config_file = avahi_strdup(optarg); break; case 'r': c->command = DAEMON_RELOAD; break; case 'c': c->command = DAEMON_CHECK; break; case OPTION_NO_RLIMITS: c->set_rlimits = 0; break; case OPTION_NO_DROP_ROOT: c->drop_root = 0; break; #ifdef ENABLE_CHROOT case OPTION_NO_CHROOT: c->use_chroot = 0; break; #endif case OPTION_NO_PROC_TITLE: c->modify_proc_title = 0; break; case OPTION_DEBUG: c->debug = 1; #ifdef DAEMON_SET_VERBOSITY_AVAILABLE daemon_set_verbosity(LOG_DEBUG); #endif break; default: return -1; } } if (optind < argc) { fprintf(stderr, "Too many arguments\n"); return -1; } return 0; } static int is_yes(const char *s) { assert(s); return *s == 'y' || *s == 'Y' || *s == '1' || *s == 't' || *s == 'T'; } static int parse_unsigned(const char *s, unsigned *u) { char *e = NULL; unsigned long ul; unsigned k; errno = 0; ul = strtoul(s, &e, 0); if (!e || *e || errno != 0) return -1; k = (unsigned) ul; if ((unsigned long) k != ul) return -1; *u = k; return 0; } static int parse_usec(const char *s, AvahiUsec *u) { char *e = NULL; unsigned long long ull; AvahiUsec k; errno = 0; ull = strtoull(s, &e, 0); if (!e || *e || errno != 0) return -1; k = (AvahiUsec) ull; if ((unsigned long long) k != ull) return -1; *u = k; return 0; } static char *get_machine_id(void) { int fd; char buf[32]; fd = open("/etc/machine-id", O_RDONLY|O_CLOEXEC|O_NOCTTY); if (fd == -1 && errno == ENOENT) fd = open("/var/lib/dbus/machine-id", O_RDONLY|O_CLOEXEC|O_NOCTTY); if (fd == -1) return NULL; /* File is on a filesystem so we never get EINTR or partial reads */ if (read(fd, buf, sizeof buf) != sizeof buf) { close(fd); return NULL; } close(fd); /* Contents can be lower, upper and even mixed case so normalize */ avahi_strdown(buf); return avahi_strndup(buf, sizeof buf); } static int load_config_file(DaemonConfig *c) { int r = -1; AvahiIniFile *f; AvahiIniFileGroup *g; assert(c); if (!(f = avahi_ini_file_load(c->config_file ? c->config_file : AVAHI_CONFIG_FILE))) goto finish; for (g = f->groups; g; g = g->groups_next) { if (strcasecmp(g->name, "server") == 0) { AvahiIniFilePair *p; for (p = g->pairs; p; p = p->pairs_next) { if (strcasecmp(p->key, "host-name") == 0) { avahi_free(c->server_config.host_name); c->server_config.host_name = avahi_strdup(p->value); } else if (strcasecmp(p->key, "domain-name") == 0) { avahi_free(c->server_config.domain_name); c->server_config.domain_name = avahi_strdup(p->value); } else if (strcasecmp(p->key, "browse-domains") == 0) { char **e, **t; e = avahi_split_csv(p->value); for (t = e; *t; t++) { char cleaned[AVAHI_DOMAIN_NAME_MAX]; if (!avahi_normalize_name(*t, cleaned, sizeof(cleaned))) { avahi_log_error("Invalid domain name \"%s\" for key \"%s\" in group \"%s\"\n", *t, p->key, g->name); avahi_strfreev(e); goto finish; } c->server_config.browse_domains = avahi_string_list_add(c->server_config.browse_domains, cleaned); } avahi_strfreev(e); c->server_config.browse_domains = filter_duplicate_domains(c->server_config.browse_domains); } else if (strcasecmp(p->key, "use-ipv4") == 0) c->server_config.use_ipv4 = is_yes(p->value); else if (strcasecmp(p->key, "use-ipv6") == 0) c->server_config.use_ipv6 = is_yes(p->value); else if (strcasecmp(p->key, "check-response-ttl") == 0) c->server_config.check_response_ttl = is_yes(p->value); else if (strcasecmp(p->key, "allow-point-to-point") == 0) c->server_config.allow_point_to_point = is_yes(p->value); else if (strcasecmp(p->key, "use-iff-running") == 0) c->server_config.use_iff_running = is_yes(p->value); else if (strcasecmp(p->key, "disallow-other-stacks") == 0) c->server_config.disallow_other_stacks = is_yes(p->value); else if (strcasecmp(p->key, "host-name-from-machine-id") == 0) { if (*(p->value) == 'y' || *(p->value) == 'Y') { char *machine_id = get_machine_id(); if (machine_id != NULL) { avahi_free(c->server_config.host_name); c->server_config.host_name = machine_id; } } } #ifdef HAVE_DBUS else if (strcasecmp(p->key, "enable-dbus") == 0) { if (*(p->value) == 'w' || *(p->value) == 'W') { c->fail_on_missing_dbus = 0; c->enable_dbus = 1; } else if (*(p->value) == 'y' || *(p->value) == 'Y') { c->fail_on_missing_dbus = 1; c->enable_dbus = 1; } else { c->enable_dbus = 0; } } #endif else if (strcasecmp(p->key, "allow-interfaces") == 0) { char **e, **t; avahi_string_list_free(c->server_config.allow_interfaces); c->server_config.allow_interfaces = NULL; e = avahi_split_csv(p->value); for (t = e; *t; t++) c->server_config.allow_interfaces = avahi_string_list_add(c->server_config.allow_interfaces, *t); avahi_strfreev(e); } else if (strcasecmp(p->key, "deny-interfaces") == 0) { char **e, **t; avahi_string_list_free(c->server_config.deny_interfaces); c->server_config.deny_interfaces = NULL; e = avahi_split_csv(p->value); for (t = e; *t; t++) c->server_config.deny_interfaces = avahi_string_list_add(c->server_config.deny_interfaces, *t); avahi_strfreev(e); } else if (strcasecmp(p->key, "ratelimit-interval-usec") == 0) { AvahiUsec k; if (parse_usec(p->value, &k) < 0) { avahi_log_error("Invalid ratelimit-interval-usec setting %s", p->value); goto finish; } c->server_config.ratelimit_interval = k; } else if (strcasecmp(p->key, "ratelimit-burst") == 0) { unsigned k; if (parse_unsigned(p->value, &k) < 0) { avahi_log_error("Invalid ratelimit-burst setting %s", p->value); goto finish; } c->server_config.ratelimit_burst = k; } else if (strcasecmp(p->key, "cache-entries-max") == 0) { unsigned k; if (parse_unsigned(p->value, &k) < 0) { avahi_log_error("Invalid cache-entries-max setting %s", p->value); goto finish; } c->server_config.n_cache_entries_max = k; #ifdef HAVE_DBUS } else if (strcasecmp(p->key, "clients-max") == 0) { unsigned k; if (parse_unsigned(p->value, &k) < 0) { avahi_log_error("Invalid clients-max setting %s", p->value); goto finish; } c->n_clients_max = k; } else if (strcasecmp(p->key, "objects-per-client-max") == 0) { unsigned k; if (parse_unsigned(p->value, &k) < 0) { avahi_log_error("Invalid objects-per-client-max setting %s", p->value); goto finish; } c->n_objects_per_client_max = k; } else if (strcasecmp(p->key, "entries-per-entry-group-max") == 0) { unsigned k; if (parse_unsigned(p->value, &k) < 0) { avahi_log_error("Invalid entries-per-entry-group-max setting %s", p->value); goto finish; } c->n_entries_per_entry_group_max = k; #endif } else { avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name); goto finish; } } } else if (strcasecmp(g->name, "publish") == 0) { AvahiIniFilePair *p; for (p = g->pairs; p; p = p->pairs_next) { if (strcasecmp(p->key, "publish-addresses") == 0) c->server_config.publish_addresses = is_yes(p->value); else if (strcasecmp(p->key, "publish-hinfo") == 0) c->server_config.publish_hinfo = is_yes(p->value); else if (strcasecmp(p->key, "publish-workstation") == 0) c->server_config.publish_workstation = is_yes(p->value); else if (strcasecmp(p->key, "publish-domain") == 0) c->server_config.publish_domain = is_yes(p->value); else if (strcasecmp(p->key, "publish-resolv-conf-dns-servers") == 0) c->publish_resolv_conf = is_yes(p->value); else if (strcasecmp(p->key, "disable-publishing") == 0) c->server_config.disable_publishing = is_yes(p->value); else if (strcasecmp(p->key, "disable-user-service-publishing") == 0) c->disable_user_service_publishing = is_yes(p->value); else if (strcasecmp(p->key, "add-service-cookie") == 0) c->server_config.add_service_cookie = is_yes(p->value); else if (strcasecmp(p->key, "publish-dns-servers") == 0) { avahi_strfreev(c->publish_dns_servers); c->publish_dns_servers = avahi_split_csv(p->value); } else if (strcasecmp(p->key, "publish-a-on-ipv6") == 0) c->server_config.publish_a_on_ipv6 = is_yes(p->value); else if (strcasecmp(p->key, "publish-aaaa-on-ipv4") == 0) c->server_config.publish_aaaa_on_ipv4 = is_yes(p->value); else { avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name); goto finish; } } } else if (strcasecmp(g->name, "wide-area") == 0) { AvahiIniFilePair *p; for (p = g->pairs; p; p = p->pairs_next) { if (strcasecmp(p->key, "enable-wide-area") == 0) c->server_config.enable_wide_area = is_yes(p->value); else { avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name); goto finish; } } } else if (strcasecmp(g->name, "reflector") == 0) { AvahiIniFilePair *p; for (p = g->pairs; p; p = p->pairs_next) { if (strcasecmp(p->key, "enable-reflector") == 0) c->server_config.enable_reflector = is_yes(p->value); else if (strcasecmp(p->key, "reflect-ipv") == 0) c->server_config.reflect_ipv = is_yes(p->value); else { avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name); goto finish; } } } else if (strcasecmp(g->name, "rlimits") == 0) { AvahiIniFilePair *p; for (p = g->pairs; p; p = p->pairs_next) { if (strcasecmp(p->key, "rlimit-as") == 0) { c->rlimit_as_set = 1; c->rlimit_as = atoi(p->value); } else if (strcasecmp(p->key, "rlimit-core") == 0) { c->rlimit_core_set = 1; c->rlimit_core = atoi(p->value); } else if (strcasecmp(p->key, "rlimit-data") == 0) { c->rlimit_data_set = 1; c->rlimit_data = atoi(p->value); } else if (strcasecmp(p->key, "rlimit-fsize") == 0) { c->rlimit_fsize_set = 1; c->rlimit_fsize = atoi(p->value); } else if (strcasecmp(p->key, "rlimit-nofile") == 0) { c->rlimit_nofile_set = 1; c->rlimit_nofile = atoi(p->value); } else if (strcasecmp(p->key, "rlimit-stack") == 0) { c->rlimit_stack_set = 1; c->rlimit_stack = atoi(p->value); } else if (strcasecmp(p->key, "rlimit-nproc") == 0) { #ifdef RLIMIT_NPROC c->rlimit_nproc_set = 1; c->rlimit_nproc = atoi(p->value); #else avahi_log_error("Ignoring configuration key \"%s\" in group \"%s\"\n", p->key, g->name); #endif } else { avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name); goto finish; } } } else { avahi_log_error("Invalid configuration file group \"%s\".\n", g->name); goto finish; } } r = 0; finish: if (f) avahi_ini_file_free(f); return r; } static void log_function(AvahiLogLevel level, const char *txt) { static const int log_level_map[] = { LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, LOG_DEBUG }; assert(level < AVAHI_LOG_LEVEL_MAX); assert(txt); if (!config.debug && level == AVAHI_LOG_DEBUG) return; daemon_log(log_level_map[level], "%s", txt); } static void dump(const char *text, AVAHI_GCC_UNUSED void* userdata) { avahi_log_info("%s", text); } #ifdef HAVE_INOTIFY static int inotify_fd = -1; static void add_inotify_watches(void) { int c = 0; /* We ignore the return values, because one or more of these files * might not exist and we're OK with that. In addition we never * want to remove these watches, hence we keep their ids? */ #ifdef ENABLE_CHROOT c = config.use_chroot; #endif inotify_add_watch(inotify_fd, c ? "/services" : AVAHI_SERVICE_DIR, IN_CLOSE_WRITE|IN_DELETE|IN_DELETE_SELF|IN_MOVED_FROM|IN_MOVED_TO|IN_MOVE_SELF #ifdef IN_ONLYDIR |IN_ONLYDIR #endif ); inotify_add_watch(inotify_fd, c ? "/" : AVAHI_CONFIG_DIR, IN_CLOSE_WRITE|IN_DELETE|IN_DELETE_SELF|IN_MOVED_FROM|IN_MOVED_TO|IN_MOVE_SELF #ifdef IN_ONLYDIR |IN_ONLYDIR #endif ); } #endif #ifdef HAVE_KQUEUE #define NUM_WATCHES 2 static int kq = -1; static int kfds[NUM_WATCHES]; static int num_kfds = 0; static void add_kqueue_watch(const char *dir); static void add_kqueue_watches(void) { int c = 0; #ifdef ENABLE_CHROOT c = config.use_chroot; #endif add_kqueue_watch(c ? "/" : AVAHI_CONFIG_DIR); add_kqueue_watch(c ? "/services" : AVAHI_SERVICE_DIR); } static void add_kqueue_watch(const char *dir) { int fd; struct kevent ev; if (kq < 0) return; if (num_kfds >= NUM_WATCHES) return; fd = open(dir, O_RDONLY); if (fd < 0) return; EV_SET(&ev, fd, EVFILT_VNODE, EV_ADD | EV_ENABLE | EV_CLEAR, NOTE_DELETE | NOTE_EXTEND | NOTE_WRITE | NOTE_RENAME, 0, 0); if (kevent(kq, &ev, 1, NULL, 0, NULL) == -1) { close(fd); return; } kfds[num_kfds++] = fd; } #endif static void reload_config(void) { #ifdef HAVE_INOTIFY /* Refresh in case the config dirs have been removed */ add_inotify_watches(); #endif #ifdef HAVE_KQUEUE add_kqueue_watches(); #endif #ifdef ENABLE_CHROOT static_service_load(config.use_chroot); static_hosts_load(config.use_chroot); #else static_service_load(0); static_hosts_load(0); #endif static_service_add_to_server(); static_hosts_add_to_server(); if (resolv_conf_entry_group) avahi_s_entry_group_reset(resolv_conf_entry_group); load_resolv_conf(); update_wide_area_servers(); update_browse_domains(); if (config.publish_resolv_conf && resolv_conf_name_servers && resolv_conf_name_servers[0]) resolv_conf_entry_group = add_dns_servers(avahi_server, resolv_conf_entry_group, resolv_conf_name_servers); } #ifdef HAVE_INOTIFY static void inotify_callback(AvahiWatch *watch, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent event, AVAHI_GCC_UNUSED void *userdata) { char* buffer; int n = 0; assert(fd == inotify_fd); assert(watch); ioctl(inotify_fd, FIONREAD, &n); if (n <= 0) n = 128; buffer = avahi_malloc(n); if (read(inotify_fd, buffer, n) < 0 ) { avahi_free(buffer); avahi_log_error("Failed to read inotify event: %s", avahi_strerror(errno)); return; } avahi_free(buffer); avahi_log_info("Files changed, reloading."); reload_config(); } #endif #ifdef HAVE_KQUEUE static void kqueue_callback(AvahiWatch *watch, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent event, AVAHI_GCC_UNUSED void *userdata) { struct kevent ev; struct timespec nullts = { 0, 0 }; int res; assert(fd == kq); assert(watch); res = kevent(kq, NULL, 0, &ev, 1, &nullts); if (res > 0) { /* Sleep for a half-second to avoid potential races * during install/uninstall. */ usleep(500000); avahi_log_info("Files changed, reloading."); reload_config(); } else { avahi_log_error("Failed to read kqueue event: %s", avahi_strerror(errno)); } } #endif static void signal_callback(AvahiWatch *watch, AVAHI_GCC_UNUSED int fd, AVAHI_GCC_UNUSED AvahiWatchEvent event, AVAHI_GCC_UNUSED void *userdata) { int sig; const AvahiPoll *poll_api; assert(watch); assert(simple_poll_api); poll_api = avahi_simple_poll_get(simple_poll_api); if ((sig = daemon_signal_next()) <= 0) { avahi_log_error("daemon_signal_next() failed"); poll_api->watch_free(watch); return; } switch (sig) { case SIGINT: case SIGTERM: avahi_log_info( "Got %s, quitting.", sig == SIGINT ? "SIGINT" : "SIGTERM"); avahi_simple_poll_quit(simple_poll_api); break; case SIGHUP: avahi_log_info("Got SIGHUP, reloading."); reload_config(); break; case SIGUSR1: avahi_log_info("Got SIGUSR1, dumping record data."); avahi_server_dump(avahi_server, dump, NULL); break; default: avahi_log_warn("Got spurious signal, ignoring."); break; } } /* Imported from ../avahi-client/nss-check.c */ int avahi_nss_support(void); static void ignore_signal(int sig) { struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; sa.sa_flags = SA_RESTART; sigaction(sig, &sa, NULL); } static int run_server(DaemonConfig *c) { int r = -1; int error; const AvahiPoll *poll_api = NULL; AvahiWatch *sig_watch = NULL; int retval_is_sent = 0; #ifdef HAVE_INOTIFY AvahiWatch *inotify_watch = NULL; #endif #ifdef HAVE_KQUEUE int i; AvahiWatch *kqueue_watch = NULL; #endif assert(c); ignore_signal(SIGPIPE); if (!(nss_support = avahi_nss_support())) avahi_log_warn("WARNING: No NSS support for mDNS detected, consider installing nss-mdns!"); if (!(simple_poll_api = avahi_simple_poll_new())) { avahi_log_error("Failed to create main loop object."); goto finish; } poll_api = avahi_simple_poll_get(simple_poll_api); if (daemon_signal_init(SIGINT, SIGHUP, SIGTERM, SIGUSR1, 0) < 0) { avahi_log_error("Could not register signal handlers (%s).", strerror(errno)); goto finish; } if (!(sig_watch = poll_api->watch_new(poll_api, daemon_signal_fd(), AVAHI_WATCH_IN, signal_callback, simple_poll_api))) { avahi_log_error( "Failed to create signal watcher"); goto finish; } if (simple_protocol_setup(poll_api) < 0) goto finish; #ifdef HAVE_DBUS if (c->enable_dbus) { if (dbus_protocol_setup(poll_api, config.disable_user_service_publishing, config.n_clients_max, config.n_objects_per_client_max, config.n_entries_per_entry_group_max, !c->fail_on_missing_dbus #ifdef ENABLE_CHROOT && !config.use_chroot #endif ) < 0) { avahi_log_warn("WARNING: Failed to contact D-Bus daemon."); if (c->fail_on_missing_dbus) goto finish; } } #endif #ifdef ENABLE_CHROOT if (config.drop_root && config.use_chroot) { if (chroot(AVAHI_CONFIG_DIR) < 0) { avahi_log_error("Failed to chroot(): %s", strerror(errno)); goto finish; } avahi_log_info("Successfully called chroot()."); chdir("/"); if (avahi_caps_drop_all() < 0) { avahi_log_error("Failed to drop capabilities."); goto finish; } avahi_log_info("Successfully dropped remaining capabilities."); } #endif #ifdef HAVE_INOTIFY if ((inotify_fd = inotify_init()) < 0) avahi_log_warn( "Failed to initialize inotify: %s", strerror(errno)); else { add_inotify_watches(); if (!(inotify_watch = poll_api->watch_new(poll_api, inotify_fd, AVAHI_WATCH_IN, inotify_callback, NULL))) { avahi_log_error( "Failed to create inotify watcher"); goto finish; } } #endif #ifdef HAVE_KQUEUE if ((kq = kqueue()) < 0) avahi_log_warn( "Failed to initialize kqueue: %s", strerror(errno)); else { add_kqueue_watches(); if (!(kqueue_watch = poll_api->watch_new(poll_api, kq, AVAHI_WATCH_IN, kqueue_callback, NULL))) { avahi_log_error( "Failed to create kqueue watcher"); goto finish; } } #endif load_resolv_conf(); #ifdef ENABLE_CHROOT static_service_load(config.use_chroot); static_hosts_load(config.use_chroot); #else static_service_load(0); static_hosts_load(0); #endif if (!(avahi_server = avahi_server_new(poll_api, &c->server_config, server_callback, c, &error))) { avahi_log_error("Failed to create server: %s", avahi_strerror(error)); goto finish; } update_wide_area_servers(); update_browse_domains(); if (c->daemonize) { daemon_retval_send(0); retval_is_sent = 1; } for (;;) { if ((r = avahi_simple_poll_iterate(simple_poll_api, -1)) < 0) { /* We handle signals through an FD, so let's continue */ if (errno == EINTR) continue; avahi_log_error("poll(): %s", strerror(errno)); goto finish; } else if (r > 0) /* Quit */ break; } r = 0; finish: static_service_remove_from_server(); static_service_free_all(); static_hosts_remove_from_server(); static_hosts_free_all(); remove_dns_server_entry_groups(); simple_protocol_shutdown(); #ifdef HAVE_DBUS if (c->enable_dbus) dbus_protocol_shutdown(); #endif if (avahi_server) { avahi_server_free(avahi_server); avahi_server = NULL; } daemon_signal_done(); if (sig_watch) poll_api->watch_free(sig_watch); #ifdef HAVE_INOTIFY if (inotify_watch) poll_api->watch_free(inotify_watch); if (inotify_fd >= 0) close(inotify_fd); #endif #ifdef HAVE_KQUEUE if (kqueue_watch) poll_api->watch_free(kqueue_watch); if (kq >= 0) close(kq); for (i = 0; i < num_kfds; i++) { if (kfds[i] >= 0) close(kfds[i]); } #endif if (simple_poll_api) { avahi_simple_poll_free(simple_poll_api); simple_poll_api = NULL; } if (!retval_is_sent && c->daemonize) daemon_retval_send(1); return r; } #define set_env(key, value) putenv(avahi_strdup_printf("%s=%s", (key), (value))) static int drop_root(void) { struct passwd *pw; struct group * gr; int r; if (!(pw = getpwnam(AVAHI_USER))) { avahi_log_error( "Failed to find user '"AVAHI_USER"'."); return -1; } if (!(gr = getgrnam(AVAHI_GROUP))) { avahi_log_error( "Failed to find group '"AVAHI_GROUP"'."); return -1; } avahi_log_info("Found user '"AVAHI_USER"' (UID %lu) and group '"AVAHI_GROUP"' (GID %lu).", (unsigned long) pw->pw_uid, (unsigned long) gr->gr_gid); if (initgroups(AVAHI_USER, gr->gr_gid) != 0) { avahi_log_error("Failed to change group list: %s", strerror(errno)); return -1; } #if defined(HAVE_SETRESGID) r = setresgid(gr->gr_gid, gr->gr_gid, gr->gr_gid); #elif defined(HAVE_SETEGID) if ((r = setgid(gr->gr_gid)) >= 0) r = setegid(gr->gr_gid); #elif defined(HAVE_SETREGID) r = setregid(gr->gr_gid, gr->gr_gid); #else #error "No API to drop privileges" #endif if (r < 0) { avahi_log_error("Failed to change GID: %s", strerror(errno)); return -1; } #if defined(HAVE_SETRESUID) r = setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid); #elif defined(HAVE_SETEUID) if ((r = setuid(pw->pw_uid)) >= 0) r = seteuid(pw->pw_uid); #elif defined(HAVE_SETREUID) r = setreuid(pw->pw_uid, pw->pw_uid); #else #error "No API to drop privileges" #endif if (r < 0) { avahi_log_error("Failed to change UID: %s", strerror(errno)); return -1; } set_env("USER", pw->pw_name); set_env("LOGNAME", pw->pw_name); set_env("HOME", pw->pw_dir); avahi_log_info("Successfully dropped root privileges."); return 0; } static const char* pid_file_proc(void) { return AVAHI_DAEMON_RUNTIME_DIR"/pid"; } static int make_runtime_dir(void) { int r = -1; mode_t u; int reset_umask = 0; struct passwd *pw; struct group * gr; struct stat st; if (!(pw = getpwnam(AVAHI_USER))) { avahi_log_error( "Failed to find user '"AVAHI_USER"'."); goto fail; } if (!(gr = getgrnam(AVAHI_GROUP))) { avahi_log_error( "Failed to find group '"AVAHI_GROUP"'."); goto fail; } u = umask(0000); reset_umask = 1; if (mkdir(AVAHI_DAEMON_RUNTIME_DIR, 0755) < 0 && errno != EEXIST) { avahi_log_error("mkdir(\""AVAHI_DAEMON_RUNTIME_DIR"\"): %s", strerror(errno)); goto fail; } chown(AVAHI_DAEMON_RUNTIME_DIR, pw->pw_uid, gr->gr_gid); if (stat(AVAHI_DAEMON_RUNTIME_DIR, &st) < 0) { avahi_log_error("stat(): %s\n", strerror(errno)); goto fail; } if (!S_ISDIR(st.st_mode) || st.st_uid != pw->pw_uid || st.st_gid != gr->gr_gid) { avahi_log_error("Failed to create runtime directory "AVAHI_DAEMON_RUNTIME_DIR"."); goto fail; } r = 0; fail: if (reset_umask) umask(u); return r; } static void set_one_rlimit(int resource, rlim_t limit, const char *name) { struct rlimit rl; rl.rlim_cur = rl.rlim_max = limit; if (setrlimit(resource, &rl) < 0) avahi_log_warn("setrlimit(%s, {%u, %u}) failed: %s", name, (unsigned) limit, (unsigned) limit, strerror(errno)); } static void enforce_rlimits(void) { #ifdef RLIMIT_AS if (config.rlimit_as_set) set_one_rlimit(RLIMIT_AS, config.rlimit_as, "RLIMIT_AS"); #endif if (config.rlimit_core_set) set_one_rlimit(RLIMIT_CORE, config.rlimit_core, "RLIMIT_CORE"); if (config.rlimit_data_set) set_one_rlimit(RLIMIT_DATA, config.rlimit_data, "RLIMIT_DATA"); if (config.rlimit_fsize_set) set_one_rlimit(RLIMIT_FSIZE, config.rlimit_fsize, "RLIMIT_FSIZE"); if (config.rlimit_nofile_set) set_one_rlimit(RLIMIT_NOFILE, config.rlimit_nofile, "RLIMIT_NOFILE"); if (config.rlimit_stack_set) set_one_rlimit(RLIMIT_STACK, config.rlimit_stack, "RLIMIT_STACK"); #ifdef RLIMIT_NPROC if (config.rlimit_nproc_set) set_one_rlimit(RLIMIT_NPROC, config.rlimit_nproc, "RLIMIT_NPROC"); #endif /* the sysctl() call from iface-pfroute.c needs locked memory on FreeBSD */ #if defined(RLIMIT_MEMLOCK) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) /* We don't need locked memory */ set_one_rlimit(RLIMIT_MEMLOCK, 0, "RLIMIT_MEMLOCK"); #endif } #define RANDOM_DEVICE "/dev/urandom" static void init_rand_seed(void) { int fd; unsigned seed = 0; /* Try to initialize seed from /dev/urandom, to make it a little * less predictable, and to make sure that multiple machines * booted at the same time choose different random seeds. */ if ((fd = open(RANDOM_DEVICE, O_RDONLY)) >= 0) { read(fd, &seed, sizeof(seed)); close(fd); } /* If the initialization failed by some reason, we add the time to the seed*/ seed ^= (unsigned) time(NULL); srand(seed); } int main(int argc, char *argv[]) { int r = 255; int wrote_pid_file = 0; avahi_set_log_function(log_function); init_rand_seed(); avahi_server_config_init(&config.server_config); config.command = DAEMON_RUN; config.daemonize = 0; config.config_file = NULL; #ifdef HAVE_DBUS config.enable_dbus = 1; config.fail_on_missing_dbus = 1; config.n_clients_max = 0; config.n_objects_per_client_max = 0; config.n_entries_per_entry_group_max = 0; #endif config.drop_root = 1; config.set_rlimits = 1; #ifdef ENABLE_CHROOT config.use_chroot = 1; #endif config.modify_proc_title = 1; config.disable_user_service_publishing = 0; config.publish_dns_servers = NULL; config.publish_resolv_conf = 0; config.use_syslog = 0; config.debug = 0; config.rlimit_as_set = 0; config.rlimit_core_set = 0; config.rlimit_data_set = 0; config.rlimit_fsize_set = 0; config.rlimit_nofile_set = 0; config.rlimit_stack_set = 0; #ifdef RLIMIT_NPROC config.rlimit_nproc_set = 0; #endif if ((argv0 = strrchr(argv[0], '/'))) argv0 = avahi_strdup(argv0 + 1); else argv0 = avahi_strdup(argv[0]); daemon_pid_file_ident = (const char *) argv0; daemon_log_ident = (char*) argv0; daemon_pid_file_proc = pid_file_proc; if (parse_command_line(&config, argc, argv) < 0) goto finish; if (config.modify_proc_title) avahi_init_proc_title(argc, argv); #ifdef ENABLE_CHROOT config.use_chroot = config.use_chroot && config.drop_root; #endif if (config.command == DAEMON_HELP) { help(stdout); r = 0; } else if (config.command == DAEMON_VERSION) { printf("%s "PACKAGE_VERSION"\n", argv0); r = 0; } else if (config.command == DAEMON_KILL) { if (daemon_pid_file_kill_wait(SIGTERM, 5) < 0) { avahi_log_warn("Failed to kill daemon: %s", strerror(errno)); goto finish; } r = 0; } else if (config.command == DAEMON_RELOAD) { if (daemon_pid_file_kill(SIGHUP) < 0) { avahi_log_warn("Failed to kill daemon: %s", strerror(errno)); goto finish; } r = 0; } else if (config.command == DAEMON_CHECK) r = (daemon_pid_file_is_running() >= 0) ? 0 : 1; else if (config.command == DAEMON_RUN) { pid_t pid; if (getuid() != 0 && config.drop_root) { avahi_log_error("This program is intended to be run as root."); goto finish; } if ((pid = daemon_pid_file_is_running()) >= 0) { avahi_log_error("Daemon already running on PID %u", pid); goto finish; } if (load_config_file(&config) < 0) goto finish; if (config.daemonize) { daemon_retval_init(); if ((pid = daemon_fork()) < 0) goto finish; else if (pid != 0) { int ret; /** Parent **/ if ((ret = daemon_retval_wait(20)) < 0) { avahi_log_error("Could not receive return value from daemon process."); goto finish; } r = ret; goto finish; } /* Child */ } if (config.use_syslog || config.daemonize) daemon_log_use = DAEMON_LOG_SYSLOG; if (sd_listen_fds(0) <= 0) if (daemon_close_all(-1) < 0) avahi_log_warn("Failed to close all remaining file descriptors: %s", strerror(errno)); daemon_reset_sigs(-1); daemon_unblock_sigs(-1); if (make_runtime_dir() < 0) goto finish; if (config.drop_root) { #ifdef ENABLE_CHROOT if (config.use_chroot) if (avahi_caps_reduce() < 0) goto finish; #endif if (drop_root() < 0) goto finish; #ifdef ENABLE_CHROOT if (config.use_chroot) if (avahi_caps_reduce2() < 0) goto finish; #endif } if (daemon_pid_file_create() < 0) { avahi_log_error("Failed to create PID file: %s", strerror(errno)); if (config.daemonize) daemon_retval_send(1); goto finish; } else wrote_pid_file = 1; if (config.set_rlimits) enforce_rlimits(); chdir("/"); #ifdef ENABLE_CHROOT if (config.drop_root && config.use_chroot) if (avahi_chroot_helper_start(argv0) < 0) { avahi_log_error("failed to start chroot() helper daemon."); goto finish; } #endif avahi_log_info("%s "PACKAGE_VERSION" starting up.", argv0); sd_notifyf(0, "STATUS=%s "PACKAGE_VERSION" starting up.", argv0); avahi_set_proc_title(argv0, "%s: starting up", argv0); if (run_server(&config) == 0) r = 0; avahi_log_info("%s "PACKAGE_VERSION" exiting.", argv0); sd_notifyf(0, "STATUS=%s "PACKAGE_VERSION" exiting.", argv0); } finish: if (config.daemonize) daemon_retval_done(); avahi_server_config_free(&config.server_config); avahi_free(config.config_file); avahi_strfreev(config.publish_dns_servers); avahi_strfreev(resolv_conf_name_servers); avahi_strfreev(resolv_conf_search_domains); if (wrote_pid_file) { #ifdef ENABLE_CHROOT avahi_chroot_helper_unlink(pid_file_proc()); #else daemon_pid_file_remove(); #endif } #ifdef ENABLE_CHROOT avahi_chroot_helper_shutdown(); #endif avahi_free(argv0); return r; } avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-service-type-browser.c0000644000000000000000000000013213130651643021731 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.535978239 avahi-0.7/avahi-daemon/dbus-service-type-browser.c0000644000175000017500000001027213130651643023342 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" void avahi_dbus_service_type_browser_free(ServiceTypeBrowserInfo *i) { assert(i); if (i->service_type_browser) avahi_s_service_type_browser_free(i->service_type_browser); if (i->path) { dbus_connection_unregister_object_path(server->bus, i->path); avahi_free(i->path); } AVAHI_LLIST_REMOVE(ServiceTypeBrowserInfo, service_type_browsers, i->client->service_type_browsers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } DBusHandlerResult avahi_dbus_msg_service_type_browser_impl(DBusConnection *c, DBusMessage *m, void *userdata) { DBusError error; ServiceTypeBrowserInfo *i = userdata; assert(c); assert(m); assert(i); dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); /* Introspection */ if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.ServiceTypeBrowser.xml"); /* Access control */ if (strcmp(dbus_message_get_sender(m), i->client->name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_ACCESS_DENIED, NULL); if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, "Free")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing ServiceTypeBrowser::Free message"); goto fail; } avahi_dbus_service_type_browser_free(i); return avahi_dbus_respond_ok(c, m); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } void avahi_dbus_service_type_browser_callback(AvahiSServiceTypeBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *type, const char *domain, AvahiLookupResultFlags flags, void* userdata) { ServiceTypeBrowserInfo *i = userdata; DBusMessage *m; int32_t i_interface, i_protocol; uint32_t u_flags; assert(b); assert(i); i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; m = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, avahi_dbus_map_browse_signal_name(event)); if (!m) { avahi_log_error("Failed allocate message"); return; } if (event == AVAHI_BROWSER_NEW || event == AVAHI_BROWSER_REMOVE) { assert(type); assert(domain); dbus_message_append_args( m, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); } else if (event == AVAHI_BROWSER_FAILURE) avahi_dbus_append_server_error(m); dbus_message_set_destination(m, i->client->name); dbus_connection_send(server->bus, m, NULL); dbus_message_unref(m); } avahi-0.7/avahi-daemon/PaxHeaders.10109/chroot.h0000644000000000000000000000013213130651643016201 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.527978419 avahi-0.7/avahi-daemon/chroot.h0000644000175000017500000000214513130651643017612 0ustar00lathiatlathiat00000000000000#ifndef foochroothelperhfoo #define foochroothelperhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include int avahi_chroot_helper_start(const char *argv0); void avahi_chroot_helper_shutdown(void); int avahi_chroot_helper_get(const char *fname); int avahi_chroot_helper_get_fd(const char *fname); FILE *avahi_chroot_helper_get_file(const char *fname); int avahi_chroot_helper_unlink(const char *fname); #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/avahi-daemon.socket.in0000644000000000000000000000013213130651643020702 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.543978063 avahi-0.7/avahi-daemon/avahi-daemon.socket.in0000644000175000017500000000156513130651643022320 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. [Unit] Description=Avahi mDNS/DNS-SD Stack Activation Socket [Socket] ListenStream=@avahi_runtime_dir@/avahi-daemon/socket [Install] WantedBy=sockets.target avahi-0.7/avahi-daemon/PaxHeaders.10109/introspect.dtd0000644000000000000000000000013213130651643017421 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.543978063 avahi-0.7/avahi-daemon/introspect.dtd0000644000175000017500000000230213130651643021025 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/static-hosts.h0000644000000000000000000000013213130651643017330 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.523978509 avahi-0.7/avahi-daemon/static-hosts.h0000644000175000017500000000170113130651643020736 0ustar00lathiatlathiat00000000000000#ifndef foostatichostshfoo #define foostatichostshfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ void static_hosts_load(int in_chroot); void static_hosts_free_all(void); void static_hosts_add_to_server(void); void static_hosts_remove_from_server(void); #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/example.service0000644000000000000000000000013213130651643017547 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.539978153 avahi-0.7/avahi-daemon/example.service0000644000175000017500000000273113130651643021161 0ustar00lathiatlathiat00000000000000 Printer on %h _printer._tcp 515 _ipp._tcp _colour._sub._ipp._tcp 631 _uberprinter._tcp local quux.local 4711 this=is a=really bad=example avahi-0.7/avahi-daemon/PaxHeaders.10109/avahi-daemon.conf0000644000000000000000000000013213130651643017732 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.539978153 avahi-0.7/avahi-daemon/avahi-daemon.conf0000644000175000017500000000333113130651643021341 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # See avahi-daemon.conf(5) for more information on this configuration # file! [server] #host-name=foo #domain-name=local #browse-domains=0pointer.de, zeroconf.org use-ipv4=yes use-ipv6=yes #allow-interfaces=eth0 #deny-interfaces=eth1 #check-response-ttl=no #use-iff-running=no #enable-dbus=yes #disallow-other-stacks=no #allow-point-to-point=no #cache-entries-max=4096 #clients-max=4096 #objects-per-client-max=1024 #entries-per-entry-group-max=32 ratelimit-interval-usec=1000000 ratelimit-burst=1000 [wide-area] enable-wide-area=yes [publish] #disable-publishing=no #disable-user-service-publishing=no #add-service-cookie=no #publish-addresses=yes publish-hinfo=no publish-workstation=no #publish-domain=yes #publish-dns-servers=192.168.50.1, 192.168.50.2 #publish-resolv-conf-dns-servers=yes #publish-aaaa-on-ipv4=yes #publish-a-on-ipv6=no [reflector] #enable-reflector=no #reflect-ipv=no [rlimits] #rlimit-as= #rlimit-core=0 #rlimit-data=8388608 #rlimit-fsize=0 #rlimit-nofile=768 #rlimit-stack=8388608 #rlimit-nproc=3 avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-entry-group.c0000644000000000000000000000013213130651643020124 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.535978239 avahi-0.7/avahi-daemon/dbus-entry-group.c0000644000175000017500000003170213130651643021536 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" #include "main.h" void avahi_dbus_entry_group_free(EntryGroupInfo *i) { assert(i); if (i->entry_group) avahi_s_entry_group_free(i->entry_group); if (i->path) { dbus_connection_unregister_object_path(server->bus, i->path); avahi_free(i->path); } AVAHI_LLIST_REMOVE(EntryGroupInfo, entry_groups, i->client->entry_groups, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } void avahi_dbus_entry_group_callback(AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, void* userdata) { EntryGroupInfo *i = userdata; DBusMessage *m; int32_t t; const char *e; assert(s); assert(g); assert(i); m = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "StateChanged"); if (!m) { avahi_log_error("Failed allocate message"); return; } t = (int32_t) state; if (state == AVAHI_ENTRY_GROUP_FAILURE) e = avahi_error_number_to_dbus(avahi_server_errno(s)); else if (state == AVAHI_ENTRY_GROUP_COLLISION) e = AVAHI_DBUS_ERR_COLLISION; else e = AVAHI_DBUS_ERR_OK; dbus_message_append_args( m, DBUS_TYPE_INT32, &t, DBUS_TYPE_STRING, &e, DBUS_TYPE_INVALID); dbus_message_set_destination(m, i->client->name); dbus_connection_send(server->bus, m, NULL); dbus_message_unref(m); } DBusHandlerResult avahi_dbus_msg_entry_group_impl(DBusConnection *c, DBusMessage *m, void *userdata) { DBusError error; EntryGroupInfo *i = userdata; assert(c); assert(m); assert(i); dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); /* Introspection */ if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.EntryGroup.xml"); /* Access control */ if (strcmp(dbus_message_get_sender(m), i->client->name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_ACCESS_DENIED, NULL); if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "Free")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing EntryGroup::Free message"); goto fail; } avahi_dbus_entry_group_free(i); return avahi_dbus_respond_ok(c, m); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "Commit")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing EntryGroup::Commit message"); goto fail; } if (avahi_s_entry_group_commit(i->entry_group) < 0) return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); return avahi_dbus_respond_ok(c, m); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "Reset")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing EntryGroup::Reset message"); goto fail; } avahi_s_entry_group_reset(i->entry_group); i->n_entries = 0; return avahi_dbus_respond_ok(c, m); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "IsEmpty")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing EntryGroup::IsEmpty message"); goto fail; } return avahi_dbus_respond_boolean(c, m, !!avahi_s_entry_group_is_empty(i->entry_group)); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "GetState")) { AvahiEntryGroupState state; if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing EntryGroup::GetState message"); goto fail; } state = avahi_s_entry_group_get_state(i->entry_group); return avahi_dbus_respond_int32(c, m, (int32_t) state); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "AddService")) { int32_t interface, protocol; uint32_t flags; char *type, *name, *domain, *host; uint16_t port; AvahiStringList *strlst = NULL; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_STRING, &host, DBUS_TYPE_UINT16, &port, DBUS_TYPE_INVALID) || !type || !name || avahi_dbus_read_strlst(m, 8, &strlst) < 0) { avahi_log_warn("Error parsing EntryGroup::AddService message"); goto fail; } if (!(flags & AVAHI_PUBLISH_UPDATE) && i->n_entries >= server->n_entries_per_entry_group_max) { avahi_string_list_free(strlst); return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_ENTRIES, NULL); } if (domain && !*domain) domain = NULL; if (host && !*host) host = NULL; if (avahi_server_add_service_strlst(avahi_server, i->entry_group, (AvahiIfIndex) interface, (AvahiProtocol) protocol, (AvahiPublishFlags) flags, name, type, domain, host, port, strlst) < 0) { avahi_string_list_free(strlst); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } if (!(flags & AVAHI_PUBLISH_UPDATE)) i->n_entries ++; avahi_string_list_free(strlst); return avahi_dbus_respond_ok(c, m); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "AddServiceSubtype")) { int32_t interface, protocol; uint32_t flags; char *type, *name, *domain, *subtype; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_STRING, &subtype, DBUS_TYPE_INVALID) || !type || !name || !subtype) { avahi_log_warn("Error parsing EntryGroup::AddServiceSubtype message"); goto fail; } if (!(flags & AVAHI_PUBLISH_UPDATE) && i->n_entries >= server->n_entries_per_entry_group_max) return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_ENTRIES, NULL); if (domain && !*domain) domain = NULL; if (avahi_server_add_service_subtype(avahi_server, i->entry_group, (AvahiIfIndex) interface, (AvahiProtocol) protocol, (AvahiPublishFlags) flags, name, type, domain, subtype) < 0) return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); if (!(flags & AVAHI_PUBLISH_UPDATE)) i->n_entries ++; return avahi_dbus_respond_ok(c, m); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "UpdateServiceTxt")) { int32_t interface, protocol; uint32_t flags; char *type, *name, *domain; AvahiStringList *strlst; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_INVALID) || !type || !name || avahi_dbus_read_strlst(m, 6, &strlst)) { avahi_log_warn("Error parsing EntryGroup::UpdateServiceTxt message"); goto fail; } if (domain && !*domain) domain = NULL; if (avahi_server_update_service_txt_strlst(avahi_server, i->entry_group, (AvahiIfIndex) interface, (AvahiProtocol) protocol, (AvahiPublishFlags) flags, name, type, domain, strlst) < 0) { avahi_string_list_free(strlst); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } avahi_string_list_free(strlst); return avahi_dbus_respond_ok(c, m); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "AddAddress")) { int32_t interface, protocol; uint32_t flags; char *name, *address; AvahiAddress a; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &address, DBUS_TYPE_INVALID) || !name || !address) { avahi_log_warn("Error parsing EntryGroup::AddAddress message"); goto fail; } if (!(flags & AVAHI_PUBLISH_UPDATE) && i->n_entries >= server->n_entries_per_entry_group_max) return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_ENTRIES, NULL); if (!(avahi_address_parse(address, AVAHI_PROTO_UNSPEC, &a))) return avahi_dbus_respond_error(c, m, AVAHI_ERR_INVALID_ADDRESS, NULL); if (avahi_server_add_address(avahi_server, i->entry_group, (AvahiIfIndex) interface, (AvahiProtocol) protocol, (AvahiPublishFlags) flags, name, &a) < 0) return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); if (!(flags & AVAHI_PUBLISH_UPDATE)) i->n_entries ++; return avahi_dbus_respond_ok(c, m); } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "AddRecord")) { int32_t interface, protocol; uint32_t flags, ttl, size; uint16_t clazz, type; char *name; void *rdata; AvahiRecord *r; if (!dbus_message_get_args( m, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_UINT16, &clazz, DBUS_TYPE_UINT16, &type, DBUS_TYPE_UINT32, &ttl, DBUS_TYPE_INVALID) || !name || avahi_dbus_read_rdata (m, 7, &rdata, &size)) { avahi_log_warn("Error parsing EntryGroup::AddRecord message"); goto fail; } if (!(flags & AVAHI_PUBLISH_UPDATE) && i->n_entries >= server->n_entries_per_entry_group_max) return avahi_dbus_respond_error(c, m, AVAHI_ERR_TOO_MANY_ENTRIES, NULL); if (!avahi_is_valid_domain_name (name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_INVALID_DOMAIN_NAME, NULL); if (!(r = avahi_record_new_full (name, clazz, type, ttl))) return avahi_dbus_respond_error(c, m, AVAHI_ERR_NO_MEMORY, NULL); if (avahi_rdata_parse (r, rdata, size) < 0) { avahi_record_unref (r); return avahi_dbus_respond_error(c, m, AVAHI_ERR_INVALID_RDATA, NULL); } if (avahi_server_add(avahi_server, i->entry_group, (AvahiIfIndex) interface, (AvahiProtocol) protocol, (AvahiPublishFlags) flags, r) < 0) { avahi_record_unref (r); return avahi_dbus_respond_error(c, m, avahi_server_errno(avahi_server), NULL); } if (!(flags & AVAHI_PUBLISH_UPDATE)) i->n_entries ++; avahi_record_unref (r); return avahi_dbus_respond_ok(c, m); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } avahi-0.7/avahi-daemon/PaxHeaders.10109/ini-file-parser-test.c0000644000000000000000000000013213130651643020641 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.539978153 avahi-0.7/avahi-daemon/ini-file-parser-test.c0000644000175000017500000000313113130651643022246 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "ini-file-parser.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { AvahiIniFile *f; AvahiIniFileGroup *g; if (!(f = avahi_ini_file_load("avahi-daemon.conf"))) { return 1; } printf("%u groups\n", f->n_groups); for (g = f->groups; g; g = g->groups_next) { AvahiIniFilePair *p; printf("<%s> (%u pairs)\n", g->name, g->n_pairs); for (p = g->pairs; p; p = p->pairs_next) { char **split, **i; printf("\t<%s> = ", p->key); split = avahi_split_csv(p->value); for (i = split; *i; i++) printf("<%s> ", *i); avahi_strfreev(split); printf("\n"); } } avahi_ini_file_free(f); return 0; } avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.Server.xml0000644000000000000000000000013213130651643022651 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.507978865 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.Server.xml0000644000175000017500000001700613130651643024264 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016565 xustar0030 mtime=1499681801.441075042 30 atime=1499681806.636958835 30 ctime=1499681850.519978599 avahi-0.7/avahi-daemon/Makefile.in0000644000175000017500000032726313130652011020211 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__append_1 = \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_DAEMON_RUNTIME_DIR=\"$(avahi_runtime_dir)/avahi-daemon/\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_SOCKET=\"$(avahi_socket)\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_SERVICE_DIR=\"$(servicedir)\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_CONFIG_FILE=\"$(pkgsysconfdir)/avahi-daemon.conf\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_HOSTS_FILE=\"$(pkgsysconfdir)/hosts\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_DBUS_INTROSPECTION_DIR=\"$(introspectiondir)\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_CONFIG_DIR=\"$(pkgsysconfdir)\" @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@sbin_PROGRAMS = \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi-daemon$(EXEEXT) @ENABLE_TESTS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@noinst_PROGRAMS = ini-file-parser-test$(EXEEXT) @ENABLE_CHROOT_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__append_2 = \ @ENABLE_CHROOT_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ chroot.c chroot.h \ @ENABLE_CHROOT_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ caps.c caps.h @ENABLE_CHROOT_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__append_3 = -lcap @HAVE_DLOPEN_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__append_4 = -ldl @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__append_5 = \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-protocol.c dbus-protocol.h \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-util.c dbus-util.h \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-internal.h \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-async-address-resolver.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-async-host-name-resolver.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-async-service-resolver.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-domain-browser.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-entry-group.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-service-browser.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-service-type-browser.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-sync-address-resolver.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-sync-host-name-resolver.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-sync-service-resolver.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ dbus-record-browser.c \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ../avahi-common/dbus.c ../avahi-common/dbus.h \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ../avahi-common/dbus-watch-glue.c ../avahi-common/dbus-watch-glue.h @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__append_6 = \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(DBUS_LIBS) @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__append_7 = $(DBUS_CFLAGS) -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"$(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)\" subdir = avahi-daemon ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__dist_dbusservice_DATA_DIST) \ $(am__dist_dbussystemservices_DATA_DIST) \ $(am__dist_introspection_DATA_DIST) \ $(am__dist_pkgdata_DATA_DIST) $(am__dist_service_DATA_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = avahi-dbus.conf CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(dbusservicedir)" \ "$(DESTDIR)$(dbussystemservicesdir)" \ "$(DESTDIR)$(introspectiondir)" "$(DESTDIR)$(pkgdatadir)" \ "$(DESTDIR)$(servicedir)" "$(DESTDIR)$(pkgsysconfdir)" \ "$(DESTDIR)$(systemdsystemunitdir)" PROGRAMS = $(noinst_PROGRAMS) $(sbin_PROGRAMS) am__avahi_daemon_SOURCES_DIST = main.c main.h simple-protocol.c \ simple-protocol.h static-services.c static-services.h \ static-hosts.c static-hosts.h ini-file-parser.c \ ini-file-parser.h setproctitle.c setproctitle.h sd-daemon.h \ sd-daemon.c ../avahi-client/check-nss.c chroot.c chroot.h \ caps.c caps.h dbus-protocol.c dbus-protocol.h dbus-util.c \ dbus-util.h dbus-internal.h dbus-async-address-resolver.c \ dbus-async-host-name-resolver.c dbus-async-service-resolver.c \ dbus-domain-browser.c dbus-entry-group.c \ dbus-service-browser.c dbus-service-type-browser.c \ dbus-sync-address-resolver.c dbus-sync-host-name-resolver.c \ dbus-sync-service-resolver.c dbus-record-browser.c \ ../avahi-common/dbus.c ../avahi-common/dbus.h \ ../avahi-common/dbus-watch-glue.c \ ../avahi-common/dbus-watch-glue.h @ENABLE_CHROOT_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__objects_1 = avahi_daemon-chroot.$(OBJEXT) \ @ENABLE_CHROOT_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-caps.$(OBJEXT) @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__objects_2 = avahi_daemon-dbus-protocol.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-util.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-async-address-resolver.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-async-host-name-resolver.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-async-service-resolver.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-domain-browser.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-entry-group.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-service-browser.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-service-type-browser.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-sync-address-resolver.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-sync-host-name-resolver.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-sync-service-resolver.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-record-browser.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus.$(OBJEXT) \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-dbus-watch-glue.$(OBJEXT) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am_avahi_daemon_OBJECTS = avahi_daemon-main.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-simple-protocol.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-static-services.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-static-hosts.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-ini-file-parser.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-setproctitle.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-sd-daemon.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi_daemon-check-nss.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__objects_1) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__objects_2) avahi_daemon_OBJECTS = $(am_avahi_daemon_OBJECTS) am__DEPENDENCIES_1 = @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@avahi_daemon_DEPENDENCIES = ../avahi-common/libavahi-common.la \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ../avahi-core/libavahi-core.la \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__DEPENDENCIES_2) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = avahi_daemon_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(avahi_daemon_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__ini_file_parser_test_SOURCES_DIST = ini-file-parser.c \ ini-file-parser.h ini-file-parser-test.c @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am_ini_file_parser_test_OBJECTS = ini_file_parser_test-ini-file-parser.$(OBJEXT) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ini_file_parser_test-ini-file-parser-test.$(OBJEXT) ini_file_parser_test_OBJECTS = $(am_ini_file_parser_test_OBJECTS) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ini_file_parser_test_DEPENDENCIES = ../avahi-common/libavahi-common.la \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ../avahi-core/libavahi-core.la ini_file_parser_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(ini_file_parser_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(avahi_daemon_SOURCES) $(ini_file_parser_test_SOURCES) DIST_SOURCES = $(am__avahi_daemon_SOURCES_DIST) \ $(am__ini_file_parser_test_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__dist_dbusservice_DATA_DIST = avahi-dbus.conf am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__dist_dbussystemservices_DATA_DIST = org.freedesktop.Avahi.service am__dist_introspection_DATA_DIST = org.freedesktop.Avahi.Server.xml \ org.freedesktop.Avahi.EntryGroup.xml \ org.freedesktop.Avahi.DomainBrowser.xml \ org.freedesktop.Avahi.ServiceTypeBrowser.xml \ org.freedesktop.Avahi.ServiceBrowser.xml \ org.freedesktop.Avahi.ServiceResolver.xml \ org.freedesktop.Avahi.AddressResolver.xml \ org.freedesktop.Avahi.HostNameResolver.xml \ org.freedesktop.Avahi.RecordBrowser.xml am__dist_pkgdata_DATA_DIST = avahi-service.dtd am__dist_service_DATA_DIST = ssh.service sftp-ssh.service DATA = $(dist_dbusservice_DATA) $(dist_dbussystemservices_DATA) \ $(dist_introspection_DATA) $(dist_pkgdata_DATA) \ $(dist_service_DATA) $(pkgsysconf_DATA) \ $(systemdsystemunit_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/avahi-dbus.conf.in \ $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' \ $(am__append_1) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@pkgsysconfdir = $(sysconfdir)/avahi @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@servicedir = $(pkgsysconfdir)/services @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@introspectiondir = $(datadir)/dbus-1/interfaces @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@dbussystemservicesdir = $(datadir)/dbus-1/system-services @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@avahi_daemon_SOURCES = main.c \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ main.h simple-protocol.c \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ simple-protocol.h \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ static-services.c \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ static-services.h \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ static-hosts.c \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ static-hosts.h \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ini-file-parser.c \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ini-file-parser.h \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ setproctitle.c \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ setproctitle.h sd-daemon.h \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ sd-daemon.c \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ../avahi-client/check-nss.c \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__append_2) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__append_5) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@avahi_daemon_CFLAGS = \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(AM_CFLAGS) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(LIBDAEMON_CFLAGS) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(XML_CFLAGS) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__append_7) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@avahi_daemon_LDADD = $(AM_LDADD) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ../avahi-core/libavahi-core.la \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(LIBDAEMON_LIBS) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(XML_LIBS) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__append_3) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__append_4) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__append_6) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ini_file_parser_test_SOURCES = \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ini-file-parser.c ini-file-parser.h \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ini-file-parser-test.c @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ini_file_parser_test_CFLAGS = $(AM_CFLAGS) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ini_file_parser_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@pkgsysconf_DATA = \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi-daemon.conf \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ hosts @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@dist_service_DATA = \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ ssh.service \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ sftp-ssh.service @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@dist_pkgdata_DATA = \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi-service.dtd @HAVE_LIBDAEMON_TRUE@@HAVE_SYSTEMD_TRUE@@HAVE_XML_TRUE@systemdsystemunit_DATA = \ @HAVE_LIBDAEMON_TRUE@@HAVE_SYSTEMD_TRUE@@HAVE_XML_TRUE@ avahi-daemon.service \ @HAVE_LIBDAEMON_TRUE@@HAVE_SYSTEMD_TRUE@@HAVE_XML_TRUE@ avahi-daemon.socket @HAVE_LIBDAEMON_TRUE@@HAVE_SYSTEMD_TRUE@@HAVE_XML_TRUE@dist_dbussystemservices_DATA = \ @HAVE_LIBDAEMON_TRUE@@HAVE_SYSTEMD_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.service @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@CLEANFILES = $(systemdsystemunit_DATA) @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@dbusservicedir = $(DBUS_SYS_DIR) @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@dist_dbusservice_DATA = avahi-dbus.conf @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@dist_introspection_DATA = \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.Server.xml \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.EntryGroup.xml \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.DomainBrowser.xml \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.ServiceTypeBrowser.xml \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.ServiceBrowser.xml \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.ServiceResolver.xml \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.AddressResolver.xml \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.HostNameResolver.xml \ @HAVE_DBUS_TRUE@@HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ org.freedesktop.Avahi.RecordBrowser.xml EXTRA_DIST = \ avahi-daemon.conf \ example.service \ hosts \ example.service \ introspect.dtd \ introspect.xsl \ avahi-daemon.service.in \ avahi-daemon.socket.in all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-daemon/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-daemon/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): avahi-dbus.conf: $(top_builddir)/config.status $(srcdir)/avahi-dbus.conf.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ } \ ; done uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(sbindir)" && rm -f $$files clean-sbinPROGRAMS: @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list avahi-daemon$(EXEEXT): $(avahi_daemon_OBJECTS) $(avahi_daemon_DEPENDENCIES) $(EXTRA_avahi_daemon_DEPENDENCIES) @rm -f avahi-daemon$(EXEEXT) $(AM_V_CCLD)$(avahi_daemon_LINK) $(avahi_daemon_OBJECTS) $(avahi_daemon_LDADD) $(LIBS) ini-file-parser-test$(EXEEXT): $(ini_file_parser_test_OBJECTS) $(ini_file_parser_test_DEPENDENCIES) $(EXTRA_ini_file_parser_test_DEPENDENCIES) @rm -f ini-file-parser-test$(EXEEXT) $(AM_V_CCLD)$(ini_file_parser_test_LINK) $(ini_file_parser_test_OBJECTS) $(ini_file_parser_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-caps.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-check-nss.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-chroot.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-async-address-resolver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-async-host-name-resolver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-async-service-resolver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-domain-browser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-entry-group.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-protocol.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-record-browser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-service-browser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-service-type-browser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-sync-address-resolver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-sync-host-name-resolver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-sync-service-resolver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus-watch-glue.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-dbus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-ini-file-parser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-sd-daemon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-setproctitle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-simple-protocol.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-static-hosts.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_daemon-static-services.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ini_file_parser_test-ini-file-parser-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ini_file_parser_test-ini-file-parser.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< avahi_daemon-main.o: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-main.o -MD -MP -MF $(DEPDIR)/avahi_daemon-main.Tpo -c -o avahi_daemon-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-main.Tpo $(DEPDIR)/avahi_daemon-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='avahi_daemon-main.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c avahi_daemon-main.obj: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-main.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-main.Tpo -c -o avahi_daemon-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-main.Tpo $(DEPDIR)/avahi_daemon-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='avahi_daemon-main.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` avahi_daemon-simple-protocol.o: simple-protocol.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-simple-protocol.o -MD -MP -MF $(DEPDIR)/avahi_daemon-simple-protocol.Tpo -c -o avahi_daemon-simple-protocol.o `test -f 'simple-protocol.c' || echo '$(srcdir)/'`simple-protocol.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-simple-protocol.Tpo $(DEPDIR)/avahi_daemon-simple-protocol.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='simple-protocol.c' object='avahi_daemon-simple-protocol.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-simple-protocol.o `test -f 'simple-protocol.c' || echo '$(srcdir)/'`simple-protocol.c avahi_daemon-simple-protocol.obj: simple-protocol.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-simple-protocol.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-simple-protocol.Tpo -c -o avahi_daemon-simple-protocol.obj `if test -f 'simple-protocol.c'; then $(CYGPATH_W) 'simple-protocol.c'; else $(CYGPATH_W) '$(srcdir)/simple-protocol.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-simple-protocol.Tpo $(DEPDIR)/avahi_daemon-simple-protocol.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='simple-protocol.c' object='avahi_daemon-simple-protocol.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-simple-protocol.obj `if test -f 'simple-protocol.c'; then $(CYGPATH_W) 'simple-protocol.c'; else $(CYGPATH_W) '$(srcdir)/simple-protocol.c'; fi` avahi_daemon-static-services.o: static-services.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-static-services.o -MD -MP -MF $(DEPDIR)/avahi_daemon-static-services.Tpo -c -o avahi_daemon-static-services.o `test -f 'static-services.c' || echo '$(srcdir)/'`static-services.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-static-services.Tpo $(DEPDIR)/avahi_daemon-static-services.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='static-services.c' object='avahi_daemon-static-services.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-static-services.o `test -f 'static-services.c' || echo '$(srcdir)/'`static-services.c avahi_daemon-static-services.obj: static-services.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-static-services.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-static-services.Tpo -c -o avahi_daemon-static-services.obj `if test -f 'static-services.c'; then $(CYGPATH_W) 'static-services.c'; else $(CYGPATH_W) '$(srcdir)/static-services.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-static-services.Tpo $(DEPDIR)/avahi_daemon-static-services.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='static-services.c' object='avahi_daemon-static-services.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-static-services.obj `if test -f 'static-services.c'; then $(CYGPATH_W) 'static-services.c'; else $(CYGPATH_W) '$(srcdir)/static-services.c'; fi` avahi_daemon-static-hosts.o: static-hosts.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-static-hosts.o -MD -MP -MF $(DEPDIR)/avahi_daemon-static-hosts.Tpo -c -o avahi_daemon-static-hosts.o `test -f 'static-hosts.c' || echo '$(srcdir)/'`static-hosts.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-static-hosts.Tpo $(DEPDIR)/avahi_daemon-static-hosts.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='static-hosts.c' object='avahi_daemon-static-hosts.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-static-hosts.o `test -f 'static-hosts.c' || echo '$(srcdir)/'`static-hosts.c avahi_daemon-static-hosts.obj: static-hosts.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-static-hosts.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-static-hosts.Tpo -c -o avahi_daemon-static-hosts.obj `if test -f 'static-hosts.c'; then $(CYGPATH_W) 'static-hosts.c'; else $(CYGPATH_W) '$(srcdir)/static-hosts.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-static-hosts.Tpo $(DEPDIR)/avahi_daemon-static-hosts.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='static-hosts.c' object='avahi_daemon-static-hosts.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-static-hosts.obj `if test -f 'static-hosts.c'; then $(CYGPATH_W) 'static-hosts.c'; else $(CYGPATH_W) '$(srcdir)/static-hosts.c'; fi` avahi_daemon-ini-file-parser.o: ini-file-parser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-ini-file-parser.o -MD -MP -MF $(DEPDIR)/avahi_daemon-ini-file-parser.Tpo -c -o avahi_daemon-ini-file-parser.o `test -f 'ini-file-parser.c' || echo '$(srcdir)/'`ini-file-parser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-ini-file-parser.Tpo $(DEPDIR)/avahi_daemon-ini-file-parser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ini-file-parser.c' object='avahi_daemon-ini-file-parser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-ini-file-parser.o `test -f 'ini-file-parser.c' || echo '$(srcdir)/'`ini-file-parser.c avahi_daemon-ini-file-parser.obj: ini-file-parser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-ini-file-parser.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-ini-file-parser.Tpo -c -o avahi_daemon-ini-file-parser.obj `if test -f 'ini-file-parser.c'; then $(CYGPATH_W) 'ini-file-parser.c'; else $(CYGPATH_W) '$(srcdir)/ini-file-parser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-ini-file-parser.Tpo $(DEPDIR)/avahi_daemon-ini-file-parser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ini-file-parser.c' object='avahi_daemon-ini-file-parser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-ini-file-parser.obj `if test -f 'ini-file-parser.c'; then $(CYGPATH_W) 'ini-file-parser.c'; else $(CYGPATH_W) '$(srcdir)/ini-file-parser.c'; fi` avahi_daemon-setproctitle.o: setproctitle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-setproctitle.o -MD -MP -MF $(DEPDIR)/avahi_daemon-setproctitle.Tpo -c -o avahi_daemon-setproctitle.o `test -f 'setproctitle.c' || echo '$(srcdir)/'`setproctitle.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-setproctitle.Tpo $(DEPDIR)/avahi_daemon-setproctitle.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='setproctitle.c' object='avahi_daemon-setproctitle.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-setproctitle.o `test -f 'setproctitle.c' || echo '$(srcdir)/'`setproctitle.c avahi_daemon-setproctitle.obj: setproctitle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-setproctitle.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-setproctitle.Tpo -c -o avahi_daemon-setproctitle.obj `if test -f 'setproctitle.c'; then $(CYGPATH_W) 'setproctitle.c'; else $(CYGPATH_W) '$(srcdir)/setproctitle.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-setproctitle.Tpo $(DEPDIR)/avahi_daemon-setproctitle.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='setproctitle.c' object='avahi_daemon-setproctitle.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-setproctitle.obj `if test -f 'setproctitle.c'; then $(CYGPATH_W) 'setproctitle.c'; else $(CYGPATH_W) '$(srcdir)/setproctitle.c'; fi` avahi_daemon-sd-daemon.o: sd-daemon.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-sd-daemon.o -MD -MP -MF $(DEPDIR)/avahi_daemon-sd-daemon.Tpo -c -o avahi_daemon-sd-daemon.o `test -f 'sd-daemon.c' || echo '$(srcdir)/'`sd-daemon.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-sd-daemon.Tpo $(DEPDIR)/avahi_daemon-sd-daemon.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sd-daemon.c' object='avahi_daemon-sd-daemon.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-sd-daemon.o `test -f 'sd-daemon.c' || echo '$(srcdir)/'`sd-daemon.c avahi_daemon-sd-daemon.obj: sd-daemon.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-sd-daemon.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-sd-daemon.Tpo -c -o avahi_daemon-sd-daemon.obj `if test -f 'sd-daemon.c'; then $(CYGPATH_W) 'sd-daemon.c'; else $(CYGPATH_W) '$(srcdir)/sd-daemon.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-sd-daemon.Tpo $(DEPDIR)/avahi_daemon-sd-daemon.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sd-daemon.c' object='avahi_daemon-sd-daemon.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-sd-daemon.obj `if test -f 'sd-daemon.c'; then $(CYGPATH_W) 'sd-daemon.c'; else $(CYGPATH_W) '$(srcdir)/sd-daemon.c'; fi` avahi_daemon-check-nss.o: ../avahi-client/check-nss.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-check-nss.o -MD -MP -MF $(DEPDIR)/avahi_daemon-check-nss.Tpo -c -o avahi_daemon-check-nss.o `test -f '../avahi-client/check-nss.c' || echo '$(srcdir)/'`../avahi-client/check-nss.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-check-nss.Tpo $(DEPDIR)/avahi_daemon-check-nss.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-client/check-nss.c' object='avahi_daemon-check-nss.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-check-nss.o `test -f '../avahi-client/check-nss.c' || echo '$(srcdir)/'`../avahi-client/check-nss.c avahi_daemon-check-nss.obj: ../avahi-client/check-nss.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-check-nss.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-check-nss.Tpo -c -o avahi_daemon-check-nss.obj `if test -f '../avahi-client/check-nss.c'; then $(CYGPATH_W) '../avahi-client/check-nss.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-client/check-nss.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-check-nss.Tpo $(DEPDIR)/avahi_daemon-check-nss.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-client/check-nss.c' object='avahi_daemon-check-nss.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-check-nss.obj `if test -f '../avahi-client/check-nss.c'; then $(CYGPATH_W) '../avahi-client/check-nss.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-client/check-nss.c'; fi` avahi_daemon-chroot.o: chroot.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-chroot.o -MD -MP -MF $(DEPDIR)/avahi_daemon-chroot.Tpo -c -o avahi_daemon-chroot.o `test -f 'chroot.c' || echo '$(srcdir)/'`chroot.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-chroot.Tpo $(DEPDIR)/avahi_daemon-chroot.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='chroot.c' object='avahi_daemon-chroot.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-chroot.o `test -f 'chroot.c' || echo '$(srcdir)/'`chroot.c avahi_daemon-chroot.obj: chroot.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-chroot.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-chroot.Tpo -c -o avahi_daemon-chroot.obj `if test -f 'chroot.c'; then $(CYGPATH_W) 'chroot.c'; else $(CYGPATH_W) '$(srcdir)/chroot.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-chroot.Tpo $(DEPDIR)/avahi_daemon-chroot.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='chroot.c' object='avahi_daemon-chroot.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-chroot.obj `if test -f 'chroot.c'; then $(CYGPATH_W) 'chroot.c'; else $(CYGPATH_W) '$(srcdir)/chroot.c'; fi` avahi_daemon-caps.o: caps.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-caps.o -MD -MP -MF $(DEPDIR)/avahi_daemon-caps.Tpo -c -o avahi_daemon-caps.o `test -f 'caps.c' || echo '$(srcdir)/'`caps.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-caps.Tpo $(DEPDIR)/avahi_daemon-caps.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='caps.c' object='avahi_daemon-caps.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-caps.o `test -f 'caps.c' || echo '$(srcdir)/'`caps.c avahi_daemon-caps.obj: caps.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-caps.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-caps.Tpo -c -o avahi_daemon-caps.obj `if test -f 'caps.c'; then $(CYGPATH_W) 'caps.c'; else $(CYGPATH_W) '$(srcdir)/caps.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-caps.Tpo $(DEPDIR)/avahi_daemon-caps.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='caps.c' object='avahi_daemon-caps.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-caps.obj `if test -f 'caps.c'; then $(CYGPATH_W) 'caps.c'; else $(CYGPATH_W) '$(srcdir)/caps.c'; fi` avahi_daemon-dbus-protocol.o: dbus-protocol.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-protocol.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-protocol.Tpo -c -o avahi_daemon-dbus-protocol.o `test -f 'dbus-protocol.c' || echo '$(srcdir)/'`dbus-protocol.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-protocol.Tpo $(DEPDIR)/avahi_daemon-dbus-protocol.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-protocol.c' object='avahi_daemon-dbus-protocol.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-protocol.o `test -f 'dbus-protocol.c' || echo '$(srcdir)/'`dbus-protocol.c avahi_daemon-dbus-protocol.obj: dbus-protocol.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-protocol.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-protocol.Tpo -c -o avahi_daemon-dbus-protocol.obj `if test -f 'dbus-protocol.c'; then $(CYGPATH_W) 'dbus-protocol.c'; else $(CYGPATH_W) '$(srcdir)/dbus-protocol.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-protocol.Tpo $(DEPDIR)/avahi_daemon-dbus-protocol.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-protocol.c' object='avahi_daemon-dbus-protocol.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-protocol.obj `if test -f 'dbus-protocol.c'; then $(CYGPATH_W) 'dbus-protocol.c'; else $(CYGPATH_W) '$(srcdir)/dbus-protocol.c'; fi` avahi_daemon-dbus-util.o: dbus-util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-util.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-util.Tpo -c -o avahi_daemon-dbus-util.o `test -f 'dbus-util.c' || echo '$(srcdir)/'`dbus-util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-util.Tpo $(DEPDIR)/avahi_daemon-dbus-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-util.c' object='avahi_daemon-dbus-util.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-util.o `test -f 'dbus-util.c' || echo '$(srcdir)/'`dbus-util.c avahi_daemon-dbus-util.obj: dbus-util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-util.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-util.Tpo -c -o avahi_daemon-dbus-util.obj `if test -f 'dbus-util.c'; then $(CYGPATH_W) 'dbus-util.c'; else $(CYGPATH_W) '$(srcdir)/dbus-util.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-util.Tpo $(DEPDIR)/avahi_daemon-dbus-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-util.c' object='avahi_daemon-dbus-util.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-util.obj `if test -f 'dbus-util.c'; then $(CYGPATH_W) 'dbus-util.c'; else $(CYGPATH_W) '$(srcdir)/dbus-util.c'; fi` avahi_daemon-dbus-async-address-resolver.o: dbus-async-address-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-async-address-resolver.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-async-address-resolver.Tpo -c -o avahi_daemon-dbus-async-address-resolver.o `test -f 'dbus-async-address-resolver.c' || echo '$(srcdir)/'`dbus-async-address-resolver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-async-address-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-async-address-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-async-address-resolver.c' object='avahi_daemon-dbus-async-address-resolver.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-async-address-resolver.o `test -f 'dbus-async-address-resolver.c' || echo '$(srcdir)/'`dbus-async-address-resolver.c avahi_daemon-dbus-async-address-resolver.obj: dbus-async-address-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-async-address-resolver.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-async-address-resolver.Tpo -c -o avahi_daemon-dbus-async-address-resolver.obj `if test -f 'dbus-async-address-resolver.c'; then $(CYGPATH_W) 'dbus-async-address-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-async-address-resolver.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-async-address-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-async-address-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-async-address-resolver.c' object='avahi_daemon-dbus-async-address-resolver.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-async-address-resolver.obj `if test -f 'dbus-async-address-resolver.c'; then $(CYGPATH_W) 'dbus-async-address-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-async-address-resolver.c'; fi` avahi_daemon-dbus-async-host-name-resolver.o: dbus-async-host-name-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-async-host-name-resolver.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-async-host-name-resolver.Tpo -c -o avahi_daemon-dbus-async-host-name-resolver.o `test -f 'dbus-async-host-name-resolver.c' || echo '$(srcdir)/'`dbus-async-host-name-resolver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-async-host-name-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-async-host-name-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-async-host-name-resolver.c' object='avahi_daemon-dbus-async-host-name-resolver.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-async-host-name-resolver.o `test -f 'dbus-async-host-name-resolver.c' || echo '$(srcdir)/'`dbus-async-host-name-resolver.c avahi_daemon-dbus-async-host-name-resolver.obj: dbus-async-host-name-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-async-host-name-resolver.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-async-host-name-resolver.Tpo -c -o avahi_daemon-dbus-async-host-name-resolver.obj `if test -f 'dbus-async-host-name-resolver.c'; then $(CYGPATH_W) 'dbus-async-host-name-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-async-host-name-resolver.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-async-host-name-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-async-host-name-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-async-host-name-resolver.c' object='avahi_daemon-dbus-async-host-name-resolver.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-async-host-name-resolver.obj `if test -f 'dbus-async-host-name-resolver.c'; then $(CYGPATH_W) 'dbus-async-host-name-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-async-host-name-resolver.c'; fi` avahi_daemon-dbus-async-service-resolver.o: dbus-async-service-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-async-service-resolver.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-async-service-resolver.Tpo -c -o avahi_daemon-dbus-async-service-resolver.o `test -f 'dbus-async-service-resolver.c' || echo '$(srcdir)/'`dbus-async-service-resolver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-async-service-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-async-service-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-async-service-resolver.c' object='avahi_daemon-dbus-async-service-resolver.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-async-service-resolver.o `test -f 'dbus-async-service-resolver.c' || echo '$(srcdir)/'`dbus-async-service-resolver.c avahi_daemon-dbus-async-service-resolver.obj: dbus-async-service-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-async-service-resolver.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-async-service-resolver.Tpo -c -o avahi_daemon-dbus-async-service-resolver.obj `if test -f 'dbus-async-service-resolver.c'; then $(CYGPATH_W) 'dbus-async-service-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-async-service-resolver.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-async-service-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-async-service-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-async-service-resolver.c' object='avahi_daemon-dbus-async-service-resolver.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-async-service-resolver.obj `if test -f 'dbus-async-service-resolver.c'; then $(CYGPATH_W) 'dbus-async-service-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-async-service-resolver.c'; fi` avahi_daemon-dbus-domain-browser.o: dbus-domain-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-domain-browser.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-domain-browser.Tpo -c -o avahi_daemon-dbus-domain-browser.o `test -f 'dbus-domain-browser.c' || echo '$(srcdir)/'`dbus-domain-browser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-domain-browser.Tpo $(DEPDIR)/avahi_daemon-dbus-domain-browser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-domain-browser.c' object='avahi_daemon-dbus-domain-browser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-domain-browser.o `test -f 'dbus-domain-browser.c' || echo '$(srcdir)/'`dbus-domain-browser.c avahi_daemon-dbus-domain-browser.obj: dbus-domain-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-domain-browser.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-domain-browser.Tpo -c -o avahi_daemon-dbus-domain-browser.obj `if test -f 'dbus-domain-browser.c'; then $(CYGPATH_W) 'dbus-domain-browser.c'; else $(CYGPATH_W) '$(srcdir)/dbus-domain-browser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-domain-browser.Tpo $(DEPDIR)/avahi_daemon-dbus-domain-browser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-domain-browser.c' object='avahi_daemon-dbus-domain-browser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-domain-browser.obj `if test -f 'dbus-domain-browser.c'; then $(CYGPATH_W) 'dbus-domain-browser.c'; else $(CYGPATH_W) '$(srcdir)/dbus-domain-browser.c'; fi` avahi_daemon-dbus-entry-group.o: dbus-entry-group.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-entry-group.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-entry-group.Tpo -c -o avahi_daemon-dbus-entry-group.o `test -f 'dbus-entry-group.c' || echo '$(srcdir)/'`dbus-entry-group.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-entry-group.Tpo $(DEPDIR)/avahi_daemon-dbus-entry-group.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-entry-group.c' object='avahi_daemon-dbus-entry-group.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-entry-group.o `test -f 'dbus-entry-group.c' || echo '$(srcdir)/'`dbus-entry-group.c avahi_daemon-dbus-entry-group.obj: dbus-entry-group.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-entry-group.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-entry-group.Tpo -c -o avahi_daemon-dbus-entry-group.obj `if test -f 'dbus-entry-group.c'; then $(CYGPATH_W) 'dbus-entry-group.c'; else $(CYGPATH_W) '$(srcdir)/dbus-entry-group.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-entry-group.Tpo $(DEPDIR)/avahi_daemon-dbus-entry-group.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-entry-group.c' object='avahi_daemon-dbus-entry-group.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-entry-group.obj `if test -f 'dbus-entry-group.c'; then $(CYGPATH_W) 'dbus-entry-group.c'; else $(CYGPATH_W) '$(srcdir)/dbus-entry-group.c'; fi` avahi_daemon-dbus-service-browser.o: dbus-service-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-service-browser.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-service-browser.Tpo -c -o avahi_daemon-dbus-service-browser.o `test -f 'dbus-service-browser.c' || echo '$(srcdir)/'`dbus-service-browser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-service-browser.Tpo $(DEPDIR)/avahi_daemon-dbus-service-browser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-service-browser.c' object='avahi_daemon-dbus-service-browser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-service-browser.o `test -f 'dbus-service-browser.c' || echo '$(srcdir)/'`dbus-service-browser.c avahi_daemon-dbus-service-browser.obj: dbus-service-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-service-browser.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-service-browser.Tpo -c -o avahi_daemon-dbus-service-browser.obj `if test -f 'dbus-service-browser.c'; then $(CYGPATH_W) 'dbus-service-browser.c'; else $(CYGPATH_W) '$(srcdir)/dbus-service-browser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-service-browser.Tpo $(DEPDIR)/avahi_daemon-dbus-service-browser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-service-browser.c' object='avahi_daemon-dbus-service-browser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-service-browser.obj `if test -f 'dbus-service-browser.c'; then $(CYGPATH_W) 'dbus-service-browser.c'; else $(CYGPATH_W) '$(srcdir)/dbus-service-browser.c'; fi` avahi_daemon-dbus-service-type-browser.o: dbus-service-type-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-service-type-browser.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-service-type-browser.Tpo -c -o avahi_daemon-dbus-service-type-browser.o `test -f 'dbus-service-type-browser.c' || echo '$(srcdir)/'`dbus-service-type-browser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-service-type-browser.Tpo $(DEPDIR)/avahi_daemon-dbus-service-type-browser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-service-type-browser.c' object='avahi_daemon-dbus-service-type-browser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-service-type-browser.o `test -f 'dbus-service-type-browser.c' || echo '$(srcdir)/'`dbus-service-type-browser.c avahi_daemon-dbus-service-type-browser.obj: dbus-service-type-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-service-type-browser.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-service-type-browser.Tpo -c -o avahi_daemon-dbus-service-type-browser.obj `if test -f 'dbus-service-type-browser.c'; then $(CYGPATH_W) 'dbus-service-type-browser.c'; else $(CYGPATH_W) '$(srcdir)/dbus-service-type-browser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-service-type-browser.Tpo $(DEPDIR)/avahi_daemon-dbus-service-type-browser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-service-type-browser.c' object='avahi_daemon-dbus-service-type-browser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-service-type-browser.obj `if test -f 'dbus-service-type-browser.c'; then $(CYGPATH_W) 'dbus-service-type-browser.c'; else $(CYGPATH_W) '$(srcdir)/dbus-service-type-browser.c'; fi` avahi_daemon-dbus-sync-address-resolver.o: dbus-sync-address-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-sync-address-resolver.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-sync-address-resolver.Tpo -c -o avahi_daemon-dbus-sync-address-resolver.o `test -f 'dbus-sync-address-resolver.c' || echo '$(srcdir)/'`dbus-sync-address-resolver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-sync-address-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-sync-address-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-sync-address-resolver.c' object='avahi_daemon-dbus-sync-address-resolver.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-sync-address-resolver.o `test -f 'dbus-sync-address-resolver.c' || echo '$(srcdir)/'`dbus-sync-address-resolver.c avahi_daemon-dbus-sync-address-resolver.obj: dbus-sync-address-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-sync-address-resolver.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-sync-address-resolver.Tpo -c -o avahi_daemon-dbus-sync-address-resolver.obj `if test -f 'dbus-sync-address-resolver.c'; then $(CYGPATH_W) 'dbus-sync-address-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-sync-address-resolver.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-sync-address-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-sync-address-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-sync-address-resolver.c' object='avahi_daemon-dbus-sync-address-resolver.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-sync-address-resolver.obj `if test -f 'dbus-sync-address-resolver.c'; then $(CYGPATH_W) 'dbus-sync-address-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-sync-address-resolver.c'; fi` avahi_daemon-dbus-sync-host-name-resolver.o: dbus-sync-host-name-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-sync-host-name-resolver.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-sync-host-name-resolver.Tpo -c -o avahi_daemon-dbus-sync-host-name-resolver.o `test -f 'dbus-sync-host-name-resolver.c' || echo '$(srcdir)/'`dbus-sync-host-name-resolver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-sync-host-name-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-sync-host-name-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-sync-host-name-resolver.c' object='avahi_daemon-dbus-sync-host-name-resolver.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-sync-host-name-resolver.o `test -f 'dbus-sync-host-name-resolver.c' || echo '$(srcdir)/'`dbus-sync-host-name-resolver.c avahi_daemon-dbus-sync-host-name-resolver.obj: dbus-sync-host-name-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-sync-host-name-resolver.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-sync-host-name-resolver.Tpo -c -o avahi_daemon-dbus-sync-host-name-resolver.obj `if test -f 'dbus-sync-host-name-resolver.c'; then $(CYGPATH_W) 'dbus-sync-host-name-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-sync-host-name-resolver.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-sync-host-name-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-sync-host-name-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-sync-host-name-resolver.c' object='avahi_daemon-dbus-sync-host-name-resolver.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-sync-host-name-resolver.obj `if test -f 'dbus-sync-host-name-resolver.c'; then $(CYGPATH_W) 'dbus-sync-host-name-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-sync-host-name-resolver.c'; fi` avahi_daemon-dbus-sync-service-resolver.o: dbus-sync-service-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-sync-service-resolver.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-sync-service-resolver.Tpo -c -o avahi_daemon-dbus-sync-service-resolver.o `test -f 'dbus-sync-service-resolver.c' || echo '$(srcdir)/'`dbus-sync-service-resolver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-sync-service-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-sync-service-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-sync-service-resolver.c' object='avahi_daemon-dbus-sync-service-resolver.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-sync-service-resolver.o `test -f 'dbus-sync-service-resolver.c' || echo '$(srcdir)/'`dbus-sync-service-resolver.c avahi_daemon-dbus-sync-service-resolver.obj: dbus-sync-service-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-sync-service-resolver.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-sync-service-resolver.Tpo -c -o avahi_daemon-dbus-sync-service-resolver.obj `if test -f 'dbus-sync-service-resolver.c'; then $(CYGPATH_W) 'dbus-sync-service-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-sync-service-resolver.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-sync-service-resolver.Tpo $(DEPDIR)/avahi_daemon-dbus-sync-service-resolver.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-sync-service-resolver.c' object='avahi_daemon-dbus-sync-service-resolver.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-sync-service-resolver.obj `if test -f 'dbus-sync-service-resolver.c'; then $(CYGPATH_W) 'dbus-sync-service-resolver.c'; else $(CYGPATH_W) '$(srcdir)/dbus-sync-service-resolver.c'; fi` avahi_daemon-dbus-record-browser.o: dbus-record-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-record-browser.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-record-browser.Tpo -c -o avahi_daemon-dbus-record-browser.o `test -f 'dbus-record-browser.c' || echo '$(srcdir)/'`dbus-record-browser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-record-browser.Tpo $(DEPDIR)/avahi_daemon-dbus-record-browser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-record-browser.c' object='avahi_daemon-dbus-record-browser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-record-browser.o `test -f 'dbus-record-browser.c' || echo '$(srcdir)/'`dbus-record-browser.c avahi_daemon-dbus-record-browser.obj: dbus-record-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-record-browser.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-record-browser.Tpo -c -o avahi_daemon-dbus-record-browser.obj `if test -f 'dbus-record-browser.c'; then $(CYGPATH_W) 'dbus-record-browser.c'; else $(CYGPATH_W) '$(srcdir)/dbus-record-browser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-record-browser.Tpo $(DEPDIR)/avahi_daemon-dbus-record-browser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dbus-record-browser.c' object='avahi_daemon-dbus-record-browser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-record-browser.obj `if test -f 'dbus-record-browser.c'; then $(CYGPATH_W) 'dbus-record-browser.c'; else $(CYGPATH_W) '$(srcdir)/dbus-record-browser.c'; fi` avahi_daemon-dbus.o: ../avahi-common/dbus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus.Tpo -c -o avahi_daemon-dbus.o `test -f '../avahi-common/dbus.c' || echo '$(srcdir)/'`../avahi-common/dbus.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus.Tpo $(DEPDIR)/avahi_daemon-dbus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/dbus.c' object='avahi_daemon-dbus.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus.o `test -f '../avahi-common/dbus.c' || echo '$(srcdir)/'`../avahi-common/dbus.c avahi_daemon-dbus.obj: ../avahi-common/dbus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus.Tpo -c -o avahi_daemon-dbus.obj `if test -f '../avahi-common/dbus.c'; then $(CYGPATH_W) '../avahi-common/dbus.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-common/dbus.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus.Tpo $(DEPDIR)/avahi_daemon-dbus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/dbus.c' object='avahi_daemon-dbus.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus.obj `if test -f '../avahi-common/dbus.c'; then $(CYGPATH_W) '../avahi-common/dbus.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-common/dbus.c'; fi` avahi_daemon-dbus-watch-glue.o: ../avahi-common/dbus-watch-glue.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-watch-glue.o -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-watch-glue.Tpo -c -o avahi_daemon-dbus-watch-glue.o `test -f '../avahi-common/dbus-watch-glue.c' || echo '$(srcdir)/'`../avahi-common/dbus-watch-glue.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-watch-glue.Tpo $(DEPDIR)/avahi_daemon-dbus-watch-glue.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/dbus-watch-glue.c' object='avahi_daemon-dbus-watch-glue.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-watch-glue.o `test -f '../avahi-common/dbus-watch-glue.c' || echo '$(srcdir)/'`../avahi-common/dbus-watch-glue.c avahi_daemon-dbus-watch-glue.obj: ../avahi-common/dbus-watch-glue.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -MT avahi_daemon-dbus-watch-glue.obj -MD -MP -MF $(DEPDIR)/avahi_daemon-dbus-watch-glue.Tpo -c -o avahi_daemon-dbus-watch-glue.obj `if test -f '../avahi-common/dbus-watch-glue.c'; then $(CYGPATH_W) '../avahi-common/dbus-watch-glue.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-common/dbus-watch-glue.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_daemon-dbus-watch-glue.Tpo $(DEPDIR)/avahi_daemon-dbus-watch-glue.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/dbus-watch-glue.c' object='avahi_daemon-dbus-watch-glue.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_daemon_CFLAGS) $(CFLAGS) -c -o avahi_daemon-dbus-watch-glue.obj `if test -f '../avahi-common/dbus-watch-glue.c'; then $(CYGPATH_W) '../avahi-common/dbus-watch-glue.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-common/dbus-watch-glue.c'; fi` ini_file_parser_test-ini-file-parser.o: ini-file-parser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ini_file_parser_test_CFLAGS) $(CFLAGS) -MT ini_file_parser_test-ini-file-parser.o -MD -MP -MF $(DEPDIR)/ini_file_parser_test-ini-file-parser.Tpo -c -o ini_file_parser_test-ini-file-parser.o `test -f 'ini-file-parser.c' || echo '$(srcdir)/'`ini-file-parser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ini_file_parser_test-ini-file-parser.Tpo $(DEPDIR)/ini_file_parser_test-ini-file-parser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ini-file-parser.c' object='ini_file_parser_test-ini-file-parser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ini_file_parser_test_CFLAGS) $(CFLAGS) -c -o ini_file_parser_test-ini-file-parser.o `test -f 'ini-file-parser.c' || echo '$(srcdir)/'`ini-file-parser.c ini_file_parser_test-ini-file-parser.obj: ini-file-parser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ini_file_parser_test_CFLAGS) $(CFLAGS) -MT ini_file_parser_test-ini-file-parser.obj -MD -MP -MF $(DEPDIR)/ini_file_parser_test-ini-file-parser.Tpo -c -o ini_file_parser_test-ini-file-parser.obj `if test -f 'ini-file-parser.c'; then $(CYGPATH_W) 'ini-file-parser.c'; else $(CYGPATH_W) '$(srcdir)/ini-file-parser.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ini_file_parser_test-ini-file-parser.Tpo $(DEPDIR)/ini_file_parser_test-ini-file-parser.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ini-file-parser.c' object='ini_file_parser_test-ini-file-parser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ini_file_parser_test_CFLAGS) $(CFLAGS) -c -o ini_file_parser_test-ini-file-parser.obj `if test -f 'ini-file-parser.c'; then $(CYGPATH_W) 'ini-file-parser.c'; else $(CYGPATH_W) '$(srcdir)/ini-file-parser.c'; fi` ini_file_parser_test-ini-file-parser-test.o: ini-file-parser-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ini_file_parser_test_CFLAGS) $(CFLAGS) -MT ini_file_parser_test-ini-file-parser-test.o -MD -MP -MF $(DEPDIR)/ini_file_parser_test-ini-file-parser-test.Tpo -c -o ini_file_parser_test-ini-file-parser-test.o `test -f 'ini-file-parser-test.c' || echo '$(srcdir)/'`ini-file-parser-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ini_file_parser_test-ini-file-parser-test.Tpo $(DEPDIR)/ini_file_parser_test-ini-file-parser-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ini-file-parser-test.c' object='ini_file_parser_test-ini-file-parser-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ini_file_parser_test_CFLAGS) $(CFLAGS) -c -o ini_file_parser_test-ini-file-parser-test.o `test -f 'ini-file-parser-test.c' || echo '$(srcdir)/'`ini-file-parser-test.c ini_file_parser_test-ini-file-parser-test.obj: ini-file-parser-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ini_file_parser_test_CFLAGS) $(CFLAGS) -MT ini_file_parser_test-ini-file-parser-test.obj -MD -MP -MF $(DEPDIR)/ini_file_parser_test-ini-file-parser-test.Tpo -c -o ini_file_parser_test-ini-file-parser-test.obj `if test -f 'ini-file-parser-test.c'; then $(CYGPATH_W) 'ini-file-parser-test.c'; else $(CYGPATH_W) '$(srcdir)/ini-file-parser-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ini_file_parser_test-ini-file-parser-test.Tpo $(DEPDIR)/ini_file_parser_test-ini-file-parser-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ini-file-parser-test.c' object='ini_file_parser_test-ini-file-parser-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ini_file_parser_test_CFLAGS) $(CFLAGS) -c -o ini_file_parser_test-ini-file-parser-test.obj `if test -f 'ini-file-parser-test.c'; then $(CYGPATH_W) 'ini-file-parser-test.c'; else $(CYGPATH_W) '$(srcdir)/ini-file-parser-test.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_dbusserviceDATA: $(dist_dbusservice_DATA) @$(NORMAL_INSTALL) @list='$(dist_dbusservice_DATA)'; test -n "$(dbusservicedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dbusservicedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dbusservicedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dbusservicedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(dbusservicedir)" || exit $$?; \ done uninstall-dist_dbusserviceDATA: @$(NORMAL_UNINSTALL) @list='$(dist_dbusservice_DATA)'; test -n "$(dbusservicedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dbusservicedir)'; $(am__uninstall_files_from_dir) install-dist_dbussystemservicesDATA: $(dist_dbussystemservices_DATA) @$(NORMAL_INSTALL) @list='$(dist_dbussystemservices_DATA)'; test -n "$(dbussystemservicesdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(dbussystemservicesdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(dbussystemservicesdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dbussystemservicesdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(dbussystemservicesdir)" || exit $$?; \ done uninstall-dist_dbussystemservicesDATA: @$(NORMAL_UNINSTALL) @list='$(dist_dbussystemservices_DATA)'; test -n "$(dbussystemservicesdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(dbussystemservicesdir)'; $(am__uninstall_files_from_dir) install-dist_introspectionDATA: $(dist_introspection_DATA) @$(NORMAL_INSTALL) @list='$(dist_introspection_DATA)'; test -n "$(introspectiondir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(introspectiondir)'"; \ $(MKDIR_P) "$(DESTDIR)$(introspectiondir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(introspectiondir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(introspectiondir)" || exit $$?; \ done uninstall-dist_introspectionDATA: @$(NORMAL_UNINSTALL) @list='$(dist_introspection_DATA)'; test -n "$(introspectiondir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(introspectiondir)'; $(am__uninstall_files_from_dir) install-dist_pkgdataDATA: $(dist_pkgdata_DATA) @$(NORMAL_INSTALL) @list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ done uninstall-dist_pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) install-dist_serviceDATA: $(dist_service_DATA) @$(NORMAL_INSTALL) @list='$(dist_service_DATA)'; test -n "$(servicedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(servicedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(servicedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(servicedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(servicedir)" || exit $$?; \ done uninstall-dist_serviceDATA: @$(NORMAL_UNINSTALL) @list='$(dist_service_DATA)'; test -n "$(servicedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(servicedir)'; $(am__uninstall_files_from_dir) install-pkgsysconfDATA: $(pkgsysconf_DATA) @$(NORMAL_INSTALL) @list='$(pkgsysconf_DATA)'; test -n "$(pkgsysconfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgsysconfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgsysconfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgsysconfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgsysconfdir)" || exit $$?; \ done uninstall-pkgsysconfDATA: @$(NORMAL_UNINSTALL) @list='$(pkgsysconf_DATA)'; test -n "$(pkgsysconfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgsysconfdir)'; $(am__uninstall_files_from_dir) install-systemdsystemunitDATA: $(systemdsystemunit_DATA) @$(NORMAL_INSTALL) @list='$(systemdsystemunit_DATA)'; test -n "$(systemdsystemunitdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(systemdsystemunitdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(systemdsystemunitdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(systemdsystemunitdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(systemdsystemunitdir)" || exit $$?; \ done uninstall-systemdsystemunitDATA: @$(NORMAL_UNINSTALL) @list='$(systemdsystemunit_DATA)'; test -n "$(systemdsystemunitdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(systemdsystemunitdir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(dbusservicedir)" "$(DESTDIR)$(dbussystemservicesdir)" "$(DESTDIR)$(introspectiondir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(servicedir)" "$(DESTDIR)$(pkgsysconfdir)" "$(DESTDIR)$(systemdsystemunitdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ clean-sbinPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dist_dbusserviceDATA \ install-dist_dbussystemservicesDATA \ install-dist_introspectionDATA install-dist_pkgdataDATA \ install-dist_serviceDATA install-pkgsysconfDATA \ install-systemdsystemunitDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-sbinPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-dist_dbusserviceDATA \ uninstall-dist_dbussystemservicesDATA \ uninstall-dist_introspectionDATA uninstall-dist_pkgdataDATA \ uninstall-dist_serviceDATA uninstall-pkgsysconfDATA \ uninstall-sbinPROGRAMS uninstall-systemdsystemunitDATA .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS clean-sbinPROGRAMS \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-data-local \ install-dist_dbusserviceDATA \ install-dist_dbussystemservicesDATA \ install-dist_introspectionDATA install-dist_pkgdataDATA \ install-dist_serviceDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-pkgsysconfDATA install-ps install-ps-am \ install-sbinPROGRAMS install-strip \ install-systemdsystemunitDATA installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-dist_dbusserviceDATA \ uninstall-dist_dbussystemservicesDATA \ uninstall-dist_introspectionDATA uninstall-dist_pkgdataDATA \ uninstall-dist_serviceDATA uninstall-pkgsysconfDATA \ uninstall-sbinPROGRAMS uninstall-systemdsystemunitDATA .PRECIOUS: Makefile @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@%.service: %.service.in @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@%.socket: %.socket.in @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -e 's,@avahi_runtime_dir\@,$(avahi_runtime_dir),g' $< > $@ xmllint: xmllint --noout --valid example.service for F in $(introspection_DATA) ; do \ xmllint --noout --valid $$F ; \ done install-data-local: test -z "$(avahi_runtime_dir)" || $(MKDIR_P) "$(DESTDIR)$(avahi_runtime_dir)" update-systemd: curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.AddressResolver.xml0000644000000000000000000000013213130651643024512 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.511978776 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.AddressResolver.xml0000644000175000017500000000310713130651643026122 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-sync-service-resolver.c0000644000000000000000000000013213130651643022102 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.539978153 avahi-0.7/avahi-daemon/dbus-sync-service-resolver.c0000644000175000017500000000734213130651643023517 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" #include "main.h" void avahi_dbus_sync_service_resolver_free(SyncServiceResolverInfo *i) { assert(i); if (i->service_resolver) avahi_s_service_resolver_free(i->service_resolver); dbus_message_unref(i->message); AVAHI_LLIST_REMOVE(SyncServiceResolverInfo, sync_service_resolvers, i->client->sync_service_resolvers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } void avahi_dbus_sync_service_resolver_callback( AvahiSServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, void* userdata) { SyncServiceResolverInfo *i = userdata; assert(r); assert(i); if (event == AVAHI_RESOLVER_FOUND) { char t[AVAHI_ADDRESS_STR_MAX], *pt = t; int32_t i_interface, i_protocol, i_aprotocol; uint32_t u_flags; DBusMessage *reply; assert(host_name); if (!name) name = ""; if (a) avahi_address_snprint(t, sizeof(t), a); else t[0] = 0; /* Patch in AVAHI_LOOKUP_RESULT_OUR_OWN */ if (avahi_dbus_is_our_own_service(i->client, interface, protocol, name, type, domain) > 0) flags |= AVAHI_LOOKUP_RESULT_OUR_OWN; i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; if (a) i_aprotocol = (int32_t) a->proto; else i_aprotocol = AVAHI_PROTO_UNSPEC; u_flags = (uint32_t) flags; reply = dbus_message_new_method_return(i->message); if (!reply) { avahi_log_error("Failed allocate message"); goto finish; } dbus_message_append_args( reply, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_STRING, &host_name, DBUS_TYPE_INT32, &i_aprotocol, DBUS_TYPE_STRING, &pt, DBUS_TYPE_UINT16, &port, DBUS_TYPE_INVALID); avahi_dbus_append_string_list(reply, txt); dbus_message_append_args( reply, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); dbus_connection_send(server->bus, reply, NULL); dbus_message_unref(reply); } else { assert(event == AVAHI_RESOLVER_FAILURE); avahi_dbus_respond_error(server->bus, i->message, avahi_server_errno(avahi_server), NULL); } finish: avahi_dbus_sync_service_resolver_free(i); } avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-sync-host-name-resolver.c0000644000000000000000000000013213130651643022335 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.539978153 avahi-0.7/avahi-daemon/dbus-sync-host-name-resolver.c0000644000175000017500000000572713130651643023757 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" #include "main.h" void avahi_dbus_sync_host_name_resolver_free(SyncHostNameResolverInfo *i) { assert(i); if (i->host_name_resolver) avahi_s_host_name_resolver_free(i->host_name_resolver); dbus_message_unref(i->message); AVAHI_LLIST_REMOVE(SyncHostNameResolverInfo, sync_host_name_resolvers, i->client->sync_host_name_resolvers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } void avahi_dbus_sync_host_name_resolver_callback(AvahiSHostNameResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *host_name, const AvahiAddress *a, AvahiLookupResultFlags flags, void* userdata) { SyncHostNameResolverInfo *i = userdata; assert(r); assert(host_name); assert(i); if (event == AVAHI_RESOLVER_FOUND) { char t[AVAHI_ADDRESS_STR_MAX], *pt = t; int32_t i_interface, i_protocol, i_aprotocol; uint32_t u_flags; DBusMessage *reply; assert(a); avahi_address_snprint(t, sizeof(t), a); i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; i_aprotocol = (int32_t) a->proto; u_flags = (uint32_t) flags; reply = dbus_message_new_method_return(i->message); if (!reply) { avahi_log_error("Failed allocate message"); goto finish; } dbus_message_append_args( reply, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &host_name, DBUS_TYPE_INT32, &i_aprotocol, DBUS_TYPE_STRING, &pt, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); dbus_connection_send(server->bus, reply, NULL); dbus_message_unref(reply); } else { assert(event == AVAHI_RESOLVER_FAILURE); avahi_dbus_respond_error(server->bus, i->message, avahi_server_errno(avahi_server), NULL); } finish: avahi_dbus_sync_host_name_resolver_free(i); } avahi-0.7/avahi-daemon/PaxHeaders.10109/avahi-daemon.service.in0000644000000000000000000000013213130651643021052 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.543978063 avahi-0.7/avahi-daemon/avahi-daemon.service.in0000644000175000017500000000202413130651643022457 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. [Unit] Description=Avahi mDNS/DNS-SD Stack Requires=avahi-daemon.socket [Service] Type=dbus BusName=org.freedesktop.Avahi ExecStart=@sbindir@/avahi-daemon -s ExecReload=@sbindir@/avahi-daemon -r NotifyAccess=main [Install] WantedBy=multi-user.target Also=avahi-daemon.socket Alias=dbus-org.freedesktop.Avahi.service avahi-0.7/avahi-daemon/PaxHeaders.10109/ini-file-parser.c0000644000000000000000000000013213130651643017664 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.523978509 avahi-0.7/avahi-daemon/ini-file-parser.c0000644000175000017500000001054613130651643021301 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include "ini-file-parser.h" AvahiIniFile* avahi_ini_file_load(const char *fname) { AvahiIniFile *f; FILE *fo; AvahiIniFileGroup *group = NULL; unsigned line; assert(fname); if (!(fo = fopen(fname, "r"))) { avahi_log_error("Failed to open file '%s': %s", fname, strerror(errno)); return NULL; } f = avahi_new(AvahiIniFile, 1); AVAHI_LLIST_HEAD_INIT(AvahiIniFileGroup, f->groups); f->n_groups = 0; line = 0; while (!feof(fo)) { char ln[256], *s, *e; AvahiIniFilePair *pair; if (!(fgets(ln, sizeof(ln), fo))) break; line++; s = ln + strspn(ln, " \t"); s[strcspn(s, "\r\n")] = 0; /* Skip comments and empty lines */ if (*s == '#' || *s == '%' || *s == 0) continue; if (*s == '[') { /* new group */ if (!(e = strchr(s, ']'))) { avahi_log_error("Unclosed group header in %s:%u: <%s>", fname, line, s); goto fail; } *e = 0; group = avahi_new(AvahiIniFileGroup, 1); group->name = avahi_strdup(s+1); group->n_pairs = 0; AVAHI_LLIST_HEAD_INIT(AvahiIniFilePair, group->pairs); AVAHI_LLIST_PREPEND(AvahiIniFileGroup, groups, f->groups, group); f->n_groups++; } else { /* Normal assignment */ if (!(e = strchr(s, '='))) { avahi_log_error("Missing assignment in %s:%u: <%s>", fname, line, s); goto fail; } if (!group) { avahi_log_error("Assignment outside group in %s:%u <%s>", fname, line, s); goto fail; } /* Split the key and the value */ *(e++) = 0; pair = avahi_new(AvahiIniFilePair, 1); pair->key = avahi_strdup(s); pair->value = avahi_strdup(e); AVAHI_LLIST_PREPEND(AvahiIniFilePair, pairs, group->pairs, pair); group->n_pairs++; } } fclose(fo); return f; fail: if (fo) fclose(fo); if (f) avahi_ini_file_free(f); return NULL; } void avahi_ini_file_free(AvahiIniFile *f) { AvahiIniFileGroup *g; assert(f); while ((g = f->groups)) { AvahiIniFilePair *p; while ((p = g->pairs)) { avahi_free(p->key); avahi_free(p->value); AVAHI_LLIST_REMOVE(AvahiIniFilePair, pairs, g->pairs, p); avahi_free(p); } avahi_free(g->name); AVAHI_LLIST_REMOVE(AvahiIniFileGroup, groups, f->groups, g); avahi_free(g); } avahi_free(f); } char** avahi_split_csv(const char *t) { unsigned n_comma = 0; const char *p; char **r, **i; for (p = t; *p; p++) if (*p == ',') n_comma++; i = r = avahi_new(char*, n_comma+2); for (;;) { size_t n, l = strcspn(t, ","); const char *c; /* Ignore leading blanks */ for (c = t, n = l; isblank(*c); c++, n--); /* Ignore trailing blanks */ for (; n > 0 && isblank(c[n-1]); n--); *(i++) = avahi_strndup(c, n); t += l; if (*t == 0) break; assert(*t == ','); t++; } *i = NULL; return r; } void avahi_strfreev(char **p) { char **i; if (!p) return; for (i = p; *i; i++) avahi_free(*i); avahi_free(p); } avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.ServiceResolver.xml0000644000000000000000000000013213130651643024525 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.511978776 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.ServiceResolver.xml0000644000175000017500000000350413130651643026136 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-internal.h0000644000000000000000000000013113130651643017451 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 29 ctime=1499681850.53197833 avahi-0.7/avahi-daemon/dbus-internal.h0000644000175000017500000002273713130651643021074 0ustar00lathiatlathiat00000000000000#ifndef foodbusinternalhfoo #define foodbusinternalhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include #include #include typedef struct Server Server; typedef struct Client Client; typedef struct EntryGroupInfo EntryGroupInfo; typedef struct SyncHostNameResolverInfo SyncHostNameResolverInfo; typedef struct AsyncHostNameResolverInfo AsyncHostNameResolverInfo; typedef struct SyncAddressResolverInfo SyncAddressResolverInfo; typedef struct AsyncAddressResolverInfo AsyncAddressResolverInfo; typedef struct DomainBrowserInfo DomainBrowserInfo; typedef struct ServiceTypeBrowserInfo ServiceTypeBrowserInfo; typedef struct ServiceBrowserInfo ServiceBrowserInfo; typedef struct SyncServiceResolverInfo SyncServiceResolverInfo; typedef struct AsyncServiceResolverInfo AsyncServiceResolverInfo; typedef struct RecordBrowserInfo RecordBrowserInfo; #define DEFAULT_CLIENTS_MAX 4096 #define DEFAULT_OBJECTS_PER_CLIENT_MAX 1024 #define DEFAULT_ENTRIES_PER_ENTRY_GROUP_MAX 32 struct EntryGroupInfo { unsigned id; Client *client; AvahiSEntryGroup *entry_group; char *path; unsigned n_entries; AVAHI_LLIST_FIELDS(EntryGroupInfo, entry_groups); }; struct SyncHostNameResolverInfo { Client *client; AvahiSHostNameResolver *host_name_resolver; DBusMessage *message; AVAHI_LLIST_FIELDS(SyncHostNameResolverInfo, sync_host_name_resolvers); }; struct AsyncHostNameResolverInfo { unsigned id; Client *client; AvahiSHostNameResolver *host_name_resolver; char *path; AVAHI_LLIST_FIELDS(AsyncHostNameResolverInfo, async_host_name_resolvers); }; struct SyncAddressResolverInfo { Client *client; AvahiSAddressResolver *address_resolver; DBusMessage *message; AVAHI_LLIST_FIELDS(SyncAddressResolverInfo, sync_address_resolvers); }; struct AsyncAddressResolverInfo { unsigned id; Client *client; AvahiSAddressResolver *address_resolver; char *path; AVAHI_LLIST_FIELDS(AsyncAddressResolverInfo, async_address_resolvers); }; struct DomainBrowserInfo { unsigned id; Client *client; AvahiSDomainBrowser *domain_browser; char *path; AVAHI_LLIST_FIELDS(DomainBrowserInfo, domain_browsers); }; struct ServiceTypeBrowserInfo { unsigned id; Client *client; AvahiSServiceTypeBrowser *service_type_browser; char *path; AVAHI_LLIST_FIELDS(ServiceTypeBrowserInfo, service_type_browsers); }; struct ServiceBrowserInfo { unsigned id; Client *client; AvahiSServiceBrowser *service_browser; char *path; AVAHI_LLIST_FIELDS(ServiceBrowserInfo, service_browsers); }; struct SyncServiceResolverInfo { Client *client; AvahiSServiceResolver *service_resolver; DBusMessage *message; AVAHI_LLIST_FIELDS(SyncServiceResolverInfo, sync_service_resolvers); }; struct AsyncServiceResolverInfo { unsigned id; Client *client; AvahiSServiceResolver *service_resolver; char *path; AVAHI_LLIST_FIELDS(AsyncServiceResolverInfo, async_service_resolvers); }; struct RecordBrowserInfo { unsigned id; Client *client; AvahiSRecordBrowser *record_browser; char *path; AVAHI_LLIST_FIELDS(RecordBrowserInfo, record_browsers); }; struct Client { unsigned id; char *name; unsigned current_id; unsigned n_objects; AVAHI_LLIST_FIELDS(Client, clients); AVAHI_LLIST_HEAD(EntryGroupInfo, entry_groups); AVAHI_LLIST_HEAD(SyncHostNameResolverInfo, sync_host_name_resolvers); AVAHI_LLIST_HEAD(AsyncHostNameResolverInfo, async_host_name_resolvers); AVAHI_LLIST_HEAD(SyncAddressResolverInfo, sync_address_resolvers); AVAHI_LLIST_HEAD(AsyncAddressResolverInfo, async_address_resolvers); AVAHI_LLIST_HEAD(DomainBrowserInfo, domain_browsers); AVAHI_LLIST_HEAD(ServiceTypeBrowserInfo, service_type_browsers); AVAHI_LLIST_HEAD(ServiceBrowserInfo, service_browsers); AVAHI_LLIST_HEAD(SyncServiceResolverInfo, sync_service_resolvers); AVAHI_LLIST_HEAD(AsyncServiceResolverInfo, async_service_resolvers); AVAHI_LLIST_HEAD(RecordBrowserInfo, record_browsers); }; struct Server { const AvahiPoll *poll_api; DBusConnection *bus; AVAHI_LLIST_HEAD(Client, clients); unsigned n_clients; unsigned current_id; AvahiTimeout *reconnect_timeout; int reconnect; unsigned n_clients_max; unsigned n_objects_per_client_max; unsigned n_entries_per_entry_group_max; int disable_user_service_publishing; }; extern Server *server; void avahi_dbus_entry_group_free(EntryGroupInfo *i); void avahi_dbus_entry_group_callback(AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, void* userdata); DBusHandlerResult avahi_dbus_msg_entry_group_impl(DBusConnection *c, DBusMessage *m, void *userdata); void avahi_dbus_sync_host_name_resolver_free(SyncHostNameResolverInfo *i); void avahi_dbus_sync_host_name_resolver_callback(AvahiSHostNameResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *host_name, const AvahiAddress *a, AvahiLookupResultFlags flags, void* userdata); void avahi_dbus_async_host_name_resolver_free(AsyncHostNameResolverInfo *i); void avahi_dbus_async_host_name_resolver_callback(AvahiSHostNameResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *host_name, const AvahiAddress *a, AvahiLookupResultFlags flags, void* userdata); DBusHandlerResult avahi_dbus_msg_async_host_name_resolver_impl(DBusConnection *c, DBusMessage *m, void *userdata); void avahi_dbus_sync_address_resolver_free(SyncAddressResolverInfo *i); void avahi_dbus_sync_address_resolver_callback(AvahiSAddressResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *address, const char *host_name, AvahiLookupResultFlags flags, void* userdata); void avahi_dbus_async_address_resolver_free(AsyncAddressResolverInfo *i); void avahi_dbus_async_address_resolver_callback(AvahiSAddressResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *address, const char *host_name, AvahiLookupResultFlags flags, void* userdata); DBusHandlerResult avahi_dbus_msg_async_address_resolver_impl(DBusConnection *c, DBusMessage *m, void *userdata); void avahi_dbus_domain_browser_free(DomainBrowserInfo *i); DBusHandlerResult avahi_dbus_msg_domain_browser_impl(DBusConnection *c, DBusMessage *m, void *userdata); void avahi_dbus_domain_browser_callback(AvahiSDomainBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AvahiLookupResultFlags flags, void* userdata); void avahi_dbus_service_type_browser_free(ServiceTypeBrowserInfo *i); DBusHandlerResult avahi_dbus_msg_service_type_browser_impl(DBusConnection *c, DBusMessage *m, void *userdata); void avahi_dbus_service_type_browser_callback(AvahiSServiceTypeBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *type, const char *domain, AvahiLookupResultFlags flags, void* userdata); void avahi_dbus_service_browser_free(ServiceBrowserInfo *i); DBusHandlerResult avahi_dbus_msg_service_browser_impl(DBusConnection *c, DBusMessage *m, void *userdata); void avahi_dbus_service_browser_callback(AvahiSServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AvahiLookupResultFlags flags, void* userdata); void avahi_dbus_sync_service_resolver_free(SyncServiceResolverInfo *i); void avahi_dbus_sync_service_resolver_callback( AvahiSServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, void* userdata); void avahi_dbus_async_service_resolver_free(AsyncServiceResolverInfo *i); void avahi_dbus_async_service_resolver_callback( AvahiSServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, void* userdata); DBusHandlerResult avahi_dbus_msg_async_service_resolver_impl(DBusConnection *c, DBusMessage *m, void *userdata); void avahi_dbus_record_browser_free(RecordBrowserInfo *i); DBusHandlerResult avahi_dbus_msg_record_browser_impl(DBusConnection *c, DBusMessage *m, void *userdata); void avahi_dbus_record_browser_callback(AvahiSRecordBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata); #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/dbus-domain-browser.c0000644000000000000000000000013213130651643020561 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.535978239 avahi-0.7/avahi-daemon/dbus-domain-browser.c0000644000175000017500000001001113130651643022161 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dbus-util.h" #include "dbus-internal.h" void avahi_dbus_domain_browser_free(DomainBrowserInfo *i) { assert(i); if (i->domain_browser) avahi_s_domain_browser_free(i->domain_browser); if (i->path) { dbus_connection_unregister_object_path(server->bus, i->path); avahi_free(i->path); } AVAHI_LLIST_REMOVE(DomainBrowserInfo, domain_browsers, i->client->domain_browsers, i); assert(i->client->n_objects >= 1); i->client->n_objects--; avahi_free(i); } DBusHandlerResult avahi_dbus_msg_domain_browser_impl(DBusConnection *c, DBusMessage *m, void *userdata) { DBusError error; DomainBrowserInfo *i = userdata; assert(c); assert(m); assert(i); dbus_error_init(&error); avahi_log_debug(__FILE__": interface=%s, path=%s, member=%s", dbus_message_get_interface(m), dbus_message_get_path(m), dbus_message_get_member(m)); /* Introspection */ if (dbus_message_is_method_call(m, DBUS_INTERFACE_INTROSPECTABLE, "Introspect")) return avahi_dbus_handle_introspect(c, m, "org.freedesktop.Avahi.DomainBrowser.xml"); /* Access control */ if (strcmp(dbus_message_get_sender(m), i->client->name)) return avahi_dbus_respond_error(c, m, AVAHI_ERR_ACCESS_DENIED, NULL); if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, "Free")) { if (!dbus_message_get_args(m, &error, DBUS_TYPE_INVALID)) { avahi_log_warn("Error parsing DomainBrowser::Free message"); goto fail; } avahi_dbus_domain_browser_free(i); return avahi_dbus_respond_ok(c, m); } avahi_log_warn("Missed message %s::%s()", dbus_message_get_interface(m), dbus_message_get_member(m)); fail: if (dbus_error_is_set(&error)) dbus_error_free(&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } void avahi_dbus_domain_browser_callback(AvahiSDomainBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AvahiLookupResultFlags flags, void* userdata) { DomainBrowserInfo *i = userdata; DBusMessage *m; int32_t i_interface, i_protocol; uint32_t u_flags; assert(b); assert(i); i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; m = dbus_message_new_signal(i->path, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, avahi_dbus_map_browse_signal_name(event)); if (!m) { avahi_log_error("Failed allocate message"); return; } if (event == AVAHI_BROWSER_NEW || event == AVAHI_BROWSER_REMOVE) { assert(domain); dbus_message_append_args( m, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID); } else if (event == AVAHI_BROWSER_FAILURE) avahi_dbus_append_server_error(m); dbus_message_set_destination(m, i->client->name); dbus_connection_send(server->bus, m, NULL); dbus_message_unref(m); } avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.RecordBrowser.xml0000644000000000000000000000013213130651643024165 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.515978685 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.RecordBrowser.xml0000644000175000017500000000356213130651643025602 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/introspect.xsl0000644000000000000000000000013213130651643017454 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.543978063 avahi-0.7/avahi-daemon/introspect.xsl0000644000175000017500000000717313130651643021073 0ustar00lathiatlathiat00000000000000 DBUS Introspection data

interface

    • out in
  • annotation =
  • avahi-0.7/avahi-daemon/PaxHeaders.10109/hosts0000644000000000000000000000013213130651643015615 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.543978063 avahi-0.7/avahi-daemon/hosts0000644000175000017500000000214113130651643017222 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # This file contains static ip address <-> host name mappings. These # can be useful to publish services on behalf of a non-avahi enabled # device. Please bear in mind that host names are expected to be # fully qualified domain names, i.e. ending in .local! # See avahi.hosts(5) for more information on this configuration file! # Examples: # 192.168.0.1 router.local # 2001::81:1 test.local avahi-0.7/avahi-daemon/PaxHeaders.10109/setproctitle.c0000644000000000000000000000013213130651643017417 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.523978509 avahi-0.7/avahi-daemon/setproctitle.c0000644000175000017500000000507713130651643021037 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #ifdef HAVE_SYS_PRCTL_H #include #endif #include #include "setproctitle.h" #if !defined(HAVE_SETPROCTITLE) && defined(__linux__) static char** argv_buffer = NULL; static size_t argv_size = 0; #if !HAVE_DECL_ENVIRON extern char **environ; #endif #endif void avahi_init_proc_title(int argc, char **argv) { #if !defined(HAVE_SETPROCTITLE) && defined(__linux__) unsigned i; char **new_environ, *endptr; /* This code is really really ugly. We make some memory layout * assumptions and reuse the environment array as memory to store * our process title in */ for (i = 0; environ[i]; i++); endptr = i ? environ[i-1] + strlen(environ[i-1]) : argv[argc-1] + strlen(argv[argc-1]); argv_buffer = argv; argv_size = endptr - argv_buffer[0]; /* Make a copy of environ */ new_environ = avahi_malloc(sizeof(char*) * (i + 1)); for (i = 0; environ[i]; i++) new_environ[i] = avahi_strdup(environ[i]); new_environ[i] = NULL; environ = new_environ; #endif } void avahi_set_proc_title(const char *name, const char *fmt,...) { #ifdef HAVE_SETPROCTITLE char t[256]; va_list ap; va_start(ap, fmt); vsnprintf(t, sizeof(t), fmt, ap); va_end(ap); setproctitle("-%s", t); #elif defined(__linux__) size_t l; va_list ap; if (!argv_buffer) return; va_start(ap, fmt); vsnprintf(argv_buffer[0], argv_size, fmt, ap); va_end(ap); l = strlen(argv_buffer[0]); memset(argv_buffer[0] + l, 0, argv_size - l); argv_buffer[1] = NULL; #endif #if defined(HAVE_SYS_PRCTL_H) && defined(PR_SET_NAME) if (name) prctl(PR_SET_NAME, (unsigned long) name, 0, 0, 0); #endif } avahi-0.7/avahi-daemon/PaxHeaders.10109/sftp-ssh.service0000644000000000000000000000013213130651643017663 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.515978685 avahi-0.7/avahi-daemon/sftp-ssh.service0000644000175000017500000000206313130651643021273 0ustar00lathiatlathiat00000000000000 %h _sftp-ssh._tcp 22 avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.EntryGroup.xml0000644000000000000000000000013213130651643023521 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.511978776 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.EntryGroup.xml0000644000175000017500000000701413130651643025132 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016566 xustar0030 mtime=1499681699.107370577 30 atime=1499681796.865177408 30 ctime=1499681850.507978865 avahi-0.7/avahi-daemon/Makefile.am0000644000175000017500000001125213130651643020176 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' if HAVE_LIBDAEMON if HAVE_XML pkgsysconfdir=$(sysconfdir)/avahi servicedir=$(pkgsysconfdir)/services introspectiondir=$(datadir)/dbus-1/interfaces dbussystemservicesdir=$(datadir)/dbus-1/system-services AM_CFLAGS+= \ -DAVAHI_DAEMON_RUNTIME_DIR=\"$(avahi_runtime_dir)/avahi-daemon/\" \ -DAVAHI_SOCKET=\"$(avahi_socket)\" \ -DAVAHI_SERVICE_DIR=\"$(servicedir)\" \ -DAVAHI_CONFIG_FILE=\"$(pkgsysconfdir)/avahi-daemon.conf\" \ -DAVAHI_HOSTS_FILE=\"$(pkgsysconfdir)/hosts\" \ -DAVAHI_DBUS_INTROSPECTION_DIR=\"$(introspectiondir)\" \ -DAVAHI_CONFIG_DIR=\"$(pkgsysconfdir)\" sbin_PROGRAMS = \ avahi-daemon if ENABLE_TESTS noinst_PROGRAMS = \ ini-file-parser-test endif avahi_daemon_SOURCES = \ main.c main.h \ simple-protocol.c simple-protocol.h \ static-services.c static-services.h \ static-hosts.c static-hosts.h \ ini-file-parser.c ini-file-parser.h \ setproctitle.c setproctitle.h \ sd-daemon.h sd-daemon.c \ ../avahi-client/check-nss.c avahi_daemon_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS) $(XML_CFLAGS) avahi_daemon_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la $(LIBDAEMON_LIBS) $(XML_LIBS) ini_file_parser_test_SOURCES = \ ini-file-parser.c ini-file-parser.h \ ini-file-parser-test.c ini_file_parser_test_CFLAGS = $(AM_CFLAGS) ini_file_parser_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la pkgsysconf_DATA = \ avahi-daemon.conf \ hosts dist_service_DATA = \ ssh.service \ sftp-ssh.service dist_pkgdata_DATA = \ avahi-service.dtd %.service: %.service.in $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ %.socket: %.socket.in $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@avahi_runtime_dir\@,$(avahi_runtime_dir),g' $< > $@ if HAVE_SYSTEMD systemdsystemunit_DATA = \ avahi-daemon.service \ avahi-daemon.socket dist_dbussystemservices_DATA = \ org.freedesktop.Avahi.service endif CLEANFILES = $(systemdsystemunit_DATA) if ENABLE_CHROOT avahi_daemon_SOURCES += \ chroot.c chroot.h \ caps.c caps.h avahi_daemon_LDADD += -lcap endif if HAVE_DLOPEN avahi_daemon_LDADD += -ldl endif if HAVE_DBUS dbusservicedir=$(DBUS_SYS_DIR) avahi_daemon_SOURCES += \ dbus-protocol.c dbus-protocol.h \ dbus-util.c dbus-util.h \ dbus-internal.h \ dbus-async-address-resolver.c \ dbus-async-host-name-resolver.c \ dbus-async-service-resolver.c \ dbus-domain-browser.c \ dbus-entry-group.c \ dbus-service-browser.c \ dbus-service-type-browser.c \ dbus-sync-address-resolver.c \ dbus-sync-host-name-resolver.c \ dbus-sync-service-resolver.c \ dbus-record-browser.c \ ../avahi-common/dbus.c ../avahi-common/dbus.h \ ../avahi-common/dbus-watch-glue.c ../avahi-common/dbus-watch-glue.h avahi_daemon_LDADD += \ $(DBUS_LIBS) avahi_daemon_CFLAGS += $(DBUS_CFLAGS) -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"$(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)\" dist_dbusservice_DATA = avahi-dbus.conf dist_introspection_DATA = \ org.freedesktop.Avahi.Server.xml \ org.freedesktop.Avahi.EntryGroup.xml \ org.freedesktop.Avahi.DomainBrowser.xml \ org.freedesktop.Avahi.ServiceTypeBrowser.xml \ org.freedesktop.Avahi.ServiceBrowser.xml \ org.freedesktop.Avahi.ServiceResolver.xml \ org.freedesktop.Avahi.AddressResolver.xml \ org.freedesktop.Avahi.HostNameResolver.xml \ org.freedesktop.Avahi.RecordBrowser.xml endif endif endif EXTRA_DIST = \ avahi-daemon.conf \ example.service \ hosts \ example.service \ introspect.dtd \ introspect.xsl \ avahi-daemon.service.in \ avahi-daemon.socket.in xmllint: xmllint --noout --valid example.service for F in $(introspection_DATA) ; do \ xmllint --noout --valid $$F ; \ done install-data-local: test -z "$(avahi_runtime_dir)" || $(MKDIR_P) "$(DESTDIR)$(avahi_runtime_dir)" update-systemd: curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c > sd-daemon.c curl http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h > sd-daemon.h avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.ServiceBrowser.xml0000644000000000000000000000013213130651643024347 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.511978776 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.ServiceBrowser.xml0000644000175000017500000000345513130651643025765 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/caps.c0000644000000000000000000000013213130651643015624 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.527978419 avahi-0.7/avahi-daemon/caps.c0000644000175000017500000000604413130651643017237 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include "caps.h" int avahi_caps_reduce(void) { int ret = 0; cap_t caps; static cap_value_t cap_values[] = { CAP_SYS_CHROOT, CAP_SETUID, CAP_SETGID }; /* Let's reduce our caps to the minimum set and tell Linux to keep * them across setuid(). This is called before we drop * privileges. */ caps = cap_init(); assert(caps); cap_clear(caps); cap_set_flag(caps, CAP_EFFECTIVE, 3, cap_values, CAP_SET); cap_set_flag(caps, CAP_PERMITTED, 3, cap_values, CAP_SET); if (cap_set_proc(caps) < 0) { avahi_log_error("cap_set_proc() failed: %s", strerror(errno)); ret = -1; } cap_free(caps); /* Retain capabilities across setuid() */ if (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) < 0) { avahi_log_error("prctl(PR_SET_KEEPCAPS) failed: %s", strerror(errno)); ret = -1; } return ret; } int avahi_caps_reduce2(void) { int ret = 0; cap_t caps; static cap_value_t cap_values[] = { CAP_SYS_CHROOT }; /* Reduce our caps to the bare minimum and tell Linux not to keep * them across setuid(). This is called after we drop * privileges. */ /* No longer retain caps across setuid() */ if (prctl(PR_SET_KEEPCAPS, 0, 0, 0, 0) < 0) { avahi_log_error("prctl(PR_SET_KEEPCAPS) failed: %s", strerror(errno)); ret = -1; } caps = cap_init(); assert(caps); cap_clear(caps); /* setuid() zeroed our effective caps, let's get them back */ cap_set_flag(caps, CAP_EFFECTIVE, 1, cap_values, CAP_SET); cap_set_flag(caps, CAP_PERMITTED, 1, cap_values, CAP_SET); if (cap_set_proc(caps) < 0) { avahi_log_error("cap_set_proc() failed: %s", strerror(errno)); ret = -1; } cap_free(caps); return ret; } int avahi_caps_drop_all(void) { cap_t caps; int ret = 0; /* Drop all capabilities and turn ourselves into a normal user process */ caps = cap_init(); assert(caps); cap_clear(caps); if (cap_set_proc(caps) < 0) { avahi_log_error("cap_set_proc() failed: %s", strerror(errno)); ret = -1; } cap_free(caps); return ret; } avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.service0000644000000000000000000000013213130651643022244 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.507978865 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.service0000644000175000017500000000171313130651643023655 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. [D-BUS Service] Name=org.freedesktop.Avahi SystemdService=dbus-org.freedesktop.Avahi.service # This service should not be bus activated if systemd isn't running, # so that activation won't conflict with the init script startup. Exec=/bin/false avahi-0.7/avahi-daemon/PaxHeaders.10109/org.freedesktop.Avahi.ServiceTypeBrowser.xml0000644000000000000000000000013213130651643025211 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.111370487 30 ctime=1499681850.511978776 avahi-0.7/avahi-daemon/org.freedesktop.Avahi.ServiceTypeBrowser.xml0000644000175000017500000000335513130651643026626 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/avahi-dbus.conf.in0000644000000000000000000000013213130651643020031 xustar0030 mtime=1499681699.107370577 30 atime=1499681806.648958569 30 ctime=1499681850.519978599 avahi-0.7/avahi-daemon/avahi-dbus.conf.in0000644000175000017500000000225413130651643021443 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-daemon/PaxHeaders.10109/caps.h0000644000000000000000000000013213130651643015631 xustar0030 mtime=1499681699.111370487 30 atime=1499681699.107370577 30 ctime=1499681850.527978419 avahi-0.7/avahi-daemon/caps.h0000644000175000017500000000156113130651643017243 0ustar00lathiatlathiat00000000000000#ifndef foocapshfoo #define foocapshfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ int avahi_caps_reduce(void); int avahi_caps_reduce2(void); int avahi_caps_drop_all(void); #endif avahi-0.7/avahi-daemon/PaxHeaders.10109/simple-protocol.h0000644000000000000000000000013213130651643020033 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.519978599 avahi-0.7/avahi-daemon/simple-protocol.h0000644000175000017500000000172313130651643021445 0ustar00lathiatlathiat00000000000000#ifndef foosimpleprotocolhfoo #define foosimpleprotocolhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include int simple_protocol_setup(const AvahiPoll *poll_api); void simple_protocol_shutdown(void); void simple_protocol_restart_queries(void); #endif avahi-0.7/PaxHeaders.10109/install-sh0000644000000000000000000000013213130652011014170 xustar0030 mtime=1499681801.013084616 30 atime=1499681801.013084616 30 ctime=1499681850.003990109 avahi-0.7/install-sh0000755000175000017500000003546313130652011015615 0ustar00lathiatlathiat00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2014-09-12.12; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) # $RANDOM is not portable (e.g. dash); use it when possible to # lower collision chance tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so # create the $tmpdir first (and fail if unsuccessful) to make sure # that nobody tries to guess the $tmpdir name. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: avahi-0.7/PaxHeaders.10109/avahi-python0000644000000000000000000000013213130652072014530 xustar0030 mtime=1499681850.791972528 30 atime=1499681851.279961638 30 ctime=1499681850.791972528 avahi-0.7/avahi-python/0000755000175000017500000000000013130652072016214 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-python/PaxHeaders.10109/avahi-bookmarks.in0000644000000000000000000000013213130651643020216 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.775972886 avahi-0.7/avahi-python/avahi-bookmarks.in0000755000175000017500000001600313130651643021630 0ustar00lathiatlathiat00000000000000#!@PYTHON@ # -*-python-*- # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. import sys, getopt, os try: import avahi, gobject, dbus except ImportError: print "Sorry, to use this tool you need to install Avahi and python-dbus." sys.exit(1) try: import dbus.glib except ImportError: pass urlproto = { "_http._tcp" : "http", "_https._tcp" : "https", "_ftp._tcp" : "ftp" } port = 8080 address = "127.0.0.1" use_host_names = None use_CGI = None domain = "local" timeout = 3000 class AvahiBookmarks: services = {} def __init__(self, use_host_names): self.bus = dbus.SystemBus() self.server = dbus.Interface(self.bus.get_object(avahi.DBUS_NAME, avahi.DBUS_PATH_SERVER), avahi.DBUS_INTERFACE_SERVER) self.version_string = self.server.GetVersionString() self.browse_service_type("_http._tcp") self.browse_service_type("_https._tcp") self.browse_service_type("_ftp._tcp") if use_host_names is None: try: self.use_host_names = self.server.IsNSSSupportAvailable() except: self.use_host_names = False else: self.use_host_names = use_host_names def browse_service_type(self, stype): global domain, use_CGI browser = dbus.Interface(self.bus.get_object(avahi.DBUS_NAME, self.server.ServiceBrowserNew(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, stype, domain, dbus.UInt32(0))), avahi.DBUS_INTERFACE_SERVICE_BROWSER) browser.connect_to_signal('ItemNew', self.new_service) browser.connect_to_signal('ItemRemove', self.remove_service) if use_CGI: browser.connect_to_signal('AllForNow', self.all_for_now) def find_path(self, txt): l = avahi.txt_array_to_string_array(txt) for k in l: if k[:5] == "path=": if k[5:].startswith("/"): return k[5:] else: return "/" + k[5:] return "/" def render_html(self): global domain t = '%s Zeroconf Bookmarks

    %s Zeroconf Bookmarks

    ' % (domain, domain) if len(self.services) == 0: t += '

    Sorry, no Zeroconf web services have been registered on the %s domain.

    ' % domain else: t += '
      ' for k, v in self.services.iteritems(): if v[3] == 80: port = '' else: port = ':%i' % v[3] path = self.find_path(v[4]) t += '
    • %s
    • ' % (urlproto[k[3]], v[2], port, path, k[2]) t += '
    ' t += '

    Served by %s

    ' % self.version_string return str(t) def new_service(self, interface, protocol, name, type, domain, flags): interface, protocol, name, type, domain, host, aprotocol, address, port, txt, flags = self.server.ResolveService(interface, protocol, name, type, domain, avahi.PROTO_UNSPEC, dbus.UInt32(0)) if self.use_host_names: h = host else: if aprotocol == avahi.PROTO_INET6: h = "[" + address + "]" else: h = address self.services[(interface, protocol, name, type, domain)] = (host, aprotocol, h, port, txt) def remove_service(self, interface, protocol, name, type, domain): del self.services[(interface, protocol, name, type, domain)] # Only reachable with use_CGI def all_for_now(self): mainloop.quit() def usage(retval = 0): print "%s [options]\n" % sys.argv[0] print " -h --help Show this help" print " -c --cgi Run as a CGI instead of as a server (default to server" print " unless environment variable GATEWAY_INTERFACE is set)" print " -t --timeout MS Specify the max time for CGI browsing (default %u)" % timeout print " -p --port PORT Specify the port to use (default %u)" % port print " -a --address ADDRESS Specify the address to bind to (default %s)" % address print " -H --host-names Show links with real hostnames" print " -A --addresses Show links with numeric IP addresses" print " -d --domain DOMAIN Specify the domain to browse" sys.exit(retval) try: opts, args = getopt.getopt(sys.argv[1:], "hct:p:a:HAd:", ["help", "cgi", "port=", "timeout=", "address=", "host-names", "addresses", "domain="]) except getopt.GetoptError: usage(2) for o, a in opts: if o in ("-h", "--help"): usage() if o in ("-c", "--cgi"): use_CGI = True if o in ("-t", "--timeout"): timeout = int(a) if o in ("-p", "--port"): port = int(a) if o in ("-a", "--address"): address = a if o in ("-H", "--host-names"): use_host_names = True if o in ("-A", "--addresses"): use_host_names = False if o in ("-d", "--domain"): domain = a if use_CGI is None: use_CGI = os.environ.has_key("GATEWAY_INTERFACE") if use_CGI: cgi = AvahiBookmarks(use_host_names) mainloop = gobject.MainLoop() gobject.timeout_add(timeout, mainloop.quit) try: mainloop.run() except KeyboardInterrupt: pass print 'Content-type: text/html\n\n' + cgi.render_html() else: try: from twisted.internet import glib2reactor glib2reactor.install() from twisted.internet import reactor from twisted.web import server, resource except ImportError: print "Sorry, to use this tool as a server you need to install twisted and twisted.web.\n" sys.exit(1) class AvahiBookmarksServer(AvahiBookmarks, resource.Resource): isLeaf = True def __init__(self, use_host_names): resource.Resource.__init__(self) AvahiBookmarks.__init__(self, use_host_names) def render_GET(self, request): return self.render_html() site = server.Site(AvahiBookmarksServer(use_host_names)) reactor.listenTCP(port, site, interface=address) print "Now point your web browser to http://%s:%u/!" % (address, port) try: reactor.run() except KeyboardInterrupt: pass avahi-0.7/avahi-python/PaxHeaders.10109/avahi-discover0000644000000000000000000000013213130652072017434 xustar0030 mtime=1499681850.807972172 30 atime=1499681851.279961638 30 ctime=1499681850.807972172 avahi-0.7/avahi-python/avahi-discover/0000755000175000017500000000000013130652072021120 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-python/avahi-discover/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011021547 xustar0030 mtime=1499681801.601071463 30 atime=1499681806.776955706 30 ctime=1499681850.807972172 avahi-0.7/avahi-python/avahi-discover/Makefile.in0000644000175000017500000006426013130652011023166 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_GDBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@am__append_1 = \ @HAVE_GDBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ avahi-discover @HAVE_GDBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@am__append_2 = avahi-discover.desktop @HAVE_GDBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@am__append_3 = __init__.py @HAVE_DBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@am__append_4 = \ @HAVE_DBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ avahi-discover @HAVE_DBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@am__append_5 = avahi-discover.desktop @HAVE_DBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@am__append_6 = __init__.py subdir = avahi-python/avahi-discover ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__avahi_discover_PYTHON_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(bindir)" \ "$(DESTDIR)$(avahi_discoverdir)" "$(DESTDIR)$(desktopdir)" SCRIPTS = $(bin_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__avahi_discover_PYTHON_DIST = __init__.py am__py_compile = PYTHON=$(PYTHON) $(SHELL) $(py_compile) am__pep3147_tweak = \ sed -e 's|\.py$$||' -e 's|[^/]*$$|__pycache__/&.*.py|' py_compile = $(top_srcdir)/py-compile DATA = $(desktop_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/py-compile DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = -I$(top_srcdir) EXTRA_DIST = \ __init__.py \ avahi-discover.py \ avahi-discover.desktop.in.in @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@pythonscripts = $(am__append_1) \ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ $(am__append_4) @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@desktopdir = $(datadir)/applications @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@desktop_DATA = $(am__append_2) \ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ $(am__append_5) @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@avahi_discoverdir = $(pythondir)/avahi_discover @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@avahi_discover_PYTHON = $(am__append_3) \ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ $(am__append_6) @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@bin_SCRIPTS = $(pythonscripts) @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@CLEANFILES = $(pythonscripts) $(desktop_DATA) *.pyc *.pyo avahi-discover.desktop.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-python/avahi-discover/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-python/avahi-discover/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahi_discoverPYTHON: $(avahi_discover_PYTHON) @$(NORMAL_INSTALL) @list='$(avahi_discover_PYTHON)'; dlist=; list2=; test -n "$(avahi_discoverdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_discoverdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_discoverdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \ if test -f $$b$$p; then \ $(am__strip_dir) \ dlist="$$dlist $$f"; \ list2="$$list2 $$b$$p"; \ else :; fi; \ done; \ for file in $$list2; do echo $$file; done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(avahi_discoverdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(avahi_discoverdir)" || exit $$?; \ done || exit $$?; \ if test -n "$$dlist"; then \ $(am__py_compile) --destdir "$(DESTDIR)" \ --basedir "$(avahi_discoverdir)" $$dlist; \ else :; fi uninstall-avahi_discoverPYTHON: @$(NORMAL_UNINSTALL) @list='$(avahi_discover_PYTHON)'; test -n "$(avahi_discoverdir)" || list=; \ py_files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$py_files" || exit 0; \ dir='$(DESTDIR)$(avahi_discoverdir)'; \ pyc_files=`echo "$$py_files" | sed 's|$$|c|'`; \ pyo_files=`echo "$$py_files" | sed 's|$$|o|'`; \ py_files_pep3147=`echo "$$py_files" | $(am__pep3147_tweak)`; \ echo "$$py_files_pep3147";\ pyc_files_pep3147=`echo "$$py_files_pep3147" | sed 's|$$|c|'`; \ pyo_files_pep3147=`echo "$$py_files_pep3147" | sed 's|$$|o|'`; \ st=0; \ for files in \ "$$py_files" \ "$$pyc_files" \ "$$pyo_files" \ "$$pyc_files_pep3147" \ "$$pyo_files_pep3147" \ ; do \ $(am__uninstall_files_from_dir) || st=$$?; \ done; \ exit $$st install-desktopDATA: $(desktop_DATA) @$(NORMAL_INSTALL) @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(desktopdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(desktopdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(desktopdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopdir)" || exit $$?; \ done uninstall-desktopDATA: @$(NORMAL_UNINSTALL) @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(desktopdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) $(DATA) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(avahi_discoverdir)" "$(DESTDIR)$(desktopdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahi_discoverPYTHON install-desktopDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binSCRIPTS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahi_discoverPYTHON uninstall-binSCRIPTS \ uninstall-desktopDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-avahi_discoverPYTHON \ install-binSCRIPTS install-data install-data-am \ install-desktopDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-avahi_discoverPYTHON \ uninstall-binSCRIPTS uninstall-desktopDATA .PRECIOUS: Makefile @HAVE_GDBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@@INTLTOOL_DESKTOP_RULE@ @HAVE_DBM_TRUE@@HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@@INTLTOOL_DESKTOP_RULE@ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@avahi-discover.desktop.in: avahi-discover.desktop.in.in @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@avahi-discover: avahi-discover.py @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@GETTEXT_PACKAGE\@,"$(GETTEXT_PACKAGE)",g' \ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@LOCALEDIR\@,"$(avahilocaledir)",g' \ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@interfacesdir\@,$(interfacesdir),g' $< > $@ && \ @HAVE_PYGOBJECT_TRUE@@HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-python/avahi-discover/PaxHeaders.10109/avahi-discover.py0000644000000000000000000000013213130651643022772 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.807972172 avahi-0.7/avahi-python/avahi-discover/avahi-discover.py0000755000175000017500000003152713130651643024414 0ustar00lathiatlathiat00000000000000#!@PYTHON@ # -*-python-*- # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. from __future__ import print_function import os, sys try: import avahi, gettext, dbus, avahi.ServiceTypeDatabase gettext.bindtextdomain(@GETTEXT_PACKAGE@, @LOCALEDIR@) gettext.textdomain(@GETTEXT_PACKAGE@) import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, GObject _ = gettext.gettext except ImportError as e: print("Sorry, to use this tool you need to install Avahi, pygtk and python-dbus.\n Error: %s" % e) sys.exit(1) except Exception as e: print("Failed to initialize: %s" % e) sys.exit(1) ## !!NOTE!! ## # It's really important to do this, else you won't see any events ## try: from dbus import DBusException import dbus.glib except ImportError as e: pass service_type_browsers = {} service_browsers = {} def error_msg(msg): d = Gtk.MessageDialog(parent=None, flags=Gtk.DialogFlags.MODAL, type=Gtk.MessageType.ERROR, buttons=Gtk.ButtonsType.OK) d.set_markup(msg) d.show_all() d.run() d.destroy() ui_dir = "@interfacesdir@" service_type_db = avahi.ServiceTypeDatabase.ServiceTypeDatabase() class Main_window: def __init__(self, path="avahi-discover.ui", root="main_window", domain=None, **kwargs): path = os.path.join(ui_dir, path) Gtk.Window.set_default_icon_name("network-wired") self.ui = Gtk.Builder() self.ui.set_translation_domain("avahi") self.ui.add_from_file(path) self.ui.connect_signals(self) self.tree_view = self.ui.get_object("tree_view") self.info_label = self.ui.get_object("info_label") self.new() def on_tree_view_cursor_changed(self, widget, *args): (model, iter) = widget.get_selection().get_selected() stype = None if iter is not None: (name,interface,protocol,stype,domain) = self.treemodel.get(iter,1,2,3,4,5) if stype == None: self.info_label.set_markup(_("No service currently selected.")) return #Asynchronous resolving self.server.ResolveService( int(interface), int(protocol), name, stype, domain, avahi.PROTO_UNSPEC, dbus.UInt32(0), reply_handler=self.service_resolved, error_handler=self.print_error) def protoname(self,protocol): if protocol == avahi.PROTO_INET: return "IPv4" if protocol == avahi.PROTO_INET6: return "IPv6" return "n/a" def siocgifname(self, interface): if interface <= 0: return "n/a" else: return self.server.GetNetworkInterfaceNameByIndex(interface) def get_interface_name(self, interface, protocol): if interface == avahi.IF_UNSPEC and protocol == avahi.PROTO_UNSPEC: return "Wide Area" else: return str(self.siocgifname(interface)) + " " + str(self.protoname(protocol)) def service_resolved(self, interface, protocol, name, stype, domain, host, aprotocol, address, port, txt, flags): print("Service data for service '%s' of type '%s' in domain '%s' on %i.%i:" % (name, stype, domain, interface, protocol)) print("\tHost %s (%s), port %i, TXT data: %s" % (host, address, port, str(avahi.txt_array_to_string_array(txt)))) self.update_label(interface, protocol, name, stype, domain, host, aprotocol, address, port, avahi.txt_array_to_string_array(txt)) def print_error(self, err): error_label = "Error: %s" % (err) self.info_label.set_markup(error_label) print("Error:", str(err)) def lookup_type(self, stype): global service_type_db try: return service_type_db[stype].decode('utf-8', 'replace') except KeyError: return stype def new_service(self, interface, protocol, name, stype, domain, flags): print("Found service '%s' of type '%s' in domain '%s' on %i.%i." % (name, stype, domain, interface, protocol)) if (interface,protocol) not in self.zc_ifaces: ifn = self.get_interface_name(interface, protocol) self.zc_ifaces[(interface,protocol)] = self.insert_row(self.treemodel, None, ifn, None,interface,protocol,None,domain) if (interface,protocol,domain) not in self.zc_domains: self.zc_domains[(interface,protocol,domain)] = self.insert_row(self.treemodel, self.zc_ifaces[(interface,protocol)], domain,None,interface,protocol,None,domain) if (interface,protocol,stype,domain) not in self.zc_types: thisDomain = self.zc_domains[(interface,protocol,domain)] self.zc_types[(interface,protocol,stype,domain)] = self.insert_row(self.treemodel, thisDomain, self.lookup_type(stype), name, interface,None,None,None) treeiter = self.insert_row(self.treemodel,self.zc_types[(interface,protocol,stype,domain)], name, name, interface,protocol,stype,domain) self.services_browsed[(interface, protocol, name, stype, domain)] = treeiter # expand the tree of this path self.tree_view.expand_to_path(self.treemodel.get_path(treeiter)) def remove_service(self, interface, protocol, name, stype, domain, flags): print("Service '%s' of type '%s' in domain '%s' on %i.%i disappeared." % (name, stype, domain, interface, protocol)) self.info_label.set_markup("") treeiter=self.services_browsed[(interface, protocol, name, stype, domain)] parent = self.treemodel.iter_parent(treeiter) self.treemodel.remove(treeiter) del self.services_browsed[(interface, protocol, name, stype, domain)] if self.treemodel.iter_has_child(parent) == False: treeiter=self.zc_types[(interface,protocol,stype,domain)] parent = self.treemodel.iter_parent(treeiter) self.treemodel.remove(treeiter) del self.zc_types[(interface,protocol,stype,domain)] if self.treemodel.iter_has_child(parent) == False: treeiter=self.zc_domains[(interface,protocol,domain)] parent = self.treemodel.iter_parent(treeiter) self.treemodel.remove(treeiter) del self.zc_domains[(interface,protocol,domain)] if self.treemodel.iter_has_child(parent) == False: treeiter=self.zc_ifaces[(interface,protocol)] parent = self.treemodel.iter_parent(treeiter) self.treemodel.remove(treeiter) del self.zc_ifaces[(interface,protocol)] def new_service_type(self, interface, protocol, stype, domain, flags): global service_browsers # Are we already browsing this domain for this type? if (interface, protocol, stype, domain) in service_browsers: return print("Browsing for services of type '%s' in domain '%s' on %i.%i ..." % (stype, domain, interface, protocol)) b = dbus.Interface(self.bus.get_object(avahi.DBUS_NAME, self.server.ServiceBrowserNew(interface, protocol, stype, domain, dbus.UInt32(0))), avahi.DBUS_INTERFACE_SERVICE_BROWSER) b.connect_to_signal('ItemNew', self.new_service) b.connect_to_signal('ItemRemove', self.remove_service) service_browsers[(interface, protocol, stype, domain)] = b def browse_domain(self, interface, protocol, domain): global service_type_browsers # Are we already browsing this domain? if (interface, protocol, domain) in service_type_browsers: return if self.stype is None: print("Browsing domain '%s' on %i.%i ..." % (domain, interface, protocol)) try: b = dbus.Interface(self.bus.get_object(avahi.DBUS_NAME, self.server.ServiceTypeBrowserNew(interface, protocol, domain, dbus.UInt32(0))), avahi.DBUS_INTERFACE_SERVICE_TYPE_BROWSER) except DBusException as e: print(e) error_msg("You should check that the avahi daemon is running.\n\nError : %s" % e) sys.exit(0) b.connect_to_signal('ItemNew', self.new_service_type) service_type_browsers[(interface, protocol, domain)] = b else: self.new_service_type(interface, protocol, self.stype, domain) def new_domain(self,interface, protocol, domain, flags): if self.zc_ifaces.has_key((interface,protocol)) == False: ifn = self.get_interface_name(interface, protocol) self.zc_ifaces[(interface,protocol)] = self.insert_row(self.treemodel, None, ifn,None,interface,protocol,None,domain) if self.zc_domains.has_key((interface,protocol,domain)) == False: self.zc_domains[(interface,protocol,domain)] = self.insert_row(self.treemodel, self.zc_ifaces[(interface,protocol)], domain,None,interface,protocol,None,domain) if domain != "local": self.browse_domain(interface, protocol, domain) def pair_to_dict(self, l): res = dict() for el in l: if "=" not in el: res[el]='' else: tmp = el.split('=',1) if len(tmp[0]) > 0: res[tmp[0]] = tmp[1] return res def update_label(self,interface, protocol, name, stype, domain, host, aprotocol, address, port, txt): if len(txt) != 0: txts = "" txtd = self.pair_to_dict(txt) for k,v in txtd.items(): txts+="" + _("TXT") + " %s = %s\n" % (k,v) else: txts = "" + _("TXT Data:") + " " + _("empty") + "" infos = "" + _("Service Type:") + " %s\n" infos += "" + _("Service Name:") + " %s\n" infos += "" + _("Domain Name:") + " %s\n" infos += "" + _("Interface:") + " %s %s\n" infos += "" + _("Address:") + " %s/%s:%i\n%s" infos = infos % (stype, name, domain, self.siocgifname(interface), self.protoname(protocol), host, address, port, txts.strip()) self.info_label.set_markup(infos) def insert_row(self, model,parent, content, name, interface,protocol,stype,domain): myiter=model.insert_after(parent,None) model.set(myiter,0,content,1,name,2,str(interface),3,str(protocol),4,stype,5,domain) return myiter def new(self): self.treemodel=Gtk.TreeStore(GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING, GObject.TYPE_STRING) self.tree_view.set_model(self.treemodel) #creating the columns headers self.tree_view.set_headers_visible(False) renderer=Gtk.CellRendererText() column=Gtk.TreeViewColumn("",renderer, text=0) column.set_resizable(True) column.set_sizing(Gtk.TreeViewColumnSizing.GROW_ONLY) column.set_expand(True) self.tree_view.append_column(column) self.domain = None self.stype = None self.zc_ifaces = {} self.zc_domains = {} self.zc_types = {} self.services_browsed = {} try: self.bus = dbus.SystemBus() self.server = dbus.Interface(self.bus.get_object(avahi.DBUS_NAME, avahi.DBUS_PATH_SERVER), avahi.DBUS_INTERFACE_SERVER) except Exception as e: print("Failed to connect to Avahi Server (Is it running?): %s" % e) sys.exit(1) if self.domain is None: # Explicitly browse .local self.browse_domain(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, "local") # Browse for other browsable domains db = dbus.Interface(self.bus.get_object(avahi.DBUS_NAME, self.server.DomainBrowserNew(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, "", avahi.DOMAIN_BROWSER_BROWSE, dbus.UInt32(0))), avahi.DBUS_INTERFACE_DOMAIN_BROWSER) db.connect_to_signal('ItemNew', self.new_domain) else: # Just browse the domain the user wants us to browse self.browse_domain(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, self.domain) def gtk_main_quit(self, *args): Gtk.main_quit() def main(): main_window = Main_window() # http://stackoverflow.com/a/16486080/434217 import signal signal.signal(signal.SIGINT, signal.SIG_DFL) Gtk.main() if __name__ == "__main__": main() avahi-0.7/avahi-python/avahi-discover/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643021550 xustar0030 mtime=1499681699.119370306 30 atime=1499681796.873177231 30 ctime=1499681850.803972261 avahi-0.7/avahi-python/avahi-discover/Makefile.am0000644000175000017500000000345613130651643023167 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) EXTRA_DIST = \ __init__.py \ avahi-discover.py \ avahi-discover.desktop.in.in if HAVE_PYTHON if HAVE_PYTHON_DBUS if HAVE_PYGOBJECT pythonscripts = desktopdir = $(datadir)/applications desktop_DATA = avahi_discoverdir = $(pythondir)/avahi_discover avahi_discover_PYTHON = if HAVE_GDBM pythonscripts += \ avahi-discover desktop_DATA += avahi-discover.desktop @INTLTOOL_DESKTOP_RULE@ avahi_discover_PYTHON += __init__.py endif if HAVE_DBM pythonscripts += \ avahi-discover desktop_DATA += avahi-discover.desktop @INTLTOOL_DESKTOP_RULE@ avahi_discover_PYTHON += __init__.py endif avahi-discover.desktop.in: avahi-discover.desktop.in.in $(AM_V_GEN)sed -e 's,@bindir\@,$(bindir),g' $< > $@ avahi-discover: avahi-discover.py $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ -e 's,@GETTEXT_PACKAGE\@,"$(GETTEXT_PACKAGE)",g' \ -e 's,@LOCALEDIR\@,"$(avahilocaledir)",g' \ -e 's,@interfacesdir\@,$(interfacesdir),g' $< > $@ && \ chmod +x $@ bin_SCRIPTS = $(pythonscripts) CLEANFILES = $(pythonscripts) $(desktop_DATA) *.pyc *.pyo avahi-discover.desktop.in endif endif endif avahi-0.7/avahi-python/avahi-discover/PaxHeaders.10109/__init__.py0000644000000000000000000000013213130651643021625 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.803972261 avahi-0.7/avahi-python/avahi-discover/__init__.py0000755000175000017500000000135713130651643023245 0ustar00lathiatlathiat00000000000000#!@PYTHON@ # -*-python-*- # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. avahi-0.7/avahi-python/avahi-discover/PaxHeaders.10109/avahi-discover.desktop.in.in0000644000000000000000000000013213130651643025025 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.807972172 avahi-0.7/avahi-python/avahi-discover/avahi-discover.desktop.in.in0000644000175000017500000000040313130651643026431 0ustar00lathiatlathiat00000000000000[Desktop Entry] Version=1.0 _Name=Avahi Zeroconf Browser _Comment=Browse for Zeroconf services available on your network Exec=@bindir@/avahi-discover Terminal=false Type=Application Icon=network-wired Categories=GNOME;System; StartupNotify=false GenericName= avahi-0.7/avahi-python/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016644 xustar0030 mtime=1499681699.119370306 30 atime=1499681796.869177317 30 ctime=1499681850.775972886 avahi-0.7/avahi-python/Makefile.am0000644000175000017500000000221513130651643020253 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' EXTRA_DIST = \ avahi-bookmarks.in SUBDIRS=avahi avahi-discover if HAVE_PYTHON if HAVE_PYTHON_DBUS pythonscripts = \ avahi-bookmarks avahi-bookmarks: avahi-bookmarks.in $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ && \ chmod +x $@ bin_SCRIPTS = $(pythonscripts) CLEANFILES = $(pythonscripts) endif endif avahi-0.7/avahi-python/PaxHeaders.10109/avahi0000644000000000000000000000013213130652072015620 xustar0030 mtime=1499681850.791972528 30 atime=1499681851.279961638 30 ctime=1499681850.791972528 avahi-0.7/avahi-python/avahi/0000755000175000017500000000000013130652072017304 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-python/avahi/PaxHeaders.10109/__init__.py0000644000000000000000000000013213130651643020011 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.787972618 avahi-0.7/avahi-python/avahi/__init__.py0000644000175000017500000000601213130651643021417 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # Some definitions matching those in avahi-common/defs.h import dbus SERVER_INVALID, SERVER_REGISTERING, SERVER_RUNNING, SERVER_COLLISION, SERVER_FAILURE = range(0, 5) ENTRY_GROUP_UNCOMMITED, ENTRY_GROUP_REGISTERING, ENTRY_GROUP_ESTABLISHED, ENTRY_GROUP_COLLISION, ENTRY_GROUP_FAILURE = range(0, 5) DOMAIN_BROWSER_BROWSE, DOMAIN_BROWSER_BROWSE_DEFAULT, DOMAIN_BROWSER_REGISTER, DOMAIN_BROWSER_REGISTER_DEFAULT, DOMAIN_BROWSER_BROWSE_LEGACY = range(0, 5) PROTO_UNSPEC, PROTO_INET, PROTO_INET6 = -1, 0, 1 IF_UNSPEC = -1 PUBLISH_UNIQUE = 1 PUBLISH_NO_PROBE = 2 PUBLISH_NO_ANNOUNCE = 4 PUBLISH_ALLOW_MULTIPLE = 8 PUBLISH_NO_REVERSE = 16 PUBLISH_NO_COOKIE = 32 PUBLISH_UPDATE = 64 PUBLISH_USE_WIDE_AREA = 128 PUBLISH_USE_MULTICAST = 256 LOOKUP_USE_WIDE_AREA = 1 LOOKUP_USE_MULTICAST = 2 LOOKUP_NO_TXT = 4 LOOKUP_NO_ADDRESS = 8 LOOKUP_RESULT_CACHED = 1 LOOKUP_RESULT_WIDE_AREA = 2 LOOKUP_RESULT_MULTICAST = 4 LOOKUP_RESULT_LOCAL = 8 LOOKUP_RESULT_OUR_OWN = 16 LOOKUP_RESULT_STATIC = 32 SERVICE_COOKIE = "org.freedesktop.Avahi.cookie" SERVICE_COOKIE_INVALID = 0 DBUS_NAME = "org.freedesktop.Avahi" DBUS_INTERFACE_SERVER = DBUS_NAME + ".Server" DBUS_PATH_SERVER = "/" DBUS_INTERFACE_ENTRY_GROUP = DBUS_NAME + ".EntryGroup" DBUS_INTERFACE_DOMAIN_BROWSER = DBUS_NAME + ".DomainBrowser" DBUS_INTERFACE_SERVICE_TYPE_BROWSER = DBUS_NAME + ".ServiceTypeBrowser" DBUS_INTERFACE_SERVICE_BROWSER = DBUS_NAME + ".ServiceBrowser" DBUS_INTERFACE_ADDRESS_RESOLVER = DBUS_NAME + ".AddressResolver" DBUS_INTERFACE_HOST_NAME_RESOLVER = DBUS_NAME + ".HostNameResolver" DBUS_INTERFACE_SERVICE_RESOLVER = DBUS_NAME + ".ServiceResolver" DBUS_INTERFACE_RECORD_BROWSER = DBUS_NAME + ".RecordBrowser" def byte_array_to_string(s): r = "" for c in s: if c >= 32 and c < 127: r += "%c" % c else: r += "." return r def txt_array_to_string_array(t): l = [] for s in t: l.append(byte_array_to_string(s)) return l def string_to_byte_array(s): r = [] for c in s: r.append(dbus.Byte(ord(c))) return r def string_array_to_txt_array(t): l = [] for s in t: l.append(string_to_byte_array(s)) return l def dict_to_txt_array(txt_dict): l = [] for k,v in txt_dict.items(): l.append(string_to_byte_array("%s=%s" % (k,v))) return l avahi-0.7/avahi-python/avahi/PaxHeaders.10109/ServiceTypeDatabase.py.in0000644000000000000000000000013213130651643022546 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.791972528 avahi-0.7/avahi-python/avahi/ServiceTypeDatabase.py.in0000644000175000017500000000662013130651643024161 0ustar00lathiatlathiat00000000000000#!@PYTHON@ # -*-python-*- # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. import @DBM@ import locale import re locale.setlocale(locale.LC_ALL, '') class ServiceTypeDatabase: """ServiceTypeDatabase maps service types to descriptions""" def __init__(self, filename = "@pkglibdatadir@/service-types.db"): self.db = @DBM@.open(filename, "r") l = locale.getlocale(locale.LC_MESSAGES) self.suffixes = () if not l[0] is None: if not l[1] is None: self.suffixes += (l[0] + "@" + l[1], ) self.suffixes += (l[0], ) i = l[0].find("_") if i >= 0: k = l[0][:i] if not l[1] is None: self.suffixes += (k + "@" + l[1], ) self.suffixes += (k, ) self.suffixes = tuple(map(lambda x: "["+x+"]", self.suffixes)) + ("", ) def __getitem__(self, key): for suffix in self.suffixes: try: return self.db[key + suffix] except KeyError: pass raise KeyError() def items(self): return list(self.iteritems()) def has_key(self, key): for suffix in self.suffixes: if self.db.has_key(key + suffix): return True return False def __contains__(self, item): for suffix in self.suffixes: if item+suffix in self.db: return True return False def __iter__(self): @FIRST_KEY@ @CHECK_KEY@ if re.search('_[a-zA-Z0-9-]+\._[a-zA-Z0-9-]+', key) and not re.search('_[a-zA-Z0-9-]+\._[a-zA-Z0-9-]+\[.*\]', key): yield key @NEXT_KEY@ def __len__(self): count = 0 for _ in self: count+=1 self.__len__ = lambda : count return len(self) def get(self, key, default=None): if key in self: return self[key] else: return default def iteritems(self): return ((key, self[key]) for key in self) def iterkeys(self): return self.__iter__() def itervalues(self): return (self[key] for key in self) def keys(self): return list(self) def values(self): return list(self.itervalues()) if __name__ == "__main__": b = ServiceTypeDatabase() print (b.items()) print (b["_http._tcp"]) print (b["_ftp._tcp"]) print (b["_webdav._tcp"]) print (b["_webdavs._tcp"]) print (b.get("gurki._tcp")) print (len(b)) for key, _ in zip(b, xrange(3)): print (key) for key, _ in zip(b.iteritems(), xrange(3)): print (key) for key, _ in zip(b.itervalues(), xrange(3)): print (key) avahi-0.7/avahi-python/avahi/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011017733 xustar0030 mtime=1499681801.621071017 30 atime=1499681806.772955795 30 ctime=1499681850.791972528 avahi-0.7/avahi-python/avahi/Makefile.in0000644000175000017500000005754513130652011021362 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@am__append_1 = __init__.py subdir = avahi-python/avahi ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__avahi_PYTHON_DIST) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(avahidir)" "$(DESTDIR)$(avahidir)" SCRIPTS = $(nodist_avahi_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__avahi_PYTHON_DIST = __init__.py am__py_compile = PYTHON=$(PYTHON) $(SHELL) $(py_compile) am__pep3147_tweak = \ sed -e 's|\.py$$||' -e 's|[^/]*$$|__pycache__/&.*.py|' py_compile = $(top_srcdir)/py-compile am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/py-compile DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = __init__.py ServiceTypeDatabase.py.in pkglibdatadir = $(libdir)/avahi @HAVE_PYTHON_TRUE@avahidir = $(pythondir)/avahi @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@nodist_avahi_SCRIPTS = ServiceTypeDatabase.py @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@nodist_avahi_SCRIPTS = ServiceTypeDatabase.py @HAVE_PYTHON_TRUE@avahi_PYTHON = $(avahi_SCRIPTS) $(am__append_1) CLEANFILES = *.pyc *.pyo ServiceTypeDatabase.py all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-python/avahi/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-python/avahi/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-nodist_avahiSCRIPTS: $(nodist_avahi_SCRIPTS) @$(NORMAL_INSTALL) @list='$(nodist_avahi_SCRIPTS)'; test -n "$(avahidir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahidir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahidir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(avahidir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(avahidir)$$dir" || exit $$?; \ } \ ; done uninstall-nodist_avahiSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(nodist_avahi_SCRIPTS)'; test -n "$(avahidir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(avahidir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahiPYTHON: $(avahi_PYTHON) @$(NORMAL_INSTALL) @list='$(avahi_PYTHON)'; dlist=; list2=; test -n "$(avahidir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahidir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahidir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then b=; else b="$(srcdir)/"; fi; \ if test -f $$b$$p; then \ $(am__strip_dir) \ dlist="$$dlist $$f"; \ list2="$$list2 $$b$$p"; \ else :; fi; \ done; \ for file in $$list2; do echo $$file; done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(avahidir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(avahidir)" || exit $$?; \ done || exit $$?; \ if test -n "$$dlist"; then \ $(am__py_compile) --destdir "$(DESTDIR)" \ --basedir "$(avahidir)" $$dlist; \ else :; fi uninstall-avahiPYTHON: @$(NORMAL_UNINSTALL) @list='$(avahi_PYTHON)'; test -n "$(avahidir)" || list=; \ py_files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$py_files" || exit 0; \ dir='$(DESTDIR)$(avahidir)'; \ pyc_files=`echo "$$py_files" | sed 's|$$|c|'`; \ pyo_files=`echo "$$py_files" | sed 's|$$|o|'`; \ py_files_pep3147=`echo "$$py_files" | $(am__pep3147_tweak)`; \ echo "$$py_files_pep3147";\ pyc_files_pep3147=`echo "$$py_files_pep3147" | sed 's|$$|c|'`; \ pyo_files_pep3147=`echo "$$py_files_pep3147" | sed 's|$$|o|'`; \ st=0; \ for files in \ "$$py_files" \ "$$pyc_files" \ "$$pyo_files" \ "$$pyc_files_pep3147" \ "$$pyo_files_pep3147" \ ; do \ $(am__uninstall_files_from_dir) || st=$$?; \ done; \ exit $$st tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(avahidir)" "$(DESTDIR)$(avahidir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahiPYTHON install-nodist_avahiSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahiPYTHON uninstall-nodist_avahiSCRIPTS .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-avahiPYTHON install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-nodist_avahiSCRIPTS \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am uninstall-avahiPYTHON \ uninstall-nodist_avahiSCRIPTS .PRECIOUS: Makefile @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ServiceTypeDatabase.py: ServiceTypeDatabase.py.in @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@DBM\@,gdbm,g' \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@FIRST_KEY\@,key = self.db.firstkey(),g' \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@CHECK_KEY\@,while key is not None:,g' \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@NEXT_KEY\@,key = self.db.nextkey(key),g' \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@pkglibdatadir\@,$(pkglibdatadir),g' $< > $@ && \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ chmod +x $@ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ServiceTypeDatabase.py: ServiceTypeDatabase.py.in @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@DBM\@,dbm,g' \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@FIRST_KEY\@,keys = self.db.keys(),g' \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@CHECK_KEY\@,for key in keys:,g' \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@NEXT_KEY\@,,g' \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@pkglibdatadir\@,$(pkglibdatadir),g' $< > $@ && \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-python/avahi/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017734 xustar0030 mtime=1499681699.119370306 30 atime=1499681796.869177317 30 ctime=1499681850.787972618 avahi-0.7/avahi-python/avahi/Makefile.am0000644000175000017500000000337113130651643021347 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. EXTRA_DIST = __init__.py ServiceTypeDatabase.py.in pkglibdatadir=$(libdir)/avahi if HAVE_PYTHON avahidir = $(pythondir)/avahi if HAVE_GDBM nodist_avahi_SCRIPTS = ServiceTypeDatabase.py ServiceTypeDatabase.py: ServiceTypeDatabase.py.in $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ -e 's,@DBM\@,gdbm,g' \ -e 's,@FIRST_KEY\@,key = self.db.firstkey(),g' \ -e 's,@CHECK_KEY\@,while key is not None:,g' \ -e 's,@NEXT_KEY\@,key = self.db.nextkey(key),g' \ -e 's,@pkglibdatadir\@,$(pkglibdatadir),g' $< > $@ && \ chmod +x $@ endif if HAVE_DBM nodist_avahi_SCRIPTS = ServiceTypeDatabase.py ServiceTypeDatabase.py: ServiceTypeDatabase.py.in $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ -e 's,@DBM\@,dbm,g' \ -e 's,@FIRST_KEY\@,keys = self.db.keys(),g' \ -e 's,@CHECK_KEY\@,for key in keys:,g' \ -e 's,@NEXT_KEY\@,,g' \ -e 's,@pkglibdatadir\@,$(pkglibdatadir),g' $< > $@ && \ chmod +x $@ endif avahi_PYTHON = $(avahi_SCRIPTS) if HAVE_PYTHON_DBUS avahi_PYTHON += __init__.py endif endif CLEANFILES=*.pyc *.pyo ServiceTypeDatabase.py avahi-0.7/avahi-python/PaxHeaders.10109/Makefile.in0000644000000000000000000000012713130652011016647 xustar0027 mtime=1499681801.577072 30 atime=1499681806.764955975 30 ctime=1499681850.775972886 avahi-0.7/avahi-python/Makefile.in0000644000175000017500000006576113130652011020271 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = avahi-python ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(bindir)" SCRIPTS = $(bin_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' EXTRA_DIST = \ avahi-bookmarks.in SUBDIRS = avahi avahi-discover @HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@pythonscripts = \ @HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ avahi-bookmarks @HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@bin_SCRIPTS = $(pythonscripts) @HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@CLEANFILES = $(pythonscripts) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-python/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-python/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(SCRIPTS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binSCRIPTS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binSCRIPTS .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-binSCRIPTS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binSCRIPTS .PRECIOUS: Makefile @HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@avahi-bookmarks: avahi-bookmarks.in @HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' $< > $@ && \ @HAVE_PYTHON_DBUS_TRUE@@HAVE_PYTHON_TRUE@ chmod +x $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/PaxHeaders.10109/avahi-dnsconfd0000644000000000000000000000013213130652072015005 xustar0030 mtime=1499681850.743973599 30 atime=1499681851.283961552 30 ctime=1499681850.743973599 avahi-0.7/avahi-dnsconfd/0000755000175000017500000000000013130652072016471 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-dnsconfd/PaxHeaders.10109/main.c0000644000000000000000000000013213130651643016155 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.743973599 avahi-0.7/avahi-dnsconfd/main.c0000644000175000017500000004117213130651643017571 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define BROWSE_DNS_SERVERS "BROWSE-DNS-SERVERS\n" #define ENV_INTERFACE_DNS_SERVERS "AVAHI_INTERFACE_DNS_SERVERS" #define ENV_DNS_SERVERS "AVAHI_DNS_SERVERS" #define ENV_INTERFACE "AVAHI_INTERFACE" static enum { ACKWAIT, BROWSING } state = ACKWAIT; static enum { DAEMON_RUN, DAEMON_KILL, DAEMON_REFRESH, DAEMON_VERSION, DAEMON_HELP, DAEMON_CHECK } command = DAEMON_RUN; static int quit = 0; static int daemonize = 0; static int use_syslog = 0; #if !HAVE_DECL_ENVIRON extern char **environ; #endif typedef struct DNSServerInfo DNSServerInfo; struct DNSServerInfo { AvahiIfIndex interface; AvahiProtocol protocol; char *address; AVAHI_LLIST_FIELDS(DNSServerInfo, servers); }; static AVAHI_LLIST_HEAD(DNSServerInfo, servers); static void server_info_free(DNSServerInfo *i) { assert(i); avahi_free(i->address); AVAHI_LLIST_REMOVE(DNSServerInfo, servers, servers, i); avahi_free(i); } static DNSServerInfo* get_server_info(AvahiIfIndex interface, AvahiProtocol protocol, const char *address) { DNSServerInfo *i; assert(address); for (i = servers; i; i = i->servers_next) if (i->interface == interface && i->protocol == protocol && strcmp(i->address, address) == 0) return i; return NULL; } static DNSServerInfo* new_server_info(AvahiIfIndex interface, AvahiProtocol protocol, const char *address) { DNSServerInfo *i; assert(address); i = avahi_new(DNSServerInfo, 1); i->interface = interface; i->protocol = protocol; i->address = avahi_strdup(address); AVAHI_LLIST_PREPEND(DNSServerInfo, servers, servers, i); return i; } static int set_cloexec(int fd) { int n; assert(fd >= 0); if ((n = fcntl(fd, F_GETFD)) < 0) return -1; if (n & FD_CLOEXEC) return 0; return fcntl(fd, F_SETFD, n|FD_CLOEXEC); } static int open_socket(void) { int fd = -1; struct sockaddr_un sa; if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { daemon_log(LOG_ERR, "socket(): %s", strerror(errno)); goto fail; } if (set_cloexec(fd) < 0) { daemon_log(LOG_ERR, "fcntl(): %s", strerror(errno)); goto fail; } memset(&sa, 0, sizeof(sa)); sa.sun_family = AF_UNIX; strncpy(sa.sun_path, AVAHI_SOCKET, sizeof(sa.sun_path)-1); sa.sun_path[sizeof(sa.sun_path)-1] = 0; if (connect(fd, (struct sockaddr*) &sa, sizeof(sa)) < 0) { daemon_log(LOG_ERR, "connect(): %s", strerror(errno)); daemon_log(LOG_INFO, "Failed to connect to the daemon. This probably means that you"); daemon_log(LOG_INFO, "didn't start avahi-daemon before avahi-dnsconfd."); goto fail; } return fd; fail: if (fd >= 0) close(fd); return -1; } static ssize_t loop_write(int fd, const void*data, size_t size) { ssize_t ret = 0; assert(fd >= 0 && data && size); while (size > 0) { ssize_t r; if ((r = write(fd, data, size)) < 0) return r; if (r == 0) break; ret += r; data = (const uint8_t*) data + r; size -= r; } return ret; } static char *concat_dns_servers(AvahiIfIndex interface) { DNSServerInfo *i; char *r = NULL; for (i = servers; i; i = i->servers_next) if (i->interface == interface || interface <= 0) { DNSServerInfo *j; char *t; /* Filter out double entries */ for (j = servers; j != i; j = j->servers_next) if (j->interface == interface || interface <= 0) if (strcmp(i->address, j->address) == 0) break; if (j != i) continue; if (!r) t = avahi_strdup(i->address); else t = avahi_strdup_printf("%s %s", r, i->address); avahi_free(r); r = t; } return r; } static void set_env(const char *name, const char *value) { char **e; size_t l; assert(name); assert(value); l = strlen(name); for (e = environ; *e; e++) { /* Search for the variable */ if (strlen(*e) < l+1) continue; if (strncmp(*e, name, l) != 0 || (*e)[l] != '=') continue; /* We simply free the record, sicne we know that we created it previously */ avahi_free(*e); *e = avahi_strdup_printf("%s=%s", name, value); return; } assert(0); } static void run_script(int new, AvahiIfIndex interface, AvahiProtocol protocol, const char *address) { char *p; int ret; char ia[16], pa[16]; char name[IF_NAMESIZE]; assert(interface > 0); if (!if_indextoname(interface, name)) return; p = concat_dns_servers(interface); set_env(ENV_INTERFACE_DNS_SERVERS, p ? p : ""); avahi_free(p); p = concat_dns_servers(-1); set_env(ENV_DNS_SERVERS, p ? p : ""); avahi_free(p); set_env(ENV_INTERFACE, name); snprintf(ia, sizeof(ia), "%i", (int) interface); snprintf(pa, sizeof(pa), "%i", (int) protocol); if (daemon_exec("/", &ret, AVAHI_DNSCONF_SCRIPT, AVAHI_DNSCONF_SCRIPT, new ? "+" : "-", address, ia, pa, avahi_proto_to_string(protocol), NULL) < 0) daemon_log(LOG_WARNING, "Failed to run script"); else if (ret != 0) daemon_log(LOG_WARNING, "Script returned with non-zero exit code %i", ret); } static int new_line(const char *l) { assert(l); if (state == ACKWAIT) { if (*l != '+') { daemon_log(LOG_ERR, "Avahi command failed: %s", l); return -1; } daemon_log(LOG_INFO, "Successfully connected to Avahi daemon."); state = BROWSING; } else { AvahiIfIndex interface; AvahiProtocol protocol; int i_interface, i_protocol, port; char a[AVAHI_ADDRESS_STR_MAX]; assert(state == BROWSING); if (*l != '<' && *l != '>') { daemon_log(LOG_ERR, "Avahi sent us an invalid browsing line: %s", l); return -1; } if (sscanf(l+1, "%i %i %39s %i", &i_interface, &i_protocol, a, &port) != 4) { daemon_log(LOG_ERR, "Failed to parse browsing line: %s", l); return -1; } interface = (AvahiIfIndex) i_interface; protocol = (AvahiProtocol) i_protocol; if (*l == '>') { if (port != 53) daemon_log(LOG_WARNING, "DNS server with port address != 53 found, ignoring"); else { daemon_log(LOG_INFO, "New DNS Server %s (interface: %i.%s)", a, interface, avahi_proto_to_string(protocol)); new_server_info(interface, protocol, a); run_script(1, interface, protocol, a); } } else { DNSServerInfo *i; if (port == 53) if ((i = get_server_info(interface, protocol, a))) { daemon_log(LOG_INFO, "DNS Server %s removed (interface: %i.%s)", a, interface, avahi_proto_to_string(protocol)); server_info_free(i); run_script(0, interface, protocol, a); } } } return 0; } static int do_connect(void) { int fd = -1; if ((fd = open_socket()) < 0) goto fail; if (loop_write(fd, BROWSE_DNS_SERVERS, sizeof(BROWSE_DNS_SERVERS)-1) < 0) { daemon_log(LOG_ERR, "write(): %s", strerror(errno)); goto fail; } state = ACKWAIT; return fd; fail: if (fd >= 0) close(fd); return -1; } static void free_dns_server_info_list(void) { while (servers) { AvahiIfIndex interface = servers->interface; AvahiProtocol protocol = servers->protocol; char *address = avahi_strdup(servers->address); server_info_free(servers); run_script(0, interface, protocol, address); avahi_free(address); } } static void help(FILE *f, const char *argv0) { fprintf(f, "%s [options]\n" " -h --help Show this help\n" " -D --daemonize Daemonize after startup\n" " -s --syslog Write log messages to syslog(3) instead of STDERR\n" " -k --kill Kill a running daemon\n" " -r --refresh Request a running daemon to refresh DNS server data\n" " -c --check Return 0 if a daemon is already running\n" " -V --version Show version\n", argv0); } static int parse_command_line(int argc, char *argv[]) { int c; static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "daemonize", no_argument, NULL, 'D' }, { "syslog", no_argument, NULL, 's' }, { "kill", no_argument, NULL, 'k' }, { "version", no_argument, NULL, 'V' }, { "refresh", no_argument, NULL, 'r' }, { "check", no_argument, NULL, 'c' }, { NULL, 0, NULL, 0 } }; while ((c = getopt_long(argc, argv, "hDkVrcs", long_options, NULL)) >= 0) { switch(c) { case 'h': command = DAEMON_HELP; break; case 'D': daemonize = 1; break; case 's': use_syslog = 1; break; case 'k': command = DAEMON_KILL; break; case 'V': command = DAEMON_VERSION; break; case 'r': command = DAEMON_REFRESH; break; case 'c': command = DAEMON_CHECK; break; default: return -1; } } if (optind < argc) { fprintf(stderr, "Too many arguments\n"); return -1; } return 0; } static int run_daemon(void) { int fd = -1, ret = -1; char buf[1024]; size_t buflen = 0; AVAHI_LLIST_HEAD_INIT(DNSServerInfo, servers); daemon_signal_init(SIGINT, SIGTERM, SIGCHLD, SIGHUP, 0); /* Allocate some memory for our environment variables */ putenv(avahi_strdup(ENV_INTERFACE"=")); putenv(avahi_strdup(ENV_DNS_SERVERS"=")); putenv(avahi_strdup(ENV_INTERFACE_DNS_SERVERS"=")); if ((fd = do_connect()) < 0) goto finish; if (daemonize) daemon_retval_send(0); ret = 0; while (!quit) { fd_set rfds, wfds; FD_ZERO(&rfds); FD_ZERO(&wfds); FD_SET(fd, &rfds); FD_SET(daemon_signal_fd(), &rfds); for (;;) { if (select(fd+1, &rfds, NULL, NULL, NULL) < 0) { if (errno == EINTR) continue; daemon_log(LOG_ERR, "select(): %s", strerror(errno)); goto finish; } break; } if (FD_ISSET(daemon_signal_fd(), &rfds)) { int sig; if ((sig = daemon_signal_next()) <= 0) { daemon_log(LOG_ERR, "daemon_signal_next() failed"); goto finish; } switch(sig) { case SIGINT: case SIGTERM: daemon_log(LOG_INFO, "Got %s, quitting.", sig == SIGINT ? "SIGINT" : "SIGTERM"); ret = 0; goto finish; case SIGCHLD: waitpid(-1, NULL, WNOHANG); break; case SIGHUP: daemon_log(LOG_INFO, "Refreshing DNS Server list"); close(fd); free_dns_server_info_list(); if ((fd = do_connect()) < 0) goto finish; break; } } else if (FD_ISSET(fd, &rfds)) { ssize_t r; char *n; if ((r = read(fd, buf, sizeof(buf) - buflen - 1)) <= 0) { daemon_log(LOG_ERR, "read(): %s", r < 0 ? strerror(errno) : "EOF"); goto finish; } buflen += r; assert(buflen <= sizeof(buf)-1); while ((n = memchr(buf, '\n', buflen))) { *(n++) = 0; if (new_line(buf) < 0) goto finish; buflen -= (n - buf); memmove(buf, n, buflen); } if (buflen >= sizeof(buf)-1) { /* The incoming line is horribly long */ buf[sizeof(buf)-1] = 0; if (new_line(buf) < 0) goto finish; buflen = 0; } } } finish: free_dns_server_info_list(); if (fd >= 0) close(fd); daemon_signal_done(); if (ret != 0 && daemonize) daemon_retval_send(1); return ret; } static const char* pid_file_proc(void) { return AVAHI_RUNTIME_DIR"/avahi-dnsconfd.pid"; } int main(int argc, char *argv[]) { char *argv0; int r = 1; int wrote_pid_file = 0; if ((argv0 = strrchr(argv[0], '/'))) argv0++; else argv0 = argv[0]; daemon_pid_file_ident = daemon_log_ident = argv0; daemon_pid_file_proc = pid_file_proc; if (parse_command_line(argc, argv) < 0) goto finish; if (command == DAEMON_RUN) { pid_t pid; if (getuid() != 0) { daemon_log(LOG_ERR, "This program is intended to be run as root."); goto finish; } if ((pid = daemon_pid_file_is_running()) >= 0) { daemon_log(LOG_ERR, "Daemon already running on PID %u", pid); goto finish; } if (daemonize) { daemon_retval_init(); if ((pid = daemon_fork()) < 0) goto finish; else if (pid != 0) { int ret; /** Parent **/ if ((ret = daemon_retval_wait(20)) < 0) { daemon_log(LOG_ERR, "Could not receive return value from daemon process."); goto finish; } r = ret; goto finish; } /* Child */ } if (use_syslog || daemonize) daemon_log_use = DAEMON_LOG_SYSLOG; chdir("/"); if (daemon_pid_file_create() < 0) { daemon_log(LOG_ERR, "Failed to create PID file: %s", strerror(errno)); if (daemonize) daemon_retval_send(1); goto finish; } else wrote_pid_file = 1; if (run_daemon() < 0) goto finish; r = 0; } else if (command == DAEMON_HELP) { help(stdout, argv0); r = 0; } else if (command == DAEMON_VERSION) { printf("%s "PACKAGE_VERSION"\n", argv0); r = 0; } else if (command == DAEMON_KILL) { if (daemon_pid_file_kill_wait(SIGTERM, 5) < 0) { daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno)); goto finish; } r = 0; } else if (command == DAEMON_REFRESH) { if (daemon_pid_file_kill(SIGHUP) < 0) { daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno)); goto finish; } r = 0; } else if (command == DAEMON_CHECK) r = (daemon_pid_file_is_running() >= 0) ? 0 : 1; finish: if (daemonize) daemon_retval_done(); if (wrote_pid_file) daemon_pid_file_remove(); return r; } avahi-0.7/avahi-dnsconfd/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011017117 xustar0029 mtime=1499681801.49307388 30 atime=1499681806.748956331 30 ctime=1499681850.739973689 avahi-0.7/avahi-dnsconfd/Makefile.in0000644000175000017500000010022013130652011020522 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@sbin_PROGRAMS = \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ avahi-dnsconfd$(EXEEXT) subdir = avahi-dnsconfd ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(pkgsysconfdir)" \ "$(DESTDIR)$(systemdsystemunitdir)" PROGRAMS = $(sbin_PROGRAMS) am__avahi_dnsconfd_SOURCES_DIST = main.c @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@am_avahi_dnsconfd_OBJECTS = avahi_dnsconfd-main.$(OBJEXT) avahi_dnsconfd_OBJECTS = $(am_avahi_dnsconfd_OBJECTS) am__DEPENDENCIES_1 = @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@avahi_dnsconfd_DEPENDENCIES = ../avahi-common/libavahi-common.la \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = avahi_dnsconfd_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(avahi_dnsconfd_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ $@ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } SCRIPTS = $(pkgsysconf_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(avahi_dnsconfd_SOURCES) DIST_SOURCES = $(am__avahi_dnsconfd_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(systemdsystemunit_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = avahi-dnsconfd.action avahi-dnsconfd.service.in @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@pkgsysconfdir = $(sysconfdir)/avahi # This cool debug trap works on i386/gcc only @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@AM_CFLAGS = -I$(top_srcdir) \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_RUNTIME_DIR=\"$(avahi_runtime_dir)/\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_SOCKET=\"$(avahi_socket)\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ -DAVAHI_DNSCONF_SCRIPT=\"$(pkgsysconfdir)/avahi-dnsconfd.action\" \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ '-DDEBUG_TRAP=__asm__("int \ @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $$3")' @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@avahi_dnsconfd_SOURCES = main.c @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@avahi_dnsconfd_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@avahi_dnsconfd_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(LIBDAEMON_LIBS) @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@pkgsysconf_SCRIPTS = avahi-dnsconfd.action @HAVE_LIBDAEMON_TRUE@@HAVE_SYSTEMD_TRUE@@HAVE_XML_TRUE@systemdsystemunit_DATA = \ @HAVE_LIBDAEMON_TRUE@@HAVE_SYSTEMD_TRUE@@HAVE_XML_TRUE@ avahi-dnsconfd.service @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@CLEANFILES = $(systemdsystemunit_DATA) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-dnsconfd/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-dnsconfd/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ } \ ; done uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(sbindir)" && rm -f $$files clean-sbinPROGRAMS: @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list avahi-dnsconfd$(EXEEXT): $(avahi_dnsconfd_OBJECTS) $(avahi_dnsconfd_DEPENDENCIES) $(EXTRA_avahi_dnsconfd_DEPENDENCIES) @rm -f avahi-dnsconfd$(EXEEXT) $(AM_V_CCLD)$(avahi_dnsconfd_LINK) $(avahi_dnsconfd_OBJECTS) $(avahi_dnsconfd_LDADD) $(LIBS) install-pkgsysconfSCRIPTS: $(pkgsysconf_SCRIPTS) @$(NORMAL_INSTALL) @list='$(pkgsysconf_SCRIPTS)'; test -n "$(pkgsysconfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgsysconfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgsysconfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(pkgsysconfdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(pkgsysconfdir)$$dir" || exit $$?; \ } \ ; done uninstall-pkgsysconfSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(pkgsysconf_SCRIPTS)'; test -n "$(pkgsysconfdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(pkgsysconfdir)'; $(am__uninstall_files_from_dir) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_dnsconfd-main.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< avahi_dnsconfd-main.o: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_dnsconfd_CFLAGS) $(CFLAGS) -MT avahi_dnsconfd-main.o -MD -MP -MF $(DEPDIR)/avahi_dnsconfd-main.Tpo -c -o avahi_dnsconfd-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_dnsconfd-main.Tpo $(DEPDIR)/avahi_dnsconfd-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='avahi_dnsconfd-main.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_dnsconfd_CFLAGS) $(CFLAGS) -c -o avahi_dnsconfd-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c avahi_dnsconfd-main.obj: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_dnsconfd_CFLAGS) $(CFLAGS) -MT avahi_dnsconfd-main.obj -MD -MP -MF $(DEPDIR)/avahi_dnsconfd-main.Tpo -c -o avahi_dnsconfd-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_dnsconfd-main.Tpo $(DEPDIR)/avahi_dnsconfd-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='avahi_dnsconfd-main.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_dnsconfd_CFLAGS) $(CFLAGS) -c -o avahi_dnsconfd-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-systemdsystemunitDATA: $(systemdsystemunit_DATA) @$(NORMAL_INSTALL) @list='$(systemdsystemunit_DATA)'; test -n "$(systemdsystemunitdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(systemdsystemunitdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(systemdsystemunitdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(systemdsystemunitdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(systemdsystemunitdir)" || exit $$?; \ done uninstall-systemdsystemunitDATA: @$(NORMAL_UNINSTALL) @list='$(systemdsystemunit_DATA)'; test -n "$(systemdsystemunitdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(systemdsystemunitdir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(DATA) installdirs: for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(pkgsysconfdir)" "$(DESTDIR)$(systemdsystemunitdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkgsysconfSCRIPTS \ install-systemdsystemunitDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-sbinPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkgsysconfSCRIPTS uninstall-sbinPROGRAMS \ uninstall-systemdsystemunitDATA .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-sbinPROGRAMS cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-pkgsysconfSCRIPTS install-ps install-ps-am \ install-sbinPROGRAMS install-strip \ install-systemdsystemunitDATA installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-pkgsysconfSCRIPTS \ uninstall-sbinPROGRAMS uninstall-systemdsystemunitDATA .PRECIOUS: Makefile @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@%.service: %.service.in @HAVE_LIBDAEMON_TRUE@@HAVE_XML_TRUE@ $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-dnsconfd/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017121 xustar0030 mtime=1499681699.115370395 30 atime=1499681796.877177141 30 ctime=1499681850.739973689 avahi-0.7/avahi-dnsconfd/Makefile.am0000644000175000017500000000306513130651643020534 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. EXTRA_DIST=avahi-dnsconfd.action avahi-dnsconfd.service.in if HAVE_XML if HAVE_LIBDAEMON pkgsysconfdir=$(sysconfdir)/avahi AM_CFLAGS= \ -I$(top_srcdir) \ -DAVAHI_RUNTIME_DIR=\"$(avahi_runtime_dir)/\" \ -DAVAHI_SOCKET=\"$(avahi_socket)\" \ -DAVAHI_DNSCONF_SCRIPT=\"$(pkgsysconfdir)/avahi-dnsconfd.action\" # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' sbin_PROGRAMS = avahi-dnsconfd avahi_dnsconfd_SOURCES = main.c avahi_dnsconfd_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS) avahi_dnsconfd_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(LIBDAEMON_LIBS) pkgsysconf_SCRIPTS=avahi-dnsconfd.action %.service: %.service.in $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ if HAVE_SYSTEMD systemdsystemunit_DATA = \ avahi-dnsconfd.service endif CLEANFILES = $(systemdsystemunit_DATA) endif endif avahi-0.7/avahi-dnsconfd/PaxHeaders.10109/avahi-dnsconfd.service.in0000644000000000000000000000013213130651643021740 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.743973599 avahi-0.7/avahi-dnsconfd/avahi-dnsconfd.service.in0000644000175000017500000000172013130651643023347 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. [Unit] Description=Avahi DNS Configuration Daemon Requires=avahi-daemon.socket avahi-daemon.service After=avahi-daemon.socket [Service] Type=simple ExecStart=@sbindir@/avahi-dnsconfd -s [Install] WantedBy=multi-user.target Also=avahi-daemon.socket avahi-0.7/avahi-dnsconfd/PaxHeaders.10109/avahi-dnsconfd.action0000644000000000000000000000013213130651643021150 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.743973599 avahi-0.7/avahi-dnsconfd/avahi-dnsconfd.action0000755000175000017500000000526713130651643022574 0ustar00lathiatlathiat00000000000000#!/bin/sh # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. set -e test "x$AVAHI_INTERFACE" != "x" # Command line arguments: # $1 "+" if a new DNS server was found, "-" if one was removed # $2 DNS Server address # $3 interface index where this server was found on # $4 protocol number where this server was found on # Available environment variables: # # $AVAHI_INTERFACE The interface name where this DNS server was found on # $AVAHI_INTERFACE_DNS_SERVERS A whitespace seperated list of DNS servers on $AVAHI_INTERFACE # $AVAHI_DNS_SERVERS The complete list of all DNS servers found on all interfaces if [ -x /sbin/netconfig ]; then # SUSE method on 11.1+ if [ -n "$AVAHI_INTERFACE_DNS_SERVERS" ]; then /sbin/netconfig modify -s avahi -i "$AVAHI_INTERFACE" <<-EOF INTERFACE='$AVAHI_INTERFACE' DNSSERVERS='$AVAHI_INTERFACE_DNS_SERVERS' EOF else /sbin/netconfig remove -s avahi -i "$AVAHI_INTERFACE" fi elif [ -x /sbin/modify_resolvconf ] ; then # method for SUSE <= 11.0 if [ -n "$AVAHI_DNS_SERVERS" ]; then /sbin/modify_resolvconf modify -s avahi -t - -p avahi-dnsconfd -n "$AVAHI_DNS_SERVERS" <<-EOF if you don't like avahi to update your Nameservers disable the avahi-dnsconfd init script EOF else /sbin/modify_resolvconf restore -s avahi fi elif [ -x /sbin/resolvconf ] ; then # We have Debian's resolvconf tool if [ "x$AVAHI_INTERFACE_DNS_SERVERS" = "x" ] ; then /sbin/resolvconf -d "$AVAHI_INTERFACE.avahi" else for n in $AVAHI_INTERFACE_DNS_SERVERS ; do echo "nameserver $n" done | /sbin/resolvconf -a "$AVAHI_INTERFACE.avahi" fi else # No resolvconf tool available if [ "x$AVAHI_DNS_SERVERS" = "x" ] ; then test -f /etc/resolv.conf.avahi && mv /etc/resolv.conf.avahi /etc/resolv.conf else test -f /etc/resolv.conf.avahi || mv /etc/resolv.conf /etc/resolv.conf.avahi for n in $AVAHI_DNS_SERVERS ; do echo "nameserver $n" done > /etc/resolv.conf fi fi avahi-0.7/PaxHeaders.10109/ltmain.sh0000644000000000000000000000013213130652004014011 xustar0030 mtime=1499681796.993174545 30 atime=1499681807.236945419 30 ctime=1499681850.003990109 avahi-0.7/ltmain.sh0000644000175000017500000117147413130652004015437 0ustar00lathiatlathiat00000000000000#! /bin/sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2014-01-03.01 # libtool (GNU libtool) 2.4.6 # Provide generalized library-building support services. # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.6 Debian-2.4.6-2" package_revision=2.4.6 ## ------ ## ## Usage. ## ## ------ ## # Run './libtool --help' for help with using this script from the # command line. ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # After configure completes, it has a better idea of some of the # shell tools we need than the defaults used by the functions shared # with bootstrap, so set those here where they can still be over- # ridden by the user, but otherwise take precedence. : ${AUTOCONF="autoconf"} : ${AUTOMAKE="automake"} ## -------------------------- ## ## Source external libraries. ## ## -------------------------- ## # Much of our low-level functionality needs to be sourced from external # libraries, which are installed to $pkgauxdir. # Set a version string for this script. scriptversion=2015-01-20.17; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # Copyright (C) 2004-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # As a special exception to the GNU General Public License, if you distribute # this file as part of a program or library that is built using GNU Libtool, # you may include this file under the same distribution terms that you use # for the rest of that program. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # Evaluate this file near the top of your script to gain access to # the functions and variables defined here: # # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh # # If you need to override any of the default environment variable # settings, do that before evaluating this file. ## -------------------- ## ## Shell normalisation. ## ## -------------------- ## # Some shells need a little help to be as Bourne compatible as possible. # Before doing anything else, make sure all that help has been provided! DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # NLS nuisances: We save the old values in case they are required later. _G_user_locale= _G_safe_locale= for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test set = \"\${$_G_var+set}\"; then save_$_G_var=\$$_G_var $_G_var=C export $_G_var _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Make sure IFS has a sensible default sp=' ' nl=' ' IFS="$sp $nl" # There are apparently some retarded systems that use ';' as a PATH separator! if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi ## ------------------------- ## ## Locate command utilities. ## ## ------------------------- ## # func_executable_p FILE # ---------------------- # Check that FILE is an executable regular file. func_executable_p () { test -f "$1" && test -x "$1" } # func_path_progs PROGS_LIST CHECK_FUNC [PATH] # -------------------------------------------- # Search for either a program that responds to --version with output # containing "GNU", or else returned by CHECK_FUNC otherwise, by # trying all the directories in PATH with each of the elements of # PROGS_LIST. # # CHECK_FUNC should accept the path to a candidate program, and # set $func_check_prog_result if it truncates its output less than # $_G_path_prog_max characters. func_path_progs () { _G_progs_list=$1 _G_check_func=$2 _G_PATH=${3-"$PATH"} _G_path_prog_max=0 _G_path_prog_found=false _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} for _G_dir in $_G_PATH; do IFS=$_G_save_IFS test -z "$_G_dir" && _G_dir=. for _G_prog_name in $_G_progs_list; do for _exeext in '' .EXE; do _G_path_prog=$_G_dir/$_G_prog_name$_exeext func_executable_p "$_G_path_prog" || continue case `"$_G_path_prog" --version 2>&1` in *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; *) $_G_check_func $_G_path_prog func_path_progs_result=$func_check_prog_result ;; esac $_G_path_prog_found && break 3 done done done IFS=$_G_save_IFS test -z "$func_path_progs_result" && { echo "no acceptable sed could be found in \$PATH" >&2 exit 1 } } # We want to be able to use the functions in this file before configure # has figured out where the best binaries are kept, which means we have # to search for them ourselves - except when the results are already set # where we skip the searches. # Unless the user overrides by setting SED, search the path for either GNU # sed, or the sed that truncates its output the least. test -z "$SED" && { _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for _G_i in 1 2 3 4 5 6 7; do _G_sed_script=$_G_sed_script$nl$_G_sed_script done echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed _G_sed_script= func_check_prog_sed () { _G_path_prog=$1 _G_count=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo '' >> conftest.nl "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin rm -f conftest.sed SED=$func_path_progs_result } # Unless the user overrides by setting GREP, search the path for either GNU # grep, or the grep that truncates its output the least. test -z "$GREP" && { func_check_prog_grep () { _G_path_prog=$1 _G_count=0 _G_path_prog_max=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo 'GREP' >> conftest.nl "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin GREP=$func_path_progs_result } ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # All uppercase variable names are used for environment variables. These # variables can be overridden by the user before calling a script that # uses them if a suitable command of that name is not already available # in the command search PATH. : ${CP="cp -f"} : ${ECHO="printf %s\n"} : ${EGREP="$GREP -E"} : ${FGREP="$GREP -F"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} ## -------------------- ## ## Useful sed snippets. ## ## -------------------- ## sed_dirname='s|/[^/]*$||' sed_basename='s|^.*/||' # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s|\([`"$\\]\)|\\\1|g' # Same as above, but do not quote variable references. sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' # Sed substitution that converts a w32 file name or path # that contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-'\' parameter expansions in output of sed_double_quote_subst that # were '\'-ed in input to the same. If an odd number of '\' preceded a # '$' in input to sed_double_quote_subst, that '$' was protected from # expansion. Since each input '\' is now two '\'s, look for any number # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. _G_bs='\\' _G_bs2='\\\\' _G_bs4='\\\\\\\\' _G_dollar='\$' sed_double_backslash="\ s/$_G_bs4/&\\ /g s/^$_G_bs2$_G_dollar/$_G_bs&/ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" ## ----------------- ## ## Global variables. ## ## ----------------- ## # Except for the global variables explicitly listed below, the following # functions in the '^func_' namespace, and the '^require_' namespace # variables initialised in the 'Resource management' section, sourcing # this file will not pollute your global namespace with anything # else. There's no portable way to scope variables in Bourne shell # though, so actually running these functions will sometimes place # results into a variable named after the function, and often use # temporary variables in the '^_G_' namespace. If you are careful to # avoid using those namespaces casually in your sourcing script, things # should continue to work as you expect. And, of course, you can freely # overwrite any of the functions or variables defined here before # calling anything to customize them. EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # Allow overriding, eg assuming that you follow the convention of # putting '$debug_cmd' at the start of all your functions, you can get # bash to show function call trace with: # # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name debug_cmd=${debug_cmd-":"} exit_cmd=: # By convention, finish your script with: # # exit $exit_status # # so that you can set exit_status to non-zero if you want to indicate # something went wrong during execution without actually bailing out at # the point of failure. exit_status=$EXIT_SUCCESS # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath=$0 # The name of this program. progname=`$ECHO "$progpath" |$SED "$sed_basename"` # Make sure we have an absolute progpath for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` progdir=`cd "$progdir" && pwd` progpath=$progdir/$progname ;; *) _G_IFS=$IFS IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS=$_G_IFS test -x "$progdir/$progname" && break done IFS=$_G_IFS test -n "$progdir" || progdir=`pwd` progpath=$progdir/$progname ;; esac ## ----------------- ## ## Standard options. ## ## ----------------- ## # The following options affect the operation of the functions defined # below, and should be set appropriately depending on run-time para- # meters passed on the command line. opt_dry_run=false opt_quiet=false opt_verbose=false # Categories 'all' and 'none' are always available. Append any others # you will pass as the first argument to func_warning from your own # code. warning_categories= # By default, display warnings according to 'opt_warning_types'. Set # 'warning_func' to ':' to elide all warnings, or func_fatal_error to # treat the next displayed warning as a fatal error. warning_func=func_warn_and_continue # Set to 'all' to display all warnings, 'none' to suppress all # warnings, or a space delimited list of some subset of # 'warning_categories' to display only the listed warnings. opt_warning_types=all ## -------------------- ## ## Resource management. ## ## -------------------- ## # This section contains definitions for functions that each ensure a # particular resource (a file, or a non-empty configuration variable for # example) is available, and if appropriate to extract default values # from pertinent package files. Call them using their associated # 'require_*' variable to ensure that they are executed, at most, once. # # It's entirely deliberate that calling these functions can set # variables that don't obey the namespace limitations obeyed by the rest # of this file, in order that that they be as useful as possible to # callers. # require_term_colors # ------------------- # Allow display of bold text on terminals that support it. require_term_colors=func_require_term_colors func_require_term_colors () { $debug_cmd test -t 1 && { # COLORTERM and USE_ANSI_COLORS environment variables take # precedence, because most terminfo databases neglect to describe # whether color sequences are supported. test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} if test 1 = "$USE_ANSI_COLORS"; then # Standard ANSI escape sequences tc_reset='' tc_bold=''; tc_standout='' tc_red=''; tc_green='' tc_blue=''; tc_cyan='' else # Otherwise trust the terminfo database after all. test -n "`tput sgr0 2>/dev/null`" && { tc_reset=`tput sgr0` test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` tc_standout=$tc_bold test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` } fi } require_term_colors=: } ## ----------------- ## ## Function library. ## ## ----------------- ## # This section contains a variety of useful functions to call in your # scripts. Take note of the portable wrappers for features provided by # some modern shells, which will fall back to slower equivalents on # less featureful shells. # func_append VAR VALUE # --------------------- # Append VALUE onto the existing contents of VAR. # We should try to minimise forks, especially on Windows where they are # unreasonably slow, so skip the feature probes when bash or zsh are # being used: if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then : ${_G_HAVE_ARITH_OP="yes"} : ${_G_HAVE_XSI_OPS="yes"} # The += operator was introduced in bash 3.1 case $BASH_VERSION in [12].* | 3.0 | 3.0*) ;; *) : ${_G_HAVE_PLUSEQ_OP="yes"} ;; esac fi # _G_HAVE_PLUSEQ_OP # Can be empty, in which case the shell is probed, "yes" if += is # useable or anything else if it does not work. test -z "$_G_HAVE_PLUSEQ_OP" \ && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ && _G_HAVE_PLUSEQ_OP=yes if test yes = "$_G_HAVE_PLUSEQ_OP" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_append () { $debug_cmd eval "$1+=\$2" }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_append () { $debug_cmd eval "$1=\$$1\$2" } fi # func_append_quoted VAR VALUE # ---------------------------- # Quote VALUE and append to the end of shell variable VAR, separated # by a space. if test yes = "$_G_HAVE_PLUSEQ_OP"; then eval 'func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1+=\\ \$func_quote_for_eval_result" }' else func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1=\$$1\\ \$func_quote_for_eval_result" } fi # func_append_uniq VAR VALUE # -------------------------- # Append unique VALUE onto the existing contents of VAR, assuming # entries are delimited by the first character of VALUE. For example: # # func_append_uniq options " --another-option option-argument" # # will only append to $options if " --another-option option-argument " # is not already present somewhere in $options already (note spaces at # each end implied by leading space in second argument). func_append_uniq () { $debug_cmd eval _G_current_value='`$ECHO $'$1'`' _G_delim=`expr "$2" : '\(.\)'` case $_G_delim$_G_current_value$_G_delim in *"$2$_G_delim"*) ;; *) func_append "$@" ;; esac } # func_arith TERM... # ------------------ # Set func_arith_result to the result of evaluating TERMs. test -z "$_G_HAVE_ARITH_OP" \ && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ && _G_HAVE_ARITH_OP=yes if test yes = "$_G_HAVE_ARITH_OP"; then eval 'func_arith () { $debug_cmd func_arith_result=$(( $* )) }' else func_arith () { $debug_cmd func_arith_result=`expr "$@"` } fi # func_basename FILE # ------------------ # Set func_basename_result to FILE with everything up to and including # the last / stripped. if test yes = "$_G_HAVE_XSI_OPS"; then # If this shell supports suffix pattern removal, then use it to avoid # forking. Hide the definitions single quotes in case the shell chokes # on unsupported syntax... _b='func_basename_result=${1##*/}' _d='case $1 in */*) func_dirname_result=${1%/*}$2 ;; * ) func_dirname_result=$3 ;; esac' else # ...otherwise fall back to using sed. _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` if test "X$func_dirname_result" = "X$1"; then func_dirname_result=$3 else func_append func_dirname_result "$2" fi' fi eval 'func_basename () { $debug_cmd '"$_b"' }' # func_dirname FILE APPEND NONDIR_REPLACEMENT # ------------------------------------------- # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. eval 'func_dirname () { $debug_cmd '"$_d"' }' # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT # -------------------------------------------------------- # Perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # For efficiency, we do not delegate to the functions above but instead # duplicate the functionality here. eval 'func_dirname_and_basename () { $debug_cmd '"$_b"' '"$_d"' }' # func_echo ARG... # ---------------- # Echo program name prefixed message. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname: $_G_line" done IFS=$func_echo_IFS } # func_echo_all ARG... # -------------------- # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_echo_infix_1 INFIX ARG... # ------------------------------ # Echo program name, followed by INFIX on the first line, with any # additional lines not showing INFIX. func_echo_infix_1 () { $debug_cmd $require_term_colors _G_infix=$1; shift _G_indent=$_G_infix _G_prefix="$progname: $_G_infix: " _G_message=$* # Strip color escape sequences before counting printable length for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" do test -n "$_G_tc" && { _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` } done _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes func_echo_infix_1_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_infix_1_IFS $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 _G_prefix=$_G_indent done IFS=$func_echo_infix_1_IFS } # func_error ARG... # ----------------- # Echo program name prefixed message to standard error. func_error () { $debug_cmd $require_term_colors func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 } # func_fatal_error ARG... # ----------------------- # Echo program name prefixed message to standard error, and exit. func_fatal_error () { $debug_cmd func_error "$*" exit $EXIT_FAILURE } # func_grep EXPRESSION FILENAME # ----------------------------- # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $debug_cmd $GREP "$1" "$2" >/dev/null 2>&1 } # func_len STRING # --------------- # Set func_len_result to the length of STRING. STRING may not # start with a hyphen. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_len () { $debug_cmd func_len_result=${#1} }' else func_len () { $debug_cmd func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } fi # func_mkdir_p DIRECTORY-PATH # --------------------------- # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { $debug_cmd _G_directory_path=$1 _G_dir_list= if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then # Protect directory names starting with '-' case $_G_directory_path in -*) _G_directory_path=./$_G_directory_path ;; esac # While some portion of DIR does not yet exist... while test ! -d "$_G_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. _G_dir_list=$_G_directory_path:$_G_dir_list # If the last portion added has no slash in it, the list is done case $_G_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` done _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` func_mkdir_p_IFS=$IFS; IFS=: for _G_dir in $_G_dir_list; do IFS=$func_mkdir_p_IFS # mkdir can fail with a 'File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$_G_dir" 2>/dev/null || : done IFS=$func_mkdir_p_IFS # Bail out if we (or some other process) failed to create a directory. test -d "$_G_directory_path" || \ func_fatal_error "Failed to create '$1'" fi } # func_mktempdir [BASENAME] # ------------------------- # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, BASENAME is the basename for that directory. func_mktempdir () { $debug_cmd _G_template=${TMPDIR-/tmp}/${1-$progname} if test : = "$opt_dry_run"; then # Return a directory name, but don't create it in dry-run mode _G_tmpdir=$_G_template-$$ else # If mktemp works, use that first and foremost _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` if test ! -d "$_G_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race _G_tmpdir=$_G_template-${RANDOM-0}$$ func_mktempdir_umask=`umask` umask 0077 $MKDIR "$_G_tmpdir" umask $func_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$_G_tmpdir" || \ func_fatal_error "cannot create temporary directory '$_G_tmpdir'" fi $ECHO "$_G_tmpdir" } # func_normal_abspath PATH # ------------------------ # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. func_normal_abspath () { $debug_cmd # These SED scripts presuppose an absolute path with a trailing slash. _G_pathcar='s|^/\([^/]*\).*$|\1|' _G_pathcdr='s|^/[^/]*||' _G_removedotparts=':dotsl s|/\./|/|g t dotsl s|/\.$|/|' _G_collapseslashes='s|/\{1,\}|/|g' _G_finalslash='s|/*$|/|' # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` while :; do # Processed it all yet? if test / = "$func_normal_abspath_tpath"; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result"; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_notquiet ARG... # -------------------- # Echo program name prefixed message only when not in quiet mode. func_notquiet () { $debug_cmd $opt_quiet || func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_relative_path SRCDIR DSTDIR # -------------------------------- # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. func_relative_path () { $debug_cmd func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=$func_dirname_result if test -z "$func_relative_path_tlibdir"; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test -n "$func_stripname_result"; then func_append func_relative_path_result "/$func_stripname_result" fi # Normalisation. If bindir is libdir, return '.' else relative path. if test -n "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result" func_relative_path_result=$func_stripname_result fi test -n "$func_relative_path_result" || func_relative_path_result=. : } # func_quote_for_eval ARG... # -------------------------- # Aesthetically quote ARGs to be evaled later. # This function returns two values: # i) func_quote_for_eval_result # double-quoted, suitable for a subsequent eval # ii) func_quote_for_eval_unquoted_result # has all characters that are still active within double # quotes backslashified. func_quote_for_eval () { $debug_cmd func_quote_for_eval_unquoted_result= func_quote_for_eval_result= while test 0 -lt $#; do case $1 in *[\\\`\"\$]*) _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; *) _G_unquoted_arg=$1 ;; esac if test -n "$func_quote_for_eval_unquoted_result"; then func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" else func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" fi case $_G_unquoted_arg in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and variable expansion # for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_quoted_arg=\"$_G_unquoted_arg\" ;; *) _G_quoted_arg=$_G_unquoted_arg ;; esac if test -n "$func_quote_for_eval_result"; then func_append func_quote_for_eval_result " $_G_quoted_arg" else func_append func_quote_for_eval_result "$_G_quoted_arg" fi shift done } # func_quote_for_expand ARG # ------------------------- # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { $debug_cmd case $1 in *[\\\`\"]*) _G_arg=`$ECHO "$1" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; *) _G_arg=$1 ;; esac case $_G_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_arg=\"$_G_arg\" ;; esac func_quote_for_expand_result=$_G_arg } # func_stripname PREFIX SUFFIX NAME # --------------------------------- # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_stripname () { $debug_cmd # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary variable first. func_stripname_result=$3 func_stripname_result=${func_stripname_result#"$1"} func_stripname_result=${func_stripname_result%"$2"} }' else func_stripname () { $debug_cmd case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; esac } fi # func_show_eval CMD [FAIL_EXP] # ----------------------------- # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} func_quote_for_expand "$_G_cmd" eval "func_notquiet $func_quote_for_expand_result" $opt_dry_run || { eval "$_G_cmd" _G_status=$? if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_show_eval_locale CMD [FAIL_EXP] # ------------------------------------ # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} $opt_quiet || { func_quote_for_expand "$_G_cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || { eval "$_G_user_locale $_G_cmd" _G_status=$? eval "$_G_safe_locale" if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_tr_sh # ---------- # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { $debug_cmd case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_verbose ARG... # ------------------- # Echo program name prefixed message in verbose mode only. func_verbose () { $debug_cmd $opt_verbose && func_echo "$*" : } # func_warn_and_continue ARG... # ----------------------------- # Echo program name prefixed warning message to standard error. func_warn_and_continue () { $debug_cmd $require_term_colors func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 } # func_warning CATEGORY ARG... # ---------------------------- # Echo program name prefixed warning message to standard error. Warning # messages can be filtered according to CATEGORY, where this function # elides messages where CATEGORY is not listed in the global variable # 'opt_warning_types'. func_warning () { $debug_cmd # CATEGORY must be in the warning_categories list! case " $warning_categories " in *" $1 "*) ;; *) func_internal_error "invalid warning category '$1'" ;; esac _G_category=$1 shift case " $opt_warning_types " in *" $_G_category "*) $warning_func ${1+"$@"} ;; esac } # func_sort_ver VER1 VER2 # ----------------------- # 'sort -V' is not generally available. # Note this deviates from the version comparison in automake # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a # but this should suffice as we won't be specifying old # version formats or redundant trailing .0 in bootstrap.conf. # If we did want full compatibility then we should probably # use m4_version_compare from autoconf. func_sort_ver () { $debug_cmd printf '%s\n%s\n' "$1" "$2" \ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n } # func_lt_ver PREV CURR # --------------------- # Return true if PREV and CURR are in the correct order according to # func_sort_ver, otherwise false. Use it like this: # # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." func_lt_ver () { $debug_cmd test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: #! /bin/sh # Set a version string for this script. scriptversion=2014-01-07.03; # UTC # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # Copyright (C) 2010-2015 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # This file is a library for parsing options in your shell scripts along # with assorted other useful supporting features that you can make use # of too. # # For the simplest scripts you might need only: # # #!/bin/sh # . relative/path/to/funclib.sh # . relative/path/to/options-parser # scriptversion=1.0 # func_options ${1+"$@"} # eval set dummy "$func_options_result"; shift # ...rest of your script... # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file # starting with '# Written by ' and ending with '# warranty; '. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the # '# Written by ' line, like the one at the top of this file. # # The default options also support '--debug', which will turn on shell # execution tracing (see the comment above debug_cmd below for another # use), and '--verbose' and the func_verbose function to allow your script # to display verbose messages only when your user has specified # '--verbose'. # # After sourcing this file, you can plug processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. ## -------------- ## ## Configuration. ## ## -------------- ## # You should override these variables in your script after sourcing this # file so that they reflect the customisations you have added to the # option parser. # The usage line for option parsing errors and the start of '-h' and # '--help' output messages. You can embed shell variables for delayed # expansion at the time the message is displayed, but you will need to # quote other shell meta-characters carefully to prevent them being # expanded when the contents are evaled. usage='$progpath [OPTION]...' # Short help message in response to '-h' and '--help'. Add to this or # override it after sourcing this library to reflect the full set of # options your script accepts. usage_message="\ --debug enable verbose shell tracing -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -v, --verbose verbosely report processing --version print version information and exit -h, --help print short or long help message and exit " # Additional text appended to 'usage_message' in response to '--help'. long_help_message=" Warning categories include: 'all' show all warnings 'none' turn off all the warnings 'error' warnings are treated as fatal errors" # Help message printed before fatal option parsing errors. fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## ## Hook function management. ## ## ------------------------- ## # This section contains functions for adding, removing, and running hooks # to the main code. A hook is just a named list of of function, that can # be run in order later on. # func_hookable FUNC_NAME # ----------------------- # Declare that FUNC_NAME will run hooks added with # 'func_add_hook FUNC_NAME ...'. func_hookable () { $debug_cmd func_append hookable_fns " $1" } # func_add_hook FUNC_NAME HOOK_FUNC # --------------------------------- # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must # first have been declared "hookable" by a call to 'func_hookable'. func_add_hook () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not accept hook functions." ;; esac eval func_append ${1}_hooks '" $2"' } # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ # Remove HOOK_FUNC from the list of functions called by FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It is assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. func_run_hooks () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not support hook funcions.n" ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do eval $_G_hook '"$@"' # store returned options list back into positional # parameters for next 'cmd' execution. eval _G_hook_result=\$${_G_hook}_result eval set dummy "$_G_hook_result"; shift done func_quote_for_eval ${1+"$@"} func_run_hooks_result=$func_quote_for_eval_result } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list in your hook function, remove any # options that you action, and then pass back the remaining unprocessed # options in '_result', escaped suitably for # 'eval'. Like this: # # my_options_prep () # { # $debug_cmd # # # Extend the existing usage message. # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' # # func_quote_for_eval ${1+"$@"} # my_options_prep_result=$func_quote_for_eval_result # } # func_add_hook func_options_prep my_options_prep # # # my_silent_option () # { # $debug_cmd # # # Note that for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in # --silent|-s) opt_silent=: ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift # ;; # *) set dummy "$_G_opt" "$*"; shift; break ;; # esac # done # # func_quote_for_eval ${1+"$@"} # my_silent_option_result=$func_quote_for_eval_result # } # func_add_hook func_parse_options my_silent_option # # # my_option_validation () # { # $debug_cmd # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." # # func_quote_for_eval ${1+"$@"} # my_option_validation_result=$func_quote_for_eval_result # } # func_add_hook func_validate_options my_option_validation # # You'll alse need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the # individual implementations for details. func_hookable func_options func_options () { $debug_cmd func_options_prep ${1+"$@"} eval func_parse_options \ ${func_options_prep_result+"$func_options_prep_result"} eval func_validate_options \ ${func_parse_options_result+"$func_parse_options_result"} eval func_run_hooks func_options \ ${func_validate_options_result+"$func_validate_options_result"} # save modified positional parameters for caller func_options_result=$func_run_hooks_result } # func_options_prep [ARG]... # -------------------------- # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and # needs to propogate that back to rest of this script, then the complete # modified list must be put in 'func_run_hooks_result' before # returning. func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= func_run_hooks func_options_prep ${1+"$@"} # save modified positional parameters for caller func_options_prep_result=$func_run_hooks_result } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd func_parse_options_result= # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. func_run_hooks func_parse_options ${1+"$@"} # Adjust func_parse_options positional parameters to match eval set dummy "$func_run_hooks_result"; shift # Break out of the loop if we already parsed every option. test $# -gt 0 || break _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" $debug_cmd ;; --no-warnings|--no-warning|--no-warn) set dummy --warnings none ${1+"$@"} shift ;; --warnings|--warning|-W) test $# = 0 && func_missing_arg $_G_opt && break case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above func_append_uniq opt_warning_types " $1" ;; *all) opt_warning_types=$warning_categories ;; *none) opt_warning_types=none warning_func=: ;; *error) opt_warning_types=$warning_categories warning_func=func_fatal_error ;; *) func_fatal_error \ "unsupported warning category: '$1'" ;; esac shift ;; --verbose|-v) opt_verbose=: ;; --version) func_version ;; -\?|-h) func_usage ;; --help) func_help ;; # Separate optargs to long options (plugins may need this): --*=*) func_split_equals "$_G_opt" set dummy "$func_split_equals_lhs" \ "$func_split_equals_rhs" ${1+"$@"} shift ;; # Separate optargs to short options: -W*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "$func_split_short_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-v*|-x*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} func_parse_options_result=$func_quote_for_eval_result } # func_validate_options [ARG]... # ------------------------------ # Perform any sanity checks on option settings and/or unconsumed # arguments. func_hookable func_validate_options func_validate_options () { $debug_cmd # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" func_run_hooks func_validate_options ${1+"$@"} # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE # save modified positional parameters for caller func_validate_options_result=$func_run_hooks_result } ## ----------------- ## ## Helper functions. ## ## ----------------- ## # This section contains the helper functions used by the rest of the # hookable option parser framework in ascii-betical order. # func_fatal_help ARG... # ---------------------- # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { $debug_cmd eval \$ECHO \""Usage: $usage"\" eval \$ECHO \""$fatal_help"\" func_error ${1+"$@"} exit $EXIT_FAILURE } # func_help # --------- # Echo long help message to standard output and exit. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message" exit 0 } # func_missing_arg ARGNAME # ------------------------ # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $debug_cmd func_error "Missing argument for '$1'." exit_cmd=exit } # func_split_equals STRING # ------------------------ # Set func_split_equals_lhs and func_split_equals_rhs shell variables after # splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_equals () { $debug_cmd func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} test "x$func_split_equals_lhs" = "x$1" \ && func_split_equals_rhs= }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_equals () { $debug_cmd func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= test "x$func_split_equals_lhs" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals # func_split_short_opt SHORTOPT # ----------------------------- # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_short_opt () { $debug_cmd func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"} }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_short_opt () { $debug_cmd func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt # func_usage # ---------- # Echo short help message to standard output and exit. func_usage () { $debug_cmd func_usage_message $ECHO "Run '$progname --help |${PAGER-more}' for full usage" exit 0 } # func_usage_message # ------------------ # Echo short help message to standard output. func_usage_message () { $debug_cmd eval \$ECHO \""Usage: $usage"\" echo $SED -n 's|^# || /^Written by/{ x;p;x } h /^Written by/q' < "$progpath" echo eval \$ECHO \""$usage_message"\" } # func_version # ------------ # Echo version message to standard output and exit. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /(C)/!b go :more /\./!{ N s|\n# | | b more } :go /^# Written by /,/# warranty; / { s|^# || s|^# *$|| s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| p } /^# Written by / { s|^# || p } /^warranty; /q' < "$progpath" exit $? } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. scriptversion='(GNU libtool) 2.4.6' # func_echo ARG... # ---------------- # Libtool also displays the current mode in messages, so override # funclib.sh func_echo with this custom definition. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" done IFS=$func_echo_IFS } # func_warning ARG... # ------------------- # Libtool warnings are not categorized, so override funclib.sh # func_warning with this simpler definition. func_warning () { $debug_cmd $warning_func ${1+"$@"} } ## ---------------- ## ## Options parsing. ## ## ---------------- ## # Hook in the functions to make sure our own options are parsed during # the option parsing loop. usage='$progpath [OPTION]... [MODE-ARG]...' # Short help message in response to '-h'. usage_message="Options: --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --mode=MODE use operation mode MODE --no-warnings equivalent to '-Wnone' --preserve-dup-deps don't remove duplicate dependency libraries --quiet, --silent don't print informational messages --tag=TAG use configuration variables from tag TAG -v, --verbose print more informational messages than default --version print version information -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -h, --help, --help-all print short, long, or detailed help message " # Additional text appended to 'usage_message' in response to '--help'. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. When passed as first option, '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. Try '$progname --help --mode=MODE' for a more detailed description of MODE. When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: $host shell: $SHELL compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) version: $progname $scriptversion Debian-2.4.6-2 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to . GNU libtool home page: . General help using GNU software: ." exit 0 } # func_lo2o OBJECT-NAME # --------------------- # Transform OBJECT-NAME from a '.lo' suffix to the platform specific # object suffix. lo2o=s/\\.lo\$/.$objext/ o2lo=s/\\.$objext\$/.lo/ if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_lo2o () { case $1 in *.lo) func_lo2o_result=${1%.lo}.$objext ;; * ) func_lo2o_result=$1 ;; esac }' # func_xform LIBOBJ-OR-SOURCE # --------------------------- # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) # suffix to a '.lo' libtool-object suffix. eval 'func_xform () { func_xform_result=${1%.*}.lo }' else # ...otherwise fall back to using sed. func_lo2o () { func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` } func_xform () { func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` } fi # func_fatal_configuration ARG... # ------------------------------- # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func__fatal_error ${1+"$@"} \ "See the $PACKAGE documentation for more information." \ "Fatal configuration error." } # func_config # ----------- # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # ------------- # Display the features supported by this script. func_features () { echo "host: $host" if test yes = "$build_libtool_libs"; then echo "enable shared libraries" else echo "disable shared libraries" fi if test yes = "$build_old_libs"; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag TAGNAME # ----------------------- # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname=$1 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf=/$re_begincf/,/$re_endcf/p # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # ------------------------ # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # libtool_options_prep [ARG]... # ----------------------------- # Preparation for options parsed by libtool. libtool_options_prep () { $debug_mode # Option defaults: opt_config=false opt_dlopen= opt_dry_run=false opt_help=false opt_mode= opt_preserve_dup_deps=false opt_quiet=false nonopt= preserve_args= # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Pass back the list of options. func_quote_for_eval ${1+"$@"} libtool_options_prep_result=$func_quote_for_eval_result } func_add_hook func_options_prep libtool_options_prep # libtool_parse_options [ARG]... # --------------------------------- # Provide handling for libtool specific options. libtool_parse_options () { $debug_cmd # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do _G_opt=$1 shift case $_G_opt in --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) func_config ;; --dlopen|-dlopen) opt_dlopen="${opt_dlopen+$opt_dlopen }$1" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) func_features ;; --finish) set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $_G_opt && break opt_mode=$1 case $1 in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $_G_opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_quiet=false func_append preserve_args " $_G_opt" ;; --no-warnings|--no-warning|--no-warn) opt_warning=false func_append preserve_args " $_G_opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $_G_opt" ;; --silent|--quiet) opt_quiet=: opt_verbose=false func_append preserve_args " $_G_opt" ;; --tag) test $# = 0 && func_missing_arg $_G_opt && break opt_tag=$1 func_append preserve_args " $_G_opt $1" func_enable_tag "$1" shift ;; --verbose|-v) opt_quiet=false opt_verbose=: func_append preserve_args " $_G_opt" ;; # An option not handled by this hook function: *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} libtool_parse_options_result=$func_quote_for_eval_result } func_add_hook func_parse_options libtool_parse_options # libtool_validate_options [ARG]... # --------------------------------- # Perform any sanity checks on option settings and/or unconsumed # arguments. libtool_validate_options () { # save first non-option argument if test 0 -lt $#; then nonopt=$1 shift fi # preserve --debug test : = "$debug_cmd" || func_append preserve_args " --debug" case $host in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match test yes != "$build_libtool_libs" \ && test yes != "$build_old_libs" \ && func_fatal_configuration "not configured to build any kind of library" # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test execute != "$opt_mode"; then func_error "unrecognized option '-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help=$help help="Try '$progname --help --mode=$opt_mode' for more information." } # Pass back the unparsed argument list func_quote_for_eval ${1+"$@"} libtool_validate_options_result=$func_quote_for_eval_result } func_add_hook func_validate_options libtool_validate_options # Process options as early as possible so that --help and --version # can return quickly. func_options ${1+"$@"} eval set dummy "$func_options_result"; shift ## ----------- ## ## Main. ## ## ----------- ## magic='%%%MAGIC variable%%%' magic_exe='%%%MAGIC EXE variable%%%' # Global variables. extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # func_generated_by_libtool # True iff stdin has been generated by Libtool. This function is only # a basic sanity check; it will hardly flush out determined imposters. func_generated_by_libtool_p () { $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p } # func_lalib_unsafe_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if 'file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case $lalib_p_line in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test yes = "$lalib_p" } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { test -f "$1" && $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $debug_cmd save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # 'FILE.' does not work on cygwin managed mounts. func_source () { $debug_cmd case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case $lt_sysroot:$1 in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result='='$func_stripname_result ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $debug_cmd if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with '--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=$1 if test yes = "$build_libtool_libs"; then write_lobj=\'$2\' else write_lobj=none fi if test yes = "$build_old_libs"; then write_oldobj=\'$3\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $debug_cmd # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result= if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result"; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $debug_cmd if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $debug_cmd # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $debug_cmd if test -z "$2" && test -n "$1"; then func_error "Could not determine host file name corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result=$1 fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $debug_cmd if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " '$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result=$3 fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $debug_cmd case $4 in $1 ) func_to_host_path_result=$3$func_to_host_path_result ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via '$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $debug_cmd $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $debug_cmd case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result=$1 } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result=$func_convert_core_msys_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result=$func_convert_core_file_wine_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via '$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $debug_cmd if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd=func_convert_path_$func_stripname_result fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $debug_cmd func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result=$1 } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_path_wine_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_dll_def_p FILE # True iff FILE is a Windows DLL '.def' file. # Keep in sync with _LT_DLL_DEF_P in libtool.m4 func_dll_def_p () { $debug_cmd func_dll_def_p_tmp=`$SED -n \ -e 's/^[ ]*//' \ -e '/^\(;.*\)*$/d' \ -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ -e q \ "$1"` test DEF = "$func_dll_def_p_tmp" } # func_mode_compile arg... func_mode_compile () { $debug_cmd # Get the compilation command and the source file. base_compile= srcfile=$nonopt # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg=$arg arg_mode=normal ;; target ) libobj=$arg arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify '-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs=$IFS; IFS=, for arg in $args; do IFS=$save_ifs func_append_quoted lastarg "$arg" done IFS=$save_ifs func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg=$srcfile srcfile=$arg ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with '-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj=$func_basename_result } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from '$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test yes = "$build_libtool_libs" \ || func_fatal_configuration "cannot build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname=$func_basename_result xdir=$func_dirname_result lobj=$xdir$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test yes = "$build_old_libs"; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test no = "$compiler_c_o"; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext lockfile=$output_obj.lock else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test yes = "$need_locks"; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test warn = "$need_locks"; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test no != "$pic_mode"; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test yes = "$suppress_opt"; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test yes = "$build_old_libs"; then if test yes != "$pic_mode"; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test yes = "$compiler_c_o"; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support '-c' and '-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test no != "$need_locks"; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test compile = "$opt_mode" && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a 'standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix '.c' with the library object suffix, '.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to '-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the '--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the 'install' or 'cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE use a list of object files found in FILE to specify objects -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with '-') are ignored. Every other argument is treated as a filename. Files ending in '.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in '.la', then a libtool library is created, only library objects ('.lo' files) may be specified, and '-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created using 'ar' and 'ranlib', or on Windows using 'lib'. If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode '$opt_mode'" ;; esac echo $ECHO "Try '$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test : = "$opt_help"; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | $SED -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | $SED '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $debug_cmd # The first argument is the command name. cmd=$nonopt test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "'$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "'$file' was not linked with '-export-dynamic'" continue fi func_dirname "$file" "" "." dir=$func_dirname_result if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir=$func_dirname_result ;; *) func_warning "'-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir=$absdir # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic=$magic # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file=$progdir/$program elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file=$progdir/$program fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if $opt_dry_run; then # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS else if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd=\$cmd$args fi } test execute = "$opt_mode" && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $debug_cmd libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "'$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument '$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and '=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_quiet && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the '-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the '$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the '$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the '$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test finish = "$opt_mode" && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $debug_cmd # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=false stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test X-m = "X$prev" && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the '$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=: if $isdir; then destdir=$dest destname= else func_dirname_and_basename "$dest" "" "." destdir=$func_dirname_result destname=$func_basename_result # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "'$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "'$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir=$func_dirname_result func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking '$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname=$1 shift srcname=$realname test -n "$relink_command" && srcname=${realname}T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme=$stripme case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme= ;; esac ;; os2*) case $realname in *_dll.a) tstripme= ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try 'ln -sf' first, because the 'ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib=$destdir/$realname func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name=$func_basename_result instname=$dir/${name}i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest=$destfile destfile= ;; *) func_fatal_help "cannot copy a libtool object to '$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test yes = "$build_old_libs"; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile=$destdir/$destname else func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext= case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=.exe fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script '$wrapper'" finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "'$lib' has not been installed in '$libdir'" finalize=false fi done relink_command= func_source "$wrapper" outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result outputname=$tmpdir/$file # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink '$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file=$outputname else func_warning "cannot relink '$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name=$func_basename_result # Set up the ranlib parameters. oldlib=$destdir/$name func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run '$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test install = "$opt_mode" && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $debug_cmd my_outputname=$1 my_originator=$2 my_pic_p=${3-false} my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms=${my_outputname}S.c else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist=$output_objdir/$my_outputname.nm func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* External symbol declarations for the compiler. */\ " if test yes = "$dlself"; then func_verbose "generating symbol list for '$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols=$output_objdir/$outputname.exp $opt_dry_run || { $RM $export_symbols eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from '$dlprefile'" func_basename "$dlprefile" name=$func_basename_result case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename= if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname"; then func_basename "$dlprefile_dlname" dlprefile_dlbasename=$func_basename_result else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename"; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi func_show_eval '$RM "${nlist}I"' if test -n "$global_symbol_to_import"; then eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[];\ " if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ static void lt_syminit(void) { LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; for (; symbol->name; ++symbol) {" $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" echo >> "$output_objdir/$my_dlsyms" "\ } }" fi echo >> "$output_objdir/$my_dlsyms" "\ LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = { {\"$my_originator\", (void *) 0}," if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ {\"@INIT@\", (void *) <_syminit}," fi case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) $my_pic_p && pic_flag_for_symtable=" $pic_flag" ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' # Transform the symbol file into the correct name. symfileobj=$output_objdir/${my_outputname}S.$objext case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for '$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $debug_cmd win32_libid_type=unknown win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then case $nm_interface in "MS dumpbin") if func_cygming_ms_implib_p "$1" || func_cygming_gnu_implib_p "$1" then win32_nmres=import else win32_nmres= fi ;; *) func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s|.*|import| p q } }'` ;; esac case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $debug_cmd sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $debug_cmd match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive that possess that section. Heuristic: eliminate # all those that have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $debug_cmd if func_cygming_gnu_implib_p "$1"; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1"; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result= fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $debug_cmd f_ex_an_ar_dir=$1; shift f_ex_an_ar_oldlib=$1 if test yes = "$lock_old_archive_extraction"; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test yes = "$lock_old_archive_extraction"; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $debug_cmd my_gentop=$1; shift my_oldlibs=${1+"$@"} my_oldobjs= my_xlib= my_xabs= my_xdir= for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib=$func_basename_result my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir=$my_gentop/$my_xlib_u func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` func_basename "$darwin_archive" darwin_base_archive=$func_basename_result darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches; do func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" cd "unfat-$$/$darwin_base_archive-$darwin_arch" func_extract_an_archive "`pwd`" "$darwin_base_archive" cd "$darwin_curdir" $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result=$my_oldobjs } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory where it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ that is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options that match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test yes = "$fast_install"; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else \$ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* declarations of non-ANSI functions */ #if defined __MINGW32__ # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined __CYGWIN__ # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined other_platform || defined ... */ #endif /* portability defines, excluding path handling macros */ #if defined _MSC_VER # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC #elif defined __MINGW32__ # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined __CYGWIN__ # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined other platforms ... */ #endif #if defined PATH_MAX # define LT_PATHMAX PATH_MAX #elif defined MAXPATHLEN # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ defined __OS2__ # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free (stale); stale = 0; } \ } while (0) #if defined LT_DEBUGWRAPPER static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; size_t tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined HAVE_DOS_BASED_FILE_SYSTEM if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined HAVE_DOS_BASED_FILE_SYSTEM } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = (size_t) (q - p); p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (STREQ (str, pat)) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else size_t len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { size_t orig_value_len = strlen (orig_value); size_t add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ size_t len = strlen (new_value); while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[--len] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $debug_cmd case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_suncc_cstd_abi # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! # Several compiler flags select an ABI that is incompatible with the # Cstd library. Avoid specifying it if any are in CXXFLAGS. func_suncc_cstd_abi () { $debug_cmd case " $compile_command " in *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) suncc_use_cstd_abi=no ;; *) suncc_use_cstd_abi=yes ;; esac } # func_mode_link arg... func_mode_link () { $debug_cmd case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll that has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= os2dllname= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=false prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module=$wl-single_module func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test yes != "$build_libtool_libs" \ && func_fatal_configuration "cannot build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg=$1 shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir=$arg prev= continue ;; dlfiles|dlprefiles) $preload || { # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=: } case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test no = "$dlself"; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test dlprefiles = "$prev"; then dlself=yes elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test dlfiles = "$prev"; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols=$arg test -f "$arg" \ || func_fatal_error "symbol file '$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex=$arg prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir=$arg prev= continue ;; mllvm) # Clang does not use LLVM to link, so we can simply discard any # '-mllvm $arg' options when doing the link step. prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result if test none != "$pic_object"; then # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object fi # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file '$arg' does not exist" fi arg=$save_arg prev= continue ;; os2dllname) os2dllname=$arg prev= continue ;; precious_regex) precious_files_regex=$arg prev= continue ;; release) release=-$arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test rpath = "$prev"; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds=$arg prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg=$arg case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "'-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test X-export-symbols = "X$arg"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between '-L' and '$1'" else func_fatal_error "need path for '-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of '$dir'" dir=$absdir ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test X-lc = "X$arg" || test X-lm = "X$arg"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test X-lc = "X$arg" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test X-lc = "X$arg" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test X-lc = "X$arg" && continue ;; esac elif test X-lc_r = "X$arg"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -mllvm) prev=mllvm continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module=$wl-multi_module continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "'-no-install' is ignored for $host" func_warning "assuming '-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -os2dllname) prev=os2dllname continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # -fstack-protector* stack protector flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang # -fsanitize=* Clang/GCC memory and address sanitizer -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ -specs=*|-fsanitize=*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; -Z*) if test os2 = "`expr $host : '.*\(os2\)'`"; then # OS/2 uses -Zxxx to specify OS/2-specific options compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case $arg in -Zlinker | -Zstack) prev=xcompiler ;; esac continue else # Otherwise treat like 'Some other compiler flag' below func_quote_for_eval "$arg" arg=$func_quote_for_eval_result fi ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result test none = "$pic_object" || { # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object } # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; then arg=$non_pic_object fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object=$pic_object func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test dlfiles = "$prev"; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test dlprefiles = "$prev"; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the '$prevarg' option requires an argument" if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname=$func_basename_result libobjs_save=$libobjs if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" # Definition is injected by LT_CONFIG during libtool generation. func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" func_dirname "$output" "/" "" output_objdir=$func_dirname_result$objdir func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test lib = "$linkmode"; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=false newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test lib,link = "$linkmode,$pass"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs=$tmp_deplibs fi if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass"; then libs=$deplibs deplibs= fi if test prog = "$linkmode"; then case $pass in dlopen) libs=$dlfiles ;; dlpreopen) libs=$dlprefiles ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test lib,dlpreopen = "$linkmode,$pass"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs=$dlprefiles fi if test dlopen = "$pass"; then # Collect dlpreopened libraries save_deplibs=$deplibs deplibs= fi for deplib in $libs; do lib= found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test lib != "$linkmode" && test prog != "$linkmode"; then func_warning "'-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test lib = "$linkmode"; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib=$searchdir/lib$name$search_ext if test -f "$lib"; then if test .la = "$search_ext"; then found=: else found=false fi break 2 fi done done if $found; then # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll=$l done if test "X$ll" = "X$old_library"; then # only static version available found=false func_dirname "$lib" "" "." ladir=$func_dirname_result lib=$ladir/$old_library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi else # deplib doesn't seem to be a libtool library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi ;; # -l *.ltframework) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test conv = "$pass" && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi if test scan = "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "'-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test link = "$pass"; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=false case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=: fi ;; pass_all) valid_a_lib=: ;; esac if $valid_a_lib; then echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" else echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." fi ;; esac continue ;; prog) if test link != "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test conv = "$pass"; then deplibs="$deplib $deplibs" elif test prog = "$linkmode"; then if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=: continue ;; esac # case $deplib $found || test -f "$lib" \ || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "'$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir=$func_dirname_result dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass" || { test prog != "$linkmode" && test lib != "$linkmode"; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test conv = "$pass"; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for '$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test prog != "$linkmode" && test lib != "$linkmode"; then func_fatal_error "'$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test yes = "$prefer_static_libs" || test built,no = "$prefer_static_libs,$installed"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib=$l done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for '$lib'" fi # This library was specified with -dlopen. if test dlopen = "$pass"; then test -z "$libdir" \ && func_fatal_error "cannot -dlopen a convenience library: '$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs" then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of '$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir=$ladir fi ;; esac func_basename "$lib" laname=$func_basename_result # Find the relevant object directory and library name. if test yes = "$installed"; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library '$lib' was moved." dir=$ladir absdir=$abs_ladir libdir=$abs_ladir else dir=$lt_sysroot$libdir absdir=$lt_sysroot$libdir fi test yes = "$hardcode_automatic" && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir=$ladir absdir=$abs_ladir # Remove this search path later func_append notinst_path " $abs_ladir" else dir=$ladir/$objdir absdir=$abs_ladir/$objdir # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test dlpreopen = "$pass"; then if test -z "$libdir" && test prog = "$linkmode"; then func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" fi case $host in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test lib = "$linkmode"; then deplibs="$dir/$old_library $deplibs" elif test prog,link = "$linkmode,$pass"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test prog = "$linkmode" && test link != "$pass"; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=false if test no != "$link_all_deplibs" || test -z "$library_names" || test no = "$build_libtool_libs"; then linkalldeplibs=: fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if $linkalldeplibs; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test prog,link = "$linkmode,$pass"; then if test -n "$library_names" && { { test no = "$prefer_static_libs" || test built,yes = "$prefer_static_libs,$installed"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then # Make sure the rpath contains only unique directories. case $temp_rpath: in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if $alldeplibs && { test pass_all = "$deplibs_check_method" || { test yes = "$build_libtool_libs" && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test built = "$use_static_libs" && test yes = "$installed"; then use_static_libs=no fi if test -n "$library_names" && { test no = "$use_static_libs" || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc* | *os2*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test no = "$installed"; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule= for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule=$dlpremoduletest break fi done if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then echo if test prog = "$linkmode"; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test lib = "$linkmode" && test yes = "$hardcode_into_libs"; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname=$1 shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname=$dlname elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc* | *os2*) func_arith $current - $age major=$func_arith_result versuffix=-$major ;; esac eval soname=\"$soname_spec\" else soname=$realname fi # Make a new name for the extract_expsyms_cmds to use soroot=$soname func_basename "$soroot" soname=$func_basename_result func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from '$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for '$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test prog = "$linkmode" || test relink != "$opt_mode"; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test no = "$hardcode_direct"; then add=$dir/$linklib case $host in *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; *-*-sysv4*uw2*) add_dir=-L$dir ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir=-L$dir ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we cannot # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library"; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add=$dir/$old_library fi elif test -n "$old_library"; then add=$dir/$old_library fi fi esac elif test no = "$hardcode_minus_L"; then case $host in *-*-sunos*) add_shlibpath=$dir ;; esac add_dir=-L$dir add=-l$name elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; relink) if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$dir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$absdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name elif test yes = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; *) lib_linked=no ;; esac if test yes != "$lib_linked"; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test prog = "$linkmode"; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test yes != "$hardcode_direct" && test yes != "$hardcode_minus_L" && test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test prog = "$linkmode" || test relink = "$opt_mode"; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add=-l$name elif test yes = "$hardcode_automatic"; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib"; then add=$inst_prefix_dir$libdir/$linklib else add=$libdir/$linklib fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir=-L$libdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name fi if test prog = "$linkmode"; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test prog = "$linkmode"; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test unsupported != "$hardcode_direct"; then test -n "$old_library" && linklib=$old_library compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test yes = "$build_libtool_libs"; then # Not a shared library if test pass_all != "$deplibs_check_method"; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system cannot link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test yes = "$module"; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test lib = "$linkmode"; then if test -n "$dependency_libs" && { test yes != "$hardcode_into_libs" || test yes = "$build_old_libs" || test yes = "$link_static"; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs=$temp_deplibs fi func_append newlib_search_path " $absdir" # Link against this library test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test no != "$link_all_deplibs"; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path=$deplib ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of '$dir'" absdir=$dir fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names"; then for tmp in $deplibrary_names; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl"; then depdepl=$absdir/$objdir/$depdepl darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" path= fi fi ;; *) path=-L$absdir/$objdir ;; esac else eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "'$deplib' seems to be moved" path=-L$absdir fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test link = "$pass"; then if test prog = "$linkmode"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs=$newdependency_libs if test dlpreopen = "$pass"; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test dlopen != "$pass"; then test conv = "$pass" || { # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= } if test prog,link = "$linkmode,$pass"; then vars="compile_deplibs finalize_deplibs" else vars=deplibs fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Add Sun CC postdeps if required: test CXX = "$tagname" && { case $host_os in linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; solaris*) func_cc_basename "$CC" case $func_cc_basename_result in CC* | sunCC*) func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; esac } # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i= ;; esac if test -n "$i"; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test prog = "$linkmode"; then dlfiles=$newdlfiles fi if test prog = "$linkmode" || test lib = "$linkmode"; then dlprefiles=$newdlprefiles fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "'-R' is ignored for archives" test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "'-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "'-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs=$output func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form 'libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test no = "$module" \ && func_fatal_help "libtool library '$output' must begin with 'lib'" if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test pass_all != "$deplibs_check_method"; then func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test no = "$dlself" \ || func_warning "'-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test 1 -lt "$#" \ && func_warning "ignoring multiple '-rpath's for a libtool library" install_libdir=$1 oldlibs= if test -z "$rpath"; then if test yes = "$build_libtool_libs"; then # Building a libtool convenience library. # Some compilers have problems with a '.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "'-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs=$IFS; IFS=: set dummy $vinfo 0 0 0 shift IFS=$save_ifs test -n "$7" && \ func_fatal_help "too many parameters to '-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major=$1 number_minor=$2 number_revision=$3 # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # that has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|freebsd-elf|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_minor lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type '$version_type'" ;; esac ;; no) current=$1 revision=$2 age=$3 ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT '$current' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION '$revision' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE '$age' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE '$age' is greater than the current interface number '$current'" func_fatal_error "'$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # On Darwin other compilers case $CC in nagfor*) verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" ;; *) verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; esac ;; freebsd-aout) major=.$current versuffix=.$current.$revision ;; freebsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; irix | nonstopux) if test no = "$lt_irix_increment"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring=$verstring_prefix$major.$revision # Add in all the interfaces that we are compatible with. loop=$revision while test 0 -ne "$loop"; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring_prefix$major.$iface:$verstring done # Before this point, $major must not contain '.'. major=.$major versuffix=$major.$revision ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=.$current.$age.$revision verstring=$current.$age.$revision # Add in all the interfaces that we are compatible with. loop=$age while test 0 -ne "$loop"; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring:$iface.0 done # Make executables depend on our current version. func_append verstring ":$current.0" ;; qnx) major=.$current versuffix=.$current ;; sco) major=.$current versuffix=.$current ;; sunos) major=.$current versuffix=.$current.$revision ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix=-$major ;; *) func_fatal_configuration "unknown library version type '$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring=0.0 ;; esac if test no = "$need_version"; then versuffix= else versuffix=.0.0 fi fi # Remove version info from name if versioning should be avoided if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= fi # Check to see if the archive will have undefined symbols. if test yes = "$allow_undefined"; then if test unsupported = "$allow_undefined_flag"; then if test yes = "$build_old_libs"; then func_warning "undefined symbols not allowed in $host shared libraries; building static only" build_libtool_libs=no else func_fatal_error "can't build $host shared library unless -no-undefined is specified" fi fi else # Don't allow undefined symbols. allow_undefined_flag=$no_undefined_flag fi fi func_generate_dlsyms "$libname" "$libname" : func_append libobjs " $symfileobj" test " " = "$libobjs" && libobjs= if test relink != "$opt_mode"; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) if test -n "$precious_files_regex"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles=$dlfiles dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles=$dlprefiles dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test yes = "$build_libtool_libs"; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test yes = "$build_libtool_need_lc"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release= versuffix= major= newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib=$potent_lib while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | $SED 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib= ;; esac fi if test -n "$a_deplib"; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib=$potent_lib # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib= break 2 fi done done fi if test -n "$a_deplib"; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib"; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs= tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test yes = "$allow_libtool_libs_with_static_runtimes"; then for i in $predeps $postdeps; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test none = "$deplibs_check_method"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test yes = "$droppeddeps"; then if test yes = "$module"; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using 'nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** 'nm' from GNU binutils and a full rebuild may help." fi if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test no = "$allow_undefined"; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test no = "$build_old_libs"; then oldlibs=$output_objdir/$libname.$libext build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs=$new_libs # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test yes = "$build_libtool_libs"; then # Remove $wl instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test yes = "$hardcode_into_libs"; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath=$finalize_rpath test relink = "$opt_mode" || rpath=$compile_rpath$rpath for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath=$finalize_shlibpath test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname=$1 shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname=$realname fi if test -z "$dlname"; then dlname=$soname fi lib=$output_objdir/$realname linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols=$output_objdir/$libname.uexp func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile func_dll_def_p "$export_symbols" || { # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols=$export_symbols export_symbols= always_export_symbols=yes } fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs=$IFS; IFS='~' for cmd1 in $cmds; do IFS=$save_ifs # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test yes = "$try_normal_branch" \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=$output_objdir/$output_la.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS=$save_ifs if test -n "$export_symbols_regex" && test : != "$skipped_export"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test : != "$skipped_export" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs=$tmp_deplibs if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test yes = "$compiler_needs_object" && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test : != "$skipped_export" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then output=$output_objdir/$output_la.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then output=$output_objdir/$output_la.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test yes = "$compiler_needs_object"; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-$k.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test -z "$objlist" || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test 1 -eq "$k"; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-$k.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-$k.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi ${skipped_export-false} && { func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi } test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs=$IFS; IFS='~' for cmd in $concat_cmds; do IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi ${skipped_export-false} && { if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi } libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test yes = "$module" && test -n "$module_cmds"; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs=$IFS; IFS='~' for cmd in $cmds; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs # Restore the uninstalled library and exit if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test yes = "$module" || test yes = "$export_dynamic"; then # On all known operating systems, these are identical. dlname=$soname fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "'-R' is ignored for objects" test -n "$vinfo" && \ func_warning "'-version-info' is ignored for objects" test -n "$release" && \ func_warning "'-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object '$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj=$output ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # if reload_cmds runs $LD directly, get rid of -Wl from # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags else gentop=$output_objdir/${obj}x func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test yes = "$build_libtool_libs" || libobjs=$non_pic_objects # Create the old-style object. reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs output=$obj func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi test yes = "$build_libtool_libs" || { if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS } if test -n "$pic_flag" || test default != "$pic_mode"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output=$libobj func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "'-version-info' is ignored for programs" test -n "$release" && \ func_warning "'-release' is ignored for programs" $preload \ && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test CXX = "$tagname"; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " $wl-bind_at_load" func_append finalize_command " $wl-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs=$new_libs func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath=$rpath rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs=$libdir else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir=$hardcode_libdirs eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath=$rpath if test -n "$libobjs" && test yes = "$build_old_libs"; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" false # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=: case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=false ;; *cygwin* | *mingw* ) test yes = "$build_libtool_libs" || wrappers_required=false ;; *) if test no = "$need_relink" || test yes != "$build_libtool_libs"; then wrappers_required=false fi ;; esac $wrappers_required || { # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command=$compile_command$compile_rpath # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.$objext"; then func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' fi exit $exit_status } if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test yes = "$no_install"; then # We don't need to create a wrapper script. link_command=$compile_var$compile_command$compile_rpath # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi case $hardcode_action,$fast_install in relink,*) # Fast installation is not supported link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath func_warning "this platform does not like uninstalled shared libraries" func_warning "'$output' will be relinked during installation" ;; *,yes) link_command=$finalize_var$compile_command$finalize_rpath relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` ;; *,no) link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath ;; *,needless) link_command=$finalize_var$compile_command$finalize_rpath relink_command= ;; esac # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource=$output_path/$objdir/lt-$output_name.c cwrapper=$output_path/$output_name.exe $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host"; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do case $build_libtool_libs in convenience) oldobjs="$libobjs_save $symfileobj" addlibs=$convenience build_libtool_libs=no ;; module) oldobjs=$libobjs_save addlibs=$old_convenience build_libtool_libs=no ;; *) oldobjs="$old_deplibs $non_pic_objects" $preload && test -f "$symfileobj" \ && func_append oldobjs " $symfileobj" addlibs=$old_convenience ;; esac if test -n "$addlibs"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase=$func_basename_result case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj"; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test -z "$oldobjs"; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test yes = "$build_old_libs" && old_library=$libname.$libext func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test yes = "$hardcode_automatic"; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test yes = "$installed"; then if test -z "$install_libdir"; then break fi output=$output_objdir/${outputname}i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name=$func_basename_result func_resolve_sysroot "$deplib" eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs=$newdependency_libs newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles=$newdlprefiles else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles=$newdlprefiles fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test -n "$bindir"; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result/$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that cannot go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } if test link = "$opt_mode" || test relink = "$opt_mode"; then func_mode_link ${1+"$@"} fi # func_mode_uninstall arg... func_mode_uninstall () { $debug_cmd RM=$nonopt files= rmforce=false exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic=$magic for arg do case $arg in -f) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir=$func_dirname_result if test . = "$dir"; then odir=$objdir else odir=$dir/$objdir fi func_basename "$file" name=$func_basename_result test uninstall = "$opt_mode" && odir=$dir # Remember odir for removal later, being careful to avoid duplicates if test clean = "$opt_mode"; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif $rmforce; then continue fi rmfiles=$file case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case $opt_mode in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test none != "$pic_object"; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test none != "$non_pic_object"; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test clean = "$opt_mode"; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.$objext" if test yes = "$fast_install" && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name"; then func_append rmfiles " $odir/lt-$noexename.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the $objdir's in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then func_mode_uninstall ${1+"$@"} fi test -z "$opt_mode" && { help=$generic_help func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode '$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # where we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: avahi-0.7/PaxHeaders.10109/avahi-core0000644000000000000000000000013213130652072014137 xustar0030 mtime=1499681850.147986899 30 atime=1499681851.283961552 30 ctime=1499681850.147986899 avahi-0.7/avahi-core/0000755000175000017500000000000013130652072015623 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-core/PaxHeaders.10109/query-sched.c0000644000000000000000000000013213130651643016614 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.115987612 avahi-0.7/avahi-core/query-sched.c0000644000175000017500000002674613130651643020242 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "query-sched.h" #include "log.h" #define AVAHI_QUERY_HISTORY_MSEC 100 #define AVAHI_QUERY_DEFER_MSEC 100 typedef struct AvahiQueryJob AvahiQueryJob; typedef struct AvahiKnownAnswer AvahiKnownAnswer; struct AvahiQueryJob { unsigned id; int n_posted; AvahiQueryScheduler *scheduler; AvahiTimeEvent *time_event; int done; struct timeval delivery; AvahiKey *key; /* Jobs are stored in a simple linked list. It might turn out in * the future that this list grows too long and we must switch to * some other kind of data structure. This needs further * investigation. I expect the list to be very short (< 20 * entries) most of the time, but this might be a wrong * assumption, especially on setups where traffic reflection is * involved. */ AVAHI_LLIST_FIELDS(AvahiQueryJob, jobs); }; struct AvahiKnownAnswer { AvahiQueryScheduler *scheduler; AvahiRecord *record; AVAHI_LLIST_FIELDS(AvahiKnownAnswer, known_answer); }; struct AvahiQueryScheduler { AvahiInterface *interface; AvahiTimeEventQueue *time_event_queue; unsigned next_id; AVAHI_LLIST_HEAD(AvahiQueryJob, jobs); AVAHI_LLIST_HEAD(AvahiQueryJob, history); AVAHI_LLIST_HEAD(AvahiKnownAnswer, known_answers); }; static AvahiQueryJob* job_new(AvahiQueryScheduler *s, AvahiKey *key, int done) { AvahiQueryJob *qj; assert(s); assert(key); if (!(qj = avahi_new(AvahiQueryJob, 1))) { avahi_log_error(__FILE__": Out of memory"); return NULL; } qj->scheduler = s; qj->key = avahi_key_ref(key); qj->time_event = NULL; qj->n_posted = 1; qj->id = s->next_id++; if ((qj->done = done)) AVAHI_LLIST_PREPEND(AvahiQueryJob, jobs, s->history, qj); else AVAHI_LLIST_PREPEND(AvahiQueryJob, jobs, s->jobs, qj); return qj; } static void job_free(AvahiQueryScheduler *s, AvahiQueryJob *qj) { assert(s); assert(qj); if (qj->time_event) avahi_time_event_free(qj->time_event); if (qj->done) AVAHI_LLIST_REMOVE(AvahiQueryJob, jobs, s->history, qj); else AVAHI_LLIST_REMOVE(AvahiQueryJob, jobs, s->jobs, qj); avahi_key_unref(qj->key); avahi_free(qj); } static void elapse_callback(AvahiTimeEvent *e, void* data); static void job_set_elapse_time(AvahiQueryScheduler *s, AvahiQueryJob *qj, unsigned msec, unsigned jitter) { struct timeval tv; assert(s); assert(qj); avahi_elapse_time(&tv, msec, jitter); if (qj->time_event) avahi_time_event_update(qj->time_event, &tv); else qj->time_event = avahi_time_event_new(s->time_event_queue, &tv, elapse_callback, qj); } static void job_mark_done(AvahiQueryScheduler *s, AvahiQueryJob *qj) { assert(s); assert(qj); assert(!qj->done); AVAHI_LLIST_REMOVE(AvahiQueryJob, jobs, s->jobs, qj); AVAHI_LLIST_PREPEND(AvahiQueryJob, jobs, s->history, qj); qj->done = 1; job_set_elapse_time(s, qj, AVAHI_QUERY_HISTORY_MSEC, 0); gettimeofday(&qj->delivery, NULL); } AvahiQueryScheduler *avahi_query_scheduler_new(AvahiInterface *i) { AvahiQueryScheduler *s; assert(i); if (!(s = avahi_new(AvahiQueryScheduler, 1))) { avahi_log_error(__FILE__": Out of memory"); return NULL; /* OOM */ } s->interface = i; s->time_event_queue = i->monitor->server->time_event_queue; s->next_id = 0; AVAHI_LLIST_HEAD_INIT(AvahiQueryJob, s->jobs); AVAHI_LLIST_HEAD_INIT(AvahiQueryJob, s->history); AVAHI_LLIST_HEAD_INIT(AvahiKnownAnswer, s->known_answers); return s; } void avahi_query_scheduler_free(AvahiQueryScheduler *s) { assert(s); assert(!s->known_answers); avahi_query_scheduler_clear(s); avahi_free(s); } void avahi_query_scheduler_clear(AvahiQueryScheduler *s) { assert(s); while (s->jobs) job_free(s, s->jobs); while (s->history) job_free(s, s->history); } static void* known_answer_walk_callback(AvahiCache *c, AvahiKey *pattern, AvahiCacheEntry *e, void* userdata) { AvahiQueryScheduler *s = userdata; AvahiKnownAnswer *ka; assert(c); assert(pattern); assert(e); assert(s); if (avahi_cache_entry_half_ttl(c, e)) return NULL; if (!(ka = avahi_new0(AvahiKnownAnswer, 1))) { avahi_log_error(__FILE__": Out of memory"); return NULL; } ka->scheduler = s; ka->record = avahi_record_ref(e->record); AVAHI_LLIST_PREPEND(AvahiKnownAnswer, known_answer, s->known_answers, ka); return NULL; } static int packet_add_query_job(AvahiQueryScheduler *s, AvahiDnsPacket *p, AvahiQueryJob *qj) { assert(s); assert(p); assert(qj); if (!avahi_dns_packet_append_key(p, qj->key, 0)) return 0; /* Add all matching known answers to the list */ avahi_cache_walk(s->interface->cache, qj->key, known_answer_walk_callback, s); job_mark_done(s, qj); return 1; } static void append_known_answers_and_send(AvahiQueryScheduler *s, AvahiDnsPacket *p) { AvahiKnownAnswer *ka; unsigned n; assert(s); assert(p); n = 0; while ((ka = s->known_answers)) { int too_large = 0; while (!avahi_dns_packet_append_record(p, ka->record, 0, 0)) { if (avahi_dns_packet_is_empty(p)) { /* The record is too large to fit into one packet, so there's no point in sending it. Better is letting the owner of the record send it as a response. This has the advantage of a cache refresh. */ too_large = 1; break; } avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_FLAGS, avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_FLAGS) | AVAHI_DNS_FLAG_TC); avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_ANCOUNT, n); avahi_interface_send_packet(s->interface, p); avahi_dns_packet_free(p); p = avahi_dns_packet_new_query(s->interface->hardware->mtu); n = 0; } AVAHI_LLIST_REMOVE(AvahiKnownAnswer, known_answer, s->known_answers, ka); avahi_record_unref(ka->record); avahi_free(ka); if (!too_large) n++; } avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_ANCOUNT, n); avahi_interface_send_packet(s->interface, p); avahi_dns_packet_free(p); } static void elapse_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void* data) { AvahiQueryJob *qj = data; AvahiQueryScheduler *s; AvahiDnsPacket *p; unsigned n; int b; assert(qj); s = qj->scheduler; if (qj->done) { /* Lets remove it from the history */ job_free(s, qj); return; } assert(!s->known_answers); if (!(p = avahi_dns_packet_new_query(s->interface->hardware->mtu))) return; /* OOM */ b = packet_add_query_job(s, p, qj); assert(b); /* An query must always fit in */ n = 1; /* Try to fill up packet with more queries, if available */ while (s->jobs) { if (!packet_add_query_job(s, p, s->jobs)) break; n++; } avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_QDCOUNT, n); /* Now add known answers */ append_known_answers_and_send(s, p); } static AvahiQueryJob* find_scheduled_job(AvahiQueryScheduler *s, AvahiKey *key) { AvahiQueryJob *qj; assert(s); assert(key); for (qj = s->jobs; qj; qj = qj->jobs_next) { assert(!qj->done); if (avahi_key_equal(qj->key, key)) return qj; } return NULL; } static AvahiQueryJob* find_history_job(AvahiQueryScheduler *s, AvahiKey *key) { AvahiQueryJob *qj; assert(s); assert(key); for (qj = s->history; qj; qj = qj->jobs_next) { assert(qj->done); if (avahi_key_equal(qj->key, key)) { /* Check whether this entry is outdated */ if (avahi_age(&qj->delivery) > AVAHI_QUERY_HISTORY_MSEC*1000) { /* it is outdated, so let's remove it */ job_free(s, qj); return NULL; } return qj; } } return NULL; } int avahi_query_scheduler_post(AvahiQueryScheduler *s, AvahiKey *key, int immediately, unsigned *ret_id) { struct timeval tv; AvahiQueryJob *qj; assert(s); assert(key); if ((qj = find_history_job(s, key))) return 0; avahi_elapse_time(&tv, immediately ? 0 : AVAHI_QUERY_DEFER_MSEC, 0); if ((qj = find_scheduled_job(s, key))) { /* Duplicate questions suppression */ if (avahi_timeval_compare(&tv, &qj->delivery) < 0) { /* If the new entry should be scheduled earlier, * update the old entry */ qj->delivery = tv; avahi_time_event_update(qj->time_event, &qj->delivery); } qj->n_posted++; } else { if (!(qj = job_new(s, key, 0))) return 0; /* OOM */ qj->delivery = tv; qj->time_event = avahi_time_event_new(s->time_event_queue, &qj->delivery, elapse_callback, qj); } if (ret_id) *ret_id = qj->id; return 1; } void avahi_query_scheduler_incoming(AvahiQueryScheduler *s, AvahiKey *key) { AvahiQueryJob *qj; assert(s); assert(key); /* This function is called whenever an incoming query was * received. We drop scheduled queries that match. The keyword is * "DUPLICATE QUESTION SUPPRESION". */ if ((qj = find_scheduled_job(s, key))) { job_mark_done(s, qj); return; } /* Look if there's a history job for this key. If there is, just * update the elapse time */ if (!(qj = find_history_job(s, key))) if (!(qj = job_new(s, key, 1))) return; /* OOM */ gettimeofday(&qj->delivery, NULL); job_set_elapse_time(s, qj, AVAHI_QUERY_HISTORY_MSEC, 0); } int avahi_query_scheduler_withdraw_by_id(AvahiQueryScheduler *s, unsigned id) { AvahiQueryJob *qj; assert(s); /* Very short lived queries can withdraw an already scheduled item * from the queue using this function, simply by passing the id * returned by avahi_query_scheduler_post(). */ for (qj = s->jobs; qj; qj = qj->jobs_next) { assert(!qj->done); if (qj->id == id) { /* Entry found */ assert(qj->n_posted >= 1); if (--qj->n_posted <= 0) { /* We withdraw this job only if the calling object was * the only remaining poster. (Usually this is the * case since there should exist only one querier per * key, but there are exceptions, notably reflected * traffic.) */ job_free(s, qj); return 1; } } } return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/probe-sched.h0000644000000000000000000000013213130651643016563 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.115987612 avahi-0.7/avahi-core/probe-sched.h0000644000175000017500000000224713130651643020177 0ustar00lathiatlathiat00000000000000#ifndef fooprobeschedhfoo #define fooprobeschedhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiProbeScheduler AvahiProbeScheduler; #include #include "iface.h" AvahiProbeScheduler *avahi_probe_scheduler_new(AvahiInterface *i); void avahi_probe_scheduler_free(AvahiProbeScheduler *s); void avahi_probe_scheduler_clear(AvahiProbeScheduler *s); int avahi_probe_scheduler_post(AvahiProbeScheduler *s, AvahiRecord *record, int immediately); #endif avahi-0.7/avahi-core/PaxHeaders.10109/util.c0000644000000000000000000000013213130651643015340 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.127987345 avahi-0.7/avahi-core/util.c0000644000175000017500000000460613130651643016755 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include "util.h" void avahi_hexdump(const void* p, size_t size) { const uint8_t *c = p; assert(p); printf("Dumping %lu bytes from %p:\n", (unsigned long) size, p); while (size > 0) { unsigned i; for (i = 0; i < 16; i++) { if (i < size) printf("%02x ", c[i]); else printf(" "); } for (i = 0; i < 16; i++) { if (i < size) printf("%c", c[i] >= 32 && c[i] < 127 ? c[i] : '.'); else printf(" "); } printf("\n"); c += 16; if (size <= 16) break; size -= 16; } } char *avahi_format_mac_address(char *r, size_t l, const uint8_t* mac, size_t size) { char *t = r; unsigned i; static const char hex[] = "0123456789abcdef"; assert(r); assert(l > 0); assert(mac); if (size <= 0) { *r = 0; return r; } for (i = 0; i < size; i++) { if (l < 3) break; *(t++) = hex[*mac >> 4]; *(t++) = hex[*mac & 0xF]; *(t++) = ':'; l -= 3; mac++; } if (t > r) *(t-1) = 0; else *r = 0; return r; } char *avahi_strup(char *s) { char *c; assert(s); for (c = s; *c; c++) *c = (char) toupper(*c); return s; } char *avahi_strdown(char *s) { char *c; assert(s); for (c = s; *c; c++) *c = (char) tolower(*c); return s; } avahi-0.7/avahi-core/PaxHeaders.10109/hashmap-test.c0000644000000000000000000000013213130651643016761 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.147986899 avahi-0.7/avahi-core/hashmap-test.c0000644000175000017500000000374013130651643020374 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "hashmap.h" #include "util.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { unsigned n; AvahiHashmap *m; const char *t; m = avahi_hashmap_new(avahi_string_hash, avahi_string_equal, avahi_free, avahi_free); avahi_hashmap_insert(m, avahi_strdup("bla"), avahi_strdup("#1")); avahi_hashmap_insert(m, avahi_strdup("bla2"), avahi_strdup("asdf")); avahi_hashmap_insert(m, avahi_strdup("gurke"), avahi_strdup("ffsdf")); avahi_hashmap_insert(m, avahi_strdup("blubb"), avahi_strdup("sadfsd")); avahi_hashmap_insert(m, avahi_strdup("bla"), avahi_strdup("#2")); for (n = 0; n < 1000; n ++) avahi_hashmap_insert(m, avahi_strdup_printf("key %u", n), avahi_strdup_printf("value %u", n)); printf("%s\n", (const char*) avahi_hashmap_lookup(m, "bla")); avahi_hashmap_replace(m, avahi_strdup("bla"), avahi_strdup("#3")); printf("%s\n", (const char*) avahi_hashmap_lookup(m, "bla")); avahi_hashmap_remove(m, "bla"); t = (const char*) avahi_hashmap_lookup(m, "bla"); printf("%s\n", t ? t : "(null)"); avahi_hashmap_free(m); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/socket.h0000644000000000000000000000013213130651643015660 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.111987701 avahi-0.7/avahi-core/socket.h0000644000175000017500000000403113130651643017265 0ustar00lathiatlathiat00000000000000#ifndef foosockethfoo #define foosockethfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include "dns.h" #define AVAHI_MDNS_PORT 5353 #define AVAHI_DNS_PORT 53 #define AVAHI_IPV4_MCAST_GROUP "224.0.0.251" #define AVAHI_IPV6_MCAST_GROUP "ff02::fb" int avahi_open_socket_ipv4(int no_reuse); int avahi_open_socket_ipv6(int no_reuse); int avahi_open_unicast_socket_ipv4(void); int avahi_open_unicast_socket_ipv6(void); int avahi_send_dns_packet_ipv4(int fd, AvahiIfIndex iface, AvahiDnsPacket *p, const AvahiIPv4Address *src_address, const AvahiIPv4Address *dst_address, uint16_t dst_port); int avahi_send_dns_packet_ipv6(int fd, AvahiIfIndex iface, AvahiDnsPacket *p, const AvahiIPv6Address *src_address, const AvahiIPv6Address *dst_address, uint16_t dst_port); AvahiDnsPacket *avahi_recv_dns_packet_ipv4(int fd, AvahiIPv4Address *ret_src_address, uint16_t *ret_src_port, AvahiIPv4Address *ret_dst_address, AvahiIfIndex *ret_iface, uint8_t *ret_ttl); AvahiDnsPacket *avahi_recv_dns_packet_ipv6(int fd, AvahiIPv6Address *ret_src_address, uint16_t *ret_src_port, AvahiIPv6Address *ret_dst_address, AvahiIfIndex *ret_iface, uint8_t *ret_ttl); int avahi_mdns_mcast_join_ipv4(int fd, const AvahiIPv4Address *local_address, int iface, int join); int avahi_mdns_mcast_join_ipv6(int fd, const AvahiIPv6Address *local_address, int iface, int join); #endif avahi-0.7/avahi-core/PaxHeaders.10109/resolve-host-name.c0000644000000000000000000000013213130651643017733 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.119987521 avahi-0.7/avahi-core/resolve-host-name.c0000644000175000017500000002064513130651643021351 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "browse.h" #include "log.h" #define TIMEOUT_MSEC 5000 struct AvahiSHostNameResolver { AvahiServer *server; char *host_name; AvahiSRecordBrowser *record_browser_a; AvahiSRecordBrowser *record_browser_aaaa; AvahiSHostNameResolverCallback callback; void* userdata; AvahiRecord *address_record; AvahiIfIndex interface; AvahiProtocol protocol; AvahiLookupResultFlags flags; AvahiTimeEvent *time_event; AVAHI_LLIST_FIELDS(AvahiSHostNameResolver, resolver); }; static void finish(AvahiSHostNameResolver *r, AvahiResolverEvent event) { assert(r); if (r->time_event) { avahi_time_event_free(r->time_event); r->time_event = NULL; } switch (event) { case AVAHI_RESOLVER_FOUND: { AvahiAddress a; assert(r->address_record); switch (r->address_record->key->type) { case AVAHI_DNS_TYPE_A: a.proto = AVAHI_PROTO_INET; a.data.ipv4 = r->address_record->data.a.address; break; case AVAHI_DNS_TYPE_AAAA: a.proto = AVAHI_PROTO_INET6; a.data.ipv6 = r->address_record->data.aaaa.address; break; default: abort(); } r->callback(r, r->interface, r->protocol, AVAHI_RESOLVER_FOUND, r->address_record->key->name, &a, r->flags, r->userdata); break; } case AVAHI_RESOLVER_FAILURE: r->callback(r, r->interface, r->protocol, event, r->host_name, NULL, r->flags, r->userdata); break; } } static void time_event_callback(AvahiTimeEvent *e, void *userdata) { AvahiSHostNameResolver *r = userdata; assert(e); assert(r); avahi_server_set_errno(r->server, AVAHI_ERR_TIMEOUT); finish(r, AVAHI_RESOLVER_FAILURE); } static void start_timeout(AvahiSHostNameResolver *r) { struct timeval tv; assert(r); if (r->time_event) return; avahi_elapse_time(&tv, TIMEOUT_MSEC, 0); r->time_event = avahi_time_event_new(r->server->time_event_queue, &tv, time_event_callback, r); } static void record_browser_callback( AvahiSRecordBrowser*rr, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata) { AvahiSHostNameResolver *r = userdata; assert(rr); assert(r); switch (event) { case AVAHI_BROWSER_NEW: assert(record); assert(record->key->type == AVAHI_DNS_TYPE_A || record->key->type == AVAHI_DNS_TYPE_AAAA); if (r->interface > 0 && interface != r->interface) return; if (r->protocol != AVAHI_PROTO_UNSPEC && protocol != r->protocol) return; if (r->interface <= 0) r->interface = interface; if (r->protocol == AVAHI_PROTO_UNSPEC) r->protocol = protocol; if (!r->address_record) { r->address_record = avahi_record_ref(record); r->flags = flags; finish(r, AVAHI_RESOLVER_FOUND); } break; case AVAHI_BROWSER_REMOVE: assert(record); assert(record->key->type == AVAHI_DNS_TYPE_A || record->key->type == AVAHI_DNS_TYPE_AAAA); if (r->address_record && avahi_record_equal_no_ttl(record, r->address_record)) { avahi_record_unref(r->address_record); r->address_record = NULL; r->flags = flags; /** Look for a replacement */ if (r->record_browser_aaaa) avahi_s_record_browser_restart(r->record_browser_aaaa); if (r->record_browser_a) avahi_s_record_browser_restart(r->record_browser_a); start_timeout(r); } break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: /* Ignore */ break; case AVAHI_BROWSER_FAILURE: /* Stop browsers */ if (r->record_browser_aaaa) avahi_s_record_browser_free(r->record_browser_aaaa); if (r->record_browser_a) avahi_s_record_browser_free(r->record_browser_a); r->record_browser_a = r->record_browser_aaaa = NULL; r->flags = flags; finish(r, AVAHI_RESOLVER_FAILURE); break; } } AvahiSHostNameResolver *avahi_s_host_name_resolver_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *host_name, AvahiProtocol aprotocol, AvahiLookupFlags flags, AvahiSHostNameResolverCallback callback, void* userdata) { AvahiSHostNameResolver *r; AvahiKey *k; assert(server); assert(host_name); assert(callback); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, avahi_is_valid_fqdn(host_name), AVAHI_ERR_INVALID_HOST_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(aprotocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); if (!(r = avahi_new(AvahiSHostNameResolver, 1))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); return NULL; } r->server = server; r->host_name = avahi_normalize_name_strdup(host_name); r->callback = callback; r->userdata = userdata; r->address_record = NULL; r->interface = interface; r->protocol = protocol; r->flags = 0; r->record_browser_a = r->record_browser_aaaa = NULL; r->time_event = NULL; AVAHI_LLIST_PREPEND(AvahiSHostNameResolver, resolver, server->host_name_resolvers, r); r->record_browser_aaaa = r->record_browser_a = NULL; if (aprotocol == AVAHI_PROTO_INET || aprotocol == AVAHI_PROTO_UNSPEC) { k = avahi_key_new(host_name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_A); r->record_browser_a = avahi_s_record_browser_new(server, interface, protocol, k, flags, record_browser_callback, r); avahi_key_unref(k); if (!r->record_browser_a) goto fail; } if (aprotocol == AVAHI_PROTO_INET6 || aprotocol == AVAHI_PROTO_UNSPEC) { k = avahi_key_new(host_name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_AAAA); r->record_browser_aaaa = avahi_s_record_browser_new(server, interface, protocol, k, flags, record_browser_callback, r); avahi_key_unref(k); if (!r->record_browser_aaaa) goto fail; } assert(r->record_browser_aaaa || r->record_browser_a); start_timeout(r); return r; fail: avahi_s_host_name_resolver_free(r); return NULL; } void avahi_s_host_name_resolver_free(AvahiSHostNameResolver *r) { assert(r); AVAHI_LLIST_REMOVE(AvahiSHostNameResolver, resolver, r->server->host_name_resolvers, r); if (r->record_browser_a) avahi_s_record_browser_free(r->record_browser_a); if (r->record_browser_aaaa) avahi_s_record_browser_free(r->record_browser_aaaa); if (r->time_event) avahi_time_event_free(r->time_event); if (r->address_record) avahi_record_unref(r->address_record); avahi_free(r->host_name); avahi_free(r); } avahi-0.7/avahi-core/PaxHeaders.10109/rr.h0000644000000000000000000000013113130651643015012 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 29 ctime=1499681850.09998797 avahi-0.7/avahi-core/rr.h0000644000175000017500000001462113130651643016426 0ustar00lathiatlathiat00000000000000#ifndef foorrhfoo #define foorrhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file rr.h Functions and definitions for manipulating DNS resource record (RR) data. */ #include #include #include #include #include AVAHI_C_DECL_BEGIN /** DNS record types, see RFC 1035, in addition to those defined in defs.h */ enum { AVAHI_DNS_TYPE_ANY = 0xFF, /**< Special query type for requesting all records */ AVAHI_DNS_TYPE_OPT = 41, /**< EDNS0 option */ AVAHI_DNS_TYPE_TKEY = 249, AVAHI_DNS_TYPE_TSIG = 250, AVAHI_DNS_TYPE_IXFR = 251, AVAHI_DNS_TYPE_AXFR = 252 }; /** DNS record classes, see RFC 1035, in addition to those defined in defs.h */ enum { AVAHI_DNS_CLASS_ANY = 0xFF, /**< Special query type for requesting all records */ AVAHI_DNS_CACHE_FLUSH = 0x8000, /**< Not really a class but a bit which may be set in response packets, see mDNS spec for more information */ AVAHI_DNS_UNICAST_RESPONSE = 0x8000 /**< Not really a class but a bit which may be set in query packets, see mDNS spec for more information */ }; /** Encapsulates a DNS query key consisting of class, type and name. Use avahi_key_ref()/avahi_key_unref() for manipulating the reference counter. The structure is intended to be treated as "immutable", no changes should be imposed after creation */ typedef struct AvahiKey { int ref; /**< Reference counter */ char *name; /**< Record name */ uint16_t clazz; /**< Record class, one of the AVAHI_DNS_CLASS_xxx constants */ uint16_t type; /**< Record type, one of the AVAHI_DNS_TYPE_xxx constants */ } AvahiKey; /** Encapsulates a DNS resource record. The structure is intended to * be treated as "immutable", no changes should be imposed after * creation. */ typedef struct AvahiRecord { int ref; /**< Reference counter */ AvahiKey *key; /**< Reference to the query key of this record */ uint32_t ttl; /**< DNS TTL of this record */ union { struct { void* data; uint16_t size; } generic; /**< Generic record data for unknown types */ struct { uint16_t priority; uint16_t weight; uint16_t port; char *name; } srv; /**< Data for SRV records */ struct { char *name; } ptr, ns, cname; /**< Data for PTR, NS and CNAME records */ struct { char *cpu; char *os; } hinfo; /**< Data for HINFO records */ struct { AvahiStringList *string_list; } txt; /**< Data for TXT records */ struct { AvahiIPv4Address address; } a; /**< Data for A records */ struct { AvahiIPv6Address address; } aaaa; /**< Data for AAAA records */ } data; /**< Record data */ } AvahiRecord; /** Create a new AvahiKey object. The reference counter will be set to 1. */ AvahiKey *avahi_key_new(const char *name, uint16_t clazz, uint16_t type); /** Increase the reference counter of an AvahiKey object by one */ AvahiKey *avahi_key_ref(AvahiKey *k); /** Decrease the reference counter of an AvahiKey object by one */ void avahi_key_unref(AvahiKey *k); /** Check whether two AvahiKey object contain the same * data. AVAHI_DNS_CLASS_ANY/AVAHI_DNS_TYPE_ANY are treated like any * other class/type. */ int avahi_key_equal(const AvahiKey *a, const AvahiKey *b); /** Return a numeric hash value for a key for usage in hash tables. */ unsigned avahi_key_hash(const AvahiKey *k); /** Create a new record object. Record data should be filled in right after creation. The reference counter is set to 1. */ AvahiRecord *avahi_record_new(AvahiKey *k, uint32_t ttl); /** Create a new record object. Record data should be filled in right after creation. The reference counter is set to 1. */ AvahiRecord *avahi_record_new_full(const char *name, uint16_t clazz, uint16_t type, uint32_t ttl); /** Increase the reference counter of an AvahiRecord by one. */ AvahiRecord *avahi_record_ref(AvahiRecord *r); /** Decrease the reference counter of an AvahiRecord by one. */ void avahi_record_unref(AvahiRecord *r); /** Return a textual representation of the specified DNS class. The * returned pointer points to a read only internal string. */ const char *avahi_dns_class_to_string(uint16_t clazz); /** Return a textual representation of the specified DNS class. The * returned pointer points to a read only internal string. */ const char *avahi_dns_type_to_string(uint16_t type); /** Create a textual representation of the specified key. avahi_free() the * result! */ char *avahi_key_to_string(const AvahiKey *k); /** Create a textual representation of the specified record, similar * in style to BIND zone file data. avahi_free() the result! */ char *avahi_record_to_string(const AvahiRecord *r); /** Check whether two records are equal (regardless of the TTL */ int avahi_record_equal_no_ttl(const AvahiRecord *a, const AvahiRecord *b); /** Check whether the specified key is valid */ int avahi_key_is_valid(AvahiKey *k); /** Check whether the specified record is valid */ int avahi_record_is_valid(AvahiRecord *r); /** Parse a binary rdata object and fill it into *record. This function is actually implemented in dns.c */ int avahi_rdata_parse(AvahiRecord *record, const void* rdata, size_t size); /** Serialize an AvahiRecord object into binary rdata. This function is actually implemented in dns.c */ size_t avahi_rdata_serialize(AvahiRecord *record, void *rdata, size_t max_size); /** Return TRUE if the AvahiRecord object is a link-local A or AAAA address */ int avahi_record_is_link_local_address(const AvahiRecord *r); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/querier.h0000644000000000000000000000013213130651643016044 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.135987166 avahi-0.7/avahi-core/querier.h0000644000175000017500000000351313130651643017455 0ustar00lathiatlathiat00000000000000#ifndef fooquerierhfoo #define fooquerierhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiQuerier AvahiQuerier; #include "iface.h" /** Add querier for the specified key to the specified interface */ void avahi_querier_add(AvahiInterface *i, AvahiKey *key, struct timeval *ret_ctime); /** Remove a querier for the specified key from the specified interface */ void avahi_querier_remove(AvahiInterface *i, AvahiKey *key); /** Add a querier for the specified key on all interfaces that mach */ void avahi_querier_add_for_all(AvahiServer *s, AvahiIfIndex idx, AvahiProtocol protocol, AvahiKey *key, struct timeval *ret_ctime); /** Remove a querier for the specified key on all interfaces that mach */ void avahi_querier_remove_for_all(AvahiServer *s, AvahiIfIndex idx, AvahiProtocol protocol, AvahiKey *key); /** Free all queriers */ void avahi_querier_free(AvahiQuerier *q); /** Free all queriers on the specified interface */ void avahi_querier_free_all(AvahiInterface *i); /** Return 1 if there is a querier for the specified key on the specified interface */ int avahi_querier_shall_refresh_cache(AvahiInterface *i, AvahiKey *key); #endif avahi-0.7/avahi-core/PaxHeaders.10109/response-sched.h0000644000000000000000000000013213130651643017312 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.111987701 avahi-0.7/avahi-core/response-sched.h0000644000175000017500000000302713130651643020723 0ustar00lathiatlathiat00000000000000#ifndef fooresponseschedhfoo #define fooresponseschedhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiResponseScheduler AvahiResponseScheduler; #include #include "iface.h" AvahiResponseScheduler *avahi_response_scheduler_new(AvahiInterface *i); void avahi_response_scheduler_free(AvahiResponseScheduler *s); void avahi_response_scheduler_clear(AvahiResponseScheduler *s); void avahi_response_scheduler_force(AvahiResponseScheduler *s); int avahi_response_scheduler_post(AvahiResponseScheduler *s, AvahiRecord *record, int flush_cache, const AvahiAddress *querier, int immediately); void avahi_response_scheduler_incoming(AvahiResponseScheduler *s, AvahiRecord *record, int flush_cache); void avahi_response_scheduler_suppress(AvahiResponseScheduler *s, AvahiRecord *record, const AvahiAddress *querier); #endif avahi-0.7/avahi-core/PaxHeaders.10109/querier-test.c0000644000000000000000000000013213130651643017014 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.147986899 avahi-0.7/avahi-core/querier-test.c0000644000175000017500000000764713130651643020441 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #define DOMAIN NULL #define SERVICE_TYPE "_http._tcp" static AvahiSServiceBrowser *service_browser1 = NULL, *service_browser2 = NULL; static const AvahiPoll * poll_api = NULL; static AvahiServer *server = NULL; static AvahiSimplePoll *simple_poll; static const char *browser_event_to_string(AvahiBrowserEvent event) { switch (event) { case AVAHI_BROWSER_NEW : return "NEW"; case AVAHI_BROWSER_REMOVE : return "REMOVE"; case AVAHI_BROWSER_CACHE_EXHAUSTED : return "CACHE_EXHAUSTED"; case AVAHI_BROWSER_ALL_FOR_NOW : return "ALL_FOR_NOW"; case AVAHI_BROWSER_FAILURE : return "FAILURE"; } abort(); } static void sb_callback( AvahiSServiceBrowser *b, AvahiIfIndex iface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *service_type, const char *domain, AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { avahi_log_debug("SB%i: (%i.%s) <%s> as <%s> in <%s> [%s] cached=%i", b == service_browser1 ? 1 : 2, iface, avahi_proto_to_string(protocol), name, service_type, domain, browser_event_to_string(event), !!(flags & AVAHI_LOOKUP_RESULT_CACHED)); } static void create_second_service_browser(AvahiTimeout *timeout, AVAHI_GCC_UNUSED void* userdata) { service_browser2 = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, SERVICE_TYPE, DOMAIN, 0, sb_callback, NULL); assert(service_browser2); poll_api->timeout_free(timeout); } static void quit(AVAHI_GCC_UNUSED AvahiTimeout *timeout, AVAHI_GCC_UNUSED void *userdata) { avahi_simple_poll_quit(simple_poll); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { struct timeval tv; AvahiServerConfig config; simple_poll = avahi_simple_poll_new(); assert(simple_poll); poll_api = avahi_simple_poll_get(simple_poll); assert(poll_api); avahi_server_config_init(&config); config.publish_hinfo = 0; config.publish_addresses = 0; config.publish_workstation = 0; config.publish_domain = 0; avahi_address_parse("192.168.50.1", AVAHI_PROTO_UNSPEC, &config.wide_area_servers[0]); config.n_wide_area_servers = 1; config.enable_wide_area = 1; server = avahi_server_new(poll_api, &config, NULL, NULL, NULL); assert(server); avahi_server_config_free(&config); service_browser1 = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, SERVICE_TYPE, DOMAIN, 0, sb_callback, NULL); assert(service_browser1); poll_api->timeout_new(poll_api, avahi_elapse_time(&tv, 10000, 0), create_second_service_browser, NULL); poll_api->timeout_new(poll_api, avahi_elapse_time(&tv, 60000, 0), quit, NULL); for (;;) if (avahi_simple_poll_iterate(simple_poll, -1) != 0) break; avahi_server_free(server); avahi_simple_poll_free(simple_poll); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/dns.c0000644000000000000000000000013213130651643015147 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.123987435 avahi-0.7/avahi-core/dns.c0000644000175000017500000005250313130651643016563 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include "dns.h" #include "log.h" AvahiDnsPacket* avahi_dns_packet_new(unsigned mtu) { AvahiDnsPacket *p; size_t max_size; if (mtu <= 0) max_size = AVAHI_DNS_PACKET_SIZE_MAX; else if (mtu >= AVAHI_DNS_PACKET_EXTRA_SIZE) max_size = mtu - AVAHI_DNS_PACKET_EXTRA_SIZE; else max_size = 0; if (max_size < AVAHI_DNS_PACKET_HEADER_SIZE) max_size = AVAHI_DNS_PACKET_HEADER_SIZE; if (!(p = avahi_malloc(sizeof(AvahiDnsPacket) + max_size))) return p; p->size = p->rindex = AVAHI_DNS_PACKET_HEADER_SIZE; p->max_size = max_size; p->res_size = 0; p->name_table = NULL; p->data = NULL; memset(AVAHI_DNS_PACKET_DATA(p), 0, p->size); return p; } AvahiDnsPacket* avahi_dns_packet_new_query(unsigned mtu) { AvahiDnsPacket *p; if (!(p = avahi_dns_packet_new(mtu))) return NULL; avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_FLAGS, AVAHI_DNS_FLAGS(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); return p; } AvahiDnsPacket* avahi_dns_packet_new_response(unsigned mtu, int aa) { AvahiDnsPacket *p; if (!(p = avahi_dns_packet_new(mtu))) return NULL; avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_FLAGS, AVAHI_DNS_FLAGS(1, 0, aa, 0, 0, 0, 0, 0, 0, 0)); return p; } AvahiDnsPacket* avahi_dns_packet_new_reply(AvahiDnsPacket* p, unsigned mtu, int copy_queries, int aa) { AvahiDnsPacket *r; assert(p); if (!(r = avahi_dns_packet_new_response(mtu, aa))) return NULL; if (copy_queries) { unsigned saved_rindex; uint32_t n; saved_rindex = p->rindex; p->rindex = AVAHI_DNS_PACKET_HEADER_SIZE; for (n = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT); n > 0; n--) { AvahiKey *k; int unicast_response; if ((k = avahi_dns_packet_consume_key(p, &unicast_response))) { avahi_dns_packet_append_key(r, k, unicast_response); avahi_key_unref(k); } } p->rindex = saved_rindex; avahi_dns_packet_set_field(r, AVAHI_DNS_FIELD_QDCOUNT, avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT)); } avahi_dns_packet_set_field(r, AVAHI_DNS_FIELD_ID, avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ID)); avahi_dns_packet_set_field(r, AVAHI_DNS_FIELD_FLAGS, (avahi_dns_packet_get_field(r, AVAHI_DNS_FIELD_FLAGS) & ~AVAHI_DNS_FLAG_OPCODE) | (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_FLAGS) & AVAHI_DNS_FLAG_OPCODE)); return r; } void avahi_dns_packet_free(AvahiDnsPacket *p) { assert(p); if (p->name_table) avahi_hashmap_free(p->name_table); avahi_free(p); } void avahi_dns_packet_set_field(AvahiDnsPacket *p, unsigned idx, uint16_t v) { assert(p); assert(idx < AVAHI_DNS_PACKET_HEADER_SIZE); ((uint16_t*) AVAHI_DNS_PACKET_DATA(p))[idx] = htons(v); } uint16_t avahi_dns_packet_get_field(AvahiDnsPacket *p, unsigned idx) { assert(p); assert(idx < AVAHI_DNS_PACKET_HEADER_SIZE); return ntohs(((uint16_t*) AVAHI_DNS_PACKET_DATA(p))[idx]); } void avahi_dns_packet_inc_field(AvahiDnsPacket *p, unsigned idx) { assert(p); assert(idx < AVAHI_DNS_PACKET_HEADER_SIZE); avahi_dns_packet_set_field(p, idx, avahi_dns_packet_get_field(p, idx) + 1); } static void name_table_cleanup(void *key, void *value, void *user_data) { AvahiDnsPacket *p = user_data; if ((uint8_t*) value >= AVAHI_DNS_PACKET_DATA(p) + p->size) avahi_hashmap_remove(p->name_table, key); } void avahi_dns_packet_cleanup_name_table(AvahiDnsPacket *p) { if (p->name_table) avahi_hashmap_foreach(p->name_table, name_table_cleanup, p); } uint8_t* avahi_dns_packet_append_name(AvahiDnsPacket *p, const char *name) { uint8_t *d, *saved_ptr = NULL; size_t saved_size; assert(p); assert(name); saved_size = p->size; saved_ptr = avahi_dns_packet_extend(p, 0); while (*name) { uint8_t* prev; const char *pname; char label[64], *u; /* Check whether we can compress this name. */ if (p->name_table && (prev = avahi_hashmap_lookup(p->name_table, name))) { unsigned idx; assert(prev >= AVAHI_DNS_PACKET_DATA(p)); idx = (unsigned) (prev - AVAHI_DNS_PACKET_DATA(p)); assert(idx < p->size); if (idx < 0x4000) { uint8_t *t; if (!(t = (uint8_t*) avahi_dns_packet_extend(p, sizeof(uint16_t)))) return NULL; t[0] = (uint8_t) ((0xC000 | idx) >> 8); t[1] = (uint8_t) idx; return saved_ptr; } } pname = name; if (!(avahi_unescape_label(&name, label, sizeof(label)))) goto fail; if (!(d = avahi_dns_packet_append_string(p, label))) goto fail; if (!p->name_table) /* This works only for normalized domain names */ p->name_table = avahi_hashmap_new(avahi_string_hash, avahi_string_equal, avahi_free, NULL); if (!(u = avahi_strdup(pname))) avahi_log_error("avahi_strdup() failed."); else avahi_hashmap_insert(p->name_table, u, d); } if (!(d = avahi_dns_packet_extend(p, 1))) goto fail; *d = 0; return saved_ptr; fail: p->size = saved_size; avahi_dns_packet_cleanup_name_table(p); return NULL; } uint8_t* avahi_dns_packet_append_uint16(AvahiDnsPacket *p, uint16_t v) { uint8_t *d; assert(p); if (!(d = avahi_dns_packet_extend(p, sizeof(uint16_t)))) return NULL; d[0] = (uint8_t) (v >> 8); d[1] = (uint8_t) v; return d; } uint8_t *avahi_dns_packet_append_uint32(AvahiDnsPacket *p, uint32_t v) { uint8_t *d; assert(p); if (!(d = avahi_dns_packet_extend(p, sizeof(uint32_t)))) return NULL; d[0] = (uint8_t) (v >> 24); d[1] = (uint8_t) (v >> 16); d[2] = (uint8_t) (v >> 8); d[3] = (uint8_t) v; return d; } uint8_t *avahi_dns_packet_append_bytes(AvahiDnsPacket *p, const void *b, size_t l) { uint8_t* d; assert(p); assert(b); assert(l); if (!(d = avahi_dns_packet_extend(p, l))) return NULL; memcpy(d, b, l); return d; } uint8_t* avahi_dns_packet_append_string(AvahiDnsPacket *p, const char *s) { uint8_t* d; size_t k; assert(p); assert(s); if ((k = strlen(s)) >= 255) k = 255; if (!(d = avahi_dns_packet_extend(p, k+1))) return NULL; *d = (uint8_t) k; memcpy(d+1, s, k); return d; } uint8_t *avahi_dns_packet_extend(AvahiDnsPacket *p, size_t l) { uint8_t *d; assert(p); if (p->size+l > p->max_size) return NULL; d = AVAHI_DNS_PACKET_DATA(p) + p->size; p->size += l; return d; } int avahi_dns_packet_check_valid(AvahiDnsPacket *p) { uint16_t flags; assert(p); if (p->size < AVAHI_DNS_PACKET_HEADER_SIZE) return -1; flags = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_FLAGS); if (flags & AVAHI_DNS_FLAG_OPCODE) return -1; return 0; } int avahi_dns_packet_check_valid_multicast(AvahiDnsPacket *p) { uint16_t flags; assert(p); if (avahi_dns_packet_check_valid(p) < 0) return -1; flags = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_FLAGS); if (flags & AVAHI_DNS_FLAG_RCODE) return -1; return 0; } int avahi_dns_packet_is_query(AvahiDnsPacket *p) { assert(p); return !(avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_FLAGS) & AVAHI_DNS_FLAG_QR); } static int consume_labels(AvahiDnsPacket *p, unsigned idx, char *ret_name, size_t l) { int ret = 0; int compressed = 0; int first_label = 1; unsigned label_ptr; int i; assert(p && ret_name && l); for (i = 0; i < AVAHI_DNS_LABELS_MAX; i++) { uint8_t n; if (idx+1 > p->size) return -1; n = AVAHI_DNS_PACKET_DATA(p)[idx]; if (!n) { idx++; if (!compressed) ret++; if (l < 1) return -1; *ret_name = 0; return ret; } else if (n <= 63) { /* Uncompressed label */ idx++; if (!compressed) ret++; if (idx + n > p->size) return -1; if ((size_t) n + 1 > l) return -1; if (!first_label) { *(ret_name++) = '.'; l--; } else first_label = 0; if (!(avahi_escape_label((char*) AVAHI_DNS_PACKET_DATA(p) + idx, n, &ret_name, &l))) return -1; idx += n; if (!compressed) ret += n; } else if ((n & 0xC0) == 0xC0) { /* Compressed label */ if (idx+2 > p->size) return -1; label_ptr = ((unsigned) (AVAHI_DNS_PACKET_DATA(p)[idx] & ~0xC0)) << 8 | AVAHI_DNS_PACKET_DATA(p)[idx+1]; if ((label_ptr < AVAHI_DNS_PACKET_HEADER_SIZE) || (label_ptr >= idx)) return -1; idx = label_ptr; if (!compressed) ret += 2; compressed = 1; } else return -1; } return -1; } int avahi_dns_packet_consume_name(AvahiDnsPacket *p, char *ret_name, size_t l) { int r; if ((r = consume_labels(p, p->rindex, ret_name, l)) < 0) return -1; p->rindex += r; return 0; } int avahi_dns_packet_consume_uint16(AvahiDnsPacket *p, uint16_t *ret_v) { uint8_t *d; assert(p); assert(ret_v); if (p->rindex + sizeof(uint16_t) > p->size) return -1; d = (uint8_t*) (AVAHI_DNS_PACKET_DATA(p) + p->rindex); *ret_v = (d[0] << 8) | d[1]; p->rindex += sizeof(uint16_t); return 0; } int avahi_dns_packet_consume_uint32(AvahiDnsPacket *p, uint32_t *ret_v) { uint8_t* d; assert(p); assert(ret_v); if (p->rindex + sizeof(uint32_t) > p->size) return -1; d = (uint8_t*) (AVAHI_DNS_PACKET_DATA(p) + p->rindex); *ret_v = (d[0] << 24) | (d[1] << 16) | (d[2] << 8) | d[3]; p->rindex += sizeof(uint32_t); return 0; } int avahi_dns_packet_consume_bytes(AvahiDnsPacket *p, void * ret_data, size_t l) { assert(p); assert(ret_data); assert(l > 0); if (p->rindex + l > p->size) return -1; memcpy(ret_data, AVAHI_DNS_PACKET_DATA(p) + p->rindex, l); p->rindex += l; return 0; } int avahi_dns_packet_consume_string(AvahiDnsPacket *p, char *ret_string, size_t l) { size_t k; assert(p); assert(ret_string); assert(l > 0); if (p->rindex >= p->size) return -1; k = AVAHI_DNS_PACKET_DATA(p)[p->rindex]; if (p->rindex+1+k > p->size) return -1; if (l > k+1) l = k+1; memcpy(ret_string, AVAHI_DNS_PACKET_DATA(p)+p->rindex+1, l-1); ret_string[l-1] = 0; p->rindex += 1+k; return 0; } const void* avahi_dns_packet_get_rptr(AvahiDnsPacket *p) { assert(p); if (p->rindex > p->size) return NULL; return AVAHI_DNS_PACKET_DATA(p) + p->rindex; } int avahi_dns_packet_skip(AvahiDnsPacket *p, size_t length) { assert(p); if (p->rindex + length > p->size) return -1; p->rindex += length; return 0; } static int parse_rdata(AvahiDnsPacket *p, AvahiRecord *r, uint16_t rdlength) { char buf[AVAHI_DOMAIN_NAME_MAX]; const void* start; assert(p); assert(r); start = avahi_dns_packet_get_rptr(p); switch (r->key->type) { case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: if (avahi_dns_packet_consume_name(p, buf, sizeof(buf)) < 0) return -1; r->data.ptr.name = avahi_strdup(buf); break; case AVAHI_DNS_TYPE_SRV: if (avahi_dns_packet_consume_uint16(p, &r->data.srv.priority) < 0 || avahi_dns_packet_consume_uint16(p, &r->data.srv.weight) < 0 || avahi_dns_packet_consume_uint16(p, &r->data.srv.port) < 0 || avahi_dns_packet_consume_name(p, buf, sizeof(buf)) < 0) return -1; r->data.srv.name = avahi_strdup(buf); break; case AVAHI_DNS_TYPE_HINFO: if (avahi_dns_packet_consume_string(p, buf, sizeof(buf)) < 0) return -1; r->data.hinfo.cpu = avahi_strdup(buf); if (avahi_dns_packet_consume_string(p, buf, sizeof(buf)) < 0) return -1; r->data.hinfo.os = avahi_strdup(buf); break; case AVAHI_DNS_TYPE_TXT: if (rdlength > 0) { if (avahi_string_list_parse(avahi_dns_packet_get_rptr(p), rdlength, &r->data.txt.string_list) < 0) return -1; if (avahi_dns_packet_skip(p, rdlength) < 0) return -1; } else r->data.txt.string_list = NULL; break; case AVAHI_DNS_TYPE_A: /* avahi_log_debug("A"); */ if (avahi_dns_packet_consume_bytes(p, &r->data.a.address, sizeof(AvahiIPv4Address)) < 0) return -1; break; case AVAHI_DNS_TYPE_AAAA: /* avahi_log_debug("aaaa"); */ if (avahi_dns_packet_consume_bytes(p, &r->data.aaaa.address, sizeof(AvahiIPv6Address)) < 0) return -1; break; default: /* avahi_log_debug("generic"); */ if (rdlength > 0) { r->data.generic.data = avahi_memdup(avahi_dns_packet_get_rptr(p), rdlength); r->data.generic.size = rdlength; if (avahi_dns_packet_skip(p, rdlength) < 0) return -1; } break; } /* Check if we read enough data */ if ((const uint8_t*) avahi_dns_packet_get_rptr(p) - (const uint8_t*) start != rdlength) return -1; return 0; } AvahiRecord* avahi_dns_packet_consume_record(AvahiDnsPacket *p, int *ret_cache_flush) { char name[AVAHI_DOMAIN_NAME_MAX]; uint16_t type, class; uint32_t ttl; uint16_t rdlength; AvahiRecord *r = NULL; assert(p); if (avahi_dns_packet_consume_name(p, name, sizeof(name)) < 0 || avahi_dns_packet_consume_uint16(p, &type) < 0 || avahi_dns_packet_consume_uint16(p, &class) < 0 || avahi_dns_packet_consume_uint32(p, &ttl) < 0 || avahi_dns_packet_consume_uint16(p, &rdlength) < 0 || p->rindex + rdlength > p->size) goto fail; if (ret_cache_flush) *ret_cache_flush = !!(class & AVAHI_DNS_CACHE_FLUSH); class &= ~AVAHI_DNS_CACHE_FLUSH; if (!(r = avahi_record_new_full(name, class, type, ttl))) goto fail; if (parse_rdata(p, r, rdlength) < 0) goto fail; if (!avahi_record_is_valid(r)) goto fail; return r; fail: if (r) avahi_record_unref(r); return NULL; } AvahiKey* avahi_dns_packet_consume_key(AvahiDnsPacket *p, int *ret_unicast_response) { char name[256]; uint16_t type, class; AvahiKey *k; assert(p); if (avahi_dns_packet_consume_name(p, name, sizeof(name)) < 0 || avahi_dns_packet_consume_uint16(p, &type) < 0 || avahi_dns_packet_consume_uint16(p, &class) < 0) return NULL; if (ret_unicast_response) *ret_unicast_response = !!(class & AVAHI_DNS_UNICAST_RESPONSE); class &= ~AVAHI_DNS_UNICAST_RESPONSE; if (!(k = avahi_key_new(name, class, type))) return NULL; if (!avahi_key_is_valid(k)) { avahi_key_unref(k); return NULL; } return k; } uint8_t* avahi_dns_packet_append_key(AvahiDnsPacket *p, AvahiKey *k, int unicast_response) { uint8_t *t; size_t size; assert(p); assert(k); size = p->size; if (!(t = avahi_dns_packet_append_name(p, k->name)) || !avahi_dns_packet_append_uint16(p, k->type) || !avahi_dns_packet_append_uint16(p, k->clazz | (unicast_response ? AVAHI_DNS_UNICAST_RESPONSE : 0))) { p->size = size; avahi_dns_packet_cleanup_name_table(p); return NULL; } return t; } static int append_rdata(AvahiDnsPacket *p, AvahiRecord *r) { assert(p); assert(r); switch (r->key->type) { case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: if (!(avahi_dns_packet_append_name(p, r->data.ptr.name))) return -1; break; case AVAHI_DNS_TYPE_SRV: if (!avahi_dns_packet_append_uint16(p, r->data.srv.priority) || !avahi_dns_packet_append_uint16(p, r->data.srv.weight) || !avahi_dns_packet_append_uint16(p, r->data.srv.port) || !avahi_dns_packet_append_name(p, r->data.srv.name)) return -1; break; case AVAHI_DNS_TYPE_HINFO: if (!avahi_dns_packet_append_string(p, r->data.hinfo.cpu) || !avahi_dns_packet_append_string(p, r->data.hinfo.os)) return -1; break; case AVAHI_DNS_TYPE_TXT: { uint8_t *data; size_t n; n = avahi_string_list_serialize(r->data.txt.string_list, NULL, 0); if (!(data = avahi_dns_packet_extend(p, n))) return -1; avahi_string_list_serialize(r->data.txt.string_list, data, n); break; } case AVAHI_DNS_TYPE_A: if (!avahi_dns_packet_append_bytes(p, &r->data.a.address, sizeof(r->data.a.address))) return -1; break; case AVAHI_DNS_TYPE_AAAA: if (!avahi_dns_packet_append_bytes(p, &r->data.aaaa.address, sizeof(r->data.aaaa.address))) return -1; break; default: if (r->data.generic.size) if (!avahi_dns_packet_append_bytes(p, r->data.generic.data, r->data.generic.size)) return -1; break; } return 0; } uint8_t* avahi_dns_packet_append_record(AvahiDnsPacket *p, AvahiRecord *r, int cache_flush, unsigned max_ttl) { uint8_t *t, *l, *start; size_t size; assert(p); assert(r); size = p->size; if (!(t = avahi_dns_packet_append_name(p, r->key->name)) || !avahi_dns_packet_append_uint16(p, r->key->type) || !avahi_dns_packet_append_uint16(p, cache_flush ? (r->key->clazz | AVAHI_DNS_CACHE_FLUSH) : (r->key->clazz &~ AVAHI_DNS_CACHE_FLUSH)) || !avahi_dns_packet_append_uint32(p, (max_ttl && r->ttl > max_ttl) ? max_ttl : r->ttl) || !(l = avahi_dns_packet_append_uint16(p, 0))) goto fail; start = avahi_dns_packet_extend(p, 0); if (append_rdata(p, r) < 0) goto fail; size = avahi_dns_packet_extend(p, 0) - start; assert(size <= AVAHI_DNS_RDATA_MAX); /* avahi_log_debug("appended %u", size); */ l[0] = (uint8_t) ((uint16_t) size >> 8); l[1] = (uint8_t) ((uint16_t) size); return t; fail: p->size = size; avahi_dns_packet_cleanup_name_table(p); return NULL; } int avahi_dns_packet_is_empty(AvahiDnsPacket *p) { assert(p); return p->size <= AVAHI_DNS_PACKET_HEADER_SIZE; } size_t avahi_dns_packet_space(AvahiDnsPacket *p) { assert(p); assert(p->size <= p->max_size); return p->max_size - p->size; } size_t avahi_dns_packet_reserve_size(AvahiDnsPacket *p, size_t res_size) { assert(p); assert(p->size + p->res_size <= p->max_size); if ((p->size + p->res_size + res_size) <= p->max_size) p->res_size += res_size; return p->res_size; } size_t avahi_dns_packet_reserved_space(AvahiDnsPacket *p) { assert(p); assert(p->size + p->res_size <= p->max_size); return p->max_size - p->size - p->res_size; } int avahi_rdata_parse(AvahiRecord *record, const void* rdata, size_t size) { int ret; AvahiDnsPacket p; assert(record); assert(rdata); p.data = (void*) rdata; p.max_size = p.size = size; p.rindex = 0; p.name_table = NULL; ret = parse_rdata(&p, record, size); assert(!p.name_table); return ret; } size_t avahi_rdata_serialize(AvahiRecord *record, void *rdata, size_t max_size) { int ret; AvahiDnsPacket p; assert(record); assert(rdata); assert(max_size > 0); p.data = (void*) rdata; p.max_size = max_size; p.size = p.rindex = 0; p.name_table = NULL; ret = append_rdata(&p, record); if (p.name_table) avahi_hashmap_free(p.name_table); if (ret < 0) return (size_t) -1; return p.size; } avahi-0.7/avahi-core/PaxHeaders.10109/multicast-lookup.h0000644000000000000000000000013213130651643017704 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.135987166 avahi-0.7/avahi-core/multicast-lookup.h0000644000175000017500000000412613130651643021316 0ustar00lathiatlathiat00000000000000#ifndef foomulticastlookuphfoo #define foomulticastlookuphfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include "lookup.h" #include "browse.h" typedef struct AvahiMulticastLookupEngine AvahiMulticastLookupEngine; typedef struct AvahiMulticastLookup AvahiMulticastLookup; typedef void (*AvahiMulticastLookupCallback)( AvahiMulticastLookupEngine *e, AvahiIfIndex idx, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiLookupResultFlags flags, AvahiRecord *r, void *userdata); AvahiMulticastLookupEngine *avahi_multicast_lookup_engine_new(AvahiServer *s); void avahi_multicast_lookup_engine_free(AvahiMulticastLookupEngine *e); unsigned avahi_multicast_lookup_engine_scan_cache(AvahiMulticastLookupEngine *e, AvahiIfIndex idx, AvahiProtocol protocol, AvahiKey *key, AvahiMulticastLookupCallback callback, void *userdata); void avahi_multicast_lookup_engine_new_interface(AvahiMulticastLookupEngine *e, AvahiInterface *i); void avahi_multicast_lookup_engine_cleanup(AvahiMulticastLookupEngine *e); void avahi_multicast_lookup_engine_notify(AvahiMulticastLookupEngine *e, AvahiInterface *i, AvahiRecord *record, AvahiBrowserEvent event); AvahiMulticastLookup *avahi_multicast_lookup_new(AvahiMulticastLookupEngine *e, AvahiIfIndex idx, AvahiProtocol protocol, AvahiKey *key, AvahiMulticastLookupCallback callback, void *userdata); void avahi_multicast_lookup_free(AvahiMulticastLookup *q); #endif avahi-0.7/avahi-core/PaxHeaders.10109/timeeventq.c0000644000000000000000000000013213130651643016544 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.103987881 avahi-0.7/avahi-core/timeeventq.c0000644000175000017500000001221013130651643020147 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "timeeventq.h" #include "log.h" struct AvahiTimeEvent { AvahiTimeEventQueue *queue; AvahiPrioQueueNode *node; struct timeval expiry; struct timeval last_run; AvahiTimeEventCallback callback; void* userdata; }; struct AvahiTimeEventQueue { const AvahiPoll *poll_api; AvahiPrioQueue *prioq; AvahiTimeout *timeout; }; static int compare(const void* _a, const void* _b) { const AvahiTimeEvent *a = _a, *b = _b; int ret; if ((ret = avahi_timeval_compare(&a->expiry, &b->expiry)) != 0) return ret; /* If both exevents are scheduled for the same time, put the entry * that has been run earlier the last time first. */ return avahi_timeval_compare(&a->last_run, &b->last_run); } static AvahiTimeEvent* time_event_queue_root(AvahiTimeEventQueue *q) { assert(q); return q->prioq->root ? q->prioq->root->data : NULL; } static void update_timeout(AvahiTimeEventQueue *q) { AvahiTimeEvent *e; assert(q); if ((e = time_event_queue_root(q))) q->poll_api->timeout_update(q->timeout, &e->expiry); else q->poll_api->timeout_update(q->timeout, NULL); } static void expiration_event(AVAHI_GCC_UNUSED AvahiTimeout *timeout, void *userdata) { AvahiTimeEventQueue *q = userdata; AvahiTimeEvent *e; if ((e = time_event_queue_root(q))) { struct timeval now; gettimeofday(&now, NULL); /* Check if expired */ if (avahi_timeval_compare(&now, &e->expiry) >= 0) { /* Make sure to move the entry away from the front */ e->last_run = now; avahi_prio_queue_shuffle(q->prioq, e->node); /* Run it */ assert(e->callback); e->callback(e, e->userdata); update_timeout(q); return; } } avahi_log_debug(__FILE__": Strange, expiration_event() called, but nothing really happened."); update_timeout(q); } static void fix_expiry_time(AvahiTimeEvent *e) { struct timeval now; assert(e); return; /*** DO WE REALLY NEED THIS? ***/ gettimeofday(&now, NULL); if (avahi_timeval_compare(&now, &e->expiry) > 0) e->expiry = now; } AvahiTimeEventQueue* avahi_time_event_queue_new(const AvahiPoll *poll_api) { AvahiTimeEventQueue *q; if (!(q = avahi_new(AvahiTimeEventQueue, 1))) { avahi_log_error(__FILE__": Out of memory"); goto oom; } q->poll_api = poll_api; if (!(q->prioq = avahi_prio_queue_new(compare))) goto oom; if (!(q->timeout = poll_api->timeout_new(poll_api, NULL, expiration_event, q))) goto oom; return q; oom: if (q) { avahi_free(q); if (q->prioq) avahi_prio_queue_free(q->prioq); } return NULL; } void avahi_time_event_queue_free(AvahiTimeEventQueue *q) { AvahiTimeEvent *e; assert(q); while ((e = time_event_queue_root(q))) avahi_time_event_free(e); avahi_prio_queue_free(q->prioq); q->poll_api->timeout_free(q->timeout); avahi_free(q); } AvahiTimeEvent* avahi_time_event_new( AvahiTimeEventQueue *q, const struct timeval *timeval, AvahiTimeEventCallback callback, void* userdata) { AvahiTimeEvent *e; assert(q); assert(callback); assert(userdata); if (!(e = avahi_new(AvahiTimeEvent, 1))) { avahi_log_error(__FILE__": Out of memory"); return NULL; /* OOM */ } e->queue = q; e->callback = callback; e->userdata = userdata; if (timeval) e->expiry = *timeval; else { e->expiry.tv_sec = 0; e->expiry.tv_usec = 0; } fix_expiry_time(e); e->last_run.tv_sec = 0; e->last_run.tv_usec = 0; if (!(e->node = avahi_prio_queue_put(q->prioq, e))) { avahi_free(e); return NULL; } update_timeout(q); return e; } void avahi_time_event_free(AvahiTimeEvent *e) { AvahiTimeEventQueue *q; assert(e); q = e->queue; avahi_prio_queue_remove(q->prioq, e->node); avahi_free(e); update_timeout(q); } void avahi_time_event_update(AvahiTimeEvent *e, const struct timeval *timeval) { assert(e); assert(timeval); e->expiry = *timeval; fix_expiry_time(e); avahi_prio_queue_shuffle(e->queue->prioq, e->node); update_timeout(e->queue); } avahi-0.7/avahi-core/PaxHeaders.10109/multicast-lookup.c0000644000000000000000000000013213130651643017677 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.131987255 avahi-0.7/avahi-core/multicast-lookup.c0000644000175000017500000002204113130651643021305 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "internal.h" #include "browse.h" #include "socket.h" #include "log.h" #include "hashmap.h" #include "multicast-lookup.h" #include "rr-util.h" struct AvahiMulticastLookup { AvahiMulticastLookupEngine *engine; int dead; AvahiKey *key, *cname_key; AvahiMulticastLookupCallback callback; void *userdata; AvahiIfIndex interface; AvahiProtocol protocol; int queriers_added; AvahiTimeEvent *all_for_now_event; AVAHI_LLIST_FIELDS(AvahiMulticastLookup, lookups); AVAHI_LLIST_FIELDS(AvahiMulticastLookup, by_key); }; struct AvahiMulticastLookupEngine { AvahiServer *server; /* Lookups */ AVAHI_LLIST_HEAD(AvahiMulticastLookup, lookups); AvahiHashmap *lookups_by_key; int cleanup_dead; }; static void all_for_now_callback(AvahiTimeEvent *e, void* userdata) { AvahiMulticastLookup *l = userdata; assert(e); assert(l); avahi_time_event_free(l->all_for_now_event); l->all_for_now_event = NULL; l->callback(l->engine, l->interface, l->protocol, AVAHI_BROWSER_ALL_FOR_NOW, AVAHI_LOOKUP_RESULT_MULTICAST, NULL, l->userdata); } AvahiMulticastLookup *avahi_multicast_lookup_new( AvahiMulticastLookupEngine *e, AvahiIfIndex interface, AvahiProtocol protocol, AvahiKey *key, AvahiMulticastLookupCallback callback, void *userdata) { AvahiMulticastLookup *l, *t; struct timeval tv; assert(e); assert(AVAHI_IF_VALID(interface)); assert(AVAHI_PROTO_VALID(protocol)); assert(key); assert(callback); l = avahi_new(AvahiMulticastLookup, 1); l->engine = e; l->dead = 0; l->key = avahi_key_ref(key); l->cname_key = avahi_key_new_cname(l->key); l->callback = callback; l->userdata = userdata; l->interface = interface; l->protocol = protocol; l->all_for_now_event = NULL; l->queriers_added = 0; t = avahi_hashmap_lookup(e->lookups_by_key, l->key); AVAHI_LLIST_PREPEND(AvahiMulticastLookup, by_key, t, l); avahi_hashmap_replace(e->lookups_by_key, avahi_key_ref(l->key), t); AVAHI_LLIST_PREPEND(AvahiMulticastLookup, lookups, e->lookups, l); avahi_querier_add_for_all(e->server, interface, protocol, l->key, &tv); l->queriers_added = 1; /* Add a second */ avahi_timeval_add(&tv, 1000000); /* Issue the ALL_FOR_NOW event one second after the querier was initially created */ l->all_for_now_event = avahi_time_event_new(e->server->time_event_queue, &tv, all_for_now_callback, l); return l; } static void lookup_stop(AvahiMulticastLookup *l) { assert(l); l->callback = NULL; if (l->queriers_added) { avahi_querier_remove_for_all(l->engine->server, l->interface, l->protocol, l->key); l->queriers_added = 0; } if (l->all_for_now_event) { avahi_time_event_free(l->all_for_now_event); l->all_for_now_event = NULL; } } static void lookup_destroy(AvahiMulticastLookup *l) { AvahiMulticastLookup *t; assert(l); lookup_stop(l); t = avahi_hashmap_lookup(l->engine->lookups_by_key, l->key); AVAHI_LLIST_REMOVE(AvahiMulticastLookup, by_key, t, l); if (t) avahi_hashmap_replace(l->engine->lookups_by_key, avahi_key_ref(l->key), t); else avahi_hashmap_remove(l->engine->lookups_by_key, l->key); AVAHI_LLIST_REMOVE(AvahiMulticastLookup, lookups, l->engine->lookups, l); if (l->key) avahi_key_unref(l->key); if (l->cname_key) avahi_key_unref(l->cname_key); avahi_free(l); } void avahi_multicast_lookup_free(AvahiMulticastLookup *l) { assert(l); if (l->dead) return; l->dead = 1; l->engine->cleanup_dead = 1; lookup_stop(l); } void avahi_multicast_lookup_engine_cleanup(AvahiMulticastLookupEngine *e) { AvahiMulticastLookup *l, *n; assert(e); while (e->cleanup_dead) { e->cleanup_dead = 0; for (l = e->lookups; l; l = n) { n = l->lookups_next; if (l->dead) lookup_destroy(l); } } } struct cbdata { AvahiMulticastLookupEngine *engine; AvahiMulticastLookupCallback callback; void *userdata; AvahiKey *key, *cname_key; AvahiInterface *interface; unsigned n_found; }; static void* scan_cache_callback(AvahiCache *c, AvahiKey *pattern, AvahiCacheEntry *e, void* userdata) { struct cbdata *cbdata = userdata; assert(c); assert(pattern); assert(e); assert(cbdata); cbdata->callback( cbdata->engine, cbdata->interface->hardware->index, cbdata->interface->protocol, AVAHI_BROWSER_NEW, AVAHI_LOOKUP_RESULT_CACHED|AVAHI_LOOKUP_RESULT_MULTICAST, e->record, cbdata->userdata); cbdata->n_found ++; return NULL; } static void scan_interface_callback(AvahiInterfaceMonitor *m, AvahiInterface *i, void* userdata) { struct cbdata *cbdata = userdata; assert(m); assert(i); assert(cbdata); cbdata->interface = i; avahi_cache_walk(i->cache, cbdata->key, scan_cache_callback, cbdata); if (cbdata->cname_key) avahi_cache_walk(i->cache, cbdata->cname_key, scan_cache_callback, cbdata); cbdata->interface = NULL; } unsigned avahi_multicast_lookup_engine_scan_cache( AvahiMulticastLookupEngine *e, AvahiIfIndex interface, AvahiProtocol protocol, AvahiKey *key, AvahiMulticastLookupCallback callback, void *userdata) { struct cbdata cbdata; assert(e); assert(key); assert(callback); assert(AVAHI_IF_VALID(interface)); assert(AVAHI_PROTO_VALID(protocol)); cbdata.engine = e; cbdata.key = key; cbdata.cname_key = avahi_key_new_cname(key); cbdata.callback = callback; cbdata.userdata = userdata; cbdata.interface = NULL; cbdata.n_found = 0; avahi_interface_monitor_walk(e->server->monitor, interface, protocol, scan_interface_callback, &cbdata); if (cbdata.cname_key) avahi_key_unref(cbdata.cname_key); return cbdata.n_found; } void avahi_multicast_lookup_engine_new_interface(AvahiMulticastLookupEngine *e, AvahiInterface *i) { AvahiMulticastLookup *l; assert(e); assert(i); for (l = e->lookups; l; l = l->lookups_next) { if (l->dead || !l->callback) continue; if (l->queriers_added && avahi_interface_match(i, l->interface, l->protocol)) avahi_querier_add(i, l->key, NULL); } } void avahi_multicast_lookup_engine_notify(AvahiMulticastLookupEngine *e, AvahiInterface *i, AvahiRecord *record, AvahiBrowserEvent event) { AvahiMulticastLookup *l; assert(e); assert(record); assert(i); for (l = avahi_hashmap_lookup(e->lookups_by_key, record->key); l; l = l->by_key_next) { if (l->dead || !l->callback) continue; if (avahi_interface_match(i, l->interface, l->protocol)) l->callback(e, i->hardware->index, i->protocol, event, AVAHI_LOOKUP_RESULT_MULTICAST, record, l->userdata); } if (record->key->clazz == AVAHI_DNS_CLASS_IN && record->key->type == AVAHI_DNS_TYPE_CNAME) { /* It's a CNAME record, so we have to scan the all lookups to see if one matches */ for (l = e->lookups; l; l = l->lookups_next) { AvahiKey *key; if (l->dead || !l->callback) continue; if ((key = avahi_key_new_cname(l->key))) { if (avahi_key_equal(record->key, key)) l->callback(e, i->hardware->index, i->protocol, event, AVAHI_LOOKUP_RESULT_MULTICAST, record, l->userdata); avahi_key_unref(key); } } } } AvahiMulticastLookupEngine *avahi_multicast_lookup_engine_new(AvahiServer *s) { AvahiMulticastLookupEngine *e; assert(s); e = avahi_new(AvahiMulticastLookupEngine, 1); e->server = s; e->cleanup_dead = 0; /* Initialize lookup list */ e->lookups_by_key = avahi_hashmap_new((AvahiHashFunc) avahi_key_hash, (AvahiEqualFunc) avahi_key_equal, (AvahiFreeFunc) avahi_key_unref, NULL); AVAHI_LLIST_HEAD_INIT(AvahiWideAreaLookup, e->lookups); return e; } void avahi_multicast_lookup_engine_free(AvahiMulticastLookupEngine *e) { assert(e); while (e->lookups) lookup_destroy(e->lookups); avahi_hashmap_free(e->lookups_by_key); avahi_free(e); } avahi-0.7/avahi-core/PaxHeaders.10109/fdutil.c0000644000000000000000000000013213130651643015652 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.127987345 avahi-0.7/avahi-core/fdutil.c0000644000175000017500000000301013130651643017253 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "fdutil.h" int avahi_set_cloexec(int fd) { int n; assert(fd >= 0); if ((n = fcntl(fd, F_GETFD)) < 0) return -1; if (n & FD_CLOEXEC) return 0; return fcntl(fd, F_SETFD, n|FD_CLOEXEC); } int avahi_set_nonblock(int fd) { int n; assert(fd >= 0); if ((n = fcntl(fd, F_GETFL)) < 0) return -1; if (n & O_NONBLOCK) return 0; return fcntl(fd, F_SETFL, n|O_NONBLOCK); } int avahi_wait_for_write(int fd) { fd_set fds; int r; FD_ZERO(&fds); FD_SET(fd, &fds); if ((r = select(fd+1, NULL, &fds, NULL, NULL)) < 0) return -1; assert(r > 0); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/iface.h0000644000000000000000000000013213130651643015437 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.103987881 avahi-0.7/avahi-core/iface.h0000644000175000017500000001475113130651643017056 0ustar00lathiatlathiat00000000000000#ifndef fooifacehfoo #define fooifacehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiInterfaceMonitor AvahiInterfaceMonitor; typedef struct AvahiInterfaceAddress AvahiInterfaceAddress; typedef struct AvahiInterface AvahiInterface; typedef struct AvahiHwInterface AvahiHwInterface; #include #include #include "internal.h" #include "cache.h" #include "response-sched.h" #include "query-sched.h" #include "probe-sched.h" #include "dns.h" #include "announce.h" #include "browse.h" #include "querier.h" #ifdef HAVE_NETLINK #include "iface-linux.h" #elif defined(HAVE_PF_ROUTE) #include "iface-pfroute.h" #else typedef struct AvahiInterfaceMonitorOSDep AvahiInterfaceMonitorOSDep; struct AvahiInterfaceMonitorOSDep { unsigned query_addr_seq, query_link_seq; enum { LIST_IFACE, LIST_ADDR, LIST_DONE } list; }; #endif #define AVAHI_MAC_ADDRESS_MAX 32 struct AvahiInterfaceMonitor { AvahiServer *server; AvahiHashmap *hashmap; AVAHI_LLIST_HEAD(AvahiInterface, interfaces); AVAHI_LLIST_HEAD(AvahiHwInterface, hw_interfaces); int list_complete; AvahiInterfaceMonitorOSDep osdep; }; struct AvahiHwInterface { AvahiInterfaceMonitor *monitor; AVAHI_LLIST_FIELDS(AvahiHwInterface, hardware); char *name; AvahiIfIndex index; int flags_ok; unsigned mtu; uint8_t mac_address[AVAHI_MAC_ADDRESS_MAX]; size_t mac_address_size; AvahiSEntryGroup *entry_group; /* Packet rate limiting */ struct timeval ratelimit_begin; unsigned ratelimit_counter; AVAHI_LLIST_HEAD(AvahiInterface, interfaces); }; struct AvahiInterface { AvahiInterfaceMonitor *monitor; AvahiHwInterface *hardware; AVAHI_LLIST_FIELDS(AvahiInterface, interface); AVAHI_LLIST_FIELDS(AvahiInterface, by_hardware); AvahiProtocol protocol; int announcing; AvahiAddress local_mcast_address; int mcast_joined; AvahiCache *cache; AvahiQueryScheduler *query_scheduler; AvahiResponseScheduler * response_scheduler; AvahiProbeScheduler *probe_scheduler; AVAHI_LLIST_HEAD(AvahiInterfaceAddress, addresses); AVAHI_LLIST_HEAD(AvahiAnnouncer, announcers); AvahiHashmap *queriers_by_key; AVAHI_LLIST_HEAD(AvahiQuerier, queriers); }; struct AvahiInterfaceAddress { AvahiInterfaceMonitor *monitor; AvahiInterface *interface; AVAHI_LLIST_FIELDS(AvahiInterfaceAddress, address); AvahiAddress address; unsigned prefix_len; int global_scope; int deprecated; AvahiSEntryGroup *entry_group; }; AvahiInterfaceMonitor *avahi_interface_monitor_new(AvahiServer *server); void avahi_interface_monitor_free(AvahiInterfaceMonitor *m); int avahi_interface_monitor_init_osdep(AvahiInterfaceMonitor *m); void avahi_interface_monitor_free_osdep(AvahiInterfaceMonitor *m); void avahi_interface_monitor_sync(AvahiInterfaceMonitor *m); typedef void (*AvahiInterfaceMonitorWalkCallback)(AvahiInterfaceMonitor *m, AvahiInterface *i, void* userdata); void avahi_interface_monitor_walk(AvahiInterfaceMonitor *m, AvahiIfIndex idx, AvahiProtocol protocol, AvahiInterfaceMonitorWalkCallback callback, void* userdata); int avahi_dump_caches(AvahiInterfaceMonitor *m, AvahiDumpCallback callback, void* userdata); void avahi_interface_monitor_update_rrs(AvahiInterfaceMonitor *m, int remove_rrs); int avahi_address_is_local(AvahiInterfaceMonitor *m, const AvahiAddress *a); void avahi_interface_monitor_check_relevant(AvahiInterfaceMonitor *m); /* AvahiHwInterface */ AvahiHwInterface *avahi_hw_interface_new(AvahiInterfaceMonitor *m, AvahiIfIndex idx); void avahi_hw_interface_free(AvahiHwInterface *hw, int send_goodbye); void avahi_hw_interface_update_rrs(AvahiHwInterface *hw, int remove_rrs); void avahi_hw_interface_check_relevant(AvahiHwInterface *hw); AvahiHwInterface* avahi_interface_monitor_get_hw_interface(AvahiInterfaceMonitor *m, int idx); /* AvahiInterface */ AvahiInterface* avahi_interface_new(AvahiInterfaceMonitor *m, AvahiHwInterface *hw, AvahiProtocol protocol); void avahi_interface_free(AvahiInterface *i, int send_goodbye); void avahi_interface_update_rrs(AvahiInterface *i, int remove_rrs); void avahi_interface_check_relevant(AvahiInterface *i); int avahi_interface_is_relevant(AvahiInterface *i); void avahi_interface_send_packet(AvahiInterface *i, AvahiDnsPacket *p); void avahi_interface_send_packet_unicast(AvahiInterface *i, AvahiDnsPacket *p, const AvahiAddress *a, uint16_t port); int avahi_interface_post_query(AvahiInterface *i, AvahiKey *k, int immediately, unsigned *ret_id); int avahi_interface_withraw_query(AvahiInterface *i, unsigned id); int avahi_interface_post_response(AvahiInterface *i, AvahiRecord *record, int flush_cache, const AvahiAddress *querier, int immediately); int avahi_interface_post_probe(AvahiInterface *i, AvahiRecord *p, int immediately); int avahi_interface_match(AvahiInterface *i, AvahiIfIndex idx, AvahiProtocol protocol); int avahi_interface_address_on_link(AvahiInterface *i, const AvahiAddress *a); int avahi_interface_has_address(AvahiInterfaceMonitor *m, AvahiIfIndex iface, const AvahiAddress *a); AvahiInterface* avahi_interface_monitor_get_interface(AvahiInterfaceMonitor *m, AvahiIfIndex idx, AvahiProtocol protocol); /* AvahiInterfaceAddress */ AvahiInterfaceAddress *avahi_interface_address_new(AvahiInterfaceMonitor *m, AvahiInterface *i, const AvahiAddress *addr, unsigned prefix_len); void avahi_interface_address_free(AvahiInterfaceAddress *a); void avahi_interface_address_update_rrs(AvahiInterfaceAddress *a, int remove_rrs); int avahi_interface_address_is_relevant(AvahiInterfaceAddress *a); AvahiInterfaceAddress* avahi_interface_monitor_get_address(AvahiInterfaceMonitor *m, AvahiInterface *i, const AvahiAddress *raddr); AvahiIfIndex avahi_find_interface_for_address(AvahiInterfaceMonitor *m, const AvahiAddress *a); #endif avahi-0.7/avahi-core/PaxHeaders.10109/dns-spin-test.c0000644000000000000000000000013213130651643017073 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.143986985 avahi-0.7/avahi-core/dns-spin-test.c0000644000175000017500000000646213130651643020512 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /* Regression test for Avahi bug #84. * This program tests whether the avahi_dns_packet_consume_name function * returns (rather than spinning forever). For a function as simple as * avahi_dns_packet_consume_name, we assume that 1 second of CPU time ≈ forever */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include "dns.h" #define MAX_CPU_SECONDS 1 #define TEST_NAME "dns-spin-test" static void fail(const char *fmt, ...) __attribute__((format(printf, 1, 2), noreturn)); static void unresolved(const char *fmt, ...) __attribute__((format(printf, 1, 2), noreturn)); static void stdlib_fail(const char *msg) __attribute__((noreturn)); static void handle(int sig) __attribute__((noreturn)); void stdlib_fail(const char *msg) { perror(msg); printf("UNRESOLVED: " TEST_NAME " (stdlib failure)\n"); exit(77); } void unresolved(const char *fmt, ...) { va_list ap; printf("UNRESOLVED: " TEST_NAME ": "); va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); printf("\n"); exit(77); } void fail(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); printf("\n"); exit(EXIT_FAILURE); } void handle(AVAHI_GCC_UNUSED int sig) { fail("Interrupted after %d second of CPU time", MAX_CPU_SECONDS); } #define TRY_EXCEPT(cmd, badresult) \ do { \ if ((cmd) == (badresult)) \ unresolved("%s returned %s", #cmd, #badresult); \ } while (0) int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { struct itimerval itval; AvahiDnsPacket *packet; char name[512]; int ret; uint8_t badrr[] = { 0xC0, AVAHI_DNS_PACKET_HEADER_SIZE, /* self-referential QNAME pointer */ 0, 1, /* QTYPE A (host addr) */ 0, 1, /* QCLASS IN (internet/ipv4) */ }; if (signal(SIGVTALRM, handle) == SIG_ERR) stdlib_fail("signal(SIGVTALRM)"); memset(&itval, 0, sizeof(itval)); itval.it_value.tv_sec = MAX_CPU_SECONDS; if (setitimer(ITIMER_VIRTUAL, &itval, NULL) == -1) stdlib_fail("setitimer()"); TRY_EXCEPT(packet = avahi_dns_packet_new_query(512), NULL); TRY_EXCEPT(avahi_dns_packet_append_bytes(packet, badrr, sizeof(badrr)), NULL); /* This is expected to fail (if it returns) */ ret = avahi_dns_packet_consume_name(packet, name, sizeof(name)); if (ret != -1) fail("avahi_dns_packet_consume_name() returned %d; -1 was expected", ret); return EXIT_SUCCESS; } /* vim:ts=4:sw=4:et */ avahi-0.7/avahi-core/PaxHeaders.10109/avahi-test.c0000644000000000000000000000013213130651643016430 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.143986985 avahi-0.7/avahi-core/avahi-test.c0000644000175000017500000003226113130651643020043 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static AvahiSEntryGroup *group = NULL; static AvahiServer *server = NULL; static char *service_name = NULL; static const AvahiPoll *poll_api; static void quit_timeout_callback(AVAHI_GCC_UNUSED AvahiTimeout *timeout, void* userdata) { AvahiSimplePoll *simple_poll = userdata; avahi_simple_poll_quit(simple_poll); } static void dump_line(const char *text, AVAHI_GCC_UNUSED void* userdata) { printf("%s\n", text); } static void dump_timeout_callback(AvahiTimeout *timeout, void* userdata) { struct timeval tv; AvahiServer *avahi = userdata; avahi_server_dump(avahi, dump_line, NULL); avahi_elapse_time(&tv, 5000, 0); poll_api->timeout_update(timeout, &tv); } static const char *browser_event_to_string(AvahiBrowserEvent event) { switch (event) { case AVAHI_BROWSER_NEW : return "NEW"; case AVAHI_BROWSER_REMOVE : return "REMOVE"; case AVAHI_BROWSER_CACHE_EXHAUSTED : return "CACHE_EXHAUSTED"; case AVAHI_BROWSER_ALL_FOR_NOW : return "ALL_FOR_NOW"; case AVAHI_BROWSER_FAILURE : return "FAILURE"; } abort(); } static const char *resolver_event_to_string(AvahiResolverEvent event) { switch (event) { case AVAHI_RESOLVER_FOUND: return "FOUND"; case AVAHI_RESOLVER_FAILURE: return "FAILURE"; } abort(); } static void record_browser_callback( AvahiSRecordBrowser *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { char *t; assert(r); if (record) { avahi_log_debug("RB: record [%s] on %i.%i is %s", t = avahi_record_to_string(record), interface, protocol, browser_event_to_string(event)); avahi_free(t); } else avahi_log_debug("RB: [%s]", browser_event_to_string(event)); } static void remove_entries(void); static void create_entries(int new_name); static void entry_group_callback(AVAHI_GCC_UNUSED AvahiServer *s, AVAHI_GCC_UNUSED AvahiSEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void* userdata) { avahi_log_debug("entry group state: %i", state); if (state == AVAHI_ENTRY_GROUP_COLLISION) { remove_entries(); create_entries(1); avahi_log_debug("Service name conflict, retrying with <%s>", service_name); } else if (state == AVAHI_ENTRY_GROUP_ESTABLISHED) { avahi_log_debug("Service established under name <%s>", service_name); } } static void server_callback(AvahiServer *s, AvahiServerState state, AVAHI_GCC_UNUSED void* userdata) { server = s; avahi_log_debug("server state: %i", state); if (state == AVAHI_SERVER_RUNNING) { avahi_log_debug("Server startup complete. Host name is <%s>. Service cookie is %u", avahi_server_get_host_name_fqdn(s), avahi_server_get_local_service_cookie(s)); create_entries(0); } else if (state == AVAHI_SERVER_COLLISION) { char *n; remove_entries(); n = avahi_alternative_host_name(avahi_server_get_host_name(s)); avahi_log_debug("Host name conflict, retrying with <%s>", n); avahi_server_set_host_name(s, n); avahi_free(n); } } static void remove_entries(void) { if (group) avahi_s_entry_group_reset(group); } static void create_entries(int new_name) { AvahiAddress a; AvahiRecord *r; remove_entries(); if (!group) group = avahi_s_entry_group_new(server, entry_group_callback, NULL); assert(avahi_s_entry_group_is_empty(group)); if (!service_name) service_name = avahi_strdup("Test Service"); else if (new_name) { char *n = avahi_alternative_service_name(service_name); avahi_free(service_name); service_name = n; } if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, service_name, "_http._tcp", NULL, NULL, 80, "foo", NULL) < 0) { avahi_log_error("Failed to add HTTP service"); goto fail; } if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, service_name, "_ftp._tcp", NULL, NULL, 21, "foo", NULL) < 0) { avahi_log_error("Failed to add FTP service"); goto fail; } if (avahi_server_add_service(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0,service_name, "_webdav._tcp", NULL, NULL, 80, "foo", NULL) < 0) { avahi_log_error("Failed to add WEBDAV service"); goto fail; } if (avahi_server_add_dns_server_address(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, NULL, AVAHI_DNS_SERVER_RESOLVE, avahi_address_parse("192.168.50.1", AVAHI_PROTO_UNSPEC, &a), 53) < 0) { avahi_log_error("Failed to add new DNS Server address"); goto fail; } r = avahi_record_new_full("cname.local", AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_CNAME, AVAHI_DEFAULT_TTL); r->data.cname.name = avahi_strdup("cocaine.local"); if (avahi_server_add(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, r) < 0) { avahi_record_unref(r); avahi_log_error("Failed to add CNAME record"); goto fail; } avahi_record_unref(r); avahi_s_entry_group_commit(group); return; fail: if (group) avahi_s_entry_group_free(group); group = NULL; } static void hnr_callback( AVAHI_GCC_UNUSED AvahiSHostNameResolver *r, AvahiIfIndex iface, AvahiProtocol protocol, AvahiResolverEvent event, const char *hostname, const AvahiAddress *a, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { char t[AVAHI_ADDRESS_STR_MAX]; if (a) avahi_address_snprint(t, sizeof(t), a); avahi_log_debug("HNR: (%i.%i) <%s> -> %s [%s]", iface, protocol, hostname, a ? t : "n/a", resolver_event_to_string(event)); } static void ar_callback( AVAHI_GCC_UNUSED AvahiSAddressResolver *r, AvahiIfIndex iface, AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *a, const char *hostname, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { char t[AVAHI_ADDRESS_STR_MAX]; avahi_address_snprint(t, sizeof(t), a); avahi_log_debug("AR: (%i.%i) %s -> <%s> [%s]", iface, protocol, t, hostname ? hostname : "n/a", resolver_event_to_string(event)); } static void db_callback( AVAHI_GCC_UNUSED AvahiSDomainBrowser *b, AvahiIfIndex iface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { avahi_log_debug("DB: (%i.%i) <%s> [%s]", iface, protocol, domain ? domain : "NULL", browser_event_to_string(event)); } static void stb_callback( AVAHI_GCC_UNUSED AvahiSServiceTypeBrowser *b, AvahiIfIndex iface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *service_type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { avahi_log_debug("STB: (%i.%i) %s in <%s> [%s]", iface, protocol, service_type ? service_type : "NULL", domain ? domain : "NULL", browser_event_to_string(event)); } static void sb_callback( AVAHI_GCC_UNUSED AvahiSServiceBrowser *b, AvahiIfIndex iface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *service_type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { avahi_log_debug("SB: (%i.%i) <%s> as %s in <%s> [%s]", iface, protocol, name ? name : "NULL", service_type ? service_type : "NULL", domain ? domain : "NULL", browser_event_to_string(event)); } static void sr_callback( AVAHI_GCC_UNUSED AvahiSServiceResolver *r, AvahiIfIndex iface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char*service_type, const char*domain_name, const char*hostname, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { if (event != AVAHI_RESOLVER_FOUND) avahi_log_debug("SR: (%i.%i) <%s> as %s in <%s> [%s]", iface, protocol, name, service_type, domain_name, resolver_event_to_string(event)); else { char t[AVAHI_ADDRESS_STR_MAX], *s; avahi_address_snprint(t, sizeof(t), a); s = avahi_string_list_to_string(txt); avahi_log_debug("SR: (%i.%i) <%s> as %s in <%s>: %s/%s:%i (%s) [%s]", iface, protocol, name, service_type, domain_name, hostname, t, port, s, resolver_event_to_string(event)); avahi_free(s); } } static void dsb_callback( AVAHI_GCC_UNUSED AvahiSDNSServerBrowser *b, AvahiIfIndex iface, AvahiProtocol protocol, AvahiBrowserEvent event, const char*hostname, const AvahiAddress *a, uint16_t port, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { char t[AVAHI_ADDRESS_STR_MAX] = "n/a"; if (a) avahi_address_snprint(t, sizeof(t), a); avahi_log_debug("DSB: (%i.%i): %s/%s:%i [%s]", iface, protocol, hostname ? hostname : "NULL", t, port, browser_event_to_string(event)); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { AvahiSRecordBrowser *r; AvahiSHostNameResolver *hnr; AvahiSAddressResolver *ar; AvahiKey *k; AvahiServerConfig config; AvahiAddress a; AvahiSDomainBrowser *db; AvahiSServiceTypeBrowser *stb; AvahiSServiceBrowser *sb; AvahiSServiceResolver *sr; AvahiSDNSServerBrowser *dsb; AvahiSimplePoll *simple_poll; int error; struct timeval tv; simple_poll = avahi_simple_poll_new(); poll_api = avahi_simple_poll_get(simple_poll); avahi_server_config_init(&config); avahi_address_parse("192.168.50.1", AVAHI_PROTO_UNSPEC, &config.wide_area_servers[0]); config.n_wide_area_servers = 1; config.enable_wide_area = 1; server = avahi_server_new(poll_api, &config, server_callback, NULL, &error); avahi_server_config_free(&config); k = avahi_key_new("_http._tcp.0pointer.de", AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_PTR); r = avahi_s_record_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, k, 0, record_browser_callback, NULL); avahi_key_unref(k); hnr = avahi_s_host_name_resolver_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "cname.local", AVAHI_PROTO_UNSPEC, 0, hnr_callback, NULL); ar = avahi_s_address_resolver_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, avahi_address_parse("192.168.50.1", AVAHI_PROTO_INET, &a), 0, ar_callback, NULL); db = avahi_s_domain_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DOMAIN_BROWSER_BROWSE, 0, db_callback, NULL); stb = avahi_s_service_type_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, 0, stb_callback, NULL); sb = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_http._tcp", NULL, 0, sb_callback, NULL); sr = avahi_s_service_resolver_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "Ecstasy HTTP", "_http._tcp", "local", AVAHI_PROTO_UNSPEC, 0, sr_callback, NULL); dsb = avahi_s_dns_server_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "local", AVAHI_DNS_SERVER_RESOLVE, AVAHI_PROTO_UNSPEC, 0, dsb_callback, NULL); avahi_elapse_time(&tv, 1000*5, 0); poll_api->timeout_new(poll_api, &tv, dump_timeout_callback, server); avahi_elapse_time(&tv, 1000*60, 0); poll_api->timeout_new(poll_api, &tv, quit_timeout_callback, simple_poll); avahi_simple_poll_loop(simple_poll); avahi_s_record_browser_free(r); avahi_s_host_name_resolver_free(hnr); avahi_s_address_resolver_free(ar); avahi_s_domain_browser_free(db); avahi_s_service_type_browser_free(stb); avahi_s_service_browser_free(sb); avahi_s_service_resolver_free(sr); avahi_s_dns_server_browser_free(dsb); if (group) avahi_s_entry_group_free(group); if (server) avahi_server_free(server); if (simple_poll) avahi_simple_poll_free(simple_poll); avahi_free(service_name); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/addr-util.h0000644000000000000000000000013213130651643016255 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.135987166 avahi-0.7/avahi-core/addr-util.h0000644000175000017500000000307213130651643017666 0ustar00lathiatlathiat00000000000000#ifndef fooaddrutilhfoo #define fooaddrutilhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include #include AVAHI_C_DECL_BEGIN /** Make an address structture of a sockaddr structure */ AvahiAddress *avahi_address_from_sockaddr(const struct sockaddr* sa, AvahiAddress *ret_addr); /** Return the port number of a sockaddr structure (either IPv4 or IPv6) */ uint16_t avahi_port_from_sockaddr(const struct sockaddr* sa); /** Check whether the specified IPv6 address is in fact an * encapsulated IPv4 address, returns 1 if yes, 0 otherwise */ int avahi_address_is_ipv4_in_ipv6(const AvahiAddress *a); /** Check whether the specified address is a link-local IPv4 or IPv6 address; * returns 1 if yes, 0 otherwise */ int avahi_address_is_link_local(const AvahiAddress *a); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/resolve-address.c0000644000000000000000000000013213130651643017465 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.119987521 avahi-0.7/avahi-core/resolve-address.c0000644000175000017500000001667213130651643021110 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "browse.h" #define TIMEOUT_MSEC 5000 struct AvahiSAddressResolver { AvahiServer *server; AvahiAddress address; AvahiSRecordBrowser *record_browser; AvahiSAddressResolverCallback callback; void* userdata; AvahiRecord *ptr_record; AvahiIfIndex interface; AvahiProtocol protocol; AvahiLookupResultFlags flags; int retry_with_multicast; AvahiKey *key; AvahiTimeEvent *time_event; AVAHI_LLIST_FIELDS(AvahiSAddressResolver, resolver); }; static void finish(AvahiSAddressResolver *r, AvahiResolverEvent event) { assert(r); if (r->time_event) { avahi_time_event_free(r->time_event); r->time_event = NULL; } switch (event) { case AVAHI_RESOLVER_FAILURE: r->callback(r, r->interface, r->protocol, event, &r->address, NULL, r->flags, r->userdata); break; case AVAHI_RESOLVER_FOUND: assert(r->ptr_record); r->callback(r, r->interface, r->protocol, event, &r->address, r->ptr_record->data.ptr.name, r->flags, r->userdata); break; } } static void time_event_callback(AvahiTimeEvent *e, void *userdata) { AvahiSAddressResolver *r = userdata; assert(e); assert(r); avahi_server_set_errno(r->server, AVAHI_ERR_TIMEOUT); finish(r, AVAHI_RESOLVER_FAILURE); } static void start_timeout(AvahiSAddressResolver *r) { struct timeval tv; assert(r); if (r->time_event) return; avahi_elapse_time(&tv, TIMEOUT_MSEC, 0); r->time_event = avahi_time_event_new(r->server->time_event_queue, &tv, time_event_callback, r); } static void record_browser_callback( AvahiSRecordBrowser*rr, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata) { AvahiSAddressResolver *r = userdata; assert(rr); assert(r); switch (event) { case AVAHI_BROWSER_NEW: assert(record); assert(record->key->type == AVAHI_DNS_TYPE_PTR); if (r->interface > 0 && interface != r->interface) return; if (r->protocol != AVAHI_PROTO_UNSPEC && protocol != r->protocol) return; if (r->interface <= 0) r->interface = interface; if (r->protocol == AVAHI_PROTO_UNSPEC) r->protocol = protocol; if (!r->ptr_record) { r->ptr_record = avahi_record_ref(record); r->flags = flags; finish(r, AVAHI_RESOLVER_FOUND); } break; case AVAHI_BROWSER_REMOVE: assert(record); assert(record->key->type == AVAHI_DNS_TYPE_PTR); if (r->ptr_record && avahi_record_equal_no_ttl(record, r->ptr_record)) { avahi_record_unref(r->ptr_record); r->ptr_record = NULL; r->flags = flags; /** Look for a replacement */ avahi_s_record_browser_restart(r->record_browser); start_timeout(r); } break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; case AVAHI_BROWSER_FAILURE: if (r->retry_with_multicast) { r->retry_with_multicast = 0; avahi_s_record_browser_free(r->record_browser); r->record_browser = avahi_s_record_browser_new(r->server, r->interface, r->protocol, r->key, AVAHI_LOOKUP_USE_MULTICAST, record_browser_callback, r); if (r->record_browser) { start_timeout(r); break; } } r->flags = flags; finish(r, AVAHI_RESOLVER_FAILURE); break; } } AvahiSAddressResolver *avahi_s_address_resolver_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const AvahiAddress *address, AvahiLookupFlags flags, AvahiSAddressResolverCallback callback, void* userdata) { AvahiSAddressResolver *r; AvahiKey *k; char n[AVAHI_DOMAIN_NAME_MAX]; assert(server); assert(address); assert(callback); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, address->proto == AVAHI_PROTO_INET || address->proto == AVAHI_PROTO_INET6, AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); avahi_reverse_lookup_name(address, n, sizeof(n)); if (!(k = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_PTR))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); return NULL; } if (!(r = avahi_new(AvahiSAddressResolver, 1))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); avahi_key_unref(k); return NULL; } r->server = server; r->address = *address; r->callback = callback; r->userdata = userdata; r->ptr_record = NULL; r->interface = interface; r->protocol = protocol; r->flags = 0; r->retry_with_multicast = 0; r->key = k; r->record_browser = NULL; AVAHI_LLIST_PREPEND(AvahiSAddressResolver, resolver, server->address_resolvers, r); r->time_event = NULL; if (!(flags & (AVAHI_LOOKUP_USE_MULTICAST|AVAHI_LOOKUP_USE_WIDE_AREA))) { if (!server->wide_area_lookup_engine || !avahi_wide_area_has_servers(server->wide_area_lookup_engine)) flags |= AVAHI_LOOKUP_USE_MULTICAST; else { flags |= AVAHI_LOOKUP_USE_WIDE_AREA; r->retry_with_multicast = 1; } } r->record_browser = avahi_s_record_browser_new(server, interface, protocol, k, flags, record_browser_callback, r); if (!r->record_browser) { avahi_s_address_resolver_free(r); return NULL; } start_timeout(r); return r; } void avahi_s_address_resolver_free(AvahiSAddressResolver *r) { assert(r); AVAHI_LLIST_REMOVE(AvahiSAddressResolver, resolver, r->server->address_resolvers, r); if (r->record_browser) avahi_s_record_browser_free(r->record_browser); if (r->time_event) avahi_time_event_free(r->time_event); if (r->ptr_record) avahi_record_unref(r->ptr_record); if (r->key) avahi_key_unref(r->key); avahi_free(r); } avahi-0.7/avahi-core/PaxHeaders.10109/prioq-test.c0000644000000000000000000000013213130651643016472 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.147986899 avahi-0.7/avahi-core/prioq-test.c0000644000175000017500000000570713130651643020112 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "prioq.h" #define POINTER_TO_INT(p) ((int) (long) (p)) #define INT_TO_POINTER(i) ((void*) (long) (i)) static int compare_int(const void* a, const void* b) { int i = POINTER_TO_INT(a), j = POINTER_TO_INT(b); return i < j ? -1 : (i > j ? 1 : 0); } static int compare_ptr(const void* a, const void* b) { return a < b ? -1 : (a > b ? 1 : 0); } static void rec(AvahiPrioQueueNode *n) { if (!n) return; if (n->left) assert(n->left->parent == n); if (n->right) assert(n->right->parent == n); if (n->parent) { assert(n->parent->left == n || n->parent->right == n); if (n->parent->left == n) assert(n->next == n->parent->right); } if (!n->next) { assert(n->queue->last == n); if (n->parent && n->parent->left == n) assert(n->parent->right == NULL); } if (n->parent) { int a = POINTER_TO_INT(n->parent->data), b = POINTER_TO_INT(n->data); if (a > b) { printf("%i <= %i: NO\n", a, b); abort(); } } rec(n->left); rec(n->right); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { AvahiPrioQueue *q, *q2; int i; q = avahi_prio_queue_new(compare_int); q2 = avahi_prio_queue_new(compare_ptr); srand(time(NULL)); for (i = 0; i < 10000; i++) avahi_prio_queue_put(q2, avahi_prio_queue_put(q, INT_TO_POINTER(random() & 0xFFFF))); while (q2->root) { rec(q->root); rec(q2->root); assert(q->n_nodes == q2->n_nodes); printf("%i\n", POINTER_TO_INT(((AvahiPrioQueueNode*)q2->root->data)->data)); avahi_prio_queue_remove(q, q2->root->data); avahi_prio_queue_remove(q2, q2->root); } /* prev = 0; */ /* while (q->root) { */ /* int v = GPOINTER_TO_INT(q->root->data); */ /* rec(q->root); */ /* printf("%i\n", v); */ /* avahi_prio_queue_remove(q, q->root); */ /* assert(v >= prev); */ /* prev = v; */ /* } */ avahi_prio_queue_free(q); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/rrlist.h0000644000000000000000000000013213130651643015707 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.119987521 avahi-0.7/avahi-core/rrlist.h0000644000175000017500000000262713130651643017325 0ustar00lathiatlathiat00000000000000#ifndef foorrlisthfoo #define foorrlisthfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include "rr.h" typedef struct AvahiRecordList AvahiRecordList; AvahiRecordList *avahi_record_list_new(void); void avahi_record_list_free(AvahiRecordList *l); void avahi_record_list_flush(AvahiRecordList *l); AvahiRecord* avahi_record_list_next(AvahiRecordList *l, int *ret_flush_cache, int *ret_unicast_response, int *ret_auxiliary); void avahi_record_list_push(AvahiRecordList *l, AvahiRecord *r, int flush_cache, int unicast_response, int auxiliary); void avahi_record_list_drop(AvahiRecordList *l, AvahiRecord *r); int avahi_record_list_all_flush_cache(AvahiRecordList *l); int avahi_record_list_is_empty(AvahiRecordList *l); #endif avahi-0.7/avahi-core/PaxHeaders.10109/querier.c0000644000000000000000000000013213130651643016037 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.135987166 avahi-0.7/avahi-core/querier.c0000644000175000017500000001634213130651643017454 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "querier.h" #include "log.h" struct AvahiQuerier { AvahiInterface *interface; AvahiKey *key; int n_used; unsigned sec_delay; AvahiTimeEvent *time_event; struct timeval creation_time; unsigned post_id; int post_id_valid; AVAHI_LLIST_FIELDS(AvahiQuerier, queriers); }; void avahi_querier_free(AvahiQuerier *q) { assert(q); AVAHI_LLIST_REMOVE(AvahiQuerier, queriers, q->interface->queriers, q); avahi_hashmap_remove(q->interface->queriers_by_key, q->key); avahi_key_unref(q->key); avahi_time_event_free(q->time_event); avahi_free(q); } static void querier_elapse_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void *userdata) { AvahiQuerier *q = userdata; struct timeval tv; assert(q); if (q->n_used <= 0) { /* We are not referenced by anyone anymore, so let's free * ourselves. We should not send out any further queries from * this querier object anymore. */ avahi_querier_free(q); return; } if (avahi_interface_post_query(q->interface, q->key, 0, &q->post_id)) { /* The queue accepted our query. We store the query id here, * that allows us to drop the query at a later point if the * query is very short-lived. */ q->post_id_valid = 1; } q->sec_delay *= 2; if (q->sec_delay >= 60*60) /* 1h */ q->sec_delay = 60*60; avahi_elapse_time(&tv, q->sec_delay*1000, 0); avahi_time_event_update(q->time_event, &tv); } void avahi_querier_add(AvahiInterface *i, AvahiKey *key, struct timeval *ret_ctime) { AvahiQuerier *q; struct timeval tv; assert(i); assert(key); if ((q = avahi_hashmap_lookup(i->queriers_by_key, key))) { /* Someone is already browsing for records of this RR key */ q->n_used++; /* Return the creation time. This is used for generating the * ALL_FOR_NOW event one second after the querier was * initially created. */ if (ret_ctime) *ret_ctime = q->creation_time; return; } /* No one is browsing for this RR key, so we add a new querier */ if (!(q = avahi_new(AvahiQuerier, 1))) return; /* OOM */ q->key = avahi_key_ref(key); q->interface = i; q->n_used = 1; q->sec_delay = 1; q->post_id_valid = 0; gettimeofday(&q->creation_time, NULL); /* Do the initial query */ if (avahi_interface_post_query(i, key, 0, &q->post_id)) q->post_id_valid = 1; /* Schedule next queries */ q->time_event = avahi_time_event_new(i->monitor->server->time_event_queue, avahi_elapse_time(&tv, q->sec_delay*1000, 0), querier_elapse_callback, q); AVAHI_LLIST_PREPEND(AvahiQuerier, queriers, i->queriers, q); avahi_hashmap_insert(i->queriers_by_key, q->key, q); /* Return the creation time. This is used for generating the * ALL_FOR_NOW event one second after the querier was initially * created. */ if (ret_ctime) *ret_ctime = q->creation_time; } void avahi_querier_remove(AvahiInterface *i, AvahiKey *key) { AvahiQuerier *q; /* There was no querier for this RR key, or it wasn't referenced * by anyone. */ if (!(q = avahi_hashmap_lookup(i->queriers_by_key, key)) || q->n_used <= 0) return; if ((--q->n_used) <= 0) { /* Nobody references us anymore. */ if (q->post_id_valid && avahi_interface_withraw_query(i, q->post_id)) { /* We succeeded in withdrawing our query from the queue, * so let's drop dead. */ avahi_querier_free(q); } /* If we failed to withdraw our query from the queue, we stay * alive, in case someone else might recycle our querier at a * later point. We are freed at our next expiry, in case * nobody recycled us. */ } } static void remove_querier_callback(AvahiInterfaceMonitor *m, AvahiInterface *i, void* userdata) { assert(m); assert(i); assert(userdata); if (i->announcing) avahi_querier_remove(i, (AvahiKey*) userdata); } void avahi_querier_remove_for_all(AvahiServer *s, AvahiIfIndex idx, AvahiProtocol protocol, AvahiKey *key) { assert(s); assert(key); avahi_interface_monitor_walk(s->monitor, idx, protocol, remove_querier_callback, key); } struct cbdata { AvahiKey *key; struct timeval *ret_ctime; }; static void add_querier_callback(AvahiInterfaceMonitor *m, AvahiInterface *i, void* userdata) { struct cbdata *cbdata = userdata; assert(m); assert(i); assert(cbdata); if (i->announcing) { struct timeval tv; avahi_querier_add(i, cbdata->key, &tv); if (cbdata->ret_ctime && avahi_timeval_compare(&tv, cbdata->ret_ctime) > 0) *cbdata->ret_ctime = tv; } } void avahi_querier_add_for_all(AvahiServer *s, AvahiIfIndex idx, AvahiProtocol protocol, AvahiKey *key, struct timeval *ret_ctime) { struct cbdata cbdata; assert(s); assert(key); cbdata.key = key; cbdata.ret_ctime = ret_ctime; if (ret_ctime) ret_ctime->tv_sec = ret_ctime->tv_usec = 0; avahi_interface_monitor_walk(s->monitor, idx, protocol, add_querier_callback, &cbdata); } int avahi_querier_shall_refresh_cache(AvahiInterface *i, AvahiKey *key) { AvahiQuerier *q; assert(i); assert(key); /* Called by the cache maintainer */ if (!(q = avahi_hashmap_lookup(i->queriers_by_key, key))) /* This key is currently not subscribed at all, so no cache * refresh is needed */ return 0; if (q->n_used <= 0) { /* If this is an entry nobody references right now, don't * consider it "existing". */ /* Remove this querier since it is referenced by nobody * and the cached data will soon be out of date */ avahi_querier_free(q); /* Tell the cache that no refresh is needed */ return 0; } else { struct timeval tv; /* We can defer our query a little, since the cache will now * issue a refresh query anyway. */ avahi_elapse_time(&tv, q->sec_delay*1000, 0); avahi_time_event_update(q->time_event, &tv); /* Tell the cache that a refresh should be issued */ return 1; } } void avahi_querier_free_all(AvahiInterface *i) { assert(i); while (i->queriers) avahi_querier_free(i->queriers); } avahi-0.7/avahi-core/PaxHeaders.10109/lookup.h0000644000000000000000000000013113130651643015700 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 29 ctime=1499681850.09998797 avahi-0.7/avahi-core/lookup.h0000644000175000017500000002432413130651643017315 0ustar00lathiatlathiat00000000000000#ifndef foolookuphfoo #define foolookuphfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file avahi-core/lookup.h Functions for browsing/resolving services and other RRs */ /** \example core-browse-services.c Example how to browse for DNS-SD * services using an embedded mDNS stack. */ /** A browsing object for arbitrary RRs */ typedef struct AvahiSRecordBrowser AvahiSRecordBrowser; /** A host name to IP adddress resolver object */ typedef struct AvahiSHostNameResolver AvahiSHostNameResolver; /** An IP address to host name resolver object ("reverse lookup") */ typedef struct AvahiSAddressResolver AvahiSAddressResolver; /** A local domain browsing object. May be used to enumerate domains used on the local LAN */ typedef struct AvahiSDomainBrowser AvahiSDomainBrowser; /** A DNS-SD service type browsing object. May be used to enumerate the service types of all available services on the local LAN */ typedef struct AvahiSServiceTypeBrowser AvahiSServiceTypeBrowser; /** A DNS-SD service browser. Use this to enumerate available services of a certain kind on the local LAN. Use AvahiSServiceResolver to get specific service data like address and port for a service. */ typedef struct AvahiSServiceBrowser AvahiSServiceBrowser; /** A DNS-SD service resolver. Use this to retrieve addres, port and TXT data for a DNS-SD service */ typedef struct AvahiSServiceResolver AvahiSServiceResolver; #include #include #include AVAHI_C_DECL_BEGIN /** Callback prototype for AvahiSRecordBrowser events */ typedef void (*AvahiSRecordBrowserCallback)( AvahiSRecordBrowser *b, /**< The AvahiSRecordBrowser object that is emitting this callback */ AvahiIfIndex interface, /**< Logical OS network interface number the record was found on */ AvahiProtocol protocol, /**< Protocol number the record was found. */ AvahiBrowserEvent event, /**< Browsing event, either AVAHI_BROWSER_NEW or AVAHI_BROWSER_REMOVE */ AvahiRecord *record, /**< The record that was found */ AvahiLookupResultFlags flags, /**< Lookup flags */ void* userdata /**< Arbitrary user data passed to avahi_s_record_browser_new() */ ); /** Create a new browsing object for arbitrary RRs */ AvahiSRecordBrowser *avahi_s_record_browser_new( AvahiServer *server, /**< The server object to which attach this query */ AvahiIfIndex interface, /**< Logical OS interface number where to look for the records, or AVAHI_IF_UNSPEC to look on interfaces */ AvahiProtocol protocol, /**< Protocol number to use when looking for the record, or AVAHI_PROTO_UNSPEC to look on all protocols */ AvahiKey *key, /**< The search key */ AvahiLookupFlags flags, /**< Lookup flags. Must have set either AVAHI_LOOKUP_FORCE_WIDE_AREA or AVAHI_LOOKUP_FORCE_MULTICAST, since domain based detection is not available here. */ AvahiSRecordBrowserCallback callback, /**< The callback to call on browsing events */ void* userdata /**< Arbitrary use suppliable data which is passed to the callback */); /** Free an AvahiSRecordBrowser object */ void avahi_s_record_browser_free(AvahiSRecordBrowser *b); /** Callback prototype for AvahiSHostNameResolver events */ typedef void (*AvahiSHostNameResolverCallback)( AvahiSHostNameResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, /**< Resolving event */ const char *host_name, /**< Host name which should be resolved. May differ in case from the query */ const AvahiAddress *a, /**< The address, or NULL if the host name couldn't be resolved. */ AvahiLookupResultFlags flags, /**< Lookup flags */ void* userdata); /** Create an AvahiSHostNameResolver object for resolving a host name to an adddress. See AvahiSRecordBrowser for more info on the paramters. */ AvahiSHostNameResolver *avahi_s_host_name_resolver_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *host_name, /**< The host name to look for */ AvahiProtocol aprotocol, /**< The address family of the desired address or AVAHI_PROTO_UNSPEC if doesn't matter. */ AvahiLookupFlags flags, /**< Lookup flags. */ AvahiSHostNameResolverCallback calback, void* userdata); /** Free a AvahiSHostNameResolver object */ void avahi_s_host_name_resolver_free(AvahiSHostNameResolver *r); /** Callback prototype for AvahiSAddressResolver events */ typedef void (*AvahiSAddressResolverCallback)( AvahiSAddressResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *a, const char *host_name, /**< A host name for the specified address, if one was found, i.e. event == AVAHI_RESOLVER_FOUND */ AvahiLookupResultFlags flags, /**< Lookup flags */ void* userdata); /** Create an AvahiSAddressResolver object. See AvahiSRecordBrowser for more info on the paramters. */ AvahiSAddressResolver *avahi_s_address_resolver_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const AvahiAddress *address, AvahiLookupFlags flags, /**< Lookup flags. */ AvahiSAddressResolverCallback calback, void* userdata); /** Free an AvahiSAddressResolver object */ void avahi_s_address_resolver_free(AvahiSAddressResolver *r); /** Callback prototype for AvahiSDomainBrowser events */ typedef void (*AvahiSDomainBrowserCallback)( AvahiSDomainBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AvahiLookupResultFlags flags, /**< Lookup flags */ void* userdata); /** Create a new AvahiSDomainBrowser object */ AvahiSDomainBrowser *avahi_s_domain_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiDomainBrowserType type, AvahiLookupFlags flags, /**< Lookup flags. */ AvahiSDomainBrowserCallback callback, void* userdata); /** Free an AvahiSDomainBrowser object */ void avahi_s_domain_browser_free(AvahiSDomainBrowser *b); /** Callback prototype for AvahiSServiceTypeBrowser events */ typedef void (*AvahiSServiceTypeBrowserCallback)( AvahiSServiceTypeBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *type, const char *domain, AvahiLookupResultFlags flags, /**< Lookup flags */ void* userdata); /** Create a new AvahiSServiceTypeBrowser object. */ AvahiSServiceTypeBrowser *avahi_s_service_type_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiLookupFlags flags, /**< Lookup flags. */ AvahiSServiceTypeBrowserCallback callback, void* userdata); /** Free an AvahiSServiceTypeBrowser object */ void avahi_s_service_type_browser_free(AvahiSServiceTypeBrowser *b); /** Callback prototype for AvahiSServiceBrowser events */ typedef void (*AvahiSServiceBrowserCallback)( AvahiSServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name /**< Service name, e.g. "Lennart's Files" */, const char *type /**< DNS-SD type, e.g. "_http._tcp" */, const char *domain /**< Domain of this service, e.g. "local" */, AvahiLookupResultFlags flags, /**< Lookup flags */ void* userdata); /** Create a new AvahiSServiceBrowser object. */ AvahiSServiceBrowser *avahi_s_service_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *service_type /** DNS-SD service type, e.g. "_http._tcp" */, const char *domain, AvahiLookupFlags flags, /**< Lookup flags. */ AvahiSServiceBrowserCallback callback, void* userdata); /** Free an AvahiSServiceBrowser object */ void avahi_s_service_browser_free(AvahiSServiceBrowser *b); /** Callback prototype for AvahiSServiceResolver events */ typedef void (*AvahiSServiceResolverCallback)( AvahiSServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, /**< Is AVAHI_RESOLVER_FOUND when the service was resolved successfully, and everytime it changes. Is AVAHI_RESOLVER_TIMOUT when the service failed to resolve or disappeared. */ const char *name, /**< Service name */ const char *type, /**< Service Type */ const char *domain, const char *host_name, /**< Host name of the service */ const AvahiAddress *a, /**< The resolved host name */ uint16_t port, /**< Service name */ AvahiStringList *txt, /**< TXT record data */ AvahiLookupResultFlags flags, /**< Lookup flags */ void* userdata); /** Create a new AvahiSServiceResolver object. The specified callback function will be called with the resolved service data. */ AvahiSServiceResolver *avahi_s_service_resolver_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, AvahiProtocol aprotocol, /**< Address family of the desired service address. Use AVAHI_PROTO_UNSPEC if you don't care */ AvahiLookupFlags flags, /**< Lookup flags. */ AvahiSServiceResolverCallback calback, void* userdata); /** Free an AvahiSServiceResolver object */ void avahi_s_service_resolver_free(AvahiSServiceResolver *r); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/announce.c0000644000000000000000000000013213130651643016171 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.115987612 avahi-0.7/avahi-core/announce.c0000644000175000017500000003200613130651643017601 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "announce.h" #include "log.h" #include "rr-util.h" #define AVAHI_ANNOUNCEMENT_JITTER_MSEC 250 #define AVAHI_PROBE_JITTER_MSEC 250 #define AVAHI_PROBE_INTERVAL_MSEC 250 static void remove_announcer(AvahiServer *s, AvahiAnnouncer *a) { assert(s); assert(a); if (a->time_event) avahi_time_event_free(a->time_event); AVAHI_LLIST_REMOVE(AvahiAnnouncer, by_interface, a->interface->announcers, a); AVAHI_LLIST_REMOVE(AvahiAnnouncer, by_entry, a->entry->announcers, a); avahi_free(a); } static void elapse_announce(AvahiTimeEvent *e, void *userdata); static void set_timeout(AvahiAnnouncer *a, const struct timeval *tv) { assert(a); if (!tv) { if (a->time_event) { avahi_time_event_free(a->time_event); a->time_event = NULL; } } else { if (a->time_event) avahi_time_event_update(a->time_event, tv); else a->time_event = avahi_time_event_new(a->server->time_event_queue, tv, elapse_announce, a); } } static void next_state(AvahiAnnouncer *a); void avahi_s_entry_group_check_probed(AvahiSEntryGroup *g, int immediately) { AvahiEntry *e; assert(g); assert(!g->dead); /* Check whether all group members have been probed */ if (g->state != AVAHI_ENTRY_GROUP_REGISTERING || g->n_probing > 0) return; avahi_s_entry_group_change_state(g, AVAHI_ENTRY_GROUP_ESTABLISHED); if (g->dead) return; for (e = g->entries; e; e = e->by_group_next) { AvahiAnnouncer *a; for (a = e->announcers; a; a = a->by_entry_next) { if (a->state != AVAHI_WAITING) continue; a->state = AVAHI_ANNOUNCING; if (immediately) { /* Shortcut */ a->n_iteration = 1; next_state(a); } else { struct timeval tv; a->n_iteration = 0; avahi_elapse_time(&tv, 0, AVAHI_ANNOUNCEMENT_JITTER_MSEC); set_timeout(a, &tv); } } } } static void next_state(AvahiAnnouncer *a) { assert(a); if (a->state == AVAHI_WAITING) { assert(a->entry->group); avahi_s_entry_group_check_probed(a->entry->group, 1); } else if (a->state == AVAHI_PROBING) { if (a->n_iteration >= 4) { /* Probing done */ if (a->entry->group) { assert(a->entry->group->n_probing); a->entry->group->n_probing--; } if (a->entry->group && a->entry->group->state == AVAHI_ENTRY_GROUP_REGISTERING) a->state = AVAHI_WAITING; else { a->state = AVAHI_ANNOUNCING; a->n_iteration = 1; } set_timeout(a, NULL); next_state(a); } else { struct timeval tv; avahi_interface_post_probe(a->interface, a->entry->record, 0); avahi_elapse_time(&tv, AVAHI_PROBE_INTERVAL_MSEC, 0); set_timeout(a, &tv); a->n_iteration++; } } else if (a->state == AVAHI_ANNOUNCING) { if (a->entry->flags & AVAHI_PUBLISH_UNIQUE) /* Send the whole rrset at once */ avahi_server_prepare_matching_responses(a->server, a->interface, a->entry->record->key, 0); else avahi_server_prepare_response(a->server, a->interface, a->entry, 0, 0); avahi_server_generate_response(a->server, a->interface, NULL, NULL, 0, 0, 0); if (++a->n_iteration >= 4) { /* Announcing done */ a->state = AVAHI_ESTABLISHED; set_timeout(a, NULL); } else { struct timeval tv; avahi_elapse_time(&tv, a->sec_delay*1000, AVAHI_ANNOUNCEMENT_JITTER_MSEC); if (a->n_iteration < 10) a->sec_delay *= 2; set_timeout(a, &tv); } } } static void elapse_announce(AvahiTimeEvent *e, void *userdata) { assert(e); next_state(userdata); } static AvahiAnnouncer *get_announcer(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { AvahiAnnouncer *a; assert(s); assert(e); assert(i); for (a = e->announcers; a; a = a->by_entry_next) if (a->interface == i) return a; return NULL; } static void go_to_initial_state(AvahiAnnouncer *a) { AvahiEntry *e; struct timeval tv; assert(a); e = a->entry; if ((e->flags & AVAHI_PUBLISH_UNIQUE) && !(e->flags & AVAHI_PUBLISH_NO_PROBE)) a->state = AVAHI_PROBING; else if (!(e->flags & AVAHI_PUBLISH_NO_ANNOUNCE)) { if (!e->group || e->group->state == AVAHI_ENTRY_GROUP_ESTABLISHED) a->state = AVAHI_ANNOUNCING; else a->state = AVAHI_WAITING; } else a->state = AVAHI_ESTABLISHED; a->n_iteration = 1; a->sec_delay = 1; if (a->state == AVAHI_PROBING && e->group) e->group->n_probing++; if (a->state == AVAHI_PROBING) set_timeout(a, avahi_elapse_time(&tv, 0, AVAHI_PROBE_JITTER_MSEC)); else if (a->state == AVAHI_ANNOUNCING) set_timeout(a, avahi_elapse_time(&tv, 0, AVAHI_ANNOUNCEMENT_JITTER_MSEC)); else set_timeout(a, NULL); } static void new_announcer(AvahiServer *s, AvahiInterface *i, AvahiEntry *e) { AvahiAnnouncer *a; assert(s); assert(i); assert(e); assert(!e->dead); if (!avahi_interface_match(i, e->interface, e->protocol) || !i->announcing || !avahi_entry_is_commited(e)) return; /* We don't want duplicate announcers */ if (get_announcer(s, e, i)) return; if ((!(a = avahi_new(AvahiAnnouncer, 1)))) { avahi_log_error(__FILE__": Out of memory."); return; } a->server = s; a->interface = i; a->entry = e; a->time_event = NULL; AVAHI_LLIST_PREPEND(AvahiAnnouncer, by_interface, i->announcers, a); AVAHI_LLIST_PREPEND(AvahiAnnouncer, by_entry, e->announcers, a); go_to_initial_state(a); } void avahi_announce_interface(AvahiServer *s, AvahiInterface *i) { AvahiEntry *e; assert(s); assert(i); if (!i->announcing) return; for (e = s->entries; e; e = e->entries_next) if (!e->dead) new_announcer(s, i, e); } static void announce_walk_callback(AvahiInterfaceMonitor *m, AvahiInterface *i, void* userdata) { AvahiEntry *e = userdata; assert(m); assert(i); assert(e); assert(!e->dead); new_announcer(m->server, i, e); } void avahi_announce_entry(AvahiServer *s, AvahiEntry *e) { assert(s); assert(e); assert(!e->dead); avahi_interface_monitor_walk(s->monitor, e->interface, e->protocol, announce_walk_callback, e); } void avahi_announce_group(AvahiServer *s, AvahiSEntryGroup *g) { AvahiEntry *e; assert(s); assert(g); for (e = g->entries; e; e = e->by_group_next) if (!e->dead) avahi_announce_entry(s, e); } int avahi_entry_is_registered(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { AvahiAnnouncer *a; assert(s); assert(e); assert(i); assert(!e->dead); if (!(a = get_announcer(s, e, i))) return 0; return a->state == AVAHI_ANNOUNCING || a->state == AVAHI_ESTABLISHED || (a->state == AVAHI_WAITING && !(e->flags & AVAHI_PUBLISH_UNIQUE)); } int avahi_entry_is_probing(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { AvahiAnnouncer *a; assert(s); assert(e); assert(i); assert(!e->dead); if (!(a = get_announcer(s, e, i))) return 0; return a->state == AVAHI_PROBING || (a->state == AVAHI_WAITING && (e->flags & AVAHI_PUBLISH_UNIQUE)); } void avahi_entry_return_to_initial_state(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { AvahiAnnouncer *a; assert(s); assert(e); assert(i); if (!(a = get_announcer(s, e, i))) return; if (a->state == AVAHI_PROBING && a->entry->group) a->entry->group->n_probing--; go_to_initial_state(a); } static AvahiRecord *make_goodbye_record(AvahiRecord *r) { AvahiRecord *g; assert(r); if (!(g = avahi_record_copy(r))) return NULL; /* OOM */ assert(g->ref == 1); g->ttl = 0; return g; } static int is_duplicate_entry(AvahiServer *s, AvahiEntry *e) { AvahiEntry *i; assert(s); assert(e); for (i = avahi_hashmap_lookup(s->entries_by_key, e->record->key); i; i = i->by_key_next) { if ((i == e) || (i->dead)) continue; if (!avahi_record_equal_no_ttl(i->record, e->record)) continue; return 1; } return 0; } static void send_goodbye_callback(AvahiInterfaceMonitor *m, AvahiInterface *i, void* userdata) { AvahiEntry *e = userdata; AvahiRecord *g; assert(m); assert(i); assert(e); assert(!e->dead); if (!avahi_interface_match(i, e->interface, e->protocol)) return; if (e->flags & AVAHI_PUBLISH_NO_ANNOUNCE) return; if (!avahi_entry_is_registered(m->server, e, i)) return; if (is_duplicate_entry(m->server, e)) return; if (!(g = make_goodbye_record(e->record))) return; /* OOM */ avahi_interface_post_response(i, g, e->flags & AVAHI_PUBLISH_UNIQUE, NULL, 1); avahi_record_unref(g); } static void reannounce(AvahiAnnouncer *a) { AvahiEntry *e; struct timeval tv; assert(a); e = a->entry; /* If the group this entry belongs to is not even commited, there's nothing to reannounce */ if (e->group && (e->group->state == AVAHI_ENTRY_GROUP_UNCOMMITED || e->group->state == AVAHI_ENTRY_GROUP_COLLISION)) return; /* Because we might change state we decrease the probing counter first */ if (a->state == AVAHI_PROBING && a->entry->group) a->entry->group->n_probing--; if (a->state == AVAHI_PROBING || (a->state == AVAHI_WAITING && (e->flags & AVAHI_PUBLISH_UNIQUE) && !(e->flags & AVAHI_PUBLISH_NO_PROBE))) /* We were probing or waiting after probe, so we restart probing from the beginning here */ a->state = AVAHI_PROBING; else if (a->state == AVAHI_WAITING) /* We were waiting, but were not probing before, so we continue waiting */ a->state = AVAHI_WAITING; else if (e->flags & AVAHI_PUBLISH_NO_ANNOUNCE) /* No announcer needed */ a->state = AVAHI_ESTABLISHED; else { /* Ok, let's restart announcing */ a->state = AVAHI_ANNOUNCING; } /* Now let's increase the probing counter again */ if (a->state == AVAHI_PROBING && e->group) e->group->n_probing++; a->n_iteration = 1; a->sec_delay = 1; if (a->state == AVAHI_PROBING) set_timeout(a, avahi_elapse_time(&tv, 0, AVAHI_PROBE_JITTER_MSEC)); else if (a->state == AVAHI_ANNOUNCING) set_timeout(a, avahi_elapse_time(&tv, 0, AVAHI_ANNOUNCEMENT_JITTER_MSEC)); else set_timeout(a, NULL); } static void reannounce_walk_callback(AvahiInterfaceMonitor *m, AvahiInterface *i, void* userdata) { AvahiEntry *e = userdata; AvahiAnnouncer *a; assert(m); assert(i); assert(e); assert(!e->dead); if (!(a = get_announcer(m->server, e, i))) return; reannounce(a); } void avahi_reannounce_entry(AvahiServer *s, AvahiEntry *e) { assert(s); assert(e); assert(!e->dead); avahi_interface_monitor_walk(s->monitor, e->interface, e->protocol, reannounce_walk_callback, e); } void avahi_goodbye_interface(AvahiServer *s, AvahiInterface *i, int send_goodbye, int remove) { assert(s); assert(i); if (send_goodbye) if (i->announcing) { AvahiEntry *e; for (e = s->entries; e; e = e->entries_next) if (!e->dead) send_goodbye_callback(s->monitor, i, e); } if (remove) while (i->announcers) remove_announcer(s, i->announcers); } void avahi_goodbye_entry(AvahiServer *s, AvahiEntry *e, int send_goodbye, int remove) { assert(s); assert(e); if (send_goodbye) if (!e->dead) avahi_interface_monitor_walk(s->monitor, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, send_goodbye_callback, e); if (remove) while (e->announcers) remove_announcer(s, e->announcers); } avahi-0.7/avahi-core/PaxHeaders.10109/avahi-reflector.c0000644000000000000000000000013213130651643017436 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.143986985 avahi-0.7/avahi-core/avahi-reflector.c0000644000175000017500000000331513130651643021047 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { AvahiServer *server; AvahiServerConfig config; int error; AvahiSimplePoll *simple_poll; simple_poll = avahi_simple_poll_new(); avahi_server_config_init(&config); config.publish_hinfo = 0; config.publish_addresses = 0; config.publish_workstation = 0; config.publish_domain = 0; config.use_ipv6 = 0; config.enable_reflector = 1; server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, NULL, NULL, &error); avahi_server_config_free(&config); for (;;) if (avahi_simple_poll_iterate(simple_poll, -1) != 0) break; avahi_server_free(server); avahi_simple_poll_free(simple_poll); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/rr.c0000644000000000000000000000013213130651643015006 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.127987345 avahi-0.7/avahi-core/rr.c0000644000175000017500000004340313130651643016421 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include "rr.h" #include "log.h" #include "util.h" #include "hashmap.h" #include "domain-util.h" #include "rr-util.h" #include "addr-util.h" AvahiKey *avahi_key_new(const char *name, uint16_t class, uint16_t type) { AvahiKey *k; assert(name); if (!(k = avahi_new(AvahiKey, 1))) { avahi_log_error("avahi_new() failed."); return NULL; } if (!(k->name = avahi_normalize_name_strdup(name))) { avahi_log_error("avahi_normalize_name() failed."); avahi_free(k); return NULL; } k->ref = 1; k->clazz = class; k->type = type; return k; } AvahiKey *avahi_key_new_cname(AvahiKey *key) { assert(key); if (key->clazz != AVAHI_DNS_CLASS_IN) return NULL; if (key->type == AVAHI_DNS_TYPE_CNAME) return NULL; return avahi_key_new(key->name, key->clazz, AVAHI_DNS_TYPE_CNAME); } AvahiKey *avahi_key_ref(AvahiKey *k) { assert(k); assert(k->ref >= 1); k->ref++; return k; } void avahi_key_unref(AvahiKey *k) { assert(k); assert(k->ref >= 1); if ((--k->ref) <= 0) { avahi_free(k->name); avahi_free(k); } } AvahiRecord *avahi_record_new(AvahiKey *k, uint32_t ttl) { AvahiRecord *r; assert(k); if (!(r = avahi_new(AvahiRecord, 1))) { avahi_log_error("avahi_new() failed."); return NULL; } r->ref = 1; r->key = avahi_key_ref(k); memset(&r->data, 0, sizeof(r->data)); r->ttl = ttl != (uint32_t) -1 ? ttl : AVAHI_DEFAULT_TTL; return r; } AvahiRecord *avahi_record_new_full(const char *name, uint16_t class, uint16_t type, uint32_t ttl) { AvahiRecord *r; AvahiKey *k; assert(name); if (!(k = avahi_key_new(name, class, type))) { avahi_log_error("avahi_key_new() failed."); return NULL; } r = avahi_record_new(k, ttl); avahi_key_unref(k); if (!r) { avahi_log_error("avahi_record_new() failed."); return NULL; } return r; } AvahiRecord *avahi_record_ref(AvahiRecord *r) { assert(r); assert(r->ref >= 1); r->ref++; return r; } void avahi_record_unref(AvahiRecord *r) { assert(r); assert(r->ref >= 1); if ((--r->ref) <= 0) { switch (r->key->type) { case AVAHI_DNS_TYPE_SRV: avahi_free(r->data.srv.name); break; case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: avahi_free(r->data.ptr.name); break; case AVAHI_DNS_TYPE_HINFO: avahi_free(r->data.hinfo.cpu); avahi_free(r->data.hinfo.os); break; case AVAHI_DNS_TYPE_TXT: avahi_string_list_free(r->data.txt.string_list); break; case AVAHI_DNS_TYPE_A: case AVAHI_DNS_TYPE_AAAA: break; default: avahi_free(r->data.generic.data); } avahi_key_unref(r->key); avahi_free(r); } } const char *avahi_dns_class_to_string(uint16_t class) { if (class & AVAHI_DNS_CACHE_FLUSH) return "FLUSH"; switch (class) { case AVAHI_DNS_CLASS_IN: return "IN"; case AVAHI_DNS_CLASS_ANY: return "ANY"; default: return NULL; } } const char *avahi_dns_type_to_string(uint16_t type) { switch (type) { case AVAHI_DNS_TYPE_CNAME: return "CNAME"; case AVAHI_DNS_TYPE_A: return "A"; case AVAHI_DNS_TYPE_AAAA: return "AAAA"; case AVAHI_DNS_TYPE_PTR: return "PTR"; case AVAHI_DNS_TYPE_HINFO: return "HINFO"; case AVAHI_DNS_TYPE_TXT: return "TXT"; case AVAHI_DNS_TYPE_SRV: return "SRV"; case AVAHI_DNS_TYPE_ANY: return "ANY"; case AVAHI_DNS_TYPE_SOA: return "SOA"; case AVAHI_DNS_TYPE_NS: return "NS"; default: return NULL; } } char *avahi_key_to_string(const AvahiKey *k) { char class[16], type[16]; const char *c, *t; assert(k); assert(k->ref >= 1); /* According to RFC3597 */ if (!(c = avahi_dns_class_to_string(k->clazz))) { snprintf(class, sizeof(class), "CLASS%u", k->clazz); c = class; } if (!(t = avahi_dns_type_to_string(k->type))) { snprintf(type, sizeof(type), "TYPE%u", k->type); t = type; } return avahi_strdup_printf("%s\t%s\t%s", k->name, c, t); } char *avahi_record_to_string(const AvahiRecord *r) { char *p, *s; char buf[1024], *t = NULL, *d = NULL; assert(r); assert(r->ref >= 1); switch (r->key->type) { case AVAHI_DNS_TYPE_A: inet_ntop(AF_INET, &r->data.a.address.address, t = buf, sizeof(buf)); break; case AVAHI_DNS_TYPE_AAAA: inet_ntop(AF_INET6, &r->data.aaaa.address.address, t = buf, sizeof(buf)); break; case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: t = r->data.ptr.name; break; case AVAHI_DNS_TYPE_TXT: t = d = avahi_string_list_to_string(r->data.txt.string_list); break; case AVAHI_DNS_TYPE_HINFO: snprintf(t = buf, sizeof(buf), "\"%s\" \"%s\"", r->data.hinfo.cpu, r->data.hinfo.os); break; case AVAHI_DNS_TYPE_SRV: snprintf(t = buf, sizeof(buf), "%u %u %u %s", r->data.srv.priority, r->data.srv.weight, r->data.srv.port, r->data.srv.name); break; default: { uint8_t *c; uint16_t n; int i; char *e; /* According to RFC3597 */ snprintf(t = buf, sizeof(buf), "\\# %u", r->data.generic.size); e = strchr(t, 0); for (c = r->data.generic.data, n = r->data.generic.size, i = 0; n > 0 && i < 20; c ++, n --, i++) { sprintf(e, " %02X", *c); e = strchr(e, 0); } break; } } p = avahi_key_to_string(r->key); s = avahi_strdup_printf("%s %s ; ttl=%u", p, t, r->ttl); avahi_free(p); avahi_free(d); return s; } int avahi_key_equal(const AvahiKey *a, const AvahiKey *b) { assert(a); assert(b); if (a == b) return 1; return avahi_domain_equal(a->name, b->name) && a->type == b->type && a->clazz == b->clazz; } int avahi_key_pattern_match(const AvahiKey *pattern, const AvahiKey *k) { assert(pattern); assert(k); assert(!avahi_key_is_pattern(k)); if (pattern == k) return 1; return avahi_domain_equal(pattern->name, k->name) && (pattern->type == k->type || pattern->type == AVAHI_DNS_TYPE_ANY) && (pattern->clazz == k->clazz || pattern->clazz == AVAHI_DNS_CLASS_ANY); } int avahi_key_is_pattern(const AvahiKey *k) { assert(k); return k->type == AVAHI_DNS_TYPE_ANY || k->clazz == AVAHI_DNS_CLASS_ANY; } unsigned avahi_key_hash(const AvahiKey *k) { assert(k); return avahi_domain_hash(k->name) + k->type + k->clazz; } static int rdata_equal(const AvahiRecord *a, const AvahiRecord *b) { assert(a); assert(b); assert(a->key->type == b->key->type); switch (a->key->type) { case AVAHI_DNS_TYPE_SRV: return a->data.srv.priority == b->data.srv.priority && a->data.srv.weight == b->data.srv.weight && a->data.srv.port == b->data.srv.port && avahi_domain_equal(a->data.srv.name, b->data.srv.name); case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: return avahi_domain_equal(a->data.ptr.name, b->data.ptr.name); case AVAHI_DNS_TYPE_HINFO: return !strcmp(a->data.hinfo.cpu, b->data.hinfo.cpu) && !strcmp(a->data.hinfo.os, b->data.hinfo.os); case AVAHI_DNS_TYPE_TXT: return avahi_string_list_equal(a->data.txt.string_list, b->data.txt.string_list); case AVAHI_DNS_TYPE_A: return memcmp(&a->data.a.address, &b->data.a.address, sizeof(AvahiIPv4Address)) == 0; case AVAHI_DNS_TYPE_AAAA: return memcmp(&a->data.aaaa.address, &b->data.aaaa.address, sizeof(AvahiIPv6Address)) == 0; default: return a->data.generic.size == b->data.generic.size && (a->data.generic.size == 0 || memcmp(a->data.generic.data, b->data.generic.data, a->data.generic.size) == 0); } } int avahi_record_equal_no_ttl(const AvahiRecord *a, const AvahiRecord *b) { assert(a); assert(b); if (a == b) return 1; return avahi_key_equal(a->key, b->key) && rdata_equal(a, b); } AvahiRecord *avahi_record_copy(AvahiRecord *r) { AvahiRecord *copy; if (!(copy = avahi_new(AvahiRecord, 1))) { avahi_log_error("avahi_new() failed."); return NULL; } copy->ref = 1; copy->key = avahi_key_ref(r->key); copy->ttl = r->ttl; switch (r->key->type) { case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: if (!(copy->data.ptr.name = avahi_strdup(r->data.ptr.name))) goto fail; break; case AVAHI_DNS_TYPE_SRV: copy->data.srv.priority = r->data.srv.priority; copy->data.srv.weight = r->data.srv.weight; copy->data.srv.port = r->data.srv.port; if (!(copy->data.srv.name = avahi_strdup(r->data.srv.name))) goto fail; break; case AVAHI_DNS_TYPE_HINFO: if (!(copy->data.hinfo.os = avahi_strdup(r->data.hinfo.os))) goto fail; if (!(copy->data.hinfo.cpu = avahi_strdup(r->data.hinfo.cpu))) { avahi_free(r->data.hinfo.os); goto fail; } break; case AVAHI_DNS_TYPE_TXT: copy->data.txt.string_list = avahi_string_list_copy(r->data.txt.string_list); break; case AVAHI_DNS_TYPE_A: copy->data.a.address = r->data.a.address; break; case AVAHI_DNS_TYPE_AAAA: copy->data.aaaa.address = r->data.aaaa.address; break; default: if (!(copy->data.generic.data = avahi_memdup(r->data.generic.data, r->data.generic.size))) goto fail; copy->data.generic.size = r->data.generic.size; break; } return copy; fail: avahi_log_error("Failed to allocate memory"); avahi_key_unref(copy->key); avahi_free(copy); return NULL; } size_t avahi_key_get_estimate_size(AvahiKey *k) { assert(k); return strlen(k->name)+1+4; } size_t avahi_record_get_estimate_size(AvahiRecord *r) { size_t n; assert(r); n = avahi_key_get_estimate_size(r->key) + 4 + 2; switch (r->key->type) { case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: n += strlen(r->data.ptr.name) + 1; break; case AVAHI_DNS_TYPE_SRV: n += 6 + strlen(r->data.srv.name) + 1; break; case AVAHI_DNS_TYPE_HINFO: n += strlen(r->data.hinfo.os) + 1 + strlen(r->data.hinfo.cpu) + 1; break; case AVAHI_DNS_TYPE_TXT: n += avahi_string_list_serialize(r->data.txt.string_list, NULL, 0); break; case AVAHI_DNS_TYPE_A: n += sizeof(AvahiIPv4Address); break; case AVAHI_DNS_TYPE_AAAA: n += sizeof(AvahiIPv6Address); break; default: n += r->data.generic.size; } return n; } static int lexicographical_memcmp(const void* a, size_t al, const void* b, size_t bl) { size_t c; int ret; assert(a); assert(b); c = al < bl ? al : bl; if ((ret = memcmp(a, b, c))) return ret; if (al == bl) return 0; else return al == c ? 1 : -1; } static int uint16_cmp(uint16_t a, uint16_t b) { return a == b ? 0 : (a < b ? -1 : 1); } int avahi_record_lexicographical_compare(AvahiRecord *a, AvahiRecord *b) { int r; /* char *t1, *t2; */ assert(a); assert(b); /* t1 = avahi_record_to_string(a); */ /* t2 = avahi_record_to_string(b); */ /* g_message("lexicocmp: %s %s", t1, t2); */ /* avahi_free(t1); */ /* avahi_free(t2); */ if (a == b) return 0; if ((r = uint16_cmp(a->key->clazz, b->key->clazz)) || (r = uint16_cmp(a->key->type, b->key->type))) return r; switch (a->key->type) { case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: return avahi_binary_domain_cmp(a->data.ptr.name, b->data.ptr.name); case AVAHI_DNS_TYPE_SRV: { if ((r = uint16_cmp(a->data.srv.priority, b->data.srv.priority)) == 0 && (r = uint16_cmp(a->data.srv.weight, b->data.srv.weight)) == 0 && (r = uint16_cmp(a->data.srv.port, b->data.srv.port)) == 0) r = avahi_binary_domain_cmp(a->data.srv.name, b->data.srv.name); return r; } case AVAHI_DNS_TYPE_HINFO: { if ((r = strcmp(a->data.hinfo.cpu, b->data.hinfo.cpu)) || (r = strcmp(a->data.hinfo.os, b->data.hinfo.os))) return r; return 0; } case AVAHI_DNS_TYPE_TXT: { uint8_t *ma = NULL, *mb = NULL; size_t asize, bsize; asize = avahi_string_list_serialize(a->data.txt.string_list, NULL, 0); bsize = avahi_string_list_serialize(b->data.txt.string_list, NULL, 0); if (asize > 0 && !(ma = avahi_new(uint8_t, asize))) goto fail; if (bsize > 0 && !(mb = avahi_new(uint8_t, bsize))) { avahi_free(ma); goto fail; } avahi_string_list_serialize(a->data.txt.string_list, ma, asize); avahi_string_list_serialize(b->data.txt.string_list, mb, bsize); if (asize && bsize) r = lexicographical_memcmp(ma, asize, mb, bsize); else if (asize && !bsize) r = 1; else if (!asize && bsize) r = -1; else r = 0; avahi_free(ma); avahi_free(mb); return r; } case AVAHI_DNS_TYPE_A: return memcmp(&a->data.a.address, &b->data.a.address, sizeof(AvahiIPv4Address)); case AVAHI_DNS_TYPE_AAAA: return memcmp(&a->data.aaaa.address, &b->data.aaaa.address, sizeof(AvahiIPv6Address)); default: return lexicographical_memcmp(a->data.generic.data, a->data.generic.size, b->data.generic.data, b->data.generic.size); } fail: avahi_log_error(__FILE__": Out of memory"); return -1; /* or whatever ... */ } int avahi_record_is_goodbye(AvahiRecord *r) { assert(r); return r->ttl == 0; } int avahi_key_is_valid(AvahiKey *k) { assert(k); if (!avahi_is_valid_domain_name(k->name)) return 0; return 1; } int avahi_record_is_valid(AvahiRecord *r) { assert(r); if (!avahi_key_is_valid(r->key)) return 0; switch (r->key->type) { case AVAHI_DNS_TYPE_PTR: case AVAHI_DNS_TYPE_CNAME: case AVAHI_DNS_TYPE_NS: return avahi_is_valid_domain_name(r->data.ptr.name); case AVAHI_DNS_TYPE_SRV: return avahi_is_valid_domain_name(r->data.srv.name); case AVAHI_DNS_TYPE_HINFO: return strlen(r->data.hinfo.os) <= 255 && strlen(r->data.hinfo.cpu) <= 255; case AVAHI_DNS_TYPE_TXT: { AvahiStringList *strlst; for (strlst = r->data.txt.string_list; strlst; strlst = strlst->next) if (strlst->size > 255 || strlst->size <= 0) return 0; return 1; } } return 1; } static AvahiAddress *get_address(const AvahiRecord *r, AvahiAddress *a) { assert(r); switch (r->key->type) { case AVAHI_DNS_TYPE_A: a->proto = AVAHI_PROTO_INET; a->data.ipv4 = r->data.a.address; break; case AVAHI_DNS_TYPE_AAAA: a->proto = AVAHI_PROTO_INET6; a->data.ipv6 = r->data.aaaa.address; break; default: return NULL; } return a; } int avahi_record_is_link_local_address(const AvahiRecord *r) { AvahiAddress a; assert(r); if (!get_address(r, &a)) return 0; return avahi_address_is_link_local(&a); } avahi-0.7/avahi-core/PaxHeaders.10109/browse-dns-server.c0000644000000000000000000000013213130651643017752 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.127987345 avahi-0.7/avahi-core/browse-dns-server.c0000644000175000017500000002116513130651643021366 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "browse.h" #include "log.h" #include "rr.h" typedef struct AvahiDNSServerInfo AvahiDNSServerInfo; struct AvahiDNSServerInfo { AvahiSDNSServerBrowser *browser; AvahiIfIndex interface; AvahiProtocol protocol; AvahiRecord *srv_record; AvahiSHostNameResolver *host_name_resolver; AvahiAddress address; AvahiLookupResultFlags flags; AVAHI_LLIST_FIELDS(AvahiDNSServerInfo, info); }; struct AvahiSDNSServerBrowser { AvahiServer *server; AvahiSRecordBrowser *record_browser; AvahiSDNSServerBrowserCallback callback; void* userdata; AvahiProtocol aprotocol; AvahiLookupFlags user_flags; unsigned n_info; AVAHI_LLIST_FIELDS(AvahiSDNSServerBrowser, browser); AVAHI_LLIST_HEAD(AvahiDNSServerInfo, info); }; static AvahiDNSServerInfo* get_server_info(AvahiSDNSServerBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiRecord *r) { AvahiDNSServerInfo *i; assert(b); assert(r); for (i = b->info; i; i = i->info_next) if (i->interface == interface && i->protocol == protocol && avahi_record_equal_no_ttl(r, i->srv_record)) return i; return NULL; } static void server_info_free(AvahiSDNSServerBrowser *b, AvahiDNSServerInfo *i) { assert(b); assert(i); avahi_record_unref(i->srv_record); if (i->host_name_resolver) avahi_s_host_name_resolver_free(i->host_name_resolver); AVAHI_LLIST_REMOVE(AvahiDNSServerInfo, info, b->info, i); assert(b->n_info >= 1); b->n_info--; avahi_free(i); } static void host_name_resolver_callback( AvahiSHostNameResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *host_name, const AvahiAddress *a, AvahiLookupResultFlags flags, void* userdata) { AvahiDNSServerInfo *i = userdata; assert(r); assert(host_name); assert(i); switch (event) { case AVAHI_RESOLVER_FOUND: { i->address = *a; i->browser->callback( i->browser, i->interface, i->protocol, AVAHI_BROWSER_NEW, i->srv_record->data.srv.name, &i->address, i->srv_record->data.srv.port, i->flags | flags, i->browser->userdata); break; } case AVAHI_RESOLVER_FAILURE: /* Ignore */ break; } avahi_s_host_name_resolver_free(i->host_name_resolver); i->host_name_resolver = NULL; } static void record_browser_callback( AvahiSRecordBrowser*rr, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata) { AvahiSDNSServerBrowser *b = userdata; assert(rr); assert(b); /* Filter flags */ flags &= AVAHI_LOOKUP_RESULT_CACHED | AVAHI_LOOKUP_RESULT_MULTICAST | AVAHI_LOOKUP_RESULT_WIDE_AREA; switch (event) { case AVAHI_BROWSER_NEW: { AvahiDNSServerInfo *i; assert(record); assert(record->key->type == AVAHI_DNS_TYPE_SRV); if (get_server_info(b, interface, protocol, record)) return; if (b->n_info >= 10) return; if (!(i = avahi_new(AvahiDNSServerInfo, 1))) return; /* OOM */ i->browser = b; i->interface = interface; i->protocol = protocol; i->srv_record = avahi_record_ref(record); i->host_name_resolver = avahi_s_host_name_resolver_new( b->server, interface, protocol, record->data.srv.name, b->aprotocol, b->user_flags, host_name_resolver_callback, i); i->flags = flags; AVAHI_LLIST_PREPEND(AvahiDNSServerInfo, info, b->info, i); b->n_info++; break; } case AVAHI_BROWSER_REMOVE: { AvahiDNSServerInfo *i; assert(record); assert(record->key->type == AVAHI_DNS_TYPE_SRV); if (!(i = get_server_info(b, interface, protocol, record))) return; if (!i->host_name_resolver) b->callback( b, interface, protocol, event, i->srv_record->data.srv.name, &i->address, i->srv_record->data.srv.port, i->flags | flags, b->userdata); server_info_free(b, i); break; } case AVAHI_BROWSER_FAILURE: case AVAHI_BROWSER_ALL_FOR_NOW: case AVAHI_BROWSER_CACHE_EXHAUSTED: b->callback( b, interface, protocol, event, NULL, NULL, 0, flags, b->userdata); break; } } AvahiSDNSServerBrowser *avahi_s_dns_server_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiDNSServerType type, AvahiProtocol aprotocol, AvahiLookupFlags flags, AvahiSDNSServerBrowserCallback callback, void* userdata) { static const char * const type_table[AVAHI_DNS_SERVER_MAX] = { "_domain._udp", "_dns-update._udp" }; AvahiSDNSServerBrowser *b; AvahiKey *k = NULL; char n[AVAHI_DOMAIN_NAME_MAX]; int r; assert(server); assert(callback); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(aprotocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, type < AVAHI_DNS_SERVER_MAX, AVAHI_ERR_INVALID_FLAGS); if (!domain) domain = server->domain_name; if ((r = avahi_service_name_join(n, sizeof(n), NULL, type_table[type], domain)) < 0) { avahi_server_set_errno(server, r); return NULL; } if (!(b = avahi_new(AvahiSDNSServerBrowser, 1))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); return NULL; } b->server = server; b->callback = callback; b->userdata = userdata; b->aprotocol = aprotocol; b->n_info = 0; b->user_flags = flags; AVAHI_LLIST_HEAD_INIT(AvahiDNSServerInfo, b->info); AVAHI_LLIST_PREPEND(AvahiSDNSServerBrowser, browser, server->dns_server_browsers, b); if (!(k = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_SRV))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(b->record_browser = avahi_s_record_browser_new(server, interface, protocol, k, flags, record_browser_callback, b))) goto fail; avahi_key_unref(k); return b; fail: if (k) avahi_key_unref(k); avahi_s_dns_server_browser_free(b); return NULL; } void avahi_s_dns_server_browser_free(AvahiSDNSServerBrowser *b) { assert(b); while (b->info) server_info_free(b, b->info); AVAHI_LLIST_REMOVE(AvahiSDNSServerBrowser, browser, b->server->dns_server_browsers, b); if (b->record_browser) avahi_s_record_browser_free(b->record_browser); avahi_free(b); } avahi-0.7/avahi-core/PaxHeaders.10109/iface-linux.c0000644000000000000000000000013213130651643016567 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.139987076 avahi-0.7/avahi-core/iface-linux.c0000644000175000017500000003202613130651643020201 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "log.h" #include "iface.h" #include "iface-linux.h" #ifndef IFLA_RTA #include #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) #endif #ifndef IFA_RTA #include #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) #endif static int netlink_list_items(AvahiNetlink *nl, uint16_t type, unsigned *ret_seq) { struct nlmsghdr *n; struct rtgenmsg *gen; uint8_t req[1024]; /* Issue a wild dump NETLINK request */ memset(&req, 0, sizeof(req)); n = (struct nlmsghdr*) req; n->nlmsg_len = NLMSG_LENGTH(sizeof(struct rtgenmsg)); n->nlmsg_type = type; n->nlmsg_flags = NLM_F_REQUEST|NLM_F_DUMP; n->nlmsg_pid = 0; gen = NLMSG_DATA(n); memset(gen, 0, sizeof(struct rtgenmsg)); gen->rtgen_family = AF_UNSPEC; return avahi_netlink_send(nl, n, ret_seq); } static void netlink_callback(AvahiNetlink *nl, struct nlmsghdr *n, void* userdata) { AvahiInterfaceMonitor *m = userdata; /* This routine is called for every RTNETLINK response packet */ assert(m); assert(n); assert(m->osdep.netlink == nl); if (n->nlmsg_type == RTM_NEWLINK) { /* A new interface appeared or an existing one has been modified */ struct ifinfomsg *ifinfomsg = NLMSG_DATA(n); AvahiHwInterface *hw; struct rtattr *a = NULL; size_t l; /* A (superfluous?) sanity check */ if (ifinfomsg->ifi_family != AF_UNSPEC) return; /* Check whether there already is an AvahiHwInterface object * for this link, so that we can update its data. Note that * Netlink sends us an RTM_NEWLINK not only when a new * interface appears, but when it changes, too */ if (!(hw = avahi_interface_monitor_get_hw_interface(m, ifinfomsg->ifi_index))) /* No object found, so let's create a new * one. avahi_hw_interface_new() will call * avahi_interface_new() internally twice for IPv4 and * IPv6, so there is no need for us to do that * ourselves */ if (!(hw = avahi_hw_interface_new(m, (AvahiIfIndex) ifinfomsg->ifi_index))) return; /* OOM */ /* Check whether the flags of this interface are OK for us */ hw->flags_ok = (ifinfomsg->ifi_flags & IFF_UP) && (!m->server->config.use_iff_running || (ifinfomsg->ifi_flags & IFF_RUNNING)) && !(ifinfomsg->ifi_flags & IFF_LOOPBACK) && (ifinfomsg->ifi_flags & IFF_MULTICAST) && (m->server->config.allow_point_to_point || !(ifinfomsg->ifi_flags & IFF_POINTOPOINT)); /* Handle interface attributes */ l = NLMSG_PAYLOAD(n, sizeof(struct ifinfomsg)); a = IFLA_RTA(ifinfomsg); while (RTA_OK(a, l)) { switch(a->rta_type) { case IFLA_IFNAME: /* Fill in interface name */ avahi_free(hw->name); hw->name = avahi_strndup(RTA_DATA(a), RTA_PAYLOAD(a)); break; case IFLA_MTU: /* Fill in MTU */ assert(RTA_PAYLOAD(a) == sizeof(unsigned int)); hw->mtu = *((unsigned int*) RTA_DATA(a)); break; case IFLA_ADDRESS: /* Fill in hardware (MAC) address */ hw->mac_address_size = RTA_PAYLOAD(a); if (hw->mac_address_size > AVAHI_MAC_ADDRESS_MAX) hw->mac_address_size = AVAHI_MAC_ADDRESS_MAX; memcpy(hw->mac_address, RTA_DATA(a), hw->mac_address_size); break; default: ; } a = RTA_NEXT(a, l); } /* Check whether this interface is now "relevant" for us. If * it is Avahi will start to announce its records on this * interface and send out queries for subscribed records on * it */ avahi_hw_interface_check_relevant(hw); /* Update any associated RRs of this interface. (i.e. the * _workstation._tcp record containing the MAC address) */ avahi_hw_interface_update_rrs(hw, 0); } else if (n->nlmsg_type == RTM_DELLINK) { /* An interface has been removed */ struct ifinfomsg *ifinfomsg = NLMSG_DATA(n); AvahiHwInterface *hw; /* A (superfluous?) sanity check */ if (ifinfomsg->ifi_family != AF_UNSPEC) return; /* Get a reference to our AvahiHwInterface object of this interface */ if (!(hw = avahi_interface_monitor_get_hw_interface(m, (AvahiIfIndex) ifinfomsg->ifi_index))) return; /* Free our object */ avahi_hw_interface_free(hw, 0); } else if (n->nlmsg_type == RTM_NEWADDR || n->nlmsg_type == RTM_DELADDR) { /* An address has been added, modified or removed */ struct ifaddrmsg *ifaddrmsg = NLMSG_DATA(n); AvahiInterface *i; struct rtattr *a = NULL; size_t l; AvahiAddress raddr, rlocal, *r; int raddr_valid = 0, rlocal_valid = 0; /* We are only interested in IPv4 and IPv6 */ if (ifaddrmsg->ifa_family != AF_INET && ifaddrmsg->ifa_family != AF_INET6) return; /* Try to get a reference to our AvahiInterface object for the * interface this address is assigned to. If ther is no object * for this interface, we ignore this address. */ if (!(i = avahi_interface_monitor_get_interface(m, (AvahiIfIndex) ifaddrmsg->ifa_index, avahi_af_to_proto(ifaddrmsg->ifa_family)))) return; /* Fill in address family for our new address */ rlocal.proto = raddr.proto = avahi_af_to_proto(ifaddrmsg->ifa_family); l = NLMSG_PAYLOAD(n, sizeof(struct ifaddrmsg)); a = IFA_RTA(ifaddrmsg); while (RTA_OK(a, l)) { switch(a->rta_type) { case IFA_LOCAL: if ((rlocal.proto == AVAHI_PROTO_INET6 && RTA_PAYLOAD(a) != 16) || (rlocal.proto == AVAHI_PROTO_INET && RTA_PAYLOAD(a) != 4)) return; memcpy(rlocal.data.data, RTA_DATA(a), RTA_PAYLOAD(a)); rlocal_valid = 1; break; case IFA_ADDRESS: /* Fill in local address data. Usually this is * preferable over IFA_ADDRESS if both are set, * since this refers to the local address of a PPP * link while IFA_ADDRESS refers to the other * end. */ if ((raddr.proto == AVAHI_PROTO_INET6 && RTA_PAYLOAD(a) != 16) || (raddr.proto == AVAHI_PROTO_INET && RTA_PAYLOAD(a) != 4)) return; memcpy(raddr.data.data, RTA_DATA(a), RTA_PAYLOAD(a)); raddr_valid = 1; break; default: ; } a = RTA_NEXT(a, l); } /* If there was no adress attached to this message, let's quit. */ if (rlocal_valid) r = &rlocal; else if (raddr_valid) r = &raddr; else return; if (n->nlmsg_type == RTM_NEWADDR) { AvahiInterfaceAddress *addr; /* This address is new or has been modified, so let's get an object for it */ if (!(addr = avahi_interface_monitor_get_address(m, i, r))) /* Mmm, no object existing yet, so let's create a new one */ if (!(addr = avahi_interface_address_new(m, i, r, ifaddrmsg->ifa_prefixlen))) return; /* OOM */ /* Update the scope field for the address */ addr->global_scope = ifaddrmsg->ifa_scope == RT_SCOPE_UNIVERSE || ifaddrmsg->ifa_scope == RT_SCOPE_SITE; addr->deprecated = !!(ifaddrmsg->ifa_flags & IFA_F_DEPRECATED); } else { AvahiInterfaceAddress *addr; assert(n->nlmsg_type == RTM_DELADDR); /* Try to get a reference to our AvahiInterfaceAddress object for this address */ if (!(addr = avahi_interface_monitor_get_address(m, i, r))) return; /* And free it */ avahi_interface_address_free(addr); } /* Avahi only considers interfaces with at least one address * attached relevant. Since we migh have added or removed an * address, let's have it check again whether the interface is * now relevant */ avahi_interface_check_relevant(i); /* Update any associated RRs, like A or AAAA for our new/removed address */ avahi_interface_update_rrs(i, 0); } else if (n->nlmsg_type == NLMSG_DONE) { /* This wild dump request ended, so let's see what we do next */ if (m->osdep.list == LIST_IFACE) { /* Mmmm, interfaces have been wild dumped already, so * let's go on with wild dumping the addresses */ if (netlink_list_items(m->osdep.netlink, RTM_GETADDR, &m->osdep.query_addr_seq) < 0) { avahi_log_warn("NETLINK: Failed to list addrs: %s", strerror(errno)); m->osdep.list = LIST_DONE; } else /* Update state information */ m->osdep.list = LIST_ADDR; } else /* We're done. Tell avahi_interface_monitor_sync() to finish. */ m->osdep.list = LIST_DONE; if (m->osdep.list == LIST_DONE) { /* Only after this boolean variable has been set, Avahi * will start to announce or browse on all interfaces. It * is originaly set to 0, which means that relevancy * checks and RR updates are disabled during the wild * dumps. */ m->list_complete = 1; /* So let's check if any interfaces are relevant now */ avahi_interface_monitor_check_relevant(m); /* And update all RRs attached to any interface */ avahi_interface_monitor_update_rrs(m, 0); /* Tell the user that the wild dump is complete */ avahi_log_info("Network interface enumeration completed."); } } else if (n->nlmsg_type == NLMSG_ERROR && (n->nlmsg_seq == m->osdep.query_link_seq || n->nlmsg_seq == m->osdep.query_addr_seq)) { struct nlmsgerr *e = NLMSG_DATA (n); /* Some kind of error happened. Let's just tell the user and * ignore it otherwise */ if (e->error) avahi_log_warn("NETLINK: Failed to browse: %s", strerror(-e->error)); } } int avahi_interface_monitor_init_osdep(AvahiInterfaceMonitor *m) { assert(m); /* Initialize our own data */ m->osdep.netlink = NULL; m->osdep.query_addr_seq = m->osdep.query_link_seq = 0; /* Create a netlink object for us. It abstracts some things and * makes netlink easier to use. It will attach to the main loop * for us and call netlink_callback() whenever an event * happens. */ if (!(m->osdep.netlink = avahi_netlink_new(m->server->poll_api, RTMGRP_LINK|RTMGRP_IPV4_IFADDR|RTMGRP_IPV6_IFADDR, netlink_callback, m))) goto fail; /* Set the initial state. */ m->osdep.list = LIST_IFACE; /* Start the wild dump for the interfaces */ if (netlink_list_items(m->osdep.netlink, RTM_GETLINK, &m->osdep.query_link_seq) < 0) goto fail; return 0; fail: if (m->osdep.netlink) { avahi_netlink_free(m->osdep.netlink); m->osdep.netlink = NULL; } return -1; } void avahi_interface_monitor_free_osdep(AvahiInterfaceMonitor *m) { assert(m); if (m->osdep.netlink) { avahi_netlink_free(m->osdep.netlink); m->osdep.netlink = NULL; } } void avahi_interface_monitor_sync(AvahiInterfaceMonitor *m) { assert(m); /* Let's handle netlink events until we are done with wild * dumping */ while (!m->list_complete) if (!avahi_netlink_work(m->osdep.netlink, 1) == 0) break; /* At this point Avahi knows about all local interfaces and * addresses in existance. */ } avahi-0.7/avahi-core/PaxHeaders.10109/domain-util.h0000644000000000000000000000013213130651643016612 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.135987166 avahi-0.7/avahi-core/domain-util.h0000644000175000017500000000264313130651643020226 0ustar00lathiatlathiat00000000000000#ifndef foodomainutilhfoo #define foodomainutilhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include #include AVAHI_C_DECL_BEGIN /** Return the local host name. */ char *avahi_get_host_name(char *ret_s, size_t size); /** Return the local host name. avahi_free() the result! */ char *avahi_get_host_name_strdup(void); /** Do a binary comparison of to specified domain names, return -1, 0, or 1, depending on the order. */ int avahi_binary_domain_cmp(const char *a, const char *b); /** Returns 1 if the the end labels of domain are eqal to suffix */ int avahi_domain_ends_with(const char *domain, const char *suffix); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/addr-util.c0000644000000000000000000000013213130651643016250 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.135987166 avahi-0.7/avahi-core/addr-util.c0000644000175000017500000000531213130651643017660 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include "addr-util.h" AvahiAddress *avahi_address_from_sockaddr(const struct sockaddr* sa, AvahiAddress *ret_addr) { assert(sa); assert(ret_addr); assert(sa->sa_family == AF_INET || sa->sa_family == AF_INET6); ret_addr->proto = avahi_af_to_proto(sa->sa_family); if (sa->sa_family == AF_INET) memcpy(&ret_addr->data.ipv4, &((const struct sockaddr_in*) sa)->sin_addr, sizeof(ret_addr->data.ipv4)); else memcpy(&ret_addr->data.ipv6, &((const struct sockaddr_in6*) sa)->sin6_addr, sizeof(ret_addr->data.ipv6)); return ret_addr; } uint16_t avahi_port_from_sockaddr(const struct sockaddr* sa) { assert(sa); assert(sa->sa_family == AF_INET || sa->sa_family == AF_INET6); if (sa->sa_family == AF_INET) return ntohs(((const struct sockaddr_in*) sa)->sin_port); else return ntohs(((const struct sockaddr_in6*) sa)->sin6_port); } int avahi_address_is_ipv4_in_ipv6(const AvahiAddress *a) { static const uint8_t ipv4_in_ipv6[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF }; assert(a); if (a->proto != AVAHI_PROTO_INET6) return 0; return memcmp(a->data.ipv6.address, ipv4_in_ipv6, sizeof(ipv4_in_ipv6)) == 0; } #define IPV4LL_NETWORK 0xA9FE0000L #define IPV4LL_NETMASK 0xFFFF0000L #define IPV6LL_NETWORK 0xFE80 #define IPV6LL_NETMASK 0xFFC0 int avahi_address_is_link_local(const AvahiAddress *a) { assert(a); if (a->proto == AVAHI_PROTO_INET) { uint32_t n = ntohl(a->data.ipv4.address); return (n & IPV4LL_NETMASK) == IPV4LL_NETWORK; } else if (a->proto == AVAHI_PROTO_INET6) { unsigned n = (a->data.ipv6.address[0] << 8) | (a->data.ipv6.address[1] << 0); return (n & IPV6LL_NETMASK) == IPV6LL_NETWORK; } return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/prioq.h0000644000000000000000000000013213130651643015522 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.107987791 avahi-0.7/avahi-core/prioq.h0000644000175000017500000000303713130651643017134 0ustar00lathiatlathiat00000000000000#ifndef fooprioqhfoo #define fooprioqhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiPrioQueue AvahiPrioQueue; typedef struct AvahiPrioQueueNode AvahiPrioQueueNode; typedef int (*AvahiPQCompareFunc)(const void* a, const void* b); struct AvahiPrioQueue { AvahiPrioQueueNode *root, *last; unsigned n_nodes; AvahiPQCompareFunc compare; }; struct AvahiPrioQueueNode { AvahiPrioQueue *queue; void* data; unsigned x, y; AvahiPrioQueueNode *left, *right, *parent, *next, *prev; }; AvahiPrioQueue* avahi_prio_queue_new(AvahiPQCompareFunc compare); void avahi_prio_queue_free(AvahiPrioQueue *q); AvahiPrioQueueNode* avahi_prio_queue_put(AvahiPrioQueue *q, void* data); void avahi_prio_queue_remove(AvahiPrioQueue *q, AvahiPrioQueueNode *n); void avahi_prio_queue_shuffle(AvahiPrioQueue *q, AvahiPrioQueueNode *n); #endif avahi-0.7/avahi-core/PaxHeaders.10109/browse.h0000644000000000000000000000013213130651643015671 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.119987521 avahi-0.7/avahi-core/browse.h0000644000175000017500000000311113130651643017274 0ustar00lathiatlathiat00000000000000#ifndef foobrowsehfoo #define foobrowsehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include "core.h" #include "timeeventq.h" #include "internal.h" #include "dns.h" #include "lookup.h" typedef struct AvahiSRBLookup AvahiSRBLookup; struct AvahiSRecordBrowser { AVAHI_LLIST_FIELDS(AvahiSRecordBrowser, browser); int dead; AvahiServer *server; AvahiKey *key; AvahiIfIndex interface; AvahiProtocol protocol; AvahiLookupFlags flags; AvahiTimeEvent *defer_time_event; AvahiSRecordBrowserCallback callback; void* userdata; /* Lookup data */ AVAHI_LLIST_HEAD(AvahiSRBLookup, lookups); unsigned n_lookups; AvahiSRBLookup *root_lookup; }; void avahi_browser_cleanup(AvahiServer *server); void avahi_s_record_browser_destroy(AvahiSRecordBrowser *b); void avahi_s_record_browser_restart(AvahiSRecordBrowser *b); #endif avahi-0.7/avahi-core/PaxHeaders.10109/announce.h0000644000000000000000000000013213130651643016176 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.115987612 avahi-0.7/avahi-core/announce.h0000644000175000017500000000437413130651643017615 0ustar00lathiatlathiat00000000000000#ifndef fooannouncehfoo #define fooannouncehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiAnnouncer AvahiAnnouncer; #include #include "iface.h" #include "internal.h" #include "timeeventq.h" #include "publish.h" typedef enum { AVAHI_PROBING, /* probing phase */ AVAHI_WAITING, /* wait for other records in group */ AVAHI_ANNOUNCING, /* announcing phase */ AVAHI_ESTABLISHED /* we'e established */ } AvahiAnnouncerState; struct AvahiAnnouncer { AvahiServer *server; AvahiInterface *interface; AvahiEntry *entry; AvahiTimeEvent *time_event; AvahiAnnouncerState state; unsigned n_iteration; unsigned sec_delay; AVAHI_LLIST_FIELDS(AvahiAnnouncer, by_interface); AVAHI_LLIST_FIELDS(AvahiAnnouncer, by_entry); }; void avahi_announce_interface(AvahiServer *s, AvahiInterface *i); void avahi_announce_entry(AvahiServer *s, AvahiEntry *e); void avahi_announce_group(AvahiServer *s, AvahiSEntryGroup *g); void avahi_entry_return_to_initial_state(AvahiServer *s, AvahiEntry *e, AvahiInterface *i); void avahi_s_entry_group_check_probed(AvahiSEntryGroup *g, int immediately); int avahi_entry_is_registered(AvahiServer *s, AvahiEntry *e, AvahiInterface *i); int avahi_entry_is_probing(AvahiServer *s, AvahiEntry *e, AvahiInterface *i); void avahi_goodbye_interface(AvahiServer *s, AvahiInterface *i, int send_goodbye, int rem); void avahi_goodbye_entry(AvahiServer *s, AvahiEntry *e, int send_goodbye, int rem); void avahi_reannounce_entry(AvahiServer *s, AvahiEntry *e); #endif avahi-0.7/avahi-core/PaxHeaders.10109/iface-pfroute.c0000644000000000000000000000013213130651643017114 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.139987076 avahi-0.7/avahi-core/iface-pfroute.c0000644000175000017500000003522513130651643020532 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #ifdef HAVE_SYS_SYSCTL_H #include #else #include #endif #include #include #include #include #include "log.h" #include "iface.h" #include "iface-pfroute.h" #include "util.h" static int bitcount (unsigned int n) { int count=0 ; while (n) { count++ ; n &= (n - 1) ; } return count ; } static void rtm_info(struct rt_msghdr *rtm, AvahiInterfaceMonitor *m) { AvahiHwInterface *hw; struct if_msghdr *ifm = (struct if_msghdr *)rtm; struct sockaddr_dl *sdl = (struct sockaddr_dl *)(ifm + 1); if (sdl->sdl_family != AF_LINK) return; if (ifm->ifm_addrs == 0 && ifm->ifm_index > 0) { if (!(hw = avahi_interface_monitor_get_hw_interface(m, (AvahiIfIndex) ifm->ifm_index))) return; avahi_hw_interface_free(hw, 0); return; } if (!(hw = avahi_interface_monitor_get_hw_interface(m, ifm->ifm_index))) if (!(hw = avahi_hw_interface_new(m, (AvahiIfIndex) ifm->ifm_index))) return; /* OOM */ hw->flags_ok = (ifm->ifm_flags & IFF_UP) && (!m->server->config.use_iff_running || (ifm->ifm_flags & IFF_RUNNING)) && !(ifm->ifm_flags & IFF_LOOPBACK) && (ifm->ifm_flags & IFF_MULTICAST) && (m->server->config.allow_point_to_point || !(ifm->ifm_flags & IFF_POINTOPOINT)); avahi_free(hw->name); hw->name = avahi_strndup(sdl->sdl_data, sdl->sdl_nlen); hw->mtu = ifm->ifm_data.ifi_mtu; hw->mac_address_size = sdl->sdl_alen; if (hw->mac_address_size > AVAHI_MAC_ADDRESS_MAX) hw->mac_address_size = AVAHI_MAC_ADDRESS_MAX; memcpy(hw->mac_address, sdl->sdl_data + sdl->sdl_nlen, hw->mac_address_size); /* { */ /* char mac[256]; */ /* avahi_log_debug("======\n name: %s\n index:%d\n mtu:%d\n mac:%s\n flags_ok:%d\n======", */ /* hw->name, hw->index, */ /* hw->mtu, */ /* avahi_format_mac_address(mac, sizeof(mac), hw->mac_address, hw->mac_address_size), */ /* hw->flags_ok); */ /* } */ avahi_hw_interface_check_relevant(hw); avahi_hw_interface_update_rrs(hw, 0); } #define ROUNDUP(a) \ ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long)) #ifdef HAVE_SYS_SYSCTL_H #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len)) #else #define ADVANCE(x, n) (x += ROUNDUP(sizeof(struct sockaddr))) #endif static void rtm_addr(struct rt_msghdr *rtm, AvahiInterfaceMonitor *m) { AvahiInterface *iface; AvahiAddress raddr; int raddr_valid = 0; struct ifa_msghdr *ifam = (struct ifa_msghdr *) rtm; char *cp = (char *)(ifam + 1); char *cp0; int i; int prefixlen = 0; struct sockaddr *sa =NULL; #if defined(__NetBSD__) || defined(__OpenBSD__) if(((struct sockaddr *)cp)->sa_family == AF_UNSPEC) ((struct sockaddr *)cp)->sa_family = AF_INET; #endif for (cp0 = cp, i = 0; i < RTAX_MAX; i++) { if (!(ifam->ifam_addrs & (1<sa_family != AF_INET && sa->sa_family != AF_INET6) return; if (!(iface = avahi_interface_monitor_get_interface(m, (AvahiIfIndex) ifam->ifam_index, avahi_af_to_proto(sa->sa_family)))) return; raddr.proto = avahi_af_to_proto(sa->sa_family); for(cp = cp0, i = 0; i < RTAX_MAX; i++) { if (!(ifam->ifam_addrs & (1<sa_len == 0) continue; #endif switch(sa->sa_family) { case AF_INET: switch (1<sin_addr.s_addr); break; case RTA_IFA: memcpy(raddr.data.data, &((struct sockaddr_in *)sa)->sin_addr, sizeof(struct in_addr)); raddr_valid = 1; default: break; } break; case AF_INET6: switch (1<sin6_addr.s6_addr); break; case RTA_IFA: memcpy(raddr.data.data, &((struct sockaddr_in6 *)sa)->sin6_addr, sizeof(struct in6_addr)); #ifdef __KAME__ if (IN6_IS_ADDR_LINKLOCAL((struct in6_addr *)raddr.data.data)) { ((struct in6_addr *)raddr.data.data)->s6_addr[2] = 0; ((struct in6_addr *)raddr.data.data)->s6_addr[3] = 0; } #endif raddr_valid = 1; default: break; } break; default: break; } #ifdef SA_SIZE cp += SA_SIZE(sa); #else ADVANCE(cp, sa); #endif } if (!raddr_valid) return; if(rtm->rtm_type == RTM_NEWADDR) { AvahiInterfaceAddress *addriface; if (!(addriface = avahi_interface_monitor_get_address(m, iface, &raddr))) if (!(addriface = avahi_interface_address_new(m, iface, &raddr, prefixlen))) return; /* OOM */ if (raddr.proto == AVAHI_PROTO_INET6) { addriface->global_scope = !(IN6_IS_ADDR_LINKLOCAL((struct in6_addr *)raddr.data.data) || IN6_IS_ADDR_MULTICAST((struct in6_addr *)raddr.data.data)); } else addriface->global_scope = 1; } else { AvahiInterfaceAddress *addriface; assert(rtm->rtm_type == RTM_DELADDR); if (!(addriface = avahi_interface_monitor_get_address(m, iface, &raddr))) return; avahi_interface_address_free(addriface); } avahi_interface_check_relevant(iface); avahi_interface_update_rrs(iface, 0); } static void parse_rtmsg(struct rt_msghdr *rtm, AvahiInterfaceMonitor *m) { assert(m); assert(rtm); if (rtm->rtm_version != RTM_VERSION) { avahi_log_warn("routing message version %d not understood", rtm->rtm_version); return; } switch (rtm->rtm_type) { case RTM_IFINFO: rtm_info(rtm,m); break; case RTM_NEWADDR: case RTM_DELADDR: rtm_addr(rtm,m); break; default: break; } } static void socket_event(AvahiWatch *w, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent event,void *userdata) { AvahiInterfaceMonitor *m = (AvahiInterfaceMonitor *)userdata; AvahiPfRoute *nl = m->osdep.pfroute; ssize_t bytes; char msg[2048]; assert(m); assert(w); assert(nl); assert(fd == nl->fd); do { if((bytes = recv(nl->fd, msg, 2048, MSG_DONTWAIT)) < 0) { if (errno == EAGAIN || errno == EINTR) return; avahi_log_error(__FILE__": recv() failed: %s", strerror(errno)); return; } parse_rtmsg((struct rt_msghdr *)msg, m); } while (bytes > 0); } int avahi_interface_monitor_init_osdep(AvahiInterfaceMonitor *m) { int fd = -1; assert(m); m->osdep.pfroute = NULL; if ((fd = socket(PF_ROUTE, SOCK_RAW, AF_UNSPEC)) < 0) { avahi_log_error(__FILE__": socket(PF_ROUTE): %s", strerror(errno)); goto fail; } if (!(m->osdep.pfroute = avahi_new(AvahiPfRoute , 1))) { avahi_log_error(__FILE__": avahi_new() failed."); goto fail; } m->osdep.pfroute->fd = fd; if (!(m->osdep.pfroute->watch = m->server->poll_api->watch_new(m->server->poll_api, m->osdep.pfroute->fd, AVAHI_WATCH_IN, socket_event, m))) { avahi_log_error(__FILE__": Failed to create watch."); goto fail; } return 0; fail: if (m->osdep.pfroute) { if (m->osdep.pfroute->watch) m->server->poll_api->watch_free(m->osdep.pfroute->watch); if (fd >= 0) close(fd); m->osdep.pfroute = NULL; } return -1; } void avahi_interface_monitor_free_osdep(AvahiInterfaceMonitor *m) { assert(m); if (m->osdep.pfroute) { if (m->osdep.pfroute->watch) m->server->poll_api->watch_free(m->osdep.pfroute->watch); if (m->osdep.pfroute->fd >= 0) close(m->osdep.pfroute->fd); avahi_free(m->osdep.pfroute); m->osdep.pfroute = NULL; } } #if defined (SIOCGLIFNUM) && defined(HAVE_STRUCT_LIFCONF) /* Solaris 8 and later; Sol 7? */ /* * I got this function from GNU zsbra */ static int ip6_masklen (struct in6_addr netmask) { int len = 0; unsigned char val; unsigned char *pnt; pnt = (unsigned char *) & netmask; while ((*pnt == 0xff) && len < 128) { len += 8; pnt++; } if (len < 128) { val = *pnt; while (val) { len++; val <<= 1; } } return len; } static void if_add_interface(struct lifreq *lifreq, AvahiInterfaceMonitor *m, int fd, int count) { AvahiHwInterface *hw; AvahiAddress addr; struct lifreq lifrcopy; unsigned int index; int flags; int mtu; int prefixlen; AvahiInterfaceAddress *addriface; AvahiInterface *iface; struct sockaddr_in mask; struct sockaddr_in6 mask6; char caddr[AVAHI_ADDRESS_STR_MAX]; lifrcopy = *lifreq; if (ioctl(fd, SIOCGLIFFLAGS, &lifrcopy) < 0) { avahi_log_error(__FILE__": ioctl(SIOCGLIFFLAGS) %s", strerror(errno)); return; } flags = lifrcopy.lifr_flags; if (ioctl(fd, SIOCGLIFMTU, &lifrcopy) < 0) { avahi_log_error(__FILE__": ioctl(SIOCGLIFMTU) %s", strerror(errno)); return; } mtu = lifrcopy.lifr_metric; if (ioctl(fd, SIOCGLIFADDR, &lifrcopy) < 0) { avahi_log_error(__FILE__": ioctl(SIOCGLIFADDR) %s", strerror(errno)); return; } addr.proto = avahi_af_to_proto(lifreq->lifr_addr.ss_family); if (ioctl(fd, SIOCGLIFNETMASK, &lifrcopy) < 0) { avahi_log_error(__FILE__": ioctl(SIOCGLIFNETMASK) %s", strerror(errno)); return; } switch (lifreq->lifr_addr.ss_family) { case AF_INET: memcpy(addr.data.data, &((struct sockaddr_in *)&lifreq->lifr_addr)->sin_addr, sizeof(struct in_addr)); memcpy(&mask, &((struct sockaddr_in *)&lifrcopy.lifr_addr)->sin_addr, sizeof(struct in_addr)); prefixlen = bitcount((unsigned int) mask.sin_addr.s_addr); break; case AF_INET6: memcpy(addr.data.data, &((struct sockaddr_in6 *)&lifreq->lifr_addr)->sin6_addr, sizeof(struct in6_addr)); memcpy(&mask6, &((struct sockaddr_in6 *)&lifrcopy.lifr_addr)->sin6_addr, sizeof(struct in6_addr)); prefixlen = lifrcopy.lifr_addrlen; break; default: break; } index = if_nametoindex(lifreq->lifr_name); if (!(hw = avahi_interface_monitor_get_hw_interface(m, (AvahiIfIndex) index))) { if (!(hw = avahi_hw_interface_new(m, (AvahiIfIndex) index))) return; /* OOM */ hw->flags_ok = (flags & IFF_UP) && (!m->server->config.use_iff_running || (flags & IFF_RUNNING)) && !(flags & IFF_LOOPBACK) && (flags & IFF_MULTICAST) && (m->server->config.allow_point_to_point || !(flags & IFF_POINTOPOINT)); hw->name = avahi_strdup(lifreq->lifr_name); hw->mtu = mtu; /* TODO get mac address */ } if (!(iface = avahi_interface_monitor_get_interface(m, (AvahiIfIndex)index, addr.proto))) return; if (!(addriface = avahi_interface_monitor_get_address(m, iface, &addr))) if (!(addriface = avahi_interface_address_new(m, iface, &addr, prefixlen))) return; /* OOM */ addriface->global_scope = 1; avahi_hw_interface_check_relevant(hw); avahi_hw_interface_update_rrs(hw, 0); } #endif void avahi_interface_monitor_sync(AvahiInterfaceMonitor *m) { #ifndef HAVE_STRUCT_LIFCONF size_t needed; int mib[6]; char *buf, *lim, *next, count = 0; struct rt_msghdr *rtm; assert(m); retry2: mib[0] = CTL_NET; mib[1] = PF_ROUTE; mib[2] = 0; /* protocol */ mib[3] = 0; /* wildcard address family */ mib[4] = NET_RT_IFLIST; mib[5] = 0; /* no flags */ if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { avahi_log_error("sysctl failed: %s", strerror(errno)); avahi_log_error("route-sysctl-estimate"); return; } if ((buf = avahi_malloc(needed)) == NULL) { avahi_log_error("malloc failed in avahi_interface_monitor_sync"); return; } if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) { avahi_log_warn("sysctl failed: %s", strerror(errno)); if (errno == ENOMEM && count++ < 10) { avahi_log_warn("Routing table grew, retrying"); sleep(1); avahi_free(buf); goto retry2; } } lim = buf + needed; for (next = buf; next < lim; next += rtm->rtm_msglen) { rtm = (struct rt_msghdr *)next; parse_rtmsg(rtm, m); } m->list_complete = 1; avahi_interface_monitor_check_relevant(m); avahi_interface_monitor_update_rrs(m, 0); avahi_log_info("Network interface enumeration completed."); #elif defined (SIOCGLIFNUM) && defined(HAVE_STRUCT_LIFCONF) /* Solaris 8 and later; Sol 7? */ int sockfd; int ret; int n; struct lifnum lifn; struct lifconf lifc; struct lifreq *lifreq; if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { avahi_log_error(__FILE__": socket(PFROUTE): %s", strerror(errno)); return; } lifc.lifc_buf = NULL; lifn.lifn_family = AF_UNSPEC; lifn.lifn_flags = 0; if (ioctl(sockfd, SIOCGLIFNUM, &lifn) < 0) { avahi_log_error(__FILE__": ioctl(SIOCGLIFNUM): %s", strerror(errno)); goto end; } lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); if ((lifc.lifc_buf = avahi_malloc(lifc.lifc_len)) == NULL) { avahi_log_error("malloc failed in avahi_interface_monitor_sync"); goto end; } lifc.lifc_family = NULL; lifc.lifc_flags = 0; if(ioctl(sockfd, SIOCGLIFCONF, &lifc) < 0) { avahi_log_error(__FILE__": ioctl(SIOCGLIFCONF): %s", strerror(errno)); goto end; } lifreq = lifc.lifc_req; for (n = 0; n < lifc.lifc_len; n += sizeof(struct lifreq)) { if_add_interface(lifreq, m, sockfd, lifn.lifn_count); lifreq++; } m->list_complete = 1; avahi_interface_monitor_check_relevant(m); avahi_interface_monitor_update_rrs(m, 0); end: close(sockfd); avahi_free(lifc.lifc_buf); avahi_log_info("Network interface enumeration completed."); #endif } avahi-0.7/avahi-core/PaxHeaders.10109/wide-area.c0000644000000000000000000000013213130651643016221 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.131987255 avahi-0.7/avahi-core/wide-area.c0000644000175000017500000004757513130651643017652 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "internal.h" #include "browse.h" #include "socket.h" #include "log.h" #include "hashmap.h" #include "wide-area.h" #include "addr-util.h" #include "rr-util.h" #define CACHE_ENTRIES_MAX 500 typedef struct AvahiWideAreaCacheEntry AvahiWideAreaCacheEntry; struct AvahiWideAreaCacheEntry { AvahiWideAreaLookupEngine *engine; AvahiRecord *record; struct timeval timestamp; struct timeval expiry; AvahiTimeEvent *time_event; AVAHI_LLIST_FIELDS(AvahiWideAreaCacheEntry, by_key); AVAHI_LLIST_FIELDS(AvahiWideAreaCacheEntry, cache); }; struct AvahiWideAreaLookup { AvahiWideAreaLookupEngine *engine; int dead; uint32_t id; /* effectively just an uint16_t, but we need it as an index for a hash table */ AvahiTimeEvent *time_event; AvahiKey *key, *cname_key; int n_send; AvahiDnsPacket *packet; AvahiWideAreaLookupCallback callback; void *userdata; AvahiAddress dns_server_used; AVAHI_LLIST_FIELDS(AvahiWideAreaLookup, lookups); AVAHI_LLIST_FIELDS(AvahiWideAreaLookup, by_key); }; struct AvahiWideAreaLookupEngine { AvahiServer *server; int fd_ipv4, fd_ipv6; AvahiWatch *watch_ipv4, *watch_ipv6; uint16_t next_id; /* Cache */ AVAHI_LLIST_HEAD(AvahiWideAreaCacheEntry, cache); AvahiHashmap *cache_by_key; unsigned cache_n_entries; /* Lookups */ AVAHI_LLIST_HEAD(AvahiWideAreaLookup, lookups); AvahiHashmap *lookups_by_id; AvahiHashmap *lookups_by_key; int cleanup_dead; AvahiAddress dns_servers[AVAHI_WIDE_AREA_SERVERS_MAX]; unsigned n_dns_servers; unsigned current_dns_server; }; static AvahiWideAreaLookup* find_lookup(AvahiWideAreaLookupEngine *e, uint16_t id) { AvahiWideAreaLookup *l; int i = (int) id; assert(e); if (!(l = avahi_hashmap_lookup(e->lookups_by_id, &i))) return NULL; assert(l->id == id); if (l->dead) return NULL; return l; } static int send_to_dns_server(AvahiWideAreaLookup *l, AvahiDnsPacket *p) { AvahiAddress *a; assert(l); assert(p); if (l->engine->n_dns_servers <= 0) return -1; assert(l->engine->current_dns_server < l->engine->n_dns_servers); a = &l->engine->dns_servers[l->engine->current_dns_server]; l->dns_server_used = *a; if (a->proto == AVAHI_PROTO_INET) { if (l->engine->fd_ipv4 < 0) return -1; return avahi_send_dns_packet_ipv4(l->engine->fd_ipv4, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv4, AVAHI_DNS_PORT); } else { assert(a->proto == AVAHI_PROTO_INET6); if (l->engine->fd_ipv6 < 0) return -1; return avahi_send_dns_packet_ipv6(l->engine->fd_ipv6, AVAHI_IF_UNSPEC, p, NULL, &a->data.ipv6, AVAHI_DNS_PORT); } } static void next_dns_server(AvahiWideAreaLookupEngine *e) { assert(e); e->current_dns_server++; if (e->current_dns_server >= e->n_dns_servers) e->current_dns_server = 0; } static void lookup_stop(AvahiWideAreaLookup *l) { assert(l); l->callback = NULL; if (l->time_event) { avahi_time_event_free(l->time_event); l->time_event = NULL; } } static void sender_timeout_callback(AvahiTimeEvent *e, void *userdata) { AvahiWideAreaLookup *l = userdata; struct timeval tv; assert(l); /* Try another DNS server after three retries */ if (l->n_send >= 3 && avahi_address_cmp(&l->engine->dns_servers[l->engine->current_dns_server], &l->dns_server_used) == 0) { next_dns_server(l->engine); if (avahi_address_cmp(&l->engine->dns_servers[l->engine->current_dns_server], &l->dns_server_used) == 0) /* There is no other DNS server, fail */ l->n_send = 1000; } if (l->n_send >= 6) { avahi_log_warn(__FILE__": Query timed out."); avahi_server_set_errno(l->engine->server, AVAHI_ERR_TIMEOUT); l->callback(l->engine, AVAHI_BROWSER_FAILURE, AVAHI_LOOKUP_RESULT_WIDE_AREA, NULL, l->userdata); lookup_stop(l); return; } assert(l->packet); send_to_dns_server(l, l->packet); l->n_send++; avahi_time_event_update(e, avahi_elapse_time(&tv, 1000, 0)); } AvahiWideAreaLookup *avahi_wide_area_lookup_new( AvahiWideAreaLookupEngine *e, AvahiKey *key, AvahiWideAreaLookupCallback callback, void *userdata) { struct timeval tv; AvahiWideAreaLookup *l, *t; uint8_t *p; assert(e); assert(key); assert(callback); assert(userdata); l = avahi_new(AvahiWideAreaLookup, 1); l->engine = e; l->dead = 0; l->key = avahi_key_ref(key); l->cname_key = avahi_key_new_cname(l->key); l->callback = callback; l->userdata = userdata; /* If more than 65K wide area quries are issued simultaneously, * this will break. This should be limited by some higher level */ for (;; e->next_id++) if (!find_lookup(e, e->next_id)) break; /* This ID is not yet used. */ l->id = e->next_id++; /* We keep the packet around in case we need to repeat our query */ l->packet = avahi_dns_packet_new(0); avahi_dns_packet_set_field(l->packet, AVAHI_DNS_FIELD_ID, (uint16_t) l->id); avahi_dns_packet_set_field(l->packet, AVAHI_DNS_FIELD_FLAGS, AVAHI_DNS_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, 0, 0)); p = avahi_dns_packet_append_key(l->packet, key, 0); assert(p); avahi_dns_packet_set_field(l->packet, AVAHI_DNS_FIELD_QDCOUNT, 1); if (send_to_dns_server(l, l->packet) < 0) { avahi_log_error(__FILE__": Failed to send packet."); avahi_dns_packet_free(l->packet); avahi_key_unref(l->key); if (l->cname_key) avahi_key_unref(l->cname_key); avahi_free(l); return NULL; } l->n_send = 1; l->time_event = avahi_time_event_new(e->server->time_event_queue, avahi_elapse_time(&tv, 500, 0), sender_timeout_callback, l); avahi_hashmap_insert(e->lookups_by_id, &l->id, l); t = avahi_hashmap_lookup(e->lookups_by_key, l->key); AVAHI_LLIST_PREPEND(AvahiWideAreaLookup, by_key, t, l); avahi_hashmap_replace(e->lookups_by_key, avahi_key_ref(l->key), t); AVAHI_LLIST_PREPEND(AvahiWideAreaLookup, lookups, e->lookups, l); return l; } static void lookup_destroy(AvahiWideAreaLookup *l) { AvahiWideAreaLookup *t; assert(l); lookup_stop(l); t = avahi_hashmap_lookup(l->engine->lookups_by_key, l->key); AVAHI_LLIST_REMOVE(AvahiWideAreaLookup, by_key, t, l); if (t) avahi_hashmap_replace(l->engine->lookups_by_key, avahi_key_ref(l->key), t); else avahi_hashmap_remove(l->engine->lookups_by_key, l->key); AVAHI_LLIST_REMOVE(AvahiWideAreaLookup, lookups, l->engine->lookups, l); avahi_hashmap_remove(l->engine->lookups_by_id, &l->id); avahi_dns_packet_free(l->packet); if (l->key) avahi_key_unref(l->key); if (l->cname_key) avahi_key_unref(l->cname_key); avahi_free(l); } void avahi_wide_area_lookup_free(AvahiWideAreaLookup *l) { assert(l); if (l->dead) return; l->dead = 1; l->engine->cleanup_dead = 1; lookup_stop(l); } void avahi_wide_area_cleanup(AvahiWideAreaLookupEngine *e) { AvahiWideAreaLookup *l, *n; assert(e); while (e->cleanup_dead) { e->cleanup_dead = 0; for (l = e->lookups; l; l = n) { n = l->lookups_next; if (l->dead) lookup_destroy(l); } } } static void cache_entry_free(AvahiWideAreaCacheEntry *c) { AvahiWideAreaCacheEntry *t; assert(c); if (c->time_event) avahi_time_event_free(c->time_event); AVAHI_LLIST_REMOVE(AvahiWideAreaCacheEntry, cache, c->engine->cache, c); t = avahi_hashmap_lookup(c->engine->cache_by_key, c->record->key); AVAHI_LLIST_REMOVE(AvahiWideAreaCacheEntry, by_key, t, c); if (t) avahi_hashmap_replace(c->engine->cache_by_key, avahi_key_ref(c->record->key), t); else avahi_hashmap_remove(c->engine->cache_by_key, c->record->key); c->engine->cache_n_entries --; avahi_record_unref(c->record); avahi_free(c); } static void expiry_event(AvahiTimeEvent *te, void *userdata) { AvahiWideAreaCacheEntry *e = userdata; assert(te); assert(e); cache_entry_free(e); } static AvahiWideAreaCacheEntry* find_record_in_cache(AvahiWideAreaLookupEngine *e, AvahiRecord *r) { AvahiWideAreaCacheEntry *c; assert(e); assert(r); for (c = avahi_hashmap_lookup(e->cache_by_key, r->key); c; c = c->by_key_next) if (avahi_record_equal_no_ttl(r, c->record)) return c; return NULL; } static void run_callbacks(AvahiWideAreaLookupEngine *e, AvahiRecord *r) { AvahiWideAreaLookup *l; assert(e); assert(r); for (l = avahi_hashmap_lookup(e->lookups_by_key, r->key); l; l = l->by_key_next) { if (l->dead || !l->callback) continue; l->callback(e, AVAHI_BROWSER_NEW, AVAHI_LOOKUP_RESULT_WIDE_AREA, r, l->userdata); } if (r->key->clazz == AVAHI_DNS_CLASS_IN && r->key->type == AVAHI_DNS_TYPE_CNAME) { /* It's a CNAME record, so we have to scan the all lookups to see if one matches */ for (l = e->lookups; l; l = l->lookups_next) { AvahiKey *key; if (l->dead || !l->callback) continue; if ((key = avahi_key_new_cname(l->key))) { if (avahi_key_equal(r->key, key)) l->callback(e, AVAHI_BROWSER_NEW, AVAHI_LOOKUP_RESULT_WIDE_AREA, r, l->userdata); avahi_key_unref(key); } } } } static void add_to_cache(AvahiWideAreaLookupEngine *e, AvahiRecord *r) { AvahiWideAreaCacheEntry *c; int is_new; assert(e); assert(r); if ((c = find_record_in_cache(e, r))) { is_new = 0; /* Update the existing entry */ avahi_record_unref(c->record); } else { AvahiWideAreaCacheEntry *t; is_new = 1; /* Enforce cache size */ if (e->cache_n_entries >= CACHE_ENTRIES_MAX) /* Eventually we should improve the caching algorithm here */ goto finish; c = avahi_new(AvahiWideAreaCacheEntry, 1); c->engine = e; c->time_event = NULL; AVAHI_LLIST_PREPEND(AvahiWideAreaCacheEntry, cache, e->cache, c); /* Add the new entry to the cache entry hash table */ t = avahi_hashmap_lookup(e->cache_by_key, r->key); AVAHI_LLIST_PREPEND(AvahiWideAreaCacheEntry, by_key, t, c); avahi_hashmap_replace(e->cache_by_key, avahi_key_ref(r->key), t); e->cache_n_entries ++; } c->record = avahi_record_ref(r); gettimeofday(&c->timestamp, NULL); c->expiry = c->timestamp; avahi_timeval_add(&c->expiry, r->ttl * 1000000); if (c->time_event) avahi_time_event_update(c->time_event, &c->expiry); else c->time_event = avahi_time_event_new(e->server->time_event_queue, &c->expiry, expiry_event, c); finish: if (is_new) run_callbacks(e, r); } static int map_dns_error(uint16_t error) { static const int table[16] = { AVAHI_OK, AVAHI_ERR_DNS_FORMERR, AVAHI_ERR_DNS_SERVFAIL, AVAHI_ERR_DNS_NXDOMAIN, AVAHI_ERR_DNS_NOTIMP, AVAHI_ERR_DNS_REFUSED, AVAHI_ERR_DNS_YXDOMAIN, AVAHI_ERR_DNS_YXRRSET, AVAHI_ERR_DNS_NXRRSET, AVAHI_ERR_DNS_NOTAUTH, AVAHI_ERR_DNS_NOTZONE, AVAHI_ERR_INVALID_DNS_ERROR, AVAHI_ERR_INVALID_DNS_ERROR, AVAHI_ERR_INVALID_DNS_ERROR, AVAHI_ERR_INVALID_DNS_ERROR, AVAHI_ERR_INVALID_DNS_ERROR }; assert(error <= 15); return table[error]; } static void handle_packet(AvahiWideAreaLookupEngine *e, AvahiDnsPacket *p) { AvahiWideAreaLookup *l = NULL; int i, r; AvahiBrowserEvent final_event = AVAHI_BROWSER_ALL_FOR_NOW; assert(e); assert(p); /* Some superficial validity tests */ if (avahi_dns_packet_check_valid(p) < 0 || avahi_dns_packet_is_query(p)) { avahi_log_warn(__FILE__": Ignoring invalid response for wide area datagram."); goto finish; } /* Look for the lookup that issued this query */ if (!(l = find_lookup(e, avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ID))) || l->dead) goto finish; /* Check whether this a packet indicating a failure */ if ((r = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_FLAGS) & 15) != 0 || avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0) { avahi_server_set_errno(e->server, r == 0 ? AVAHI_ERR_NOT_FOUND : map_dns_error(r)); /* Tell the user about the failure */ final_event = AVAHI_BROWSER_FAILURE; /* We go on here, since some of the records contained in the reply might be interesting in some way */ } /* Skip over the question */ for (i = (int) avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT); i > 0; i--) { AvahiKey *k; if (!(k = avahi_dns_packet_consume_key(p, NULL))) { avahi_log_warn(__FILE__": Wide area response packet too short or invalid while reading question key. (Maybe a UTF-8 problem?)"); avahi_server_set_errno(e->server, AVAHI_ERR_INVALID_PACKET); final_event = AVAHI_BROWSER_FAILURE; goto finish; } avahi_key_unref(k); } /* Process responses */ for (i = (int) avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) + (int) avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) + (int) avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ARCOUNT); i > 0; i--) { AvahiRecord *rr; if (!(rr = avahi_dns_packet_consume_record(p, NULL))) { avahi_log_warn(__FILE__": Wide area response packet too short or invalid while reading response record. (Maybe a UTF-8 problem?)"); avahi_server_set_errno(e->server, AVAHI_ERR_INVALID_PACKET); final_event = AVAHI_BROWSER_FAILURE; goto finish; } add_to_cache(e, rr); avahi_record_unref(rr); } finish: if (l && !l->dead) { if (l->callback) l->callback(e, final_event, AVAHI_LOOKUP_RESULT_WIDE_AREA, NULL, l->userdata); lookup_stop(l); } } static void socket_event(AVAHI_GCC_UNUSED AvahiWatch *w, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent events, void *userdata) { AvahiWideAreaLookupEngine *e = userdata; AvahiDnsPacket *p = NULL; if (fd == e->fd_ipv4) p = avahi_recv_dns_packet_ipv4(e->fd_ipv4, NULL, NULL, NULL, NULL, NULL); else { assert(fd == e->fd_ipv6); p = avahi_recv_dns_packet_ipv6(e->fd_ipv6, NULL, NULL, NULL, NULL, NULL); } if (p) { handle_packet(e, p); avahi_dns_packet_free(p); } } AvahiWideAreaLookupEngine *avahi_wide_area_engine_new(AvahiServer *s) { AvahiWideAreaLookupEngine *e; assert(s); e = avahi_new(AvahiWideAreaLookupEngine, 1); e->server = s; e->cleanup_dead = 0; /* Create sockets */ e->fd_ipv4 = s->config.use_ipv4 ? avahi_open_unicast_socket_ipv4() : -1; e->fd_ipv6 = s->config.use_ipv6 ? avahi_open_unicast_socket_ipv6() : -1; if (e->fd_ipv4 < 0 && e->fd_ipv6 < 0) { avahi_log_error(__FILE__": Failed to create wide area sockets: %s", strerror(errno)); if (e->fd_ipv6 >= 0) close(e->fd_ipv6); if (e->fd_ipv4 >= 0) close(e->fd_ipv4); avahi_free(e); return NULL; } /* Create watches */ e->watch_ipv4 = e->watch_ipv6 = NULL; if (e->fd_ipv4 >= 0) e->watch_ipv4 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv4, AVAHI_WATCH_IN, socket_event, e); if (e->fd_ipv6 >= 0) e->watch_ipv6 = s->poll_api->watch_new(e->server->poll_api, e->fd_ipv6, AVAHI_WATCH_IN, socket_event, e); e->n_dns_servers = e->current_dns_server = 0; e->next_id = (uint16_t) rand(); /* Initialize cache */ AVAHI_LLIST_HEAD_INIT(AvahiWideAreaCacheEntry, e->cache); e->cache_by_key = avahi_hashmap_new((AvahiHashFunc) avahi_key_hash, (AvahiEqualFunc) avahi_key_equal, (AvahiFreeFunc) avahi_key_unref, NULL); e->cache_n_entries = 0; /* Initialize lookup list */ e->lookups_by_id = avahi_hashmap_new((AvahiHashFunc) avahi_int_hash, (AvahiEqualFunc) avahi_int_equal, NULL, NULL); e->lookups_by_key = avahi_hashmap_new((AvahiHashFunc) avahi_key_hash, (AvahiEqualFunc) avahi_key_equal, (AvahiFreeFunc) avahi_key_unref, NULL); AVAHI_LLIST_HEAD_INIT(AvahiWideAreaLookup, e->lookups); return e; } void avahi_wide_area_engine_free(AvahiWideAreaLookupEngine *e) { assert(e); avahi_wide_area_clear_cache(e); while (e->lookups) lookup_destroy(e->lookups); avahi_hashmap_free(e->cache_by_key); avahi_hashmap_free(e->lookups_by_id); avahi_hashmap_free(e->lookups_by_key); if (e->watch_ipv4) e->server->poll_api->watch_free(e->watch_ipv4); if (e->watch_ipv6) e->server->poll_api->watch_free(e->watch_ipv6); if (e->fd_ipv6 >= 0) close(e->fd_ipv6); if (e->fd_ipv4 >= 0) close(e->fd_ipv4); avahi_free(e); } void avahi_wide_area_clear_cache(AvahiWideAreaLookupEngine *e) { assert(e); while (e->cache) cache_entry_free(e->cache); assert(e->cache_n_entries == 0); } void avahi_wide_area_set_servers(AvahiWideAreaLookupEngine *e, const AvahiAddress *a, unsigned n) { assert(e); if (a) { for (e->n_dns_servers = 0; n > 0 && e->n_dns_servers < AVAHI_WIDE_AREA_SERVERS_MAX; a++, n--) if ((a->proto == AVAHI_PROTO_INET && e->fd_ipv4 >= 0) || (a->proto == AVAHI_PROTO_INET6 && e->fd_ipv6 >= 0)) e->dns_servers[e->n_dns_servers++] = *a; } else { assert(n == 0); e->n_dns_servers = 0; } e->current_dns_server = 0; avahi_wide_area_clear_cache(e); } void avahi_wide_area_cache_dump(AvahiWideAreaLookupEngine *e, AvahiDumpCallback callback, void* userdata) { AvahiWideAreaCacheEntry *c; assert(e); assert(callback); callback(";; WIDE AREA CACHE ;;; ", userdata); for (c = e->cache; c; c = c->cache_next) { char *t = avahi_record_to_string(c->record); callback(t, userdata); avahi_free(t); } } unsigned avahi_wide_area_scan_cache(AvahiWideAreaLookupEngine *e, AvahiKey *key, AvahiWideAreaLookupCallback callback, void *userdata) { AvahiWideAreaCacheEntry *c; AvahiKey *cname_key; unsigned n = 0; assert(e); assert(key); assert(callback); for (c = avahi_hashmap_lookup(e->cache_by_key, key); c; c = c->by_key_next) { callback(e, AVAHI_BROWSER_NEW, AVAHI_LOOKUP_RESULT_WIDE_AREA|AVAHI_LOOKUP_RESULT_CACHED, c->record, userdata); n++; } if ((cname_key = avahi_key_new_cname(key))) { for (c = avahi_hashmap_lookup(e->cache_by_key, cname_key); c; c = c->by_key_next) { callback(e, AVAHI_BROWSER_NEW, AVAHI_LOOKUP_RESULT_WIDE_AREA|AVAHI_LOOKUP_RESULT_CACHED, c->record, userdata); n++; } avahi_key_unref(cname_key); } return n; } int avahi_wide_area_has_servers(AvahiWideAreaLookupEngine *e) { assert(e); return e->n_dns_servers > 0; } avahi-0.7/avahi-core/PaxHeaders.10109/iface-linux.h0000644000000000000000000000013213130651643016574 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.139987076 avahi-0.7/avahi-core/iface-linux.h0000644000175000017500000000210213130651643020176 0ustar00lathiatlathiat00000000000000#ifndef fooifacelinuxhfoo #define fooifacelinuxhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiInterfaceMonitorOSDep AvahiInterfaceMonitorOSDep; #include "netlink.h" struct AvahiInterfaceMonitorOSDep { AvahiNetlink *netlink; unsigned query_addr_seq, query_link_seq; enum { LIST_IFACE, LIST_ADDR, LIST_DONE } list; }; #endif avahi-0.7/avahi-core/PaxHeaders.10109/hashmap.h0000644000000000000000000000013213130651643016011 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.131987255 avahi-0.7/avahi-core/hashmap.h0000644000175000017500000000354613130651643017430 0ustar00lathiatlathiat00000000000000#ifndef foohashmaphfoo #define foohashmaphfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include AVAHI_C_DECL_BEGIN typedef struct AvahiHashmap AvahiHashmap; typedef unsigned (*AvahiHashFunc)(const void *data); typedef int (*AvahiEqualFunc)(const void *a, const void *b); typedef void (*AvahiFreeFunc)(void *p); AvahiHashmap* avahi_hashmap_new(AvahiHashFunc hash_func, AvahiEqualFunc equal_func, AvahiFreeFunc key_free_func, AvahiFreeFunc value_free_func); void avahi_hashmap_free(AvahiHashmap *m); void* avahi_hashmap_lookup(AvahiHashmap *m, const void *key); int avahi_hashmap_insert(AvahiHashmap *m, void *key, void *value); int avahi_hashmap_replace(AvahiHashmap *m, void *key, void *value); void avahi_hashmap_remove(AvahiHashmap *m, const void *key); typedef void (*AvahiHashmapForeachCallback)(void *key, void *value, void *userdata); void avahi_hashmap_foreach(AvahiHashmap *m, AvahiHashmapForeachCallback callback, void *userdata); unsigned avahi_string_hash(const void *data); int avahi_string_equal(const void *a, const void *b); unsigned avahi_int_hash(const void *data); int avahi_int_equal(const void *a, const void *b); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/util.h0000644000000000000000000000013213130651643015345 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.131987255 avahi-0.7/avahi-core/util.h0000644000175000017500000000237213130651643016760 0ustar00lathiatlathiat00000000000000#ifndef fooutilhfoo #define fooutilhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include AVAHI_C_DECL_BEGIN void avahi_hexdump(const void *p, size_t size); char *avahi_format_mac_address(char *t, size_t l, const uint8_t* mac, size_t size); /** Change every character in the string to upper case (ASCII), return a pointer to the string */ char *avahi_strup(char *s); /** Change every character in the string to lower case (ASCII), return a pointer to the string */ char *avahi_strdown(char *s); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/conformance-test.c0000644000000000000000000000013213130651643017632 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.143986985 avahi-0.7/avahi-core/conformance-test.c0000644000175000017500000001103013130651643021234 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static char *name = NULL; static AvahiSEntryGroup *group = NULL; static int try = 0; static AvahiServer *avahi = NULL; static const AvahiPoll *poll_api; static void dump_line(const char *text, AVAHI_GCC_UNUSED void* userdata) { printf("%s\n", text); } static void dump_timeout_callback(AvahiTimeout *timeout, AVAHI_GCC_UNUSED void* userdata) { struct timeval tv; avahi_server_dump(avahi, dump_line, NULL); avahi_elapse_time(&tv, 5000, 0); poll_api->timeout_update(timeout, &tv); } static void entry_group_callback(AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, void* userdata); static void create_service(const char *t) { char *n; assert(t || name); n = t ? avahi_strdup(t) : avahi_alternative_service_name(name); avahi_free(name); name = n; if (group) avahi_s_entry_group_reset(group); else group = avahi_s_entry_group_new(avahi, entry_group_callback, NULL); avahi_server_add_service(avahi, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_http._tcp", NULL, NULL, 80, "foo", NULL); avahi_s_entry_group_commit(group); try++; } static void rename_timeout_callback(AvahiTimeout *timeout, AVAHI_GCC_UNUSED void *userdata) { struct timeval tv; if (access("flag", F_OK) == 0) { create_service("New - Bonjour Service Name"); return; } avahi_elapse_time(&tv, 5000, 0); poll_api->timeout_update(timeout, &tv); } static void entry_group_callback(AVAHI_GCC_UNUSED AvahiServer *s, AVAHI_GCC_UNUSED AvahiSEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void* userdata) { if (state == AVAHI_ENTRY_GROUP_COLLISION) create_service(NULL); else if (state == AVAHI_ENTRY_GROUP_ESTABLISHED) { avahi_log_debug("ESTABLISHED !!!!"); try = 0; } } static void server_callback(AvahiServer *s, AvahiServerState state, AVAHI_GCC_UNUSED void* userdata) { avahi_log_debug("server state: %i", state); if (state == AVAHI_SERVER_RUNNING) { avahi_server_dump(avahi, dump_line, NULL); } else if (state == AVAHI_SERVER_COLLISION) { char *n; n = avahi_alternative_host_name(avahi_server_get_host_name(s)); avahi_log_warn("Host name conflict, retrying with <%s>", n); avahi_server_set_host_name(s, n); avahi_free(n); } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { int error; AvahiSimplePoll *simple_poll; struct timeval tv; struct AvahiServerConfig config; simple_poll = avahi_simple_poll_new(); poll_api = avahi_simple_poll_get(simple_poll); avahi_server_config_init(&config); config.publish_workstation = 0; config.use_ipv6 = 0; config.publish_domain = 0; config.publish_hinfo = 0; avahi = avahi_server_new(poll_api, &config, server_callback, NULL, &error); avahi_server_config_free(&config); avahi_elapse_time(&tv, 5000, 0); poll_api->timeout_new(poll_api, &tv, dump_timeout_callback, avahi); avahi_elapse_time(&tv, 5000, 0); poll_api->timeout_new(poll_api, &tv, rename_timeout_callback, avahi); /* Evil, but the conformace test requires that*/ create_service("gurke"); avahi_simple_poll_loop(simple_poll); if (group) avahi_s_entry_group_free(group); avahi_server_free(avahi); avahi_simple_poll_free(simple_poll); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/response-sched.c0000644000000000000000000000013213130651643017305 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.111987701 avahi-0.7/avahi-core/response-sched.c0000644000175000017500000003556713130651643020734 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "response-sched.h" #include "log.h" #include "rr-util.h" /* Local packets are supressed this long after sending them */ #define AVAHI_RESPONSE_HISTORY_MSEC 500 /* Local packets are deferred this long before sending them */ #define AVAHI_RESPONSE_DEFER_MSEC 20 /* Additional jitter for deferred packets */ #define AVAHI_RESPONSE_JITTER_MSEC 100 /* Remote packets can suppress local traffic as long as this value */ #define AVAHI_RESPONSE_SUPPRESS_MSEC 700 typedef struct AvahiResponseJob AvahiResponseJob; typedef enum { AVAHI_SCHEDULED, AVAHI_DONE, AVAHI_SUPPRESSED } AvahiResponseJobState; struct AvahiResponseJob { AvahiResponseScheduler *scheduler; AvahiTimeEvent *time_event; AvahiResponseJobState state; struct timeval delivery; AvahiRecord *record; int flush_cache; AvahiAddress querier; int querier_valid; AVAHI_LLIST_FIELDS(AvahiResponseJob, jobs); }; struct AvahiResponseScheduler { AvahiInterface *interface; AvahiTimeEventQueue *time_event_queue; AVAHI_LLIST_HEAD(AvahiResponseJob, jobs); AVAHI_LLIST_HEAD(AvahiResponseJob, history); AVAHI_LLIST_HEAD(AvahiResponseJob, suppressed); }; static AvahiResponseJob* job_new(AvahiResponseScheduler *s, AvahiRecord *record, AvahiResponseJobState state) { AvahiResponseJob *rj; assert(s); assert(record); if (!(rj = avahi_new(AvahiResponseJob, 1))) { avahi_log_error(__FILE__": Out of memory"); return NULL; } rj->scheduler = s; rj->record = avahi_record_ref(record); rj->time_event = NULL; rj->flush_cache = 0; rj->querier_valid = 0; if ((rj->state = state) == AVAHI_SCHEDULED) AVAHI_LLIST_PREPEND(AvahiResponseJob, jobs, s->jobs, rj); else if (rj->state == AVAHI_DONE) AVAHI_LLIST_PREPEND(AvahiResponseJob, jobs, s->history, rj); else /* rj->state == AVAHI_SUPPRESSED */ AVAHI_LLIST_PREPEND(AvahiResponseJob, jobs, s->suppressed, rj); return rj; } static void job_free(AvahiResponseScheduler *s, AvahiResponseJob *rj) { assert(s); assert(rj); if (rj->time_event) avahi_time_event_free(rj->time_event); if (rj->state == AVAHI_SCHEDULED) AVAHI_LLIST_REMOVE(AvahiResponseJob, jobs, s->jobs, rj); else if (rj->state == AVAHI_DONE) AVAHI_LLIST_REMOVE(AvahiResponseJob, jobs, s->history, rj); else /* rj->state == AVAHI_SUPPRESSED */ AVAHI_LLIST_REMOVE(AvahiResponseJob, jobs, s->suppressed, rj); avahi_record_unref(rj->record); avahi_free(rj); } static void elapse_callback(AvahiTimeEvent *e, void* data); static void job_set_elapse_time(AvahiResponseScheduler *s, AvahiResponseJob *rj, unsigned msec, unsigned jitter) { struct timeval tv; assert(s); assert(rj); avahi_elapse_time(&tv, msec, jitter); if (rj->time_event) avahi_time_event_update(rj->time_event, &tv); else rj->time_event = avahi_time_event_new(s->time_event_queue, &tv, elapse_callback, rj); } static void job_mark_done(AvahiResponseScheduler *s, AvahiResponseJob *rj) { assert(s); assert(rj); assert(rj->state == AVAHI_SCHEDULED); AVAHI_LLIST_REMOVE(AvahiResponseJob, jobs, s->jobs, rj); AVAHI_LLIST_PREPEND(AvahiResponseJob, jobs, s->history, rj); rj->state = AVAHI_DONE; job_set_elapse_time(s, rj, AVAHI_RESPONSE_HISTORY_MSEC, 0); gettimeofday(&rj->delivery, NULL); } AvahiResponseScheduler *avahi_response_scheduler_new(AvahiInterface *i) { AvahiResponseScheduler *s; assert(i); if (!(s = avahi_new(AvahiResponseScheduler, 1))) { avahi_log_error(__FILE__": Out of memory"); return NULL; } s->interface = i; s->time_event_queue = i->monitor->server->time_event_queue; AVAHI_LLIST_HEAD_INIT(AvahiResponseJob, s->jobs); AVAHI_LLIST_HEAD_INIT(AvahiResponseJob, s->history); AVAHI_LLIST_HEAD_INIT(AvahiResponseJob, s->suppressed); return s; } void avahi_response_scheduler_free(AvahiResponseScheduler *s) { assert(s); avahi_response_scheduler_clear(s); avahi_free(s); } void avahi_response_scheduler_clear(AvahiResponseScheduler *s) { assert(s); while (s->jobs) job_free(s, s->jobs); while (s->history) job_free(s, s->history); while (s->suppressed) job_free(s, s->suppressed); } static void enumerate_aux_records_callback(AVAHI_GCC_UNUSED AvahiServer *s, AvahiRecord *r, int flush_cache, void* userdata) { AvahiResponseJob *rj = userdata; assert(r); assert(rj); avahi_response_scheduler_post(rj->scheduler, r, flush_cache, rj->querier_valid ? &rj->querier : NULL, 0); } static int packet_add_response_job(AvahiResponseScheduler *s, AvahiDnsPacket *p, AvahiResponseJob *rj) { assert(s); assert(p); assert(rj); /* Try to add this record to the packet */ if (!avahi_dns_packet_append_record(p, rj->record, rj->flush_cache, 0)) return 0; /* Ok, this record will definitely be sent, so schedule the * auxilliary packets, too */ avahi_server_enumerate_aux_records(s->interface->monitor->server, s->interface, rj->record, enumerate_aux_records_callback, rj); job_mark_done(s, rj); return 1; } static void send_response_packet(AvahiResponseScheduler *s, AvahiResponseJob *rj) { AvahiDnsPacket *p; unsigned n; assert(s); assert(rj); if (!(p = avahi_dns_packet_new_response(s->interface->hardware->mtu, 1))) return; /* OOM */ n = 1; /* Put it in the packet. */ if (packet_add_response_job(s, p, rj)) { /* Try to fill up packet with more responses, if available */ while (s->jobs) { if (!packet_add_response_job(s, p, s->jobs)) break; n++; } } else { size_t size; avahi_dns_packet_free(p); /* OK, the packet was too small, so create one that fits */ size = avahi_record_get_estimate_size(rj->record) + AVAHI_DNS_PACKET_HEADER_SIZE; if (!(p = avahi_dns_packet_new_response(size + AVAHI_DNS_PACKET_EXTRA_SIZE, 1))) return; /* OOM */ if (!packet_add_response_job(s, p, rj)) { avahi_dns_packet_free(p); avahi_log_warn("Record too large, cannot send"); job_mark_done(s, rj); return; } } avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_ANCOUNT, n); avahi_interface_send_packet(s->interface, p); avahi_dns_packet_free(p); } static void elapse_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void* data) { AvahiResponseJob *rj = data; assert(rj); if (rj->state == AVAHI_DONE || rj->state == AVAHI_SUPPRESSED) job_free(rj->scheduler, rj); /* Lets drop this entry */ else send_response_packet(rj->scheduler, rj); } static AvahiResponseJob* find_scheduled_job(AvahiResponseScheduler *s, AvahiRecord *record) { AvahiResponseJob *rj; assert(s); assert(record); for (rj = s->jobs; rj; rj = rj->jobs_next) { assert(rj->state == AVAHI_SCHEDULED); if (avahi_record_equal_no_ttl(rj->record, record)) return rj; } return NULL; } static AvahiResponseJob* find_history_job(AvahiResponseScheduler *s, AvahiRecord *record) { AvahiResponseJob *rj; assert(s); assert(record); for (rj = s->history; rj; rj = rj->jobs_next) { assert(rj->state == AVAHI_DONE); if (avahi_record_equal_no_ttl(rj->record, record)) { /* Check whether this entry is outdated */ /* avahi_log_debug("history age: %u", (unsigned) (avahi_age(&rj->delivery)/1000)); */ if (avahi_age(&rj->delivery)/1000 > AVAHI_RESPONSE_HISTORY_MSEC) { /* it is outdated, so let's remove it */ job_free(s, rj); return NULL; } return rj; } } return NULL; } static AvahiResponseJob* find_suppressed_job(AvahiResponseScheduler *s, AvahiRecord *record, const AvahiAddress *querier) { AvahiResponseJob *rj; assert(s); assert(record); assert(querier); for (rj = s->suppressed; rj; rj = rj->jobs_next) { assert(rj->state == AVAHI_SUPPRESSED); assert(rj->querier_valid); if (avahi_record_equal_no_ttl(rj->record, record) && avahi_address_cmp(&rj->querier, querier) == 0) { /* Check whether this entry is outdated */ if (avahi_age(&rj->delivery) > AVAHI_RESPONSE_SUPPRESS_MSEC*1000) { /* it is outdated, so let's remove it */ job_free(s, rj); return NULL; } return rj; } } return NULL; } int avahi_response_scheduler_post(AvahiResponseScheduler *s, AvahiRecord *record, int flush_cache, const AvahiAddress *querier, int immediately) { AvahiResponseJob *rj; struct timeval tv; /* char *t; */ assert(s); assert(record); assert(!avahi_key_is_pattern(record->key)); /* t = avahi_record_to_string(record); */ /* avahi_log_debug("post %i %s", immediately, t); */ /* avahi_free(t); */ /* Check whether this response is suppressed */ if (querier && (rj = find_suppressed_job(s, record, querier)) && avahi_record_is_goodbye(record) == avahi_record_is_goodbye(rj->record) && rj->record->ttl >= record->ttl/2) { /* avahi_log_debug("Response suppressed by known answer suppression."); */ return 0; } /* Check if we already sent this response recently */ if ((rj = find_history_job(s, record))) { if (avahi_record_is_goodbye(record) == avahi_record_is_goodbye(rj->record) && rj->record->ttl >= record->ttl/2 && (rj->flush_cache || !flush_cache)) { /* avahi_log_debug("Response suppressed by local duplicate suppression (history)"); */ return 0; } /* Outdated ... */ job_free(s, rj); } avahi_elapse_time(&tv, immediately ? 0 : AVAHI_RESPONSE_DEFER_MSEC, immediately ? 0 : AVAHI_RESPONSE_JITTER_MSEC); if ((rj = find_scheduled_job(s, record))) { /* avahi_log_debug("Response suppressed by local duplicate suppression (scheduled)"); */ /* Update a little ... */ /* Update the time if the new is prior to the old */ if (avahi_timeval_compare(&tv, &rj->delivery) < 0) { rj->delivery = tv; avahi_time_event_update(rj->time_event, &rj->delivery); } /* Update the flush cache bit */ if (flush_cache) rj->flush_cache = 1; /* Update the querier field */ if (!querier || (rj->querier_valid && avahi_address_cmp(querier, &rj->querier) != 0)) rj->querier_valid = 0; /* Update record data (just for the TTL) */ avahi_record_unref(rj->record); rj->record = avahi_record_ref(record); return 1; } else { /* avahi_log_debug("Accepted new response job."); */ /* Create a new job and schedule it */ if (!(rj = job_new(s, record, AVAHI_SCHEDULED))) return 0; /* OOM */ rj->delivery = tv; rj->time_event = avahi_time_event_new(s->time_event_queue, &rj->delivery, elapse_callback, rj); rj->flush_cache = flush_cache; if ((rj->querier_valid = !!querier)) rj->querier = *querier; return 1; } } void avahi_response_scheduler_incoming(AvahiResponseScheduler *s, AvahiRecord *record, int flush_cache) { AvahiResponseJob *rj; assert(s); /* This function is called whenever an incoming response was * receieved. We drop scheduled responses which match here. The * keyword is "DUPLICATE ANSWER SUPPRESION". */ if ((rj = find_scheduled_job(s, record))) { if ((!rj->flush_cache || flush_cache) && /* flush cache bit was set correctly */ avahi_record_is_goodbye(record) == avahi_record_is_goodbye(rj->record) && /* both goodbye packets, or both not */ record->ttl >= rj->record->ttl/2) { /* sensible TTL */ /* A matching entry was found, so let's mark it done */ /* avahi_log_debug("Response suppressed by distributed duplicate suppression"); */ job_mark_done(s, rj); } return; } if ((rj = find_history_job(s, record))) { /* Found a history job, let's update it */ avahi_record_unref(rj->record); rj->record = avahi_record_ref(record); } else /* Found no existing history job, so let's create a new one */ if (!(rj = job_new(s, record, AVAHI_DONE))) return; /* OOM */ rj->flush_cache = flush_cache; rj->querier_valid = 0; gettimeofday(&rj->delivery, NULL); job_set_elapse_time(s, rj, AVAHI_RESPONSE_HISTORY_MSEC, 0); } void avahi_response_scheduler_suppress(AvahiResponseScheduler *s, AvahiRecord *record, const AvahiAddress *querier) { AvahiResponseJob *rj; assert(s); assert(record); assert(querier); if ((rj = find_scheduled_job(s, record))) { if (rj->querier_valid && avahi_address_cmp(querier, &rj->querier) == 0 && /* same originator */ avahi_record_is_goodbye(record) == avahi_record_is_goodbye(rj->record) && /* both goodbye packets, or both not */ record->ttl >= rj->record->ttl/2) { /* sensible TTL */ /* A matching entry was found, so let's drop it */ /* avahi_log_debug("Known answer suppression active!"); */ job_free(s, rj); } } if ((rj = find_suppressed_job(s, record, querier))) { /* Let's update the old entry */ avahi_record_unref(rj->record); rj->record = avahi_record_ref(record); } else { /* Create a new entry */ if (!(rj = job_new(s, record, AVAHI_SUPPRESSED))) return; /* OOM */ rj->querier_valid = 1; rj->querier = *querier; } gettimeofday(&rj->delivery, NULL); job_set_elapse_time(s, rj, AVAHI_RESPONSE_SUPPRESS_MSEC, 0); } void avahi_response_scheduler_force(AvahiResponseScheduler *s) { assert(s); /* Send all scheduled responses immediately */ while (s->jobs) send_response_packet(s, s->jobs); } avahi-0.7/avahi-core/PaxHeaders.10109/cache.c0000644000000000000000000000013213130651643015426 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.111987701 avahi-0.7/avahi-core/cache.c0000644000175000017500000003163713130651643017047 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "cache.h" #include "log.h" #include "rr-util.h" static void remove_entry(AvahiCache *c, AvahiCacheEntry *e) { AvahiCacheEntry *t; assert(c); assert(e); /* avahi_log_debug("removing from cache: %p %p", c, e); */ /* Remove from hash table */ t = avahi_hashmap_lookup(c->hashmap, e->record->key); AVAHI_LLIST_REMOVE(AvahiCacheEntry, by_key, t, e); if (t) avahi_hashmap_replace(c->hashmap, t->record->key, t); else avahi_hashmap_remove(c->hashmap, e->record->key); /* Remove from linked list */ AVAHI_LLIST_REMOVE(AvahiCacheEntry, entry, c->entries, e); if (e->time_event) avahi_time_event_free(e->time_event); avahi_multicast_lookup_engine_notify(c->server->multicast_lookup_engine, c->interface, e->record, AVAHI_BROWSER_REMOVE); avahi_record_unref(e->record); avahi_free(e); assert(c->n_entries >= 1); --c->n_entries; } AvahiCache *avahi_cache_new(AvahiServer *server, AvahiInterface *iface) { AvahiCache *c; assert(server); if (!(c = avahi_new(AvahiCache, 1))) { avahi_log_error(__FILE__": Out of memory."); return NULL; /* OOM */ } c->server = server; c->interface = iface; if (!(c->hashmap = avahi_hashmap_new((AvahiHashFunc) avahi_key_hash, (AvahiEqualFunc) avahi_key_equal, NULL, NULL))) { avahi_log_error(__FILE__": Out of memory."); avahi_free(c); return NULL; /* OOM */ } AVAHI_LLIST_HEAD_INIT(AvahiCacheEntry, c->entries); c->n_entries = 0; c->last_rand_timestamp = 0; return c; } void avahi_cache_free(AvahiCache *c) { assert(c); while (c->entries) remove_entry(c, c->entries); assert(c->n_entries == 0); avahi_hashmap_free(c->hashmap); avahi_free(c); } static AvahiCacheEntry *lookup_key(AvahiCache *c, AvahiKey *k) { assert(c); assert(k); assert(!avahi_key_is_pattern(k)); return avahi_hashmap_lookup(c->hashmap, k); } void* avahi_cache_walk(AvahiCache *c, AvahiKey *pattern, AvahiCacheWalkCallback cb, void* userdata) { void* ret; assert(c); assert(pattern); assert(cb); if (avahi_key_is_pattern(pattern)) { AvahiCacheEntry *e, *n; for (e = c->entries; e; e = n) { n = e->entry_next; if (avahi_key_pattern_match(pattern, e->record->key)) if ((ret = cb(c, pattern, e, userdata))) return ret; } } else { AvahiCacheEntry *e, *n; for (e = lookup_key(c, pattern); e; e = n) { n = e->by_key_next; if ((ret = cb(c, pattern, e, userdata))) return ret; } } return NULL; } static void* lookup_record_callback(AvahiCache *c, AvahiKey *pattern, AvahiCacheEntry *e, void *userdata) { assert(c); assert(pattern); assert(e); if (avahi_record_equal_no_ttl(e->record, userdata)) return e; return NULL; } static AvahiCacheEntry *lookup_record(AvahiCache *c, AvahiRecord *r) { assert(c); assert(r); return avahi_cache_walk(c, r->key, lookup_record_callback, r); } static void next_expiry(AvahiCache *c, AvahiCacheEntry *e, unsigned percent); static void elapse_func(AvahiTimeEvent *t, void *userdata) { AvahiCacheEntry *e = userdata; /* char *txt; */ unsigned percent = 0; assert(t); assert(e); /* txt = avahi_record_to_string(e->record); */ switch (e->state) { case AVAHI_CACHE_EXPIRY_FINAL: case AVAHI_CACHE_POOF_FINAL: case AVAHI_CACHE_GOODBYE_FINAL: case AVAHI_CACHE_REPLACE_FINAL: remove_entry(e->cache, e); e = NULL; /* avahi_log_debug("Removing entry from cache due to expiration (%s)", txt); */ break; case AVAHI_CACHE_VALID: case AVAHI_CACHE_POOF: e->state = AVAHI_CACHE_EXPIRY1; percent = 85; break; case AVAHI_CACHE_EXPIRY1: e->state = AVAHI_CACHE_EXPIRY2; percent = 90; break; case AVAHI_CACHE_EXPIRY2: e->state = AVAHI_CACHE_EXPIRY3; percent = 95; break; case AVAHI_CACHE_EXPIRY3: e->state = AVAHI_CACHE_EXPIRY_FINAL; percent = 100; break; } if (e) { assert(percent > 0); /* Request a cache update if we are subscribed to this entry */ if (avahi_querier_shall_refresh_cache(e->cache->interface, e->record->key)) avahi_interface_post_query(e->cache->interface, e->record->key, 0, NULL); /* Check again later */ next_expiry(e->cache, e, percent); } /* avahi_free(txt); */ } static void update_time_event(AvahiCache *c, AvahiCacheEntry *e) { assert(c); assert(e); if (e->time_event) avahi_time_event_update(e->time_event, &e->expiry); else e->time_event = avahi_time_event_new(c->server->time_event_queue, &e->expiry, elapse_func, e); } static void next_expiry(AvahiCache *c, AvahiCacheEntry *e, unsigned percent) { AvahiUsec usec, left, right; time_t now; assert(c); assert(e); assert(percent > 0 && percent <= 100); usec = (AvahiUsec) e->record->ttl * 10000; left = usec * percent; right = usec * (percent+2); /* 2% jitter */ now = time(NULL); if (now >= c->last_rand_timestamp + 10) { c->last_rand = rand(); c->last_rand_timestamp = now; } usec = left + (AvahiUsec) ((double) (right-left) * c->last_rand / (RAND_MAX+1.0)); e->expiry = e->timestamp; avahi_timeval_add(&e->expiry, usec); /* g_message("wake up in +%lu seconds", e->expiry.tv_sec - e->timestamp.tv_sec); */ update_time_event(c, e); } static void expire_in_one_second(AvahiCache *c, AvahiCacheEntry *e, AvahiCacheEntryState state) { assert(c); assert(e); e->state = state; gettimeofday(&e->expiry, NULL); avahi_timeval_add(&e->expiry, 1000000); /* 1s */ update_time_event(c, e); } void avahi_cache_update(AvahiCache *c, AvahiRecord *r, int cache_flush, const AvahiAddress *a) { /* char *txt; */ assert(c); assert(r && r->ref >= 1); /* txt = avahi_record_to_string(r); */ if (r->ttl == 0) { /* This is a goodbye request */ AvahiCacheEntry *e; if ((e = lookup_record(c, r))) expire_in_one_second(c, e, AVAHI_CACHE_GOODBYE_FINAL); } else { AvahiCacheEntry *e = NULL, *first; struct timeval now; gettimeofday(&now, NULL); /* This is an update request */ if ((first = lookup_key(c, r->key))) { if (cache_flush) { /* For unique entries drop all entries older than one second */ for (e = first; e; e = e->by_key_next) { AvahiUsec t; t = avahi_timeval_diff(&now, &e->timestamp); if (t > 1000000) expire_in_one_second(c, e, AVAHI_CACHE_REPLACE_FINAL); } } /* Look for exactly the same entry */ for (e = first; e; e = e->by_key_next) if (avahi_record_equal_no_ttl(e->record, r)) break; } if (e) { /* avahi_log_debug("found matching cache entry"); */ /* We need to update the hash table key if we replace the * record */ if (e->by_key_prev == NULL) avahi_hashmap_replace(c->hashmap, r->key, e); /* Update the record */ avahi_record_unref(e->record); e->record = avahi_record_ref(r); /* avahi_log_debug("cache: updating %s", txt); */ } else { /* No entry found, therefore we create a new one */ /* avahi_log_debug("cache: couldn't find matching cache entry for %s", txt); */ if (c->n_entries >= c->server->config.n_cache_entries_max) return; if (!(e = avahi_new(AvahiCacheEntry, 1))) { avahi_log_error(__FILE__": Out of memory"); return; } e->cache = c; e->time_event = NULL; e->record = avahi_record_ref(r); /* Append to hash table */ AVAHI_LLIST_PREPEND(AvahiCacheEntry, by_key, first, e); avahi_hashmap_replace(c->hashmap, e->record->key, first); /* Append to linked list */ AVAHI_LLIST_PREPEND(AvahiCacheEntry, entry, c->entries, e); c->n_entries++; /* Notify subscribers */ avahi_multicast_lookup_engine_notify(c->server->multicast_lookup_engine, c->interface, e->record, AVAHI_BROWSER_NEW); } e->origin = *a; e->timestamp = now; next_expiry(c, e, 80); e->state = AVAHI_CACHE_VALID; e->cache_flush = cache_flush; } /* avahi_free(txt); */ } struct dump_data { AvahiDumpCallback callback; void* userdata; }; static void dump_callback(void* key, void* data, void* userdata) { AvahiCacheEntry *e = data; AvahiKey *k = key; struct dump_data *dump_data = userdata; assert(k); assert(e); assert(data); for (; e; e = e->by_key_next) { char *t; if (!(t = avahi_record_to_string(e->record))) continue; /* OOM */ dump_data->callback(t, dump_data->userdata); avahi_free(t); } } int avahi_cache_dump(AvahiCache *c, AvahiDumpCallback callback, void* userdata) { struct dump_data data; assert(c); assert(callback); callback(";;; CACHE DUMP FOLLOWS ;;;", userdata); data.callback = callback; data.userdata = userdata; avahi_hashmap_foreach(c->hashmap, dump_callback, &data); return 0; } int avahi_cache_entry_half_ttl(AvahiCache *c, AvahiCacheEntry *e) { struct timeval now; unsigned age; assert(c); assert(e); gettimeofday(&now, NULL); age = (unsigned) (avahi_timeval_diff(&now, &e->timestamp)/1000000); /* avahi_log_debug("age: %lli, ttl/2: %u", age, e->record->ttl); */ return age >= e->record->ttl/2; } void avahi_cache_flush(AvahiCache *c) { assert(c); while (c->entries) remove_entry(c, c->entries); } /*** Passive observation of failure ***/ static void* start_poof_callback(AvahiCache *c, AvahiKey *pattern, AvahiCacheEntry *e, void *userdata) { AvahiAddress *a = userdata; struct timeval now; assert(c); assert(pattern); assert(e); assert(a); gettimeofday(&now, NULL); switch (e->state) { case AVAHI_CACHE_VALID: /* The entry was perfectly valid till, now, so let's enter * POOF mode */ e->state = AVAHI_CACHE_POOF; e->poof_address = *a; e->poof_timestamp = now; e->poof_num = 0; break; case AVAHI_CACHE_POOF: if (avahi_timeval_diff(&now, &e->poof_timestamp) < 1000000) break; e->poof_timestamp = now; e->poof_address = *a; e->poof_num ++; /* This is the 4th time we got no response, so let's * fucking remove this entry. */ if (e->poof_num > 3) expire_in_one_second(c, e, AVAHI_CACHE_POOF_FINAL); break; default: ; } return NULL; } void avahi_cache_start_poof(AvahiCache *c, AvahiKey *key, const AvahiAddress *a) { assert(c); assert(key); avahi_cache_walk(c, key, start_poof_callback, (void*) a); } void avahi_cache_stop_poof(AvahiCache *c, AvahiRecord *record, const AvahiAddress *a) { AvahiCacheEntry *e; assert(c); assert(record); assert(a); if (!(e = lookup_record(c, record))) return; /* This function is called for each response suppression record. If the matching cache entry is in POOF state and the query address is the same, we put it back into valid mode */ if (e->state == AVAHI_CACHE_POOF || e->state == AVAHI_CACHE_POOF_FINAL) if (avahi_address_cmp(a, &e->poof_address) == 0) { e->state = AVAHI_CACHE_VALID; next_expiry(c, e, 80); } } avahi-0.7/avahi-core/PaxHeaders.10109/Makefile.am0000644000000000000000000000013113130651643016252 xustar0030 mtime=1499681699.099370756 30 atime=1499681796.877177141 29 ctime=1499681850.09998797 avahi-0.7/avahi-core/Makefile.am0000644000175000017500000001050413130651643017662 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' avahiincludedir=$(includedir)/avahi-core avahiinclude_HEADERS = \ core.h \ log.h \ rr.h \ publish.h \ lookup.h lib_LTLIBRARIES = \ libavahi-core.la if ENABLE_TESTS noinst_PROGRAMS = \ prioq-test \ avahi-test \ conformance-test \ avahi-reflector \ dns-test \ dns-spin-test \ timeeventq-test \ hashmap-test \ querier-test \ update-test TESTS = \ dns-spin-test \ dns-test \ hashmap-test endif libavahi_core_la_SOURCES = \ timeeventq.c timeeventq.h\ iface.c iface.h \ server.c internal.h entry.c \ prioq.c prioq.h \ cache.c cache.h \ socket.c socket.h \ response-sched.c response-sched.h \ query-sched.c query-sched.h \ probe-sched.c probe-sched.h \ announce.c announce.h \ browse.c browse.h \ rrlist.c rrlist.h \ resolve-host-name.c \ resolve-address.c \ browse-domain.c \ browse-service-type.c \ browse-service.c \ resolve-service.c \ dns.c dns.h \ rr.c rr.h rr-util.h \ core.h lookup.h publish.h \ log.c log.h \ browse-dns-server.c \ fdutil.h fdutil.c \ util.c util.h \ hashmap.c hashmap.h \ wide-area.c wide-area.h \ multicast-lookup.c multicast-lookup.h \ querier.c querier.h \ addr-util.h addr-util.c \ domain-util.h domain-util.c \ dns-srv-rr.h if HAVE_NETLINK libavahi_core_la_SOURCES += \ iface-linux.c iface-linux.h \ netlink.c netlink.h else if HAVE_PF_ROUTE libavahi_core_la_SOURCES += \ iface-pfroute.c iface-pfroute.h else libavahi_core_la_SOURCES += \ iface-none.c endif endif libavahi_core_la_CFLAGS = $(AM_CFLAGS) libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_CORE_VERSION_INFO) prioq_test_SOURCES = \ prioq-test.c \ prioq.c prioq.h prioq_test_CFLAGS = $(AM_CFLAGS) prioq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la avahi_test_SOURCES = \ avahi-test.c avahi_test_CFLAGS = $(AM_CFLAGS) avahi_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la update_test_SOURCES = \ update-test.c update_test_CFLAGS = $(AM_CFLAGS) update_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la querier_test_SOURCES = \ querier-test.c querier_test_CFLAGS = $(AM_CFLAGS) querier_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la conformance_test_SOURCES = \ conformance-test.c conformance_test_CFLAGS = $(AM_CFLAGS) conformance_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la avahi_reflector_SOURCES = \ avahi-reflector.c avahi_reflector_CFLAGS = $(AM_CFLAGS) avahi_reflector_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la dns_test_SOURCES = \ dns.c dns.h \ dns-test.c \ log.c log.h \ util.c util.h \ rr.c rr.h \ hashmap.c hashmap.h \ domain-util.c domain-util.h \ addr-util.c addr-util.h dns_test_CFLAGS = $(AM_CFLAGS) dns_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la dns_spin_test_SOURCES = \ dns-spin-test.c dns_spin_test_CFLAGS = $(AM_CFLAGS) dns_spin_test_LDADD = $(AM_LDADD) libavahi-core.la timeeventq_test_SOURCES = \ timeeventq-test.c \ timeeventq.h timeeventq.c \ prioq.h prioq.c \ log.c log.h timeeventq_test_CFLAGS = $(AM_CFLAGS) timeeventq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la hashmap_test_SOURCES = \ hashmap-test.c \ hashmap.h hashmap.c \ util.h util.c hashmap_test_CFLAGS = $(AM_CFLAGS) hashmap_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la valgrind: avahi-test libtool --mode=execute valgrind ./avahi-test gdb: avahi-test libtool --mode=execute gdb ./avahi-test avahi-0.7/avahi-core/PaxHeaders.10109/browse-domain.c0000644000000000000000000000013213130651643017131 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.119987521 avahi-0.7/avahi-core/browse-domain.c0000644000175000017500000001430313130651643020541 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "browse.h" #include "log.h" struct AvahiSDomainBrowser { int ref; AvahiServer *server; AvahiSRecordBrowser *record_browser; AvahiDomainBrowserType type; AvahiSDomainBrowserCallback callback; void* userdata; AvahiTimeEvent *defer_event; int all_for_now_scheduled; AVAHI_LLIST_FIELDS(AvahiSDomainBrowser, browser); }; static void inc_ref(AvahiSDomainBrowser *b) { assert(b); assert(b->ref >= 1); b->ref++; } static void record_browser_callback( AvahiSRecordBrowser*rr, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata) { AvahiSDomainBrowser *b = userdata; char *n = NULL; assert(rr); assert(b); if (event == AVAHI_BROWSER_ALL_FOR_NOW && b->defer_event) { b->all_for_now_scheduled = 1; return; } /* Filter flags */ flags &= AVAHI_LOOKUP_RESULT_CACHED | AVAHI_LOOKUP_RESULT_MULTICAST | AVAHI_LOOKUP_RESULT_WIDE_AREA; if (record) { assert(record->key->type == AVAHI_DNS_TYPE_PTR); n = record->data.ptr.name; if (b->type == AVAHI_DOMAIN_BROWSER_BROWSE) { AvahiStringList *l; /* Filter out entries defined statically */ for (l = b->server->config.browse_domains; l; l = l->next) if (avahi_domain_equal((char*) l->text, n)) return; } } b->callback(b, interface, protocol, event, n, flags, b->userdata); } static void defer_callback(AvahiTimeEvent *e, void *userdata) { AvahiSDomainBrowser *b = userdata; AvahiStringList *l; assert(e); assert(b); assert(b->type == AVAHI_DOMAIN_BROWSER_BROWSE); avahi_time_event_free(b->defer_event); b->defer_event = NULL; /* Increase ref counter */ inc_ref(b); for (l = b->server->config.browse_domains; l; l = l->next) { /* Check whether this object still exists outside our own * stack frame */ if (b->ref <= 1) break; b->callback(b, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AVAHI_BROWSER_NEW, (char*) l->text, AVAHI_LOOKUP_RESULT_STATIC, b->userdata); } if (b->ref > 1) { /* If the ALL_FOR_NOW event has already been scheduled, execute it now */ if (b->all_for_now_scheduled) b->callback(b, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AVAHI_BROWSER_ALL_FOR_NOW, NULL, 0, b->userdata); } /* Decrease ref counter */ avahi_s_domain_browser_free(b); } AvahiSDomainBrowser *avahi_s_domain_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiDomainBrowserType type, AvahiLookupFlags flags, AvahiSDomainBrowserCallback callback, void* userdata) { static const char * const type_table[AVAHI_DOMAIN_BROWSER_MAX] = { "b", "db", "r", "dr", "lb" }; AvahiSDomainBrowser *b; AvahiKey *k = NULL; char n[AVAHI_DOMAIN_NAME_MAX]; int r; assert(server); assert(callback); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, type < AVAHI_DOMAIN_BROWSER_MAX, AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); if (!domain) domain = server->domain_name; if ((r = avahi_service_name_join(n, sizeof(n), type_table[type], "_dns-sd._udp", domain)) < 0) { avahi_server_set_errno(server, r); return NULL; } if (!(b = avahi_new(AvahiSDomainBrowser, 1))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); return NULL; } b->ref = 1; b->server = server; b->callback = callback; b->userdata = userdata; b->record_browser = NULL; b->type = type; b->all_for_now_scheduled = 0; b->defer_event = NULL; AVAHI_LLIST_PREPEND(AvahiSDomainBrowser, browser, server->domain_browsers, b); if (!(k = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_PTR))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(b->record_browser = avahi_s_record_browser_new(server, interface, protocol, k, flags, record_browser_callback, b))) goto fail; avahi_key_unref(k); if (type == AVAHI_DOMAIN_BROWSER_BROWSE && b->server->config.browse_domains) b->defer_event = avahi_time_event_new(server->time_event_queue, NULL, defer_callback, b); return b; fail: if (k) avahi_key_unref(k); avahi_s_domain_browser_free(b); return NULL; } void avahi_s_domain_browser_free(AvahiSDomainBrowser *b) { assert(b); assert(b->ref >= 1); if (--b->ref > 0) return; AVAHI_LLIST_REMOVE(AvahiSDomainBrowser, browser, b->server->domain_browsers, b); if (b->record_browser) avahi_s_record_browser_free(b->record_browser); if (b->defer_event) avahi_time_event_free(b->defer_event); avahi_free(b); } avahi-0.7/avahi-core/PaxHeaders.10109/update-test.c0000644000000000000000000000013213130651643016622 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.147986899 avahi-0.7/avahi-core/update-test.c0000644000175000017500000000544013130651643020234 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include static AvahiSEntryGroup *group = NULL; static void server_callback(AvahiServer *s, AvahiServerState state, AVAHI_GCC_UNUSED void* userdata) { avahi_log_debug("server state: %i", state); if (state == AVAHI_SERVER_RUNNING) { int ret; group = avahi_s_entry_group_new(s, NULL, NULL); assert(group); ret = avahi_server_add_service(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "foo", "_http._tcp", NULL, NULL, 80, "test1", NULL); assert(ret == AVAHI_OK); avahi_s_entry_group_commit(group); } } static void modify_txt_callback(AVAHI_GCC_UNUSED AvahiTimeout *e, void *userdata) { int ret; AvahiServer *s = userdata; avahi_log_debug("modifying"); ret = avahi_server_update_service_txt(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "foo", "_http._tcp", NULL, "test2", NULL); assert(ret == AVAHI_OK); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { AvahiSimplePoll *simple_poll; const AvahiPoll *poll_api; AvahiServer *server; struct timeval tv; AvahiServerConfig config; simple_poll = avahi_simple_poll_new(); assert(simple_poll); poll_api = avahi_simple_poll_get(simple_poll); assert(poll_api); avahi_server_config_init(&config); config.publish_domain = config.publish_workstation = config.use_ipv6 = config.publish_hinfo = 0; server = avahi_server_new(poll_api, &config, server_callback, NULL, NULL); assert(server); avahi_server_config_free(&config); poll_api->timeout_new(poll_api, avahi_elapse_time(&tv, 1000*10, 0), modify_txt_callback, server); avahi_simple_poll_loop(simple_poll); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/log.c0000644000000000000000000000013213130651643015144 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.127987345 avahi-0.7/avahi-core/log.c0000644000175000017500000000416013130651643016554 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "log.h" static AvahiLogFunction log_function = NULL; void avahi_set_log_function(AvahiLogFunction function) { log_function = function; } void avahi_log_ap(AvahiLogLevel level, const char*format, va_list ap) { char txt[256]; vsnprintf(txt, sizeof(txt), format, ap); if (log_function) log_function(level, txt); else fprintf(stderr, "%s\n", txt); } void avahi_log(AvahiLogLevel level, const char*format, ...) { va_list ap; va_start(ap, format); avahi_log_ap(level, format, ap); va_end(ap); } void avahi_log_error(const char*format, ...) { va_list ap; va_start(ap, format); avahi_log_ap(AVAHI_LOG_ERROR, format, ap); va_end(ap); } void avahi_log_warn(const char*format, ...) { va_list ap; va_start(ap, format); avahi_log_ap(AVAHI_LOG_WARN, format, ap); va_end(ap); } void avahi_log_notice(const char*format, ...) { va_list ap; va_start(ap, format); avahi_log_ap(AVAHI_LOG_NOTICE, format, ap); va_end(ap); } void avahi_log_info(const char*format, ...) { va_list ap; va_start(ap, format); avahi_log_ap(AVAHI_LOG_INFO, format, ap); va_end(ap); } void avahi_log_debug(const char*format, ...) { va_list ap; va_start(ap, format); avahi_log_ap(AVAHI_LOG_DEBUG, format, ap); va_end(ap); } avahi-0.7/avahi-core/PaxHeaders.10109/netlink.c0000644000000000000000000000013213130651643016027 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.139987076 avahi-0.7/avahi-core/netlink.c0000644000175000017500000001171013130651643017436 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include "netlink.h" #include "log.h" struct AvahiNetlink { int fd; unsigned seq; AvahiNetlinkCallback callback; void* userdata; uint8_t* buffer; size_t buffer_length; const AvahiPoll *poll_api; AvahiWatch *watch; }; int avahi_netlink_work(AvahiNetlink *nl, int block) { ssize_t bytes; struct msghdr smsg; struct cmsghdr *cmsg; struct ucred *cred; struct iovec iov; struct nlmsghdr *p; char cred_msg[CMSG_SPACE(sizeof(struct ucred))]; assert(nl); iov.iov_base = nl->buffer; iov.iov_len = nl->buffer_length; smsg.msg_name = NULL; smsg.msg_namelen = 0; smsg.msg_iov = &iov; smsg.msg_iovlen = 1; smsg.msg_control = cred_msg; smsg.msg_controllen = sizeof(cred_msg); smsg.msg_flags = (block ? 0 : MSG_DONTWAIT); if ((bytes = recvmsg(nl->fd, &smsg, 0)) < 0) { if (errno == EAGAIN || errno == EINTR) return 0; avahi_log_error(__FILE__": recvmsg() failed: %s", strerror(errno)); return -1; } cmsg = CMSG_FIRSTHDR(&smsg); if (!cmsg || cmsg->cmsg_type != SCM_CREDENTIALS) { avahi_log_warn("No sender credentials received, ignoring data."); return -1; } cred = (struct ucred*) CMSG_DATA(cmsg); if (cred->pid != 0) return -1; p = (struct nlmsghdr *) nl->buffer; assert(nl->callback); for (; bytes > 0; p = NLMSG_NEXT(p, bytes)) { if (!NLMSG_OK(p, (size_t) bytes)) { avahi_log_warn(__FILE__": packet truncated"); return -1; } nl->callback(nl, p, nl->userdata); } return 0; } static void socket_event(AvahiWatch *w, int fd, AVAHI_GCC_UNUSED AvahiWatchEvent event, void *userdata) { AvahiNetlink *nl = userdata; assert(w); assert(nl); assert(fd == nl->fd); avahi_netlink_work(nl, 0); } AvahiNetlink *avahi_netlink_new(const AvahiPoll *poll_api, uint32_t groups, void (*cb) (AvahiNetlink *nl, struct nlmsghdr *n, void* userdata), void* userdata) { int fd = -1; const int on = 1; struct sockaddr_nl addr; AvahiNetlink *nl = NULL; assert(poll_api); assert(cb); if ((fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE)) < 0) { avahi_log_error(__FILE__": socket(PF_NETLINK): %s", strerror(errno)); return NULL; } memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; addr.nl_groups = groups; addr.nl_pid = 0; if (bind(fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { avahi_log_error(__FILE__": bind(): %s", strerror(errno)); goto fail; } if (setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { avahi_log_error(__FILE__": SO_PASSCRED: %s", strerror(errno)); goto fail; } if (!(nl = avahi_new(AvahiNetlink, 1))) { avahi_log_error(__FILE__": avahi_new() failed."); goto fail; } nl->poll_api = poll_api; nl->fd = fd; nl->seq = 0; nl->callback = cb; nl->userdata = userdata; if (!(nl->buffer = avahi_new(uint8_t, nl->buffer_length = 64*1024))) { avahi_log_error(__FILE__": avahi_new() failed."); goto fail; } if (!(nl->watch = poll_api->watch_new(poll_api, fd, AVAHI_WATCH_IN, socket_event, nl))) { avahi_log_error(__FILE__": Failed to create watch."); goto fail; } return nl; fail: if (fd >= 0) close(fd); if (nl) { avahi_free(nl->buffer); avahi_free(nl); } return NULL; } void avahi_netlink_free(AvahiNetlink *nl) { assert(nl); if (nl->watch) nl->poll_api->watch_free(nl->watch); if (nl->fd >= 0) close(nl->fd); avahi_free(nl->buffer); avahi_free(nl); } int avahi_netlink_send(AvahiNetlink *nl, struct nlmsghdr *m, unsigned *ret_seq) { assert(nl); assert(m); m->nlmsg_seq = nl->seq++; m->nlmsg_flags |= NLM_F_ACK; if (send(nl->fd, m, m->nlmsg_len, 0) < 0) { avahi_log_error(__FILE__": send(): %s", strerror(errno)); return -1; } if (ret_seq) *ret_seq = m->nlmsg_seq; return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/dns.h0000644000000000000000000000013213130651643015154 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.123987435 avahi-0.7/avahi-core/dns.h0000644000175000017500000001104513130651643016564 0ustar00lathiatlathiat00000000000000#ifndef foodnshfoo #define foodnshfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include "rr.h" #include "hashmap.h" #define AVAHI_DNS_PACKET_HEADER_SIZE 12 #define AVAHI_DNS_PACKET_EXTRA_SIZE 48 #define AVAHI_DNS_LABELS_MAX 127 #define AVAHI_DNS_RDATA_MAX 0xFFFF #define AVAHI_DNS_PACKET_SIZE_MAX (AVAHI_DNS_PACKET_HEADER_SIZE + 256 + 2 + 2 + 4 + 2 + AVAHI_DNS_RDATA_MAX) typedef struct AvahiDnsPacket { size_t size, rindex, max_size, res_size; AvahiHashmap *name_table; /* for name compression */ uint8_t *data; } AvahiDnsPacket; #define AVAHI_DNS_PACKET_DATA(p) ((p)->data ? (p)->data : ((uint8_t*) p) + sizeof(AvahiDnsPacket)) AvahiDnsPacket* avahi_dns_packet_new(unsigned mtu); AvahiDnsPacket* avahi_dns_packet_new_query(unsigned mtu); AvahiDnsPacket* avahi_dns_packet_new_response(unsigned mtu, int aa); AvahiDnsPacket* avahi_dns_packet_new_reply(AvahiDnsPacket* p, unsigned mtu, int copy_queries, int aa); void avahi_dns_packet_free(AvahiDnsPacket *p); void avahi_dns_packet_set_field(AvahiDnsPacket *p, unsigned idx, uint16_t v); uint16_t avahi_dns_packet_get_field(AvahiDnsPacket *p, unsigned idx); void avahi_dns_packet_inc_field(AvahiDnsPacket *p, unsigned idx); uint8_t *avahi_dns_packet_extend(AvahiDnsPacket *p, size_t l); void avahi_dns_packet_cleanup_name_table(AvahiDnsPacket *p); uint8_t *avahi_dns_packet_append_uint16(AvahiDnsPacket *p, uint16_t v); uint8_t *avahi_dns_packet_append_uint32(AvahiDnsPacket *p, uint32_t v); uint8_t *avahi_dns_packet_append_name(AvahiDnsPacket *p, const char *name); uint8_t *avahi_dns_packet_append_bytes(AvahiDnsPacket *p, const void *d, size_t l); uint8_t* avahi_dns_packet_append_key(AvahiDnsPacket *p, AvahiKey *k, int unicast_response); uint8_t* avahi_dns_packet_append_record(AvahiDnsPacket *p, AvahiRecord *r, int cache_flush, unsigned max_ttl); uint8_t* avahi_dns_packet_append_string(AvahiDnsPacket *p, const char *s); int avahi_dns_packet_is_query(AvahiDnsPacket *p); int avahi_dns_packet_check_valid(AvahiDnsPacket *p); int avahi_dns_packet_check_valid_multicast(AvahiDnsPacket *p); int avahi_dns_packet_consume_uint16(AvahiDnsPacket *p, uint16_t *ret_v); int avahi_dns_packet_consume_uint32(AvahiDnsPacket *p, uint32_t *ret_v); int avahi_dns_packet_consume_name(AvahiDnsPacket *p, char *ret_name, size_t l); int avahi_dns_packet_consume_bytes(AvahiDnsPacket *p, void* ret_data, size_t l); AvahiKey* avahi_dns_packet_consume_key(AvahiDnsPacket *p, int *ret_unicast_response); AvahiRecord* avahi_dns_packet_consume_record(AvahiDnsPacket *p, int *ret_cache_flush); int avahi_dns_packet_consume_string(AvahiDnsPacket *p, char *ret_string, size_t l); const void* avahi_dns_packet_get_rptr(AvahiDnsPacket *p); int avahi_dns_packet_skip(AvahiDnsPacket *p, size_t length); int avahi_dns_packet_is_empty(AvahiDnsPacket *p); size_t avahi_dns_packet_space(AvahiDnsPacket *p); size_t avahi_dns_packet_reserve_size(AvahiDnsPacket *p, size_t res_size); size_t avahi_dns_packet_reserved_space(AvahiDnsPacket *p); #define AVAHI_DNS_FIELD_ID 0 #define AVAHI_DNS_FIELD_FLAGS 1 #define AVAHI_DNS_FIELD_QDCOUNT 2 #define AVAHI_DNS_FIELD_ANCOUNT 3 #define AVAHI_DNS_FIELD_NSCOUNT 4 #define AVAHI_DNS_FIELD_ARCOUNT 5 #define AVAHI_DNS_FLAG_QR (1 << 15) #define AVAHI_DNS_FLAG_OPCODE (15 << 11) #define AVAHI_DNS_FLAG_RCODE (15) #define AVAHI_DNS_FLAG_TC (1 << 9) #define AVAHI_DNS_FLAG_AA (1 << 10) #define AVAHI_DNS_FLAGS(qr, opcode, aa, tc, rd, ra, z, ad, cd, rcode) \ (((uint16_t) !!qr << 15) | \ ((uint16_t) (opcode & 15) << 11) | \ ((uint16_t) !!aa << 10) | \ ((uint16_t) !!tc << 9) | \ ((uint16_t) !!rd << 8) | \ ((uint16_t) !!ra << 7) | \ ((uint16_t) !!ad << 5) | \ ((uint16_t) !!cd << 4) | \ ((uint16_t) (rcode & 15))) #define AVAHI_MDNS_SUFFIX_LOCAL "local" #define AVAHI_MDNS_SUFFIX_ADDR_IPV4 "254.169.in-addr.arpa" #define AVAHI_MDNS_SUFFIX_ADDR_IPV6 "0.8.e.f.ip6.arpa" #endif avahi-0.7/avahi-core/PaxHeaders.10109/iface-pfroute.h0000644000000000000000000000013213130651643017121 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.143986985 avahi-0.7/avahi-core/iface-pfroute.h0000644000175000017500000000211713130651643020531 0ustar00lathiatlathiat00000000000000#ifndef fooifacepfroutehfoo #define fooifacepfroutehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include typedef struct AvahiPfRoute AvahiPfRoute; struct AvahiPfRoute { int fd; AvahiWatch *watch; AvahiInterfaceMonitor *m; }; typedef struct AvahiInterfaceMonitorOSDep AvahiInterfaceMonitorOSDep; struct AvahiInterfaceMonitorOSDep { AvahiPfRoute *pfroute; }; #endif avahi-0.7/avahi-core/PaxHeaders.10109/browse-service.c0000644000000000000000000000013213130651643017322 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.123987435 avahi-0.7/avahi-core/browse-service.c0000644000175000017500000001202213130651643020726 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "browse.h" #include "log.h" struct AvahiSServiceBrowser { AvahiServer *server; char *domain_name; char *service_type; AvahiSRecordBrowser *record_browser; AvahiSServiceBrowserCallback callback; void* userdata; AVAHI_LLIST_FIELDS(AvahiSServiceBrowser, browser); }; static void record_browser_callback( AvahiSRecordBrowser*rr, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata) { AvahiSServiceBrowser *b = userdata; assert(rr); assert(b); /* Filter flags */ flags &= AVAHI_LOOKUP_RESULT_CACHED | AVAHI_LOOKUP_RESULT_MULTICAST | AVAHI_LOOKUP_RESULT_WIDE_AREA; if (record) { char service[AVAHI_LABEL_MAX], type[AVAHI_DOMAIN_NAME_MAX], domain[AVAHI_DOMAIN_NAME_MAX]; assert(record->key->type == AVAHI_DNS_TYPE_PTR); if (event == AVAHI_BROWSER_NEW && avahi_server_is_service_local(b->server, interface, protocol, record->data.ptr.name)) flags |= AVAHI_LOOKUP_RESULT_LOCAL; if (avahi_service_name_split(record->data.ptr.name, service, sizeof(service), type, sizeof(type), domain, sizeof(domain)) < 0) { avahi_log_warn("Failed to split '%s'", record->key->name); return; } b->callback(b, interface, protocol, event, service, type, domain, flags, b->userdata); } else b->callback(b, interface, protocol, event, NULL, b->service_type, b->domain_name, flags, b->userdata); } AvahiSServiceBrowser *avahi_s_service_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *service_type, const char *domain, AvahiLookupFlags flags, AvahiSServiceBrowserCallback callback, void* userdata) { AvahiSServiceBrowser *b; AvahiKey *k = NULL; char n[AVAHI_DOMAIN_NAME_MAX]; int r; assert(server); assert(callback); assert(service_type); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, avahi_is_valid_service_type_generic(service_type), AVAHI_ERR_INVALID_SERVICE_TYPE); if (!domain) domain = server->domain_name; if ((r = avahi_service_name_join(n, sizeof(n), NULL, service_type, domain)) < 0) { avahi_server_set_errno(server, r); return NULL; } if (!(b = avahi_new(AvahiSServiceBrowser, 1))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); return NULL; } b->server = server; b->domain_name = b->service_type = NULL; b->callback = callback; b->userdata = userdata; b->record_browser = NULL; AVAHI_LLIST_PREPEND(AvahiSServiceBrowser, browser, server->service_browsers, b); if (!(b->domain_name = avahi_normalize_name_strdup(domain)) || !(b->service_type = avahi_normalize_name_strdup(service_type))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(k = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_PTR))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(b->record_browser = avahi_s_record_browser_new(server, interface, protocol, k, flags, record_browser_callback, b))) goto fail; avahi_key_unref(k); return b; fail: if (k) avahi_key_unref(k); avahi_s_service_browser_free(b); return NULL; } void avahi_s_service_browser_free(AvahiSServiceBrowser *b) { assert(b); AVAHI_LLIST_REMOVE(AvahiSServiceBrowser, browser, b->server->service_browsers, b); if (b->record_browser) avahi_s_record_browser_free(b->record_browser); avahi_free(b->domain_name); avahi_free(b->service_type); avahi_free(b); } avahi-0.7/avahi-core/PaxHeaders.10109/fdutil.h0000644000000000000000000000013213130651643015657 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.127987345 avahi-0.7/avahi-core/fdutil.h0000644000175000017500000000170313130651643017267 0ustar00lathiatlathiat00000000000000#ifndef foofdutilhfoo #define foofdutilhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include AVAHI_C_DECL_BEGIN int avahi_set_cloexec(int fd); int avahi_set_nonblock(int fd); int avahi_wait_for_write(int fd); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/timeeventq.h0000644000000000000000000000013213130651643016551 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.103987881 avahi-0.7/avahi-core/timeeventq.h0000644000175000017500000000271113130651643020161 0ustar00lathiatlathiat00000000000000#ifndef footimeeventqhfoo #define footimeeventqhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include typedef struct AvahiTimeEventQueue AvahiTimeEventQueue; typedef struct AvahiTimeEvent AvahiTimeEvent; #include #include "prioq.h" typedef void (*AvahiTimeEventCallback)(AvahiTimeEvent *e, void* userdata); AvahiTimeEventQueue* avahi_time_event_queue_new(const AvahiPoll *poll_api); void avahi_time_event_queue_free(AvahiTimeEventQueue *q); AvahiTimeEvent* avahi_time_event_new( AvahiTimeEventQueue *q, const struct timeval *timeval, AvahiTimeEventCallback callback, void* userdata); void avahi_time_event_free(AvahiTimeEvent *e); void avahi_time_event_update(AvahiTimeEvent *e, const struct timeval *timeval); #endif avahi-0.7/avahi-core/PaxHeaders.10109/iface-none.c0000644000000000000000000000013213130651643016367 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.143986985 avahi-0.7/avahi-core/iface-none.c0000644000175000017500000000172513130651643020003 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include "iface.h" int avahi_interface_monitor_init_osdep(AvahiInterfaceMonitor *m) { return 0; } void avahi_interface_monitor_free_osdep(AvahiInterfaceMonitor *m) { } void avahi_interface_monitor_sync(AvahiInterfaceMonitor *m) { } avahi-0.7/avahi-core/PaxHeaders.10109/iface.c0000644000000000000000000000013213130651643015432 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.103987881 avahi-0.7/avahi-core/iface.c0000644000175000017500000006230613130651643017050 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include "iface.h" #include "dns.h" #include "socket.h" #include "announce.h" #include "util.h" #include "log.h" #include "multicast-lookup.h" #include "querier.h" void avahi_interface_address_update_rrs(AvahiInterfaceAddress *a, int remove_rrs) { AvahiInterfaceMonitor *m; assert(a); m = a->monitor; if (m->list_complete && avahi_interface_address_is_relevant(a) && avahi_interface_is_relevant(a->interface) && !remove_rrs && m->server->config.publish_addresses && (m->server->state == AVAHI_SERVER_RUNNING || m->server->state == AVAHI_SERVER_REGISTERING)) { /* Fill the entry group */ if (!a->entry_group) a->entry_group = avahi_s_entry_group_new(m->server, avahi_host_rr_entry_group_callback, NULL); if (!a->entry_group) /* OOM */ return; if (avahi_s_entry_group_is_empty(a->entry_group)) { char t[AVAHI_ADDRESS_STR_MAX]; AvahiProtocol p; p = (a->interface->protocol == AVAHI_PROTO_INET && m->server->config.publish_a_on_ipv6) || (a->interface->protocol == AVAHI_PROTO_INET6 && m->server->config.publish_aaaa_on_ipv4) ? AVAHI_PROTO_UNSPEC : a->interface->protocol; avahi_address_snprint(t, sizeof(t), &a->address); avahi_log_info("Registering new address record for %s on %s.%s.", t, a->interface->hardware->name, p == AVAHI_PROTO_UNSPEC ? "*" : avahi_proto_to_string(p)); if (avahi_server_add_address(m->server, a->entry_group, a->interface->hardware->index, p, 0, NULL, &a->address) < 0) { avahi_log_warn(__FILE__": avahi_server_add_address() failed: %s", avahi_strerror(m->server->error)); avahi_s_entry_group_free(a->entry_group); a->entry_group = NULL; return; } avahi_s_entry_group_commit(a->entry_group); } } else { /* Clear the entry group */ if (a->entry_group && !avahi_s_entry_group_is_empty(a->entry_group)) { char t[AVAHI_ADDRESS_STR_MAX]; avahi_address_snprint(t, sizeof(t), &a->address); avahi_log_info("Withdrawing address record for %s on %s.", t, a->interface->hardware->name); if (avahi_s_entry_group_get_state(a->entry_group) == AVAHI_ENTRY_GROUP_REGISTERING && m->server->state == AVAHI_SERVER_REGISTERING) avahi_server_decrease_host_rr_pending(m->server); avahi_s_entry_group_reset(a->entry_group); } } } void avahi_interface_update_rrs(AvahiInterface *i, int remove_rrs) { AvahiInterfaceAddress *a; assert(i); for (a = i->addresses; a; a = a->address_next) avahi_interface_address_update_rrs(a, remove_rrs); } void avahi_hw_interface_update_rrs(AvahiHwInterface *hw, int remove_rrs) { AvahiInterface *i; AvahiInterfaceMonitor *m; assert(hw); m = hw->monitor; for (i = hw->interfaces; i; i = i->by_hardware_next) avahi_interface_update_rrs(i, remove_rrs); if (m->list_complete && !remove_rrs && m->server->config.publish_workstation && (m->server->state == AVAHI_SERVER_RUNNING)) { if (!hw->entry_group) hw->entry_group = avahi_s_entry_group_new(m->server, avahi_host_rr_entry_group_callback, NULL); if (!hw->entry_group) return; /* OOM */ if (avahi_s_entry_group_is_empty(hw->entry_group)) { char name[AVAHI_LABEL_MAX], unescaped[AVAHI_LABEL_MAX], mac[256]; const char *p = m->server->host_name; avahi_unescape_label(&p, unescaped, sizeof(unescaped)); avahi_format_mac_address(mac, sizeof(mac), hw->mac_address, hw->mac_address_size); snprintf(name, sizeof(name), "%s [%s]", unescaped, mac); if (avahi_server_add_service(m->server, hw->entry_group, hw->index, AVAHI_PROTO_UNSPEC, 0, name, "_workstation._tcp", NULL, NULL, 9, NULL) < 0) { avahi_log_warn(__FILE__": avahi_server_add_service() failed: %s", avahi_strerror(m->server->error)); avahi_s_entry_group_free(hw->entry_group); hw->entry_group = NULL; } else avahi_s_entry_group_commit(hw->entry_group); } } else { if (hw->entry_group && !avahi_s_entry_group_is_empty(hw->entry_group)) { avahi_log_info("Withdrawing workstation service for %s.", hw->name); if (avahi_s_entry_group_get_state(hw->entry_group) == AVAHI_ENTRY_GROUP_REGISTERING && m->server->state == AVAHI_SERVER_REGISTERING) avahi_server_decrease_host_rr_pending(m->server); avahi_s_entry_group_reset(hw->entry_group); } } } void avahi_interface_monitor_update_rrs(AvahiInterfaceMonitor *m, int remove_rrs) { AvahiHwInterface *hw; assert(m); for (hw = m->hw_interfaces; hw; hw = hw->hardware_next) avahi_hw_interface_update_rrs(hw, remove_rrs); } static int interface_mdns_mcast_join(AvahiInterface *i, int join) { char at[AVAHI_ADDRESS_STR_MAX]; int r; assert(i); if (!!join == !!i->mcast_joined) return 0; if ((i->protocol == AVAHI_PROTO_INET6 && i->monitor->server->fd_ipv6 < 0) || (i->protocol == AVAHI_PROTO_INET && i->monitor->server->fd_ipv4 < 0)) return -1; if (join) { AvahiInterfaceAddress *a; /* Look if there's an address with global scope */ for (a = i->addresses; a; a = a->address_next) if (a->global_scope) break; /* No address with a global scope has been found, so let's use * any. */ if (!a) a = i->addresses; /* Hmm, there is no address available. */ if (!a) return -1; i->local_mcast_address = a->address; } avahi_log_info("%s mDNS multicast group on interface %s.%s with address %s.", join ? "Joining" : "Leaving", i->hardware->name, avahi_proto_to_string(i->protocol), avahi_address_snprint(at, sizeof(at), &i->local_mcast_address)); if (i->protocol == AVAHI_PROTO_INET6) r = avahi_mdns_mcast_join_ipv6(i->monitor->server->fd_ipv6, &i->local_mcast_address.data.ipv6, i->hardware->index, join); else { assert(i->protocol == AVAHI_PROTO_INET); r = avahi_mdns_mcast_join_ipv4(i->monitor->server->fd_ipv4, &i->local_mcast_address.data.ipv4, i->hardware->index, join); } if (r < 0) i->mcast_joined = 0; else i->mcast_joined = join; return 0; } static int interface_mdns_mcast_rejoin(AvahiInterface *i) { AvahiInterfaceAddress *a, *usable = NULL, *found = NULL; assert(i); if (!i->mcast_joined) return 0; /* Check whether old address we joined with is still available. If * not, rejoin using an other address. */ for (a = i->addresses; a; a = a->address_next) { if (a->global_scope && !usable) usable = a; if (avahi_address_cmp(&a->address, &i->local_mcast_address) == 0) { if (a->global_scope) /* No action necessary: the address still exists and * has global scope. */ return 0; found = a; } } if (found && !usable) /* No action necessary: the address still exists and no better one has been found */ return 0; interface_mdns_mcast_join(i, 0); return interface_mdns_mcast_join(i, 1); } void avahi_interface_address_free(AvahiInterfaceAddress *a) { assert(a); assert(a->interface); avahi_interface_address_update_rrs(a, 1); AVAHI_LLIST_REMOVE(AvahiInterfaceAddress, address, a->interface->addresses, a); if (a->entry_group) avahi_s_entry_group_free(a->entry_group); interface_mdns_mcast_rejoin(a->interface); avahi_free(a); } void avahi_interface_free(AvahiInterface *i, int send_goodbye) { assert(i); /* Handle goodbyes and remove announcers */ avahi_goodbye_interface(i->monitor->server, i, send_goodbye, 1); avahi_response_scheduler_force(i->response_scheduler); assert(!i->announcers); if (i->mcast_joined) interface_mdns_mcast_join(i, 0); /* Remove queriers */ avahi_querier_free_all(i); avahi_hashmap_free(i->queriers_by_key); /* Remove local RRs */ avahi_interface_update_rrs(i, 1); while (i->addresses) avahi_interface_address_free(i->addresses); avahi_response_scheduler_free(i->response_scheduler); avahi_query_scheduler_free(i->query_scheduler); avahi_probe_scheduler_free(i->probe_scheduler); avahi_cache_free(i->cache); AVAHI_LLIST_REMOVE(AvahiInterface, interface, i->monitor->interfaces, i); AVAHI_LLIST_REMOVE(AvahiInterface, by_hardware, i->hardware->interfaces, i); avahi_free(i); } void avahi_hw_interface_free(AvahiHwInterface *hw, int send_goodbye) { assert(hw); avahi_hw_interface_update_rrs(hw, 1); while (hw->interfaces) avahi_interface_free(hw->interfaces, send_goodbye); if (hw->entry_group) avahi_s_entry_group_free(hw->entry_group); AVAHI_LLIST_REMOVE(AvahiHwInterface, hardware, hw->monitor->hw_interfaces, hw); avahi_hashmap_remove(hw->monitor->hashmap, &hw->index); avahi_free(hw->name); avahi_free(hw); } AvahiInterface* avahi_interface_new(AvahiInterfaceMonitor *m, AvahiHwInterface *hw, AvahiProtocol protocol) { AvahiInterface *i; assert(m); assert(hw); assert(AVAHI_PROTO_VALID(protocol)); if (!(i = avahi_new(AvahiInterface, 1))) goto fail; /* OOM */ i->monitor = m; i->hardware = hw; i->protocol = protocol; i->announcing = 0; i->mcast_joined = 0; AVAHI_LLIST_HEAD_INIT(AvahiInterfaceAddress, i->addresses); AVAHI_LLIST_HEAD_INIT(AvahiAnnouncer, i->announcers); AVAHI_LLIST_HEAD_INIT(AvahiQuerier, i->queriers); i->queriers_by_key = avahi_hashmap_new((AvahiHashFunc) avahi_key_hash, (AvahiEqualFunc) avahi_key_equal, NULL, NULL); i->cache = avahi_cache_new(m->server, i); i->response_scheduler = avahi_response_scheduler_new(i); i->query_scheduler = avahi_query_scheduler_new(i); i->probe_scheduler = avahi_probe_scheduler_new(i); if (!i->cache || !i->response_scheduler || !i->query_scheduler || !i->probe_scheduler) goto fail; /* OOM */ AVAHI_LLIST_PREPEND(AvahiInterface, by_hardware, hw->interfaces, i); AVAHI_LLIST_PREPEND(AvahiInterface, interface, m->interfaces, i); return i; fail: if (i) { if (i->cache) avahi_cache_free(i->cache); if (i->response_scheduler) avahi_response_scheduler_free(i->response_scheduler); if (i->query_scheduler) avahi_query_scheduler_free(i->query_scheduler); if (i->probe_scheduler) avahi_probe_scheduler_free(i->probe_scheduler); } return NULL; } AvahiHwInterface *avahi_hw_interface_new(AvahiInterfaceMonitor *m, AvahiIfIndex idx) { AvahiHwInterface *hw; assert(m); assert(AVAHI_IF_VALID(idx)); if (!(hw = avahi_new(AvahiHwInterface, 1))) return NULL; hw->monitor = m; hw->name = NULL; hw->flags_ok = 0; hw->mtu = 1500; hw->index = idx; hw->mac_address_size = 0; hw->entry_group = NULL; hw->ratelimit_begin.tv_sec = 0; hw->ratelimit_begin.tv_usec = 0; hw->ratelimit_counter = 0; AVAHI_LLIST_HEAD_INIT(AvahiInterface, hw->interfaces); AVAHI_LLIST_PREPEND(AvahiHwInterface, hardware, m->hw_interfaces, hw); avahi_hashmap_insert(m->hashmap, &hw->index, hw); if (m->server->fd_ipv4 >= 0 || m->server->config.publish_a_on_ipv6) avahi_interface_new(m, hw, AVAHI_PROTO_INET); if (m->server->fd_ipv6 >= 0 || m->server->config.publish_aaaa_on_ipv4) avahi_interface_new(m, hw, AVAHI_PROTO_INET6); return hw; } AvahiInterfaceAddress *avahi_interface_address_new(AvahiInterfaceMonitor *m, AvahiInterface *i, const AvahiAddress *addr, unsigned prefix_len) { AvahiInterfaceAddress *a; assert(m); assert(i); if (!(a = avahi_new(AvahiInterfaceAddress, 1))) return NULL; a->interface = i; a->monitor = m; a->address = *addr; a->prefix_len = prefix_len; a->global_scope = 0; a->deprecated = 0; a->entry_group = NULL; AVAHI_LLIST_PREPEND(AvahiInterfaceAddress, address, i->addresses, a); return a; } void avahi_interface_check_relevant(AvahiInterface *i) { int b; AvahiInterfaceMonitor *m; assert(i); m = i->monitor; b = avahi_interface_is_relevant(i); if (m->list_complete && b && !i->announcing) { interface_mdns_mcast_join(i, 1); if (i->mcast_joined) { avahi_log_info("New relevant interface %s.%s for mDNS.", i->hardware->name, avahi_proto_to_string(i->protocol)); i->announcing = 1; avahi_announce_interface(m->server, i); avahi_multicast_lookup_engine_new_interface(m->server->multicast_lookup_engine, i); } } else if (!b && i->announcing) { avahi_log_info("Interface %s.%s no longer relevant for mDNS.", i->hardware->name, avahi_proto_to_string(i->protocol)); interface_mdns_mcast_join(i, 0); avahi_goodbye_interface(m->server, i, 0, 1); avahi_querier_free_all(i); avahi_response_scheduler_clear(i->response_scheduler); avahi_query_scheduler_clear(i->query_scheduler); avahi_probe_scheduler_clear(i->probe_scheduler); avahi_cache_flush(i->cache); i->announcing = 0; } else interface_mdns_mcast_rejoin(i); } void avahi_hw_interface_check_relevant(AvahiHwInterface *hw) { AvahiInterface *i; assert(hw); for (i = hw->interfaces; i; i = i->by_hardware_next) avahi_interface_check_relevant(i); } void avahi_interface_monitor_check_relevant(AvahiInterfaceMonitor *m) { AvahiInterface *i; assert(m); for (i = m->interfaces; i; i = i->interface_next) avahi_interface_check_relevant(i); } AvahiInterfaceMonitor *avahi_interface_monitor_new(AvahiServer *s) { AvahiInterfaceMonitor *m = NULL; if (!(m = avahi_new0(AvahiInterfaceMonitor, 1))) return NULL; /* OOM */ m->server = s; m->list_complete = 0; m->hashmap = avahi_hashmap_new(avahi_int_hash, avahi_int_equal, NULL, NULL); AVAHI_LLIST_HEAD_INIT(AvahiInterface, m->interfaces); AVAHI_LLIST_HEAD_INIT(AvahiHwInterface, m->hw_interfaces); if (avahi_interface_monitor_init_osdep(m) < 0) goto fail; return m; fail: avahi_interface_monitor_free(m); return NULL; } void avahi_interface_monitor_free(AvahiInterfaceMonitor *m) { assert(m); while (m->hw_interfaces) avahi_hw_interface_free(m->hw_interfaces, 1); assert(!m->interfaces); avahi_interface_monitor_free_osdep(m); if (m->hashmap) avahi_hashmap_free(m->hashmap); avahi_free(m); } AvahiInterface* avahi_interface_monitor_get_interface(AvahiInterfaceMonitor *m, AvahiIfIndex idx, AvahiProtocol protocol) { AvahiHwInterface *hw; AvahiInterface *i; assert(m); assert(idx >= 0); assert(protocol != AVAHI_PROTO_UNSPEC); if (!(hw = avahi_interface_monitor_get_hw_interface(m, idx))) return NULL; for (i = hw->interfaces; i; i = i->by_hardware_next) if (i->protocol == protocol) return i; return NULL; } AvahiHwInterface* avahi_interface_monitor_get_hw_interface(AvahiInterfaceMonitor *m, AvahiIfIndex idx) { assert(m); assert(idx >= 0); return avahi_hashmap_lookup(m->hashmap, &idx); } AvahiInterfaceAddress* avahi_interface_monitor_get_address(AvahiInterfaceMonitor *m, AvahiInterface *i, const AvahiAddress *raddr) { AvahiInterfaceAddress *ia; assert(m); assert(i); assert(raddr); for (ia = i->addresses; ia; ia = ia->address_next) if (avahi_address_cmp(&ia->address, raddr) == 0) return ia; return NULL; } void avahi_interface_send_packet_unicast(AvahiInterface *i, AvahiDnsPacket *p, const AvahiAddress *a, uint16_t port) { assert(i); assert(p); if (!i->announcing) return; assert(!a || a->proto == i->protocol); if (i->monitor->server->config.ratelimit_interval > 0) { struct timeval now, end; gettimeofday(&now, NULL); end = i->hardware->ratelimit_begin; avahi_timeval_add(&end, i->monitor->server->config.ratelimit_interval); if (i->hardware->ratelimit_begin.tv_sec <= 0 || avahi_timeval_compare(&end, &now) < 0) { i->hardware->ratelimit_begin = now; i->hardware->ratelimit_counter = 0; } if (i->hardware->ratelimit_counter > i->monitor->server->config.ratelimit_burst) return; i->hardware->ratelimit_counter++; } if (i->protocol == AVAHI_PROTO_INET && i->monitor->server->fd_ipv4 >= 0) avahi_send_dns_packet_ipv4(i->monitor->server->fd_ipv4, i->hardware->index, p, i->mcast_joined ? &i->local_mcast_address.data.ipv4 : NULL, a ? &a->data.ipv4 : NULL, port); else if (i->protocol == AVAHI_PROTO_INET6 && i->monitor->server->fd_ipv6 >= 0) avahi_send_dns_packet_ipv6(i->monitor->server->fd_ipv6, i->hardware->index, p, i->mcast_joined ? &i->local_mcast_address.data.ipv6 : NULL, a ? &a->data.ipv6 : NULL, port); } void avahi_interface_send_packet(AvahiInterface *i, AvahiDnsPacket *p) { assert(i); assert(p); avahi_interface_send_packet_unicast(i, p, NULL, 0); } int avahi_interface_post_query(AvahiInterface *i, AvahiKey *key, int immediately, unsigned *ret_id) { assert(i); assert(key); if (!i->announcing) return 0; return avahi_query_scheduler_post(i->query_scheduler, key, immediately, ret_id); } int avahi_interface_withraw_query(AvahiInterface *i, unsigned id) { return avahi_query_scheduler_withdraw_by_id(i->query_scheduler, id); } int avahi_interface_post_response(AvahiInterface *i, AvahiRecord *record, int flush_cache, const AvahiAddress *querier, int immediately) { assert(i); assert(record); if (!i->announcing) return 0; return avahi_response_scheduler_post(i->response_scheduler, record, flush_cache, querier, immediately); } int avahi_interface_post_probe(AvahiInterface *i, AvahiRecord *record, int immediately) { assert(i); assert(record); if (!i->announcing) return 0; return avahi_probe_scheduler_post(i->probe_scheduler, record, immediately); } int avahi_dump_caches(AvahiInterfaceMonitor *m, AvahiDumpCallback callback, void* userdata) { AvahiInterface *i; assert(m); for (i = m->interfaces; i; i = i->interface_next) { if (avahi_interface_is_relevant(i)) { char ln[256]; snprintf(ln, sizeof(ln), ";;; INTERFACE %s.%s ;;;", i->hardware->name, avahi_proto_to_string(i->protocol)); callback(ln, userdata); if (avahi_cache_dump(i->cache, callback, userdata) < 0) return -1; } } return 0; } static int avahi_interface_is_relevant_internal(AvahiInterface *i) { AvahiInterfaceAddress *a; assert(i); if (!i->hardware->flags_ok) return 0; for (a = i->addresses; a; a = a->address_next) if (avahi_interface_address_is_relevant(a)) return 1; return 0; } int avahi_interface_is_relevant(AvahiInterface *i) { AvahiStringList *l; assert(i); for (l = i->monitor->server->config.deny_interfaces; l; l = l->next) if (strcasecmp((char*) l->text, i->hardware->name) == 0) return 0; if (i->monitor->server->config.allow_interfaces) { for (l = i->monitor->server->config.allow_interfaces; l; l = l->next) if (strcasecmp((char*) l->text, i->hardware->name) == 0) goto good; return 0; } good: return avahi_interface_is_relevant_internal(i); } int avahi_interface_address_is_relevant(AvahiInterfaceAddress *a) { AvahiInterfaceAddress *b; assert(a); /* Publish public and non-deprecated IP addresses */ if (a->global_scope && !a->deprecated) return 1; /* Publish link-local and deprecated IP addresses only if they are * the only ones on the link */ for (b = a->interface->addresses; b; b = b->address_next) { if (b == a) continue; if (b->global_scope && !b->deprecated) return 0; } return 1; } int avahi_interface_match(AvahiInterface *i, AvahiIfIndex idx, AvahiProtocol protocol) { assert(i); if (idx != AVAHI_IF_UNSPEC && idx != i->hardware->index) return 0; if (protocol != AVAHI_PROTO_UNSPEC && protocol != i->protocol) return 0; return 1; } void avahi_interface_monitor_walk(AvahiInterfaceMonitor *m, AvahiIfIndex interface, AvahiProtocol protocol, AvahiInterfaceMonitorWalkCallback callback, void* userdata) { assert(m); assert(callback); if (interface != AVAHI_IF_UNSPEC) { if (protocol != AVAHI_PROTO_UNSPEC) { AvahiInterface *i; if ((i = avahi_interface_monitor_get_interface(m, interface, protocol))) callback(m, i, userdata); } else { AvahiHwInterface *hw; AvahiInterface *i; if ((hw = avahi_interface_monitor_get_hw_interface(m, interface))) for (i = hw->interfaces; i; i = i->by_hardware_next) if (avahi_interface_match(i, interface, protocol)) callback(m, i, userdata); } } else { AvahiInterface *i; for (i = m->interfaces; i; i = i->interface_next) if (avahi_interface_match(i, interface, protocol)) callback(m, i, userdata); } } int avahi_address_is_local(AvahiInterfaceMonitor *m, const AvahiAddress *a) { AvahiInterface *i; AvahiInterfaceAddress *ia; assert(m); assert(a); for (i = m->interfaces; i; i = i->interface_next) for (ia = i->addresses; ia; ia = ia->address_next) if (avahi_address_cmp(a, &ia->address) == 0) return 1; return 0; } int avahi_interface_address_on_link(AvahiInterface *i, const AvahiAddress *a) { AvahiInterfaceAddress *ia; assert(i); assert(a); if (a->proto != i->protocol) return 0; for (ia = i->addresses; ia; ia = ia->address_next) { if (a->proto == AVAHI_PROTO_INET) { uint32_t m; m = ~(((uint32_t) -1) >> ia->prefix_len); if ((ntohl(a->data.ipv4.address) & m) == (ntohl(ia->address.data.ipv4.address) & m)) return 1; } else { unsigned j; unsigned char pl; assert(a->proto == AVAHI_PROTO_INET6); pl = ia->prefix_len; for (j = 0; j < 16; j++) { uint8_t m; if (pl == 0) return 1; if (pl >= 8) { m = 0xFF; pl -= 8; } else { m = ~(0xFF >> pl); pl = 0; } if ((a->data.ipv6.address[j] & m) != (ia->address.data.ipv6.address[j] & m)) break; } } } return 0; } int avahi_interface_has_address(AvahiInterfaceMonitor *m, AvahiIfIndex iface, const AvahiAddress *a) { AvahiInterface *i; AvahiInterfaceAddress *j; assert(m); assert(iface != AVAHI_IF_UNSPEC); assert(a); if (!(i = avahi_interface_monitor_get_interface(m, iface, a->proto))) return 0; for (j = i->addresses; j; j = j->address_next) if (avahi_address_cmp(a, &j->address) == 0) return 1; return 0; } AvahiIfIndex avahi_find_interface_for_address(AvahiInterfaceMonitor *m, const AvahiAddress *a) { AvahiInterface *i; assert(m); /* Some stupid OS don't support passing the interface index when a * packet is received. We have to work around that limitation by * looking for an interface that has the incoming address * attached. This is sometimes ambiguous, but we have to live with * it. */ for (i = m->interfaces; i; i = i->interface_next) { AvahiInterfaceAddress *ai; if (i->protocol != a->proto) continue; for (ai = i->addresses; ai; ai = ai->address_next) if (avahi_address_cmp(a, &ai->address) == 0) return i->hardware->index; } return AVAHI_IF_UNSPEC; } avahi-0.7/avahi-core/PaxHeaders.10109/wide-area.h0000644000000000000000000000013213130651643016226 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.131987255 avahi-0.7/avahi-core/wide-area.h0000644000175000017500000000375013130651643017642 0ustar00lathiatlathiat00000000000000#ifndef foowideareahfoo #define foowideareahfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include "lookup.h" #include "browse.h" typedef struct AvahiWideAreaLookupEngine AvahiWideAreaLookupEngine; typedef struct AvahiWideAreaLookup AvahiWideAreaLookup; typedef void (*AvahiWideAreaLookupCallback)( AvahiWideAreaLookupEngine *e, AvahiBrowserEvent event, AvahiLookupResultFlags flags, AvahiRecord *r, void *userdata); AvahiWideAreaLookupEngine *avahi_wide_area_engine_new(AvahiServer *s); void avahi_wide_area_engine_free(AvahiWideAreaLookupEngine *e); unsigned avahi_wide_area_scan_cache(AvahiWideAreaLookupEngine *e, AvahiKey *key, AvahiWideAreaLookupCallback callback, void *userdata); void avahi_wide_area_cache_dump(AvahiWideAreaLookupEngine *e, AvahiDumpCallback callback, void* userdata); void avahi_wide_area_set_servers(AvahiWideAreaLookupEngine *e, const AvahiAddress *a, unsigned n); void avahi_wide_area_clear_cache(AvahiWideAreaLookupEngine *e); void avahi_wide_area_cleanup(AvahiWideAreaLookupEngine *e); int avahi_wide_area_has_servers(AvahiWideAreaLookupEngine *e); AvahiWideAreaLookup *avahi_wide_area_lookup_new(AvahiWideAreaLookupEngine *e, AvahiKey *key, AvahiWideAreaLookupCallback callback, void *userdata); void avahi_wide_area_lookup_free(AvahiWideAreaLookup *q); #endif avahi-0.7/avahi-core/PaxHeaders.10109/hashmap.c0000644000000000000000000000013213130651643016004 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.131987255 avahi-0.7/avahi-core/hashmap.c0000644000175000017500000001224413130651643017416 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "hashmap.h" #include "util.h" #define HASH_MAP_SIZE 123 typedef struct Entry Entry; struct Entry { AvahiHashmap *hashmap; void *key; void *value; AVAHI_LLIST_FIELDS(Entry, bucket); AVAHI_LLIST_FIELDS(Entry, entries); }; struct AvahiHashmap { AvahiHashFunc hash_func; AvahiEqualFunc equal_func; AvahiFreeFunc key_free_func, value_free_func; Entry *entries[HASH_MAP_SIZE]; AVAHI_LLIST_HEAD(Entry, entries_list); }; static Entry* entry_get(AvahiHashmap *m, const void *key) { unsigned idx; Entry *e; idx = m->hash_func(key) % HASH_MAP_SIZE; for (e = m->entries[idx]; e; e = e->bucket_next) if (m->equal_func(key, e->key)) return e; return NULL; } static void entry_free(AvahiHashmap *m, Entry *e, int stolen) { unsigned idx; assert(m); assert(e); idx = m->hash_func(e->key) % HASH_MAP_SIZE; AVAHI_LLIST_REMOVE(Entry, bucket, m->entries[idx], e); AVAHI_LLIST_REMOVE(Entry, entries, m->entries_list, e); if (m->key_free_func) m->key_free_func(e->key); if (m->value_free_func && !stolen) m->value_free_func(e->value); avahi_free(e); } AvahiHashmap* avahi_hashmap_new(AvahiHashFunc hash_func, AvahiEqualFunc equal_func, AvahiFreeFunc key_free_func, AvahiFreeFunc value_free_func) { AvahiHashmap *m; assert(hash_func); assert(equal_func); if (!(m = avahi_new0(AvahiHashmap, 1))) return NULL; m->hash_func = hash_func; m->equal_func = equal_func; m->key_free_func = key_free_func; m->value_free_func = value_free_func; AVAHI_LLIST_HEAD_INIT(Entry, m->entries_list); return m; } void avahi_hashmap_free(AvahiHashmap *m) { assert(m); while (m->entries_list) entry_free(m, m->entries_list, 0); avahi_free(m); } void* avahi_hashmap_lookup(AvahiHashmap *m, const void *key) { Entry *e; assert(m); if (!(e = entry_get(m, key))) return NULL; return e->value; } int avahi_hashmap_insert(AvahiHashmap *m, void *key, void *value) { unsigned idx; Entry *e; assert(m); if ((e = entry_get(m, key))) { if (m->key_free_func) m->key_free_func(key); if (m->value_free_func) m->value_free_func(value); return 1; } if (!(e = avahi_new(Entry, 1))) return -1; e->hashmap = m; e->key = key; e->value = value; AVAHI_LLIST_PREPEND(Entry, entries, m->entries_list, e); idx = m->hash_func(key) % HASH_MAP_SIZE; AVAHI_LLIST_PREPEND(Entry, bucket, m->entries[idx], e); return 0; } int avahi_hashmap_replace(AvahiHashmap *m, void *key, void *value) { unsigned idx; Entry *e; assert(m); if ((e = entry_get(m, key))) { if (m->key_free_func) m->key_free_func(e->key); if (m->value_free_func) m->value_free_func(e->value); e->key = key; e->value = value; return 1; } if (!(e = avahi_new(Entry, 1))) return -1; e->hashmap = m; e->key = key; e->value = value; AVAHI_LLIST_PREPEND(Entry, entries, m->entries_list, e); idx = m->hash_func(key) % HASH_MAP_SIZE; AVAHI_LLIST_PREPEND(Entry, bucket, m->entries[idx], e); return 0; } void avahi_hashmap_remove(AvahiHashmap *m, const void *key) { Entry *e; assert(m); if (!(e = entry_get(m, key))) return; entry_free(m, e, 0); } void avahi_hashmap_foreach(AvahiHashmap *m, AvahiHashmapForeachCallback callback, void *userdata) { Entry *e, *next; assert(m); assert(callback); for (e = m->entries_list; e; e = next) { next = e->entries_next; callback(e->key, e->value, userdata); } } unsigned avahi_string_hash(const void *data) { const char *p = data; unsigned hash = 0; assert(p); for (; *p; p++) hash = 31 * hash + *p; return hash; } int avahi_string_equal(const void *a, const void *b) { const char *p = a, *q = b; assert(p); assert(q); return strcmp(p, q) == 0; } unsigned avahi_int_hash(const void *data) { const int *i = data; assert(i); return (unsigned) *i; } int avahi_int_equal(const void *a, const void *b) { const int *_a = a, *_b = b; assert(_a); assert(_b); return *_a == *_b; } avahi-0.7/avahi-core/PaxHeaders.10109/resolve-service.c0000644000000000000000000000013213130651643017500 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.123987435 avahi-0.7/avahi-core/resolve-service.c0000644000175000017500000004006413130651643021113 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include "browse.h" #include "log.h" #define TIMEOUT_MSEC 5000 struct AvahiSServiceResolver { AvahiServer *server; char *service_name; char *service_type; char *domain_name; AvahiProtocol address_protocol; AvahiIfIndex interface; AvahiProtocol protocol; AvahiSRecordBrowser *record_browser_srv; AvahiSRecordBrowser *record_browser_txt; AvahiSRecordBrowser *record_browser_a; AvahiSRecordBrowser *record_browser_aaaa; AvahiRecord *srv_record, *txt_record, *address_record; AvahiLookupResultFlags srv_flags, txt_flags, address_flags; AvahiSServiceResolverCallback callback; void* userdata; AvahiLookupFlags user_flags; AvahiTimeEvent *time_event; AVAHI_LLIST_FIELDS(AvahiSServiceResolver, resolver); }; static void finish(AvahiSServiceResolver *r, AvahiResolverEvent event) { AvahiLookupResultFlags flags; assert(r); if (r->time_event) { avahi_time_event_free(r->time_event); r->time_event = NULL; } flags = r->txt_flags | r->srv_flags | r->address_flags; switch (event) { case AVAHI_RESOLVER_FAILURE: r->callback( r, r->interface, r->protocol, event, r->service_name, r->service_type, r->domain_name, NULL, NULL, 0, NULL, flags, r->userdata); break; case AVAHI_RESOLVER_FOUND: { AvahiAddress a; assert(event == AVAHI_RESOLVER_FOUND); assert(r->srv_record); if (r->address_record) { switch (r->address_record->key->type) { case AVAHI_DNS_TYPE_A: a.proto = AVAHI_PROTO_INET; a.data.ipv4 = r->address_record->data.a.address; break; case AVAHI_DNS_TYPE_AAAA: a.proto = AVAHI_PROTO_INET6; a.data.ipv6 = r->address_record->data.aaaa.address; break; default: assert(0); } } r->callback( r, r->interface, r->protocol, event, r->service_name, r->service_type, r->domain_name, r->srv_record->data.srv.name, r->address_record ? &a : NULL, r->srv_record->data.srv.port, r->txt_record ? r->txt_record->data.txt.string_list : NULL, flags, r->userdata); break; } } } static void time_event_callback(AvahiTimeEvent *e, void *userdata) { AvahiSServiceResolver *r = userdata; assert(e); assert(r); avahi_server_set_errno(r->server, AVAHI_ERR_TIMEOUT); finish(r, AVAHI_RESOLVER_FAILURE); } static void start_timeout(AvahiSServiceResolver *r) { struct timeval tv; assert(r); if (r->time_event) return; avahi_elapse_time(&tv, TIMEOUT_MSEC, 0); r->time_event = avahi_time_event_new(r->server->time_event_queue, &tv, time_event_callback, r); } static void record_browser_callback( AvahiSRecordBrowser*rr, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata) { AvahiSServiceResolver *r = userdata; assert(rr); assert(r); if (rr == r->record_browser_aaaa || rr == r->record_browser_a) r->address_flags = flags; else if (rr == r->record_browser_srv) r->srv_flags = flags; else if (rr == r->record_browser_txt) r->txt_flags = flags; switch (event) { case AVAHI_BROWSER_NEW: { int changed = 0; assert(record); if (r->interface > 0 && interface > 0 && interface != r->interface) return; if (r->protocol != AVAHI_PROTO_UNSPEC && protocol != AVAHI_PROTO_UNSPEC && protocol != r->protocol) return; if (r->interface <= 0) r->interface = interface; if (r->protocol == AVAHI_PROTO_UNSPEC) r->protocol = protocol; switch (record->key->type) { case AVAHI_DNS_TYPE_SRV: if (!r->srv_record) { r->srv_record = avahi_record_ref(record); changed = 1; if (r->record_browser_a) { avahi_s_record_browser_free(r->record_browser_a); r->record_browser_a = NULL; } if (r->record_browser_aaaa) { avahi_s_record_browser_free(r->record_browser_aaaa); r->record_browser_aaaa = NULL; } if (!(r->user_flags & AVAHI_LOOKUP_NO_ADDRESS)) { if (r->address_protocol == AVAHI_PROTO_INET || r->address_protocol == AVAHI_PROTO_UNSPEC) { AvahiKey *k = avahi_key_new(r->srv_record->data.srv.name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_A); r->record_browser_a = avahi_s_record_browser_new(r->server, r->interface, r->protocol, k, r->user_flags & ~(AVAHI_LOOKUP_NO_TXT|AVAHI_LOOKUP_NO_ADDRESS), record_browser_callback, r); avahi_key_unref(k); } if (r->address_protocol == AVAHI_PROTO_INET6 || r->address_protocol == AVAHI_PROTO_UNSPEC) { AvahiKey *k = avahi_key_new(r->srv_record->data.srv.name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_AAAA); r->record_browser_aaaa = avahi_s_record_browser_new(r->server, r->interface, r->protocol, k, r->user_flags & ~(AVAHI_LOOKUP_NO_TXT|AVAHI_LOOKUP_NO_ADDRESS), record_browser_callback, r); avahi_key_unref(k); } } } break; case AVAHI_DNS_TYPE_TXT: assert(!(r->user_flags & AVAHI_LOOKUP_NO_TXT)); if (!r->txt_record) { r->txt_record = avahi_record_ref(record); changed = 1; } break; case AVAHI_DNS_TYPE_A: case AVAHI_DNS_TYPE_AAAA: assert(!(r->user_flags & AVAHI_LOOKUP_NO_ADDRESS)); if (!r->address_record) { r->address_record = avahi_record_ref(record); changed = 1; } break; default: abort(); } if (changed && r->srv_record && (r->txt_record || (r->user_flags & AVAHI_LOOKUP_NO_TXT)) && (r->address_record || (r->user_flags & AVAHI_LOOKUP_NO_ADDRESS))) finish(r, AVAHI_RESOLVER_FOUND); break; } case AVAHI_BROWSER_REMOVE: assert(record); switch (record->key->type) { case AVAHI_DNS_TYPE_SRV: if (r->srv_record && avahi_record_equal_no_ttl(record, r->srv_record)) { avahi_record_unref(r->srv_record); r->srv_record = NULL; if (r->record_browser_a) { avahi_s_record_browser_free(r->record_browser_a); r->record_browser_a = NULL; } if (r->record_browser_aaaa) { avahi_s_record_browser_free(r->record_browser_aaaa); r->record_browser_aaaa = NULL; } /** Look for a replacement */ avahi_s_record_browser_restart(r->record_browser_srv); start_timeout(r); } break; case AVAHI_DNS_TYPE_TXT: assert(!(r->user_flags & AVAHI_LOOKUP_NO_TXT)); if (r->txt_record && avahi_record_equal_no_ttl(record, r->txt_record)) { avahi_record_unref(r->txt_record); r->txt_record = NULL; /** Look for a replacement */ avahi_s_record_browser_restart(r->record_browser_txt); start_timeout(r); } break; case AVAHI_DNS_TYPE_A: case AVAHI_DNS_TYPE_AAAA: assert(!(r->user_flags & AVAHI_LOOKUP_NO_ADDRESS)); if (r->address_record && avahi_record_equal_no_ttl(record, r->address_record)) { avahi_record_unref(r->address_record); r->address_record = NULL; /** Look for a replacement */ if (r->record_browser_aaaa) avahi_s_record_browser_restart(r->record_browser_aaaa); if (r->record_browser_a) avahi_s_record_browser_restart(r->record_browser_a); start_timeout(r); } break; default: abort(); } break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; case AVAHI_BROWSER_FAILURE: if (rr == r->record_browser_a && r->record_browser_aaaa) { /* We were looking for both AAAA and A, and the other query is still living, so we'll not die */ avahi_s_record_browser_free(r->record_browser_a); r->record_browser_a = NULL; break; } if (rr == r->record_browser_aaaa && r->record_browser_a) { /* We were looking for both AAAA and A, and the other query is still living, so we'll not die */ avahi_s_record_browser_free(r->record_browser_aaaa); r->record_browser_aaaa = NULL; break; } /* Hmm, everything's lost, tell the user */ if (r->record_browser_srv) avahi_s_record_browser_free(r->record_browser_srv); if (r->record_browser_txt) avahi_s_record_browser_free(r->record_browser_txt); if (r->record_browser_a) avahi_s_record_browser_free(r->record_browser_a); if (r->record_browser_aaaa) avahi_s_record_browser_free(r->record_browser_aaaa); r->record_browser_srv = r->record_browser_txt = r->record_browser_a = r->record_browser_aaaa = NULL; finish(r, AVAHI_RESOLVER_FAILURE); break; } } AvahiSServiceResolver *avahi_s_service_resolver_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, AvahiProtocol aprotocol, AvahiLookupFlags flags, AvahiSServiceResolverCallback callback, void* userdata) { AvahiSServiceResolver *r; AvahiKey *k; char n[AVAHI_DOMAIN_NAME_MAX]; int ret; assert(server); assert(type); assert(callback); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(aprotocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !name || avahi_is_valid_service_name(name), AVAHI_ERR_INVALID_SERVICE_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, avahi_is_valid_service_type_strict(type), AVAHI_ERR_INVALID_SERVICE_TYPE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST|AVAHI_LOOKUP_NO_TXT|AVAHI_LOOKUP_NO_ADDRESS), AVAHI_ERR_INVALID_FLAGS); if (!domain) domain = server->domain_name; if ((ret = avahi_service_name_join(n, sizeof(n), name, type, domain)) < 0) { avahi_server_set_errno(server, ret); return NULL; } if (!(r = avahi_new(AvahiSServiceResolver, 1))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); return NULL; } r->server = server; r->service_name = avahi_strdup(name); r->service_type = avahi_normalize_name_strdup(type); r->domain_name = avahi_normalize_name_strdup(domain); r->callback = callback; r->userdata = userdata; r->address_protocol = aprotocol; r->srv_record = r->txt_record = r->address_record = NULL; r->srv_flags = r->txt_flags = r->address_flags = 0; r->interface = interface; r->protocol = protocol; r->user_flags = flags; r->record_browser_a = r->record_browser_aaaa = r->record_browser_srv = r->record_browser_txt = NULL; r->time_event = NULL; AVAHI_LLIST_PREPEND(AvahiSServiceResolver, resolver, server->service_resolvers, r); k = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_SRV); r->record_browser_srv = avahi_s_record_browser_new(server, interface, protocol, k, flags & ~(AVAHI_LOOKUP_NO_TXT|AVAHI_LOOKUP_NO_ADDRESS), record_browser_callback, r); avahi_key_unref(k); if (!r->record_browser_srv) { avahi_s_service_resolver_free(r); return NULL; } if (!(flags & AVAHI_LOOKUP_NO_TXT)) { k = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_TXT); r->record_browser_txt = avahi_s_record_browser_new(server, interface, protocol, k, flags & ~(AVAHI_LOOKUP_NO_TXT|AVAHI_LOOKUP_NO_ADDRESS), record_browser_callback, r); avahi_key_unref(k); if (!r->record_browser_txt) { avahi_s_service_resolver_free(r); return NULL; } } start_timeout(r); return r; } void avahi_s_service_resolver_free(AvahiSServiceResolver *r) { assert(r); AVAHI_LLIST_REMOVE(AvahiSServiceResolver, resolver, r->server->service_resolvers, r); if (r->time_event) avahi_time_event_free(r->time_event); if (r->record_browser_srv) avahi_s_record_browser_free(r->record_browser_srv); if (r->record_browser_txt) avahi_s_record_browser_free(r->record_browser_txt); if (r->record_browser_a) avahi_s_record_browser_free(r->record_browser_a); if (r->record_browser_aaaa) avahi_s_record_browser_free(r->record_browser_aaaa); if (r->srv_record) avahi_record_unref(r->srv_record); if (r->txt_record) avahi_record_unref(r->txt_record); if (r->address_record) avahi_record_unref(r->address_record); avahi_free(r->service_name); avahi_free(r->service_type); avahi_free(r->domain_name); avahi_free(r); } avahi-0.7/avahi-core/PaxHeaders.10109/socket.c0000644000000000000000000000013213130651643015653 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.111987701 avahi-0.7/avahi-core/socket.c0000644000175000017500000006276313130651643017300 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #ifdef HAVE_SYS_FILIO_H #include #endif #include #include #include #include #include #include #include #ifdef IP_RECVIF #include #endif #include "dns.h" #include "fdutil.h" #include "socket.h" #include "log.h" #include "addr-util.h" /* this is a portability hack */ #ifndef IPV6_ADD_MEMBERSHIP #ifdef IPV6_JOIN_GROUP #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP #endif #endif #ifndef IPV6_DROP_MEMBERSHIP #ifdef IPV6_LEAVE_GROUP #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP #endif #endif static void mdns_mcast_group_ipv4(struct sockaddr_in *ret_sa) { assert(ret_sa); memset(ret_sa, 0, sizeof(struct sockaddr_in)); ret_sa->sin_family = AF_INET; ret_sa->sin_port = htons(AVAHI_MDNS_PORT); inet_pton(AF_INET, AVAHI_IPV4_MCAST_GROUP, &ret_sa->sin_addr); } static void mdns_mcast_group_ipv6(struct sockaddr_in6 *ret_sa) { assert(ret_sa); memset(ret_sa, 0, sizeof(struct sockaddr_in6)); ret_sa->sin6_family = AF_INET6; ret_sa->sin6_port = htons(AVAHI_MDNS_PORT); inet_pton(AF_INET6, AVAHI_IPV6_MCAST_GROUP, &ret_sa->sin6_addr); } static void ipv4_address_to_sockaddr(struct sockaddr_in *ret_sa, const AvahiIPv4Address *a, uint16_t port) { assert(ret_sa); assert(a); assert(port > 0); memset(ret_sa, 0, sizeof(struct sockaddr_in)); ret_sa->sin_family = AF_INET; ret_sa->sin_port = htons(port); memcpy(&ret_sa->sin_addr, a, sizeof(AvahiIPv4Address)); } static void ipv6_address_to_sockaddr(struct sockaddr_in6 *ret_sa, const AvahiIPv6Address *a, uint16_t port) { assert(ret_sa); assert(a); assert(port > 0); memset(ret_sa, 0, sizeof(struct sockaddr_in6)); ret_sa->sin6_family = AF_INET6; ret_sa->sin6_port = htons(port); memcpy(&ret_sa->sin6_addr, a, sizeof(AvahiIPv6Address)); } int avahi_mdns_mcast_join_ipv4(int fd, const AvahiIPv4Address *a, int idx, int join) { #ifdef HAVE_STRUCT_IP_MREQN struct ip_mreqn mreq; #else struct ip_mreq mreq; #endif struct sockaddr_in sa; assert(fd >= 0); assert(idx >= 0); assert(a); memset(&mreq, 0, sizeof(mreq)); #ifdef HAVE_STRUCT_IP_MREQN mreq.imr_ifindex = idx; mreq.imr_address.s_addr = a->address; #else mreq.imr_interface.s_addr = a->address; #endif mdns_mcast_group_ipv4(&sa); mreq.imr_multiaddr = sa.sin_addr; /* Some network drivers have issues with dropping membership of * mcast groups when the iface is down, but don't allow rejoining * when it comes back up. This is an ugly workaround */ if (join) setsockopt(fd, IPPROTO_IP, IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq)); if (setsockopt(fd, IPPROTO_IP, join ? IP_ADD_MEMBERSHIP : IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq)) < 0) { avahi_log_warn("%s failed: %s", join ? "IP_ADD_MEMBERSHIP" : "IP_DROP_MEMBERSHIP", strerror(errno)); return -1; } return 0; } int avahi_mdns_mcast_join_ipv6(int fd, const AvahiIPv6Address *a, int idx, int join) { struct ipv6_mreq mreq6; struct sockaddr_in6 sa6; assert(fd >= 0); assert(idx >= 0); assert(a); memset(&mreq6, 0, sizeof(mreq6)); mdns_mcast_group_ipv6 (&sa6); mreq6.ipv6mr_multiaddr = sa6.sin6_addr; mreq6.ipv6mr_interface = idx; if (join) setsockopt(fd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP, &mreq6, sizeof(mreq6)); if (setsockopt(fd, IPPROTO_IPV6, join ? IPV6_ADD_MEMBERSHIP : IPV6_DROP_MEMBERSHIP, &mreq6, sizeof(mreq6)) < 0) { avahi_log_warn("%s failed: %s", join ? "IPV6_ADD_MEMBERSHIP" : "IPV6_DROP_MEMBERSHIP", strerror(errno)); return -1; } return 0; } static int reuseaddr(int fd) { int yes; yes = 1; if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) < 0) { avahi_log_warn("SO_REUSEADDR failed: %s", strerror(errno)); return -1; } #ifdef SO_REUSEPORT yes = 1; if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(yes)) < 0) { avahi_log_warn("SO_REUSEPORT failed: %s", strerror(errno)); if (errno != ENOPROTOOPT) return -1; } #endif return 0; } static int bind_with_warn(int fd, const struct sockaddr *sa, socklen_t l) { assert(fd >= 0); assert(sa); assert(l > 0); if (bind(fd, sa, l) < 0) { if (errno != EADDRINUSE) { avahi_log_warn("bind() failed: %s", strerror(errno)); return -1; } avahi_log_warn("*** WARNING: Detected another %s mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***", sa->sa_family == AF_INET ? "IPv4" : "IPv6"); /* Try again, this time with SO_REUSEADDR set */ if (reuseaddr(fd) < 0) return -1; if (bind(fd, sa, l) < 0) { avahi_log_warn("bind() failed: %s", strerror(errno)); return -1; } } else { /* We enable SO_REUSEADDR afterwards, to make sure that the * user may run other mDNS implementations if he really * wants. */ if (reuseaddr(fd) < 0) return -1; } return 0; } static int ipv4_pktinfo(int fd) { int yes; #ifdef IP_PKTINFO yes = 1; if (setsockopt(fd, IPPROTO_IP, IP_PKTINFO, &yes, sizeof(yes)) < 0) { avahi_log_warn("IP_PKTINFO failed: %s", strerror(errno)); return -1; } #else #ifdef IP_RECVINTERFACE yes = 1; if (setsockopt (fd, IPPROTO_IP, IP_RECVINTERFACE, &yes, sizeof(yes)) < 0) { avahi_log_warn("IP_RECVINTERFACE failed: %s", strerror(errno)); return -1; } #elif defined(IP_RECVIF) yes = 1; if (setsockopt (fd, IPPROTO_IP, IP_RECVIF, &yes, sizeof(yes)) < 0) { avahi_log_warn("IP_RECVIF failed: %s", strerror(errno)); return -1; } #endif #ifdef IP_RECVDSTADDR yes = 1; if (setsockopt (fd, IPPROTO_IP, IP_RECVDSTADDR, &yes, sizeof(yes)) < 0) { avahi_log_warn("IP_RECVDSTADDR failed: %s", strerror(errno)); return -1; } #endif #endif /* IP_PKTINFO */ #ifdef IP_RECVTTL yes = 1; if (setsockopt(fd, IPPROTO_IP, IP_RECVTTL, &yes, sizeof(yes)) < 0) { avahi_log_warn("IP_RECVTTL failed: %s", strerror(errno)); return -1; } #endif return 0; } static int ipv6_pktinfo(int fd) { int yes; #ifdef IPV6_RECVPKTINFO yes = 1; if (setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &yes, sizeof(yes)) < 0) { avahi_log_warn("IPV6_RECVPKTINFO failed: %s", strerror(errno)); return -1; } #elif defined(IPV6_PKTINFO) yes = 1; if (setsockopt(fd, IPPROTO_IPV6, IPV6_PKTINFO, &yes, sizeof(yes)) < 0) { avahi_log_warn("IPV6_PKTINFO failed: %s", strerror(errno)); return -1; } #endif #ifdef IPV6_RECVHOPS yes = 1; if (setsockopt(fd, IPPROTO_IPV6, IPV6_RECVHOPS, &yes, sizeof(yes)) < 0) { avahi_log_warn("IPV6_RECVHOPS failed: %s", strerror(errno)); return -1; } #elif defined(IPV6_RECVHOPLIMIT) yes = 1; if (setsockopt(fd, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, &yes, sizeof(yes)) < 0) { avahi_log_warn("IPV6_RECVHOPLIMIT failed: %s", strerror(errno)); return -1; } #elif defined(IPV6_HOPLIMIT) yes = 1; if (setsockopt(fd, IPPROTO_IPV6, IPV6_HOPLIMIT, &yes, sizeof(yes)) < 0) { avahi_log_warn("IPV6_HOPLIMIT failed: %s", strerror(errno)); return -1; } #endif return 0; } int avahi_open_socket_ipv4(int no_reuse) { struct sockaddr_in local; int fd = -1, r, ittl; uint8_t ttl, cyes; if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { avahi_log_warn("socket() failed: %s", strerror(errno)); goto fail; } ttl = 255; if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) < 0) { avahi_log_warn("IP_MULTICAST_TTL failed: %s", strerror(errno)); goto fail; } ittl = 255; if (setsockopt(fd, IPPROTO_IP, IP_TTL, &ittl, sizeof(ittl)) < 0) { avahi_log_warn("IP_TTL failed: %s", strerror(errno)); goto fail; } cyes = 1; if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &cyes, sizeof(cyes)) < 0) { avahi_log_warn("IP_MULTICAST_LOOP failed: %s", strerror(errno)); goto fail; } memset(&local, 0, sizeof(local)); local.sin_family = AF_INET; local.sin_port = htons(AVAHI_MDNS_PORT); if (no_reuse) r = bind(fd, (struct sockaddr*) &local, sizeof(local)); else r = bind_with_warn(fd, (struct sockaddr*) &local, sizeof(local)); if (r < 0) goto fail; if (ipv4_pktinfo (fd) < 0) goto fail; if (avahi_set_cloexec(fd) < 0) { avahi_log_warn("FD_CLOEXEC failed: %s", strerror(errno)); goto fail; } if (avahi_set_nonblock(fd) < 0) { avahi_log_warn("O_NONBLOCK failed: %s", strerror(errno)); goto fail; } return fd; fail: if (fd >= 0) close(fd); return -1; } int avahi_open_socket_ipv6(int no_reuse) { struct sockaddr_in6 sa, local; int fd = -1, yes, r; int ttl; mdns_mcast_group_ipv6(&sa); if ((fd = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { avahi_log_warn("socket() failed: %s", strerror(errno)); goto fail; } ttl = 255; if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &ttl, sizeof(ttl)) < 0) { avahi_log_warn("IPV6_MULTICAST_HOPS failed: %s", strerror(errno)); goto fail; } ttl = 255; if (setsockopt(fd, IPPROTO_IPV6, IPV6_UNICAST_HOPS, &ttl, sizeof(ttl)) < 0) { avahi_log_warn("IPV6_UNICAST_HOPS failed: %s", strerror(errno)); goto fail; } yes = 1; if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &yes, sizeof(yes)) < 0) { avahi_log_warn("IPV6_V6ONLY failed: %s", strerror(errno)); goto fail; } yes = 1; if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &yes, sizeof(yes)) < 0) { avahi_log_warn("IPV6_MULTICAST_LOOP failed: %s", strerror(errno)); goto fail; } memset(&local, 0, sizeof(local)); local.sin6_family = AF_INET6; local.sin6_port = htons(AVAHI_MDNS_PORT); if (no_reuse) r = bind(fd, (struct sockaddr*) &local, sizeof(local)); else r = bind_with_warn(fd, (struct sockaddr*) &local, sizeof(local)); if (r < 0) goto fail; if (ipv6_pktinfo(fd) < 0) goto fail; if (avahi_set_cloexec(fd) < 0) { avahi_log_warn("FD_CLOEXEC failed: %s", strerror(errno)); goto fail; } if (avahi_set_nonblock(fd) < 0) { avahi_log_warn("O_NONBLOCK failed: %s", strerror(errno)); goto fail; } return fd; fail: if (fd >= 0) close(fd); return -1; } static int sendmsg_loop(int fd, struct msghdr *msg, int flags) { assert(fd >= 0); assert(msg); for (;;) { if (sendmsg(fd, msg, flags) >= 0) break; if (errno == EINTR) continue; if (errno != EAGAIN) { char where[64]; struct sockaddr_in *sin = msg->msg_name; inet_ntop(sin->sin_family, &sin->sin_addr, where, sizeof(where)); avahi_log_debug("sendmsg() to %s failed: %s", where, strerror(errno)); return -1; } if (avahi_wait_for_write(fd) < 0) return -1; } return 0; } int avahi_send_dns_packet_ipv4( int fd, AvahiIfIndex interface, AvahiDnsPacket *p, const AvahiIPv4Address *src_address, const AvahiIPv4Address *dst_address, uint16_t dst_port) { struct sockaddr_in sa; struct msghdr msg; struct iovec io; #ifdef IP_PKTINFO struct cmsghdr *cmsg; size_t cmsg_data[( CMSG_SPACE(sizeof(struct in_pktinfo)) / sizeof(size_t)) + 1]; #elif !defined(IP_MULTICAST_IF) && defined(IP_SENDSRCADDR) struct cmsghdr *cmsg; size_t cmsg_data[( CMSG_SPACE(sizeof(struct in_addr)) / sizeof(size_t)) + 1]; #endif assert(fd >= 0); assert(p); assert(avahi_dns_packet_check_valid(p) >= 0); assert(!dst_address || dst_port > 0); if (!dst_address) mdns_mcast_group_ipv4(&sa); else ipv4_address_to_sockaddr(&sa, dst_address, dst_port); memset(&io, 0, sizeof(io)); io.iov_base = AVAHI_DNS_PACKET_DATA(p); io.iov_len = p->size; memset(&msg, 0, sizeof(msg)); msg.msg_name = &sa; msg.msg_namelen = sizeof(sa); msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_flags = 0; msg.msg_control = NULL; msg.msg_controllen = 0; #ifdef IP_PKTINFO if (interface > 0 || src_address) { struct in_pktinfo *pkti; memset(cmsg_data, 0, sizeof(cmsg_data)); msg.msg_control = cmsg_data; msg.msg_controllen = CMSG_LEN(sizeof(struct in_pktinfo)); cmsg = CMSG_FIRSTHDR(&msg); cmsg->cmsg_len = msg.msg_controllen; cmsg->cmsg_level = IPPROTO_IP; cmsg->cmsg_type = IP_PKTINFO; pkti = (struct in_pktinfo*) CMSG_DATA(cmsg); if (interface > 0) pkti->ipi_ifindex = interface; if (src_address) pkti->ipi_spec_dst.s_addr = src_address->address; } #elif defined(IP_MULTICAST_IF) if (src_address) { struct in_addr any = { INADDR_ANY }; if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, src_address ? &src_address->address : &any, sizeof(struct in_addr)) < 0) { avahi_log_warn("IP_MULTICAST_IF failed: %s", strerror(errno)); return -1; } } #elif defined(IP_SENDSRCADDR) if (src_address) { struct in_addr *addr; memset(cmsg_data, 0, sizeof(cmsg_data)); msg.msg_control = cmsg_data; msg.msg_controllen = CMSG_LEN(sizeof(struct in_addr)); cmsg = CMSG_FIRSTHDR(&msg); cmsg->cmsg_len = msg.msg_controllen; cmsg->cmsg_level = IPPROTO_IP; cmsg->cmsg_type = IP_SENDSRCADDR; addr = (struct in_addr *)CMSG_DATA(cmsg); addr->s_addr = src_address->address; } #elif defined(__GNUC__) #warning "FIXME: We need some code to set the outgoing interface/local address here if IP_PKTINFO/IP_MULTICAST_IF is not available" #endif return sendmsg_loop(fd, &msg, 0); } int avahi_send_dns_packet_ipv6( int fd, AvahiIfIndex interface, AvahiDnsPacket *p, const AvahiIPv6Address *src_address, const AvahiIPv6Address *dst_address, uint16_t dst_port) { struct sockaddr_in6 sa; struct msghdr msg; struct iovec io; struct cmsghdr *cmsg; size_t cmsg_data[(CMSG_SPACE(sizeof(struct in6_pktinfo))/sizeof(size_t)) + 1]; assert(fd >= 0); assert(p); assert(avahi_dns_packet_check_valid(p) >= 0); assert(!dst_address || dst_port > 0); if (!dst_address) mdns_mcast_group_ipv6(&sa); else ipv6_address_to_sockaddr(&sa, dst_address, dst_port); memset(&io, 0, sizeof(io)); io.iov_base = AVAHI_DNS_PACKET_DATA(p); io.iov_len = p->size; memset(&msg, 0, sizeof(msg)); msg.msg_name = &sa; msg.msg_namelen = sizeof(sa); msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_flags = 0; if (interface > 0 || src_address) { struct in6_pktinfo *pkti; memset(cmsg_data, 0, sizeof(cmsg_data)); msg.msg_control = cmsg_data; msg.msg_controllen = CMSG_LEN(sizeof(struct in6_pktinfo)); cmsg = CMSG_FIRSTHDR(&msg); cmsg->cmsg_len = msg.msg_controllen; cmsg->cmsg_level = IPPROTO_IPV6; cmsg->cmsg_type = IPV6_PKTINFO; pkti = (struct in6_pktinfo*) CMSG_DATA(cmsg); if (interface > 0) pkti->ipi6_ifindex = interface; if (src_address) memcpy(&pkti->ipi6_addr, src_address->address, sizeof(src_address->address)); } else { msg.msg_control = NULL; msg.msg_controllen = 0; } return sendmsg_loop(fd, &msg, 0); } AvahiDnsPacket *avahi_recv_dns_packet_ipv4( int fd, AvahiIPv4Address *ret_src_address, uint16_t *ret_src_port, AvahiIPv4Address *ret_dst_address, AvahiIfIndex *ret_iface, uint8_t *ret_ttl) { AvahiDnsPacket *p= NULL; struct msghdr msg; struct iovec io; size_t aux[1024 / sizeof(size_t)]; /* for alignment on ia64 ! */ ssize_t l; struct cmsghdr *cmsg; int found_addr = 0; int ms; struct sockaddr_in sa; assert(fd >= 0); if (ioctl(fd, FIONREAD, &ms) < 0) { avahi_log_warn("ioctl(): %s", strerror(errno)); goto fail; } if (ms < 0) { avahi_log_warn("FIONREAD returned negative value."); goto fail; } p = avahi_dns_packet_new(ms + AVAHI_DNS_PACKET_EXTRA_SIZE); io.iov_base = AVAHI_DNS_PACKET_DATA(p); io.iov_len = p->max_size; memset(&msg, 0, sizeof(msg)); msg.msg_name = &sa; msg.msg_namelen = sizeof(sa); msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control = aux; msg.msg_controllen = sizeof(aux); msg.msg_flags = 0; if ((l = recvmsg(fd, &msg, 0)) < 0) { /* Linux returns EAGAIN when an invalid IP packet has been received. We suppress warnings in this case because this might create quite a bit of log traffic on machines with unstable links. (See #60) */ if (errno != EAGAIN) avahi_log_warn("recvmsg(): %s", strerror(errno)); goto fail; } /* For corrupt packets FIONREAD returns zero size (See rhbz #607297). So * fail after having read them. */ if (!ms) goto fail; if (sa.sin_addr.s_addr == INADDR_ANY) /* Linux 2.4 behaves very strangely sometimes! */ goto fail; assert(!(msg.msg_flags & MSG_CTRUNC)); assert(!(msg.msg_flags & MSG_TRUNC)); p->size = (size_t) l; if (ret_src_port) *ret_src_port = avahi_port_from_sockaddr((struct sockaddr*) &sa); if (ret_src_address) { AvahiAddress a; avahi_address_from_sockaddr((struct sockaddr*) &sa, &a); *ret_src_address = a.data.ipv4; } if (ret_ttl) *ret_ttl = 255; if (ret_iface) *ret_iface = AVAHI_IF_UNSPEC; for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL; cmsg = CMSG_NXTHDR(&msg, cmsg)) { if (cmsg->cmsg_level == IPPROTO_IP) { switch (cmsg->cmsg_type) { #ifdef IP_RECVTTL case IP_RECVTTL: #endif case IP_TTL: if (ret_ttl) *ret_ttl = (uint8_t) (*(int *) CMSG_DATA(cmsg)); break; #ifdef IP_PKTINFO case IP_PKTINFO: { struct in_pktinfo *i = (struct in_pktinfo*) CMSG_DATA(cmsg); if (ret_iface && i->ipi_ifindex > 0) *ret_iface = (int) i->ipi_ifindex; if (ret_dst_address) ret_dst_address->address = i->ipi_addr.s_addr; found_addr = 1; break; } #endif #ifdef IP_RECVIF case IP_RECVIF: { struct sockaddr_dl *sdl = (struct sockaddr_dl *) CMSG_DATA (cmsg); if (ret_iface) { #ifdef __sun if (*(uint_t*) sdl > 0) *ret_iface = *(uint_t*) sdl; #else if (sdl->sdl_index > 0) *ret_iface = (int) sdl->sdl_index; #endif } break; } #endif #ifdef IP_RECVDSTADDR case IP_RECVDSTADDR: if (ret_dst_address) memcpy(&ret_dst_address->address, CMSG_DATA (cmsg), 4); found_addr = 1; break; #endif default: avahi_log_warn("Unhandled cmsg_type: %d", cmsg->cmsg_type); break; } } } assert(found_addr); return p; fail: if (p) avahi_dns_packet_free(p); return NULL; } AvahiDnsPacket *avahi_recv_dns_packet_ipv6( int fd, AvahiIPv6Address *ret_src_address, uint16_t *ret_src_port, AvahiIPv6Address *ret_dst_address, AvahiIfIndex *ret_iface, uint8_t *ret_ttl) { AvahiDnsPacket *p = NULL; struct msghdr msg; struct iovec io; size_t aux[1024 / sizeof(size_t)]; ssize_t l; int ms; struct cmsghdr *cmsg; int found_ttl = 0, found_iface = 0; struct sockaddr_in6 sa; assert(fd >= 0); if (ioctl(fd, FIONREAD, &ms) < 0) { avahi_log_warn("ioctl(): %s", strerror(errno)); goto fail; } if (ms < 0) { avahi_log_warn("FIONREAD returned negative value."); goto fail; } p = avahi_dns_packet_new(ms + AVAHI_DNS_PACKET_EXTRA_SIZE); io.iov_base = AVAHI_DNS_PACKET_DATA(p); io.iov_len = p->max_size; memset(&msg, 0, sizeof(msg)); msg.msg_name = (struct sockaddr*) &sa; msg.msg_namelen = sizeof(sa); msg.msg_iov = &io; msg.msg_iovlen = 1; msg.msg_control = aux; msg.msg_controllen = sizeof(aux); msg.msg_flags = 0; if ((l = recvmsg(fd, &msg, 0)) < 0) { /* Linux returns EAGAIN when an invalid IP packet has been received. We suppress warnings in this case because this might create quite a bit of log traffic on machines with unstable links. (See #60) */ if (errno != EAGAIN) avahi_log_warn("recvmsg(): %s", strerror(errno)); goto fail; } /* For corrupt packets FIONREAD returns zero size (See rhbz #607297). So * fail after having read them. */ if (!ms) goto fail; assert(!(msg.msg_flags & MSG_CTRUNC)); assert(!(msg.msg_flags & MSG_TRUNC)); p->size = (size_t) l; if (ret_src_port) *ret_src_port = avahi_port_from_sockaddr((struct sockaddr*) &sa); if (ret_src_address) { AvahiAddress a; avahi_address_from_sockaddr((struct sockaddr*) &sa, &a); *ret_src_address = a.data.ipv6; } for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL; cmsg = CMSG_NXTHDR(&msg, cmsg)) { if (cmsg->cmsg_level == IPPROTO_IPV6) { switch (cmsg->cmsg_type) { case IPV6_HOPLIMIT: if (ret_ttl) *ret_ttl = (uint8_t) (*(int *) CMSG_DATA(cmsg)); found_ttl = 1; break; case IPV6_PKTINFO: { struct in6_pktinfo *i = (struct in6_pktinfo*) CMSG_DATA(cmsg); if (ret_iface && i->ipi6_ifindex > 0) *ret_iface = i->ipi6_ifindex; if (ret_dst_address) memcpy(ret_dst_address->address, i->ipi6_addr.s6_addr, 16); found_iface = 1; break; } default: avahi_log_warn("Unhandled cmsg_type: %d", cmsg->cmsg_type); break; } } } assert(found_iface); assert(found_ttl); return p; fail: if (p) avahi_dns_packet_free(p); return NULL; } int avahi_open_unicast_socket_ipv4(void) { struct sockaddr_in local; int fd = -1; if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { avahi_log_warn("socket() failed: %s", strerror(errno)); goto fail; } memset(&local, 0, sizeof(local)); local.sin_family = AF_INET; if (bind(fd, (struct sockaddr*) &local, sizeof(local)) < 0) { avahi_log_warn("bind() failed: %s", strerror(errno)); goto fail; } if (ipv4_pktinfo(fd) < 0) { goto fail; } if (avahi_set_cloexec(fd) < 0) { avahi_log_warn("FD_CLOEXEC failed: %s", strerror(errno)); goto fail; } if (avahi_set_nonblock(fd) < 0) { avahi_log_warn("O_NONBLOCK failed: %s", strerror(errno)); goto fail; } return fd; fail: if (fd >= 0) close(fd); return -1; } int avahi_open_unicast_socket_ipv6(void) { struct sockaddr_in6 local; int fd = -1, yes; if ((fd = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { avahi_log_warn("socket() failed: %s", strerror(errno)); goto fail; } yes = 1; if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &yes, sizeof(yes)) < 0) { avahi_log_warn("IPV6_V6ONLY failed: %s", strerror(errno)); goto fail; } memset(&local, 0, sizeof(local)); local.sin6_family = AF_INET6; if (bind(fd, (struct sockaddr*) &local, sizeof(local)) < 0) { avahi_log_warn("bind() failed: %s", strerror(errno)); goto fail; } if (ipv6_pktinfo(fd) < 0) goto fail; if (avahi_set_cloexec(fd) < 0) { avahi_log_warn("FD_CLOEXEC failed: %s", strerror(errno)); goto fail; } if (avahi_set_nonblock(fd) < 0) { avahi_log_warn("O_NONBLOCK failed: %s", strerror(errno)); goto fail; } return fd; fail: if (fd >= 0) close(fd); return -1; } avahi-0.7/avahi-core/PaxHeaders.10109/timeeventq-test.c0000644000000000000000000000013213130651643017521 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.147986899 avahi-0.7/avahi-core/timeeventq-test.c0000644000175000017500000000360713130651643021136 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "timeeventq.h" #include "log.h" #define POINTER_TO_INT(p) ((int) (long) (p)) #define INT_TO_POINTER(i) ((void*) (long) (i)) static AvahiTimeEventQueue *q = NULL; static void callback(AvahiTimeEvent*e, void* userdata) { struct timeval tv = {0, 0}; assert(e); avahi_log_info("callback(%i)", POINTER_TO_INT(userdata)); avahi_elapse_time(&tv, 1000, 100); avahi_time_event_update(e, &tv); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { struct timeval tv; AvahiSimplePoll *s; s = avahi_simple_poll_new(); q = avahi_time_event_queue_new(avahi_simple_poll_get(s)); avahi_time_event_new(q, avahi_elapse_time(&tv, 5000, 100), callback, INT_TO_POINTER(1)); avahi_time_event_new(q, avahi_elapse_time(&tv, 5000, 100), callback, INT_TO_POINTER(2)); avahi_log_info("starting"); for (;;) if (avahi_simple_poll_iterate(s, -1) != 0) break; avahi_time_event_queue_free(q); avahi_simple_poll_free(s); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/cache.h0000644000000000000000000000013213130651643015433 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.111987701 avahi-0.7/avahi-core/cache.h0000644000175000017500000000566413130651643017055 0ustar00lathiatlathiat00000000000000#ifndef foocachehfoo #define foocachehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiCache AvahiCache; #include #include "prioq.h" #include "internal.h" #include "timeeventq.h" #include "hashmap.h" typedef enum { AVAHI_CACHE_VALID, AVAHI_CACHE_EXPIRY1, AVAHI_CACHE_EXPIRY2, AVAHI_CACHE_EXPIRY3, AVAHI_CACHE_EXPIRY_FINAL, AVAHI_CACHE_POOF, /* Passive observation of failure */ AVAHI_CACHE_POOF_FINAL, AVAHI_CACHE_GOODBYE_FINAL, AVAHI_CACHE_REPLACE_FINAL } AvahiCacheEntryState; typedef struct AvahiCacheEntry AvahiCacheEntry; struct AvahiCacheEntry { AvahiCache *cache; AvahiRecord *record; struct timeval timestamp; struct timeval poof_timestamp; struct timeval expiry; int cache_flush; int poof_num; AvahiAddress origin; AvahiCacheEntryState state; AvahiTimeEvent *time_event; AvahiAddress poof_address; AVAHI_LLIST_FIELDS(AvahiCacheEntry, by_key); AVAHI_LLIST_FIELDS(AvahiCacheEntry, entry); }; struct AvahiCache { AvahiServer *server; AvahiInterface *interface; AvahiHashmap *hashmap; AVAHI_LLIST_HEAD(AvahiCacheEntry, entries); unsigned n_entries; int last_rand; time_t last_rand_timestamp; }; AvahiCache *avahi_cache_new(AvahiServer *server, AvahiInterface *interface); void avahi_cache_free(AvahiCache *c); void avahi_cache_update(AvahiCache *c, AvahiRecord *r, int cache_flush, const AvahiAddress *a); int avahi_cache_dump(AvahiCache *c, AvahiDumpCallback callback, void* userdata); typedef void* AvahiCacheWalkCallback(AvahiCache *c, AvahiKey *pattern, AvahiCacheEntry *e, void* userdata); void* avahi_cache_walk(AvahiCache *c, AvahiKey *pattern, AvahiCacheWalkCallback cb, void* userdata); int avahi_cache_entry_half_ttl(AvahiCache *c, AvahiCacheEntry *e); /** Start the "Passive observation of Failure" algorithm for all * records of the specified key. The specified address is */ void avahi_cache_start_poof(AvahiCache *c, AvahiKey *key, const AvahiAddress *a); /* Stop a previously started POOF algorithm for a record. (Used for response suppresions records */ void avahi_cache_stop_poof(AvahiCache *c, AvahiRecord *record, const AvahiAddress *a); void avahi_cache_flush(AvahiCache *c); #endif avahi-0.7/avahi-core/PaxHeaders.10109/domain-util.c0000644000000000000000000000013213130651643016605 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.135987166 avahi-0.7/avahi-core/domain-util.c0000644000175000017500000001017613130651643020221 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "log.h" #include "domain-util.h" #include "util.h" static void strip_bad_chars(char *s) { char *p, *d; s[strcspn(s, ".")] = 0; for (p = s, d = s; *p; p++) if ((*p >= 'a' && *p <= 'z') || (*p >= 'A' && *p <= 'Z') || (*p >= '0' && *p <= '9') || *p == '-') *(d++) = *p; *d = 0; } #ifdef __linux__ static int load_lsb_distrib_id(char *ret_s, size_t size) { FILE *f; assert(ret_s); assert(size > 0); if (!(f = fopen("/etc/lsb-release", "r"))) return -1; while (!feof(f)) { char ln[256], *p; if (!fgets(ln, sizeof(ln), f)) break; if (strncmp(ln, "DISTRIB_ID=", 11)) continue; p = ln + 11; p += strspn(p, "\""); p[strcspn(p, "\"")] = 0; snprintf(ret_s, size, "%s", p); fclose(f); return 0; } fclose(f); return -1; } #endif char *avahi_get_host_name(char *ret_s, size_t size) { assert(ret_s); assert(size > 0); if (gethostname(ret_s, size) >= 0) { ret_s[size-1] = 0; strip_bad_chars(ret_s); } else *ret_s = 0; if (strcmp(ret_s, "localhost") == 0 || strncmp(ret_s, "localhost.", 10) == 0) { *ret_s = 0; avahi_log_warn("System host name is set to 'localhost'. This is not a suitable mDNS host name, looking for alternatives."); } if (*ret_s == 0) { /* No hostname was set, so let's take the OS name */ #ifdef __linux__ /* Try LSB distribution name first */ if (load_lsb_distrib_id(ret_s, size) >= 0) { strip_bad_chars(ret_s); avahi_strdown(ret_s); } if (*ret_s == 0) #endif { /* Try uname() second */ struct utsname utsname; if (uname(&utsname) >= 0) { snprintf(ret_s, size, "%s", utsname.sysname); strip_bad_chars(ret_s); avahi_strdown(ret_s); } /* Give up */ if (*ret_s == 0) snprintf(ret_s, size, "unnamed"); } } if (size >= AVAHI_LABEL_MAX) ret_s[AVAHI_LABEL_MAX-1] = 0; return ret_s; } char *avahi_get_host_name_strdup(void) { char t[AVAHI_DOMAIN_NAME_MAX]; if (!(avahi_get_host_name(t, sizeof(t)))) return NULL; return avahi_strdup(t); } int avahi_binary_domain_cmp(const char *a, const char *b) { assert(a); assert(b); if (a == b) return 0; for (;;) { char ca[AVAHI_LABEL_MAX], cb[AVAHI_LABEL_MAX], *p; int r; p = avahi_unescape_label(&a, ca, sizeof(ca)); assert(p); p = avahi_unescape_label(&b, cb, sizeof(cb)); assert(p); if ((r = strcmp(ca, cb))) return r; if (!*a && !*b) return 0; } } int avahi_domain_ends_with(const char *domain, const char *suffix) { assert(domain); assert(suffix); for (;;) { char dummy[AVAHI_LABEL_MAX], *r; if (*domain == 0) return 0; if (avahi_domain_equal(domain, suffix)) return 1; r = avahi_unescape_label(&domain, dummy, sizeof(dummy)); assert(r); } } avahi-0.7/avahi-core/PaxHeaders.10109/browse.c0000644000000000000000000000013213130651643015664 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.119987521 avahi-0.7/avahi-core/browse.c0000644000175000017500000004201113130651643017271 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include "browse.h" #include "log.h" #include "querier.h" #include "domain-util.h" #include "rr-util.h" #define AVAHI_LOOKUPS_PER_BROWSER_MAX 15 struct AvahiSRBLookup { AvahiSRecordBrowser *record_browser; unsigned ref; AvahiIfIndex interface; AvahiProtocol protocol; AvahiLookupFlags flags; AvahiKey *key; AvahiWideAreaLookup *wide_area; AvahiMulticastLookup *multicast; AvahiRList *cname_lookups; AVAHI_LLIST_FIELDS(AvahiSRBLookup, lookups); }; static void lookup_handle_cname(AvahiSRBLookup *l, AvahiIfIndex interface, AvahiProtocol protocol, AvahiLookupFlags flags, AvahiRecord *r); static void lookup_drop_cname(AvahiSRBLookup *l, AvahiIfIndex interface, AvahiProtocol protocol, AvahiLookupFlags flags, AvahiRecord *r); static void transport_flags_from_domain(AvahiServer *s, AvahiLookupFlags *flags, const char *domain) { assert(flags); assert(domain); assert(!((*flags & AVAHI_LOOKUP_USE_MULTICAST) && (*flags & AVAHI_LOOKUP_USE_WIDE_AREA))); if (*flags & (AVAHI_LOOKUP_USE_MULTICAST|AVAHI_LOOKUP_USE_WIDE_AREA)) return; if (!s->wide_area_lookup_engine || !avahi_wide_area_has_servers(s->wide_area_lookup_engine) || avahi_domain_ends_with(domain, AVAHI_MDNS_SUFFIX_LOCAL) || avahi_domain_ends_with(domain, AVAHI_MDNS_SUFFIX_ADDR_IPV4) || avahi_domain_ends_with(domain, AVAHI_MDNS_SUFFIX_ADDR_IPV6)) *flags |= AVAHI_LOOKUP_USE_MULTICAST; else *flags |= AVAHI_LOOKUP_USE_WIDE_AREA; } static AvahiSRBLookup* lookup_new( AvahiSRecordBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiLookupFlags flags, AvahiKey *key) { AvahiSRBLookup *l; assert(b); assert(AVAHI_IF_VALID(interface)); assert(AVAHI_PROTO_VALID(protocol)); if (b->n_lookups >= AVAHI_LOOKUPS_PER_BROWSER_MAX) /* We don't like cyclic CNAMEs */ return NULL; if (!(l = avahi_new(AvahiSRBLookup, 1))) return NULL; l->ref = 1; l->record_browser = b; l->interface = interface; l->protocol = protocol; l->key = avahi_key_ref(key); l->wide_area = NULL; l->multicast = NULL; l->cname_lookups = NULL; l->flags = flags; transport_flags_from_domain(b->server, &l->flags, key->name); AVAHI_LLIST_PREPEND(AvahiSRBLookup, lookups, b->lookups, l); b->n_lookups ++; return l; } static void lookup_unref(AvahiSRBLookup *l) { assert(l); assert(l->ref >= 1); if (--l->ref >= 1) return; AVAHI_LLIST_REMOVE(AvahiSRBLookup, lookups, l->record_browser->lookups, l); l->record_browser->n_lookups --; if (l->wide_area) { avahi_wide_area_lookup_free(l->wide_area); l->wide_area = NULL; } if (l->multicast) { avahi_multicast_lookup_free(l->multicast); l->multicast = NULL; } while (l->cname_lookups) { lookup_unref(l->cname_lookups->data); l->cname_lookups = avahi_rlist_remove_by_link(l->cname_lookups, l->cname_lookups); } avahi_key_unref(l->key); avahi_free(l); } static AvahiSRBLookup* lookup_ref(AvahiSRBLookup *l) { assert(l); assert(l->ref >= 1); l->ref++; return l; } static AvahiSRBLookup *lookup_find( AvahiSRecordBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiLookupFlags flags, AvahiKey *key) { AvahiSRBLookup *l; assert(b); for (l = b->lookups; l; l = l->lookups_next) { if ((l->interface == AVAHI_IF_UNSPEC || l->interface == interface) && (l->interface == AVAHI_PROTO_UNSPEC || l->protocol == protocol) && l->flags == flags && avahi_key_equal(l->key, key)) return l; } return NULL; } static void browser_cancel(AvahiSRecordBrowser *b) { assert(b); if (b->root_lookup) { lookup_unref(b->root_lookup); b->root_lookup = NULL; } if (b->defer_time_event) { avahi_time_event_free(b->defer_time_event); b->defer_time_event = NULL; } } static void lookup_wide_area_callback( AvahiWideAreaLookupEngine *e, AvahiBrowserEvent event, AvahiLookupResultFlags flags, AvahiRecord *r, void *userdata) { AvahiSRBLookup *l = userdata; AvahiSRecordBrowser *b; assert(e); assert(l); assert(l->ref >= 1); b = l->record_browser; if (b->dead) return; lookup_ref(l); switch (event) { case AVAHI_BROWSER_NEW: assert(r); if (r->key->clazz == AVAHI_DNS_CLASS_IN && r->key->type == AVAHI_DNS_TYPE_CNAME) /* It's a CNAME record, so let's follow it. We only follow it on wide area DNS! */ lookup_handle_cname(l, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AVAHI_LOOKUP_USE_WIDE_AREA, r); else { /* It's a normal record, so let's call the user callback */ assert(avahi_key_equal(r->key, l->key)); b->callback(b, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, event, r, flags, b->userdata); } break; case AVAHI_BROWSER_REMOVE: case AVAHI_BROWSER_CACHE_EXHAUSTED: /* Not defined for wide area DNS */ abort(); case AVAHI_BROWSER_ALL_FOR_NOW: case AVAHI_BROWSER_FAILURE: b->callback(b, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, event, NULL, flags, b->userdata); break; } lookup_unref(l); } static void lookup_multicast_callback( AvahiMulticastLookupEngine *e, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiLookupResultFlags flags, AvahiRecord *r, void *userdata) { AvahiSRBLookup *l = userdata; AvahiSRecordBrowser *b; assert(e); assert(l); b = l->record_browser; if (b->dead) return; lookup_ref(l); switch (event) { case AVAHI_BROWSER_NEW: assert(r); if (r->key->clazz == AVAHI_DNS_CLASS_IN && r->key->type == AVAHI_DNS_TYPE_CNAME) /* It's a CNAME record, so let's follow it. We allow browsing on both multicast and wide area. */ lookup_handle_cname(l, interface, protocol, b->flags, r); else { /* It's a normal record, so let's call the user callback */ if (avahi_server_is_record_local(b->server, interface, protocol, r)) flags |= AVAHI_LOOKUP_RESULT_LOCAL; b->callback(b, interface, protocol, event, r, flags, b->userdata); } break; case AVAHI_BROWSER_REMOVE: assert(r); if (r->key->clazz == AVAHI_DNS_CLASS_IN && r->key->type == AVAHI_DNS_TYPE_CNAME) /* It's a CNAME record, so let's drop that query! */ lookup_drop_cname(l, interface, protocol, 0, r); else { /* It's a normal record, so let's call the user callback */ assert(avahi_key_equal(b->key, l->key)); b->callback(b, interface, protocol, event, r, flags, b->userdata); } break; case AVAHI_BROWSER_ALL_FOR_NOW: b->callback(b, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, event, NULL, flags, b->userdata); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_FAILURE: /* Not defined for multicast DNS */ abort(); } lookup_unref(l); } static int lookup_start(AvahiSRBLookup *l) { assert(l); assert(!(l->flags & AVAHI_LOOKUP_USE_WIDE_AREA) != !(l->flags & AVAHI_LOOKUP_USE_MULTICAST)); assert(!l->wide_area && !l->multicast); if (l->flags & AVAHI_LOOKUP_USE_WIDE_AREA) { if (!(l->wide_area = avahi_wide_area_lookup_new(l->record_browser->server->wide_area_lookup_engine, l->key, lookup_wide_area_callback, l))) return -1; } else { assert(l->flags & AVAHI_LOOKUP_USE_MULTICAST); if (!(l->multicast = avahi_multicast_lookup_new(l->record_browser->server->multicast_lookup_engine, l->interface, l->protocol, l->key, lookup_multicast_callback, l))) return -1; } return 0; } static int lookup_scan_cache(AvahiSRBLookup *l) { int n = 0; assert(l); assert(!(l->flags & AVAHI_LOOKUP_USE_WIDE_AREA) != !(l->flags & AVAHI_LOOKUP_USE_MULTICAST)); if (l->flags & AVAHI_LOOKUP_USE_WIDE_AREA) { n = (int) avahi_wide_area_scan_cache(l->record_browser->server->wide_area_lookup_engine, l->key, lookup_wide_area_callback, l); } else { assert(l->flags & AVAHI_LOOKUP_USE_MULTICAST); n = (int) avahi_multicast_lookup_engine_scan_cache(l->record_browser->server->multicast_lookup_engine, l->interface, l->protocol, l->key, lookup_multicast_callback, l); } return n; } static AvahiSRBLookup* lookup_add(AvahiSRecordBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiLookupFlags flags, AvahiKey *key) { AvahiSRBLookup *l; assert(b); assert(!b->dead); if ((l = lookup_find(b, interface, protocol, flags, key))) return lookup_ref(l); if (!(l = lookup_new(b, interface, protocol, flags, key))) return NULL; return l; } static int lookup_go(AvahiSRBLookup *l) { int n = 0; assert(l); if (l->record_browser->dead) return 0; lookup_ref(l); /* Browse the cache for the root request */ n = lookup_scan_cache(l); /* Start the lookup */ if (!l->record_browser->dead && l->ref > 1) { if ((l->flags & AVAHI_LOOKUP_USE_MULTICAST) || n == 0) /* We do no start a query if the cache contained entries and we're on wide area */ if (lookup_start(l) < 0) n = -1; } lookup_unref(l); return n; } static void lookup_handle_cname(AvahiSRBLookup *l, AvahiIfIndex interface, AvahiProtocol protocol, AvahiLookupFlags flags, AvahiRecord *r) { AvahiKey *k; AvahiSRBLookup *n; assert(l); assert(r); assert(r->key->clazz == AVAHI_DNS_CLASS_IN); assert(r->key->type == AVAHI_DNS_TYPE_CNAME); k = avahi_key_new(r->data.ptr.name, l->record_browser->key->clazz, l->record_browser->key->type); n = lookup_add(l->record_browser, interface, protocol, flags, k); avahi_key_unref(k); if (!n) { avahi_log_debug(__FILE__": Failed to create SRBLookup."); return; } l->cname_lookups = avahi_rlist_prepend(l->cname_lookups, lookup_ref(n)); lookup_go(n); lookup_unref(n); } static void lookup_drop_cname(AvahiSRBLookup *l, AvahiIfIndex interface, AvahiProtocol protocol, AvahiLookupFlags flags, AvahiRecord *r) { AvahiKey *k; AvahiSRBLookup *n = NULL; AvahiRList *rl; assert(r->key->clazz == AVAHI_DNS_CLASS_IN); assert(r->key->type == AVAHI_DNS_TYPE_CNAME); k = avahi_key_new(r->data.ptr.name, l->record_browser->key->clazz, l->record_browser->key->type); for (rl = l->cname_lookups; rl; rl = rl->rlist_next) { n = rl->data; assert(n); if ((n->interface == AVAHI_IF_UNSPEC || n->interface == interface) && (n->interface == AVAHI_PROTO_UNSPEC || n->protocol == protocol) && n->flags == flags && avahi_key_equal(n->key, k)) break; } avahi_key_unref(k); if (rl) { l->cname_lookups = avahi_rlist_remove_by_link(l->cname_lookups, rl); lookup_unref(n); } } static void defer_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void *userdata) { AvahiSRecordBrowser *b = userdata; int n; assert(b); assert(!b->dead); /* Remove the defer timeout */ if (b->defer_time_event) { avahi_time_event_free(b->defer_time_event); b->defer_time_event = NULL; } /* Create initial query */ assert(!b->root_lookup); b->root_lookup = lookup_add(b, b->interface, b->protocol, b->flags, b->key); assert(b->root_lookup); n = lookup_go(b->root_lookup); if (b->dead) return; if (n < 0) { /* sending of the initial query failed */ avahi_server_set_errno(b->server, AVAHI_ERR_FAILURE); b->callback( b, b->interface, b->protocol, AVAHI_BROWSER_FAILURE, NULL, b->flags & AVAHI_LOOKUP_USE_WIDE_AREA ? AVAHI_LOOKUP_RESULT_WIDE_AREA : AVAHI_LOOKUP_RESULT_MULTICAST, b->userdata); browser_cancel(b); return; } /* Tell the client that we're done with the cache */ b->callback( b, b->interface, b->protocol, AVAHI_BROWSER_CACHE_EXHAUSTED, NULL, b->flags & AVAHI_LOOKUP_USE_WIDE_AREA ? AVAHI_LOOKUP_RESULT_WIDE_AREA : AVAHI_LOOKUP_RESULT_MULTICAST, b->userdata); if (!b->dead && b->root_lookup && b->root_lookup->flags & AVAHI_LOOKUP_USE_WIDE_AREA && n > 0) { /* If we do wide area lookups and the the cache contained * entries, we assume that it is complete, and tell the user * so by firing ALL_FOR_NOW. */ b->callback(b, b->interface, b->protocol, AVAHI_BROWSER_ALL_FOR_NOW, NULL, AVAHI_LOOKUP_RESULT_WIDE_AREA, b->userdata); } } void avahi_s_record_browser_restart(AvahiSRecordBrowser *b) { assert(b); assert(!b->dead); browser_cancel(b); /* Request a new iteration of the cache scanning */ if (!b->defer_time_event) { b->defer_time_event = avahi_time_event_new(b->server->time_event_queue, NULL, defer_callback, b); assert(b->defer_time_event); } } AvahiSRecordBrowser *avahi_s_record_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, AvahiKey *key, AvahiLookupFlags flags, AvahiSRecordBrowserCallback callback, void* userdata) { AvahiSRecordBrowser *b; assert(server); assert(key); assert(callback); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !avahi_key_is_pattern(key), AVAHI_ERR_IS_PATTERN); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, avahi_key_is_valid(key), AVAHI_ERR_INVALID_KEY); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !(flags & AVAHI_LOOKUP_USE_WIDE_AREA) || !(flags & AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); if (!(b = avahi_new(AvahiSRecordBrowser, 1))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); return NULL; } b->dead = 0; b->server = server; b->interface = interface; b->protocol = protocol; b->key = avahi_key_ref(key); b->flags = flags; b->callback = callback; b->userdata = userdata; b->n_lookups = 0; AVAHI_LLIST_HEAD_INIT(AvahiSRBLookup, b->lookups); b->root_lookup = NULL; AVAHI_LLIST_PREPEND(AvahiSRecordBrowser, browser, server->record_browsers, b); /* The currently cached entries are scanned a bit later, and than we will start querying, too */ b->defer_time_event = avahi_time_event_new(server->time_event_queue, NULL, defer_callback, b); assert(b->defer_time_event); return b; } void avahi_s_record_browser_free(AvahiSRecordBrowser *b) { assert(b); assert(!b->dead); b->dead = 1; b->server->need_browser_cleanup = 1; browser_cancel(b); } void avahi_s_record_browser_destroy(AvahiSRecordBrowser *b) { assert(b); browser_cancel(b); AVAHI_LLIST_REMOVE(AvahiSRecordBrowser, browser, b->server->record_browsers, b); avahi_key_unref(b->key); avahi_free(b); } void avahi_browser_cleanup(AvahiServer *server) { AvahiSRecordBrowser *b; AvahiSRecordBrowser *n; assert(server); while (server->need_browser_cleanup) { server->need_browser_cleanup = 0; for (b = server->record_browsers; b; b = n) { n = b->browser_next; if (b->dead) avahi_s_record_browser_destroy(b); } } if (server->wide_area_lookup_engine) avahi_wide_area_cleanup(server->wide_area_lookup_engine); avahi_multicast_lookup_engine_cleanup(server->multicast_lookup_engine); } avahi-0.7/avahi-core/PaxHeaders.10109/probe-sched.c0000644000000000000000000000013213130651643016556 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.115987612 avahi-0.7/avahi-core/probe-sched.c0000644000175000017500000002422713130651643020174 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "probe-sched.h" #include "log.h" #include "rr-util.h" #define AVAHI_PROBE_HISTORY_MSEC 150 #define AVAHI_PROBE_DEFER_MSEC 50 typedef struct AvahiProbeJob AvahiProbeJob; struct AvahiProbeJob { AvahiProbeScheduler *scheduler; AvahiTimeEvent *time_event; int chosen; /* Use for packet assembling */ int done; struct timeval delivery; AvahiRecord *record; AVAHI_LLIST_FIELDS(AvahiProbeJob, jobs); }; struct AvahiProbeScheduler { AvahiInterface *interface; AvahiTimeEventQueue *time_event_queue; AVAHI_LLIST_HEAD(AvahiProbeJob, jobs); AVAHI_LLIST_HEAD(AvahiProbeJob, history); }; static AvahiProbeJob* job_new(AvahiProbeScheduler *s, AvahiRecord *record, int done) { AvahiProbeJob *pj; assert(s); assert(record); if (!(pj = avahi_new(AvahiProbeJob, 1))) { avahi_log_error(__FILE__": Out of memory"); return NULL; /* OOM */ } pj->scheduler = s; pj->record = avahi_record_ref(record); pj->time_event = NULL; pj->chosen = 0; if ((pj->done = done)) AVAHI_LLIST_PREPEND(AvahiProbeJob, jobs, s->history, pj); else AVAHI_LLIST_PREPEND(AvahiProbeJob, jobs, s->jobs, pj); return pj; } static void job_free(AvahiProbeScheduler *s, AvahiProbeJob *pj) { assert(pj); if (pj->time_event) avahi_time_event_free(pj->time_event); if (pj->done) AVAHI_LLIST_REMOVE(AvahiProbeJob, jobs, s->history, pj); else AVAHI_LLIST_REMOVE(AvahiProbeJob, jobs, s->jobs, pj); avahi_record_unref(pj->record); avahi_free(pj); } static void elapse_callback(AvahiTimeEvent *e, void* data); static void job_set_elapse_time(AvahiProbeScheduler *s, AvahiProbeJob *pj, unsigned msec, unsigned jitter) { struct timeval tv; assert(s); assert(pj); avahi_elapse_time(&tv, msec, jitter); if (pj->time_event) avahi_time_event_update(pj->time_event, &tv); else pj->time_event = avahi_time_event_new(s->time_event_queue, &tv, elapse_callback, pj); } static void job_mark_done(AvahiProbeScheduler *s, AvahiProbeJob *pj) { assert(s); assert(pj); assert(!pj->done); AVAHI_LLIST_REMOVE(AvahiProbeJob, jobs, s->jobs, pj); AVAHI_LLIST_PREPEND(AvahiProbeJob, jobs, s->history, pj); pj->done = 1; job_set_elapse_time(s, pj, AVAHI_PROBE_HISTORY_MSEC, 0); gettimeofday(&pj->delivery, NULL); } AvahiProbeScheduler *avahi_probe_scheduler_new(AvahiInterface *i) { AvahiProbeScheduler *s; assert(i); if (!(s = avahi_new(AvahiProbeScheduler, 1))) { avahi_log_error(__FILE__": Out of memory"); return NULL; } s->interface = i; s->time_event_queue = i->monitor->server->time_event_queue; AVAHI_LLIST_HEAD_INIT(AvahiProbeJob, s->jobs); AVAHI_LLIST_HEAD_INIT(AvahiProbeJob, s->history); return s; } void avahi_probe_scheduler_free(AvahiProbeScheduler *s) { assert(s); avahi_probe_scheduler_clear(s); avahi_free(s); } void avahi_probe_scheduler_clear(AvahiProbeScheduler *s) { assert(s); while (s->jobs) job_free(s, s->jobs); while (s->history) job_free(s, s->history); } static int packet_add_probe_query(AvahiProbeScheduler *s, AvahiDnsPacket *p, AvahiProbeJob *pj) { size_t size; AvahiKey *k; int b; assert(s); assert(p); assert(pj); assert(!pj->chosen); /* Estimate the size for this record */ size = avahi_key_get_estimate_size(pj->record->key) + avahi_record_get_estimate_size(pj->record); /* Too large */ if (size > avahi_dns_packet_reserved_space(p)) return 0; /* Create the probe query */ if (!(k = avahi_key_new(pj->record->key->name, pj->record->key->clazz, AVAHI_DNS_TYPE_ANY))) return 0; /* OOM */ b = !!avahi_dns_packet_append_key(p, k, 0); assert(b); /* reserve size for record data */ avahi_dns_packet_reserve_size(p, avahi_record_get_estimate_size(pj->record)); /* Mark this job for addition to the packet */ pj->chosen = 1; /* Scan for more jobs whith matching key pattern */ for (pj = s->jobs; pj; pj = pj->jobs_next) { if (pj->chosen) continue; /* Does the record match the probe? */ if (k->clazz != pj->record->key->clazz || !avahi_domain_equal(k->name, pj->record->key->name)) continue; /* This job wouldn't fit in */ if (avahi_record_get_estimate_size(pj->record) > avahi_dns_packet_reserved_space(p)) break; /* reserve size for record data */ avahi_dns_packet_reserve_size(p, avahi_record_get_estimate_size(pj->record)); /* Mark this job for addition to the packet */ pj->chosen = 1; } avahi_key_unref(k); return 1; } static void elapse_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void* data) { AvahiProbeJob *pj = data, *next; AvahiProbeScheduler *s; AvahiDnsPacket *p; unsigned n; assert(pj); s = pj->scheduler; if (pj->done) { /* Lets remove it from the history */ job_free(s, pj); return; } if (!(p = avahi_dns_packet_new_query(s->interface->hardware->mtu))) return; /* OOM */ n = 1; /* Add the import probe */ if (!packet_add_probe_query(s, p, pj)) { size_t size; AvahiKey *k; int b; avahi_dns_packet_free(p); /* The probe didn't fit in the package, so let's allocate a larger one */ size = avahi_key_get_estimate_size(pj->record->key) + avahi_record_get_estimate_size(pj->record) + AVAHI_DNS_PACKET_HEADER_SIZE; if (!(p = avahi_dns_packet_new_query(size + AVAHI_DNS_PACKET_EXTRA_SIZE))) return; /* OOM */ if (!(k = avahi_key_new(pj->record->key->name, pj->record->key->clazz, AVAHI_DNS_TYPE_ANY))) { avahi_dns_packet_free(p); return; /* OOM */ } b = avahi_dns_packet_append_key(p, k, 0) && avahi_dns_packet_append_record(p, pj->record, 0, 0); avahi_key_unref(k); if (b) { avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_NSCOUNT, 1); avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_QDCOUNT, 1); avahi_interface_send_packet(s->interface, p); } else avahi_log_warn("Probe record too large, cannot send"); avahi_dns_packet_free(p); job_mark_done(s, pj); return; } /* Try to fill up packet with more probes, if available */ for (pj = s->jobs; pj; pj = pj->jobs_next) { if (pj->chosen) continue; if (!packet_add_probe_query(s, p, pj)) break; n++; } avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_QDCOUNT, n); n = 0; /* Now add the chosen records to the authorative section */ for (pj = s->jobs; pj; pj = next) { next = pj->jobs_next; if (!pj->chosen) continue; if (!avahi_dns_packet_append_record(p, pj->record, 0, 0)) { /* avahi_log_warn("Bad probe size estimate!"); */ /* Unmark all following jobs */ for (; pj; pj = pj->jobs_next) pj->chosen = 0; break; } job_mark_done(s, pj); n ++; } avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_NSCOUNT, n); /* Send it now */ avahi_interface_send_packet(s->interface, p); avahi_dns_packet_free(p); } static AvahiProbeJob* find_scheduled_job(AvahiProbeScheduler *s, AvahiRecord *record) { AvahiProbeJob *pj; assert(s); assert(record); for (pj = s->jobs; pj; pj = pj->jobs_next) { assert(!pj->done); if (avahi_record_equal_no_ttl(pj->record, record)) return pj; } return NULL; } static AvahiProbeJob* find_history_job(AvahiProbeScheduler *s, AvahiRecord *record) { AvahiProbeJob *pj; assert(s); assert(record); for (pj = s->history; pj; pj = pj->jobs_next) { assert(pj->done); if (avahi_record_equal_no_ttl(pj->record, record)) { /* Check whether this entry is outdated */ if (avahi_age(&pj->delivery) > AVAHI_PROBE_HISTORY_MSEC*1000) { /* it is outdated, so let's remove it */ job_free(s, pj); return NULL; } return pj; } } return NULL; } int avahi_probe_scheduler_post(AvahiProbeScheduler *s, AvahiRecord *record, int immediately) { AvahiProbeJob *pj; struct timeval tv; assert(s); assert(record); assert(!avahi_key_is_pattern(record->key)); if ((pj = find_history_job(s, record))) return 0; avahi_elapse_time(&tv, immediately ? 0 : AVAHI_PROBE_DEFER_MSEC, 0); if ((pj = find_scheduled_job(s, record))) { if (avahi_timeval_compare(&tv, &pj->delivery) < 0) { /* If the new entry should be scheduled earlier, update the old entry */ pj->delivery = tv; avahi_time_event_update(pj->time_event, &pj->delivery); } return 1; } else { /* Create a new job and schedule it */ if (!(pj = job_new(s, record, 0))) return 0; /* OOM */ pj->delivery = tv; pj->time_event = avahi_time_event_new(s->time_event_queue, &pj->delivery, elapse_callback, pj); /* avahi_log_debug("Accepted new probe job."); */ return 1; } } avahi-0.7/avahi-core/PaxHeaders.10109/browse-service-type.c0000644000000000000000000000013213130651643020301 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.123987435 avahi-0.7/avahi-core/browse-service-type.c0000644000175000017500000001101113130651643021702 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "browse.h" #include "log.h" struct AvahiSServiceTypeBrowser { AvahiServer *server; char *domain_name; AvahiSRecordBrowser *record_browser; AvahiSServiceTypeBrowserCallback callback; void* userdata; AVAHI_LLIST_FIELDS(AvahiSServiceTypeBrowser, browser); }; static void record_browser_callback( AvahiSRecordBrowser*rr, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, AvahiRecord *record, AvahiLookupResultFlags flags, void* userdata) { AvahiSServiceTypeBrowser *b = userdata; assert(rr); assert(b); /* Filter flags */ flags &= AVAHI_LOOKUP_RESULT_CACHED | AVAHI_LOOKUP_RESULT_MULTICAST | AVAHI_LOOKUP_RESULT_WIDE_AREA; if (record) { char type[AVAHI_DOMAIN_NAME_MAX], domain[AVAHI_DOMAIN_NAME_MAX]; assert(record->key->type == AVAHI_DNS_TYPE_PTR); if (avahi_service_name_split(record->data.ptr.name, NULL, 0, type, sizeof(type), domain, sizeof(domain)) < 0) { avahi_log_warn("Invalid service type '%s'", record->key->name); return; } b->callback(b, interface, protocol, event, type, domain, flags, b->userdata); } else b->callback(b, interface, protocol, event, NULL, b->domain_name, flags, b->userdata); } AvahiSServiceTypeBrowser *avahi_s_service_type_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiLookupFlags flags, AvahiSServiceTypeBrowserCallback callback, void* userdata) { AvahiSServiceTypeBrowser *b; AvahiKey *k = NULL; char n[AVAHI_DOMAIN_NAME_MAX]; int r; assert(server); assert(callback); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(server, AVAHI_FLAGS_VALID(flags, AVAHI_LOOKUP_USE_WIDE_AREA|AVAHI_LOOKUP_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); if (!domain) domain = server->domain_name; if ((r = avahi_service_name_join(n, sizeof(n), NULL, "_services._dns-sd._udp", domain)) < 0) { avahi_server_set_errno(server, r); return NULL; } if (!(b = avahi_new(AvahiSServiceTypeBrowser, 1))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); return NULL; } b->server = server; b->callback = callback; b->userdata = userdata; b->record_browser = NULL; AVAHI_LLIST_PREPEND(AvahiSServiceTypeBrowser, browser, server->service_type_browsers, b); if (!(b->domain_name = avahi_normalize_name_strdup(domain))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(k = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_PTR))) { avahi_server_set_errno(server, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(b->record_browser = avahi_s_record_browser_new(server, interface, protocol, k, flags, record_browser_callback, b))) goto fail; avahi_key_unref(k); return b; fail: if (k) avahi_key_unref(k); avahi_s_service_type_browser_free(b); return NULL; } void avahi_s_service_type_browser_free(AvahiSServiceTypeBrowser *b) { assert(b); AVAHI_LLIST_REMOVE(AvahiSServiceTypeBrowser, browser, b->server->service_type_browsers, b); if (b->record_browser) avahi_s_record_browser_free(b->record_browser); avahi_free(b->domain_name); avahi_free(b); } avahi-0.7/avahi-core/PaxHeaders.10109/server.c0000644000000000000000000000013213130651643015671 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.107987791 avahi-0.7/avahi-core/server.c0000644000175000017500000016152713130651643017314 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "internal.h" #include "iface.h" #include "socket.h" #include "browse.h" #include "log.h" #include "util.h" #include "dns-srv-rr.h" #include "addr-util.h" #include "domain-util.h" #include "rr-util.h" #define AVAHI_DEFAULT_CACHE_ENTRIES_MAX 4096 static void enum_aux_records(AvahiServer *s, AvahiInterface *i, const char *name, uint16_t type, void (*callback)(AvahiServer *s, AvahiRecord *r, int flush_cache, void* userdata), void* userdata) { assert(s); assert(i); assert(name); assert(callback); if (type == AVAHI_DNS_TYPE_ANY) { AvahiEntry *e; for (e = s->entries; e; e = e->entries_next) if (!e->dead && avahi_entry_is_registered(s, e, i) && e->record->key->clazz == AVAHI_DNS_CLASS_IN && avahi_domain_equal(name, e->record->key->name)) callback(s, e->record, e->flags & AVAHI_PUBLISH_UNIQUE, userdata); } else { AvahiEntry *e; AvahiKey *k; if (!(k = avahi_key_new(name, AVAHI_DNS_CLASS_IN, type))) return; /** OOM */ for (e = avahi_hashmap_lookup(s->entries_by_key, k); e; e = e->by_key_next) if (!e->dead && avahi_entry_is_registered(s, e, i)) callback(s, e->record, e->flags & AVAHI_PUBLISH_UNIQUE, userdata); avahi_key_unref(k); } } void avahi_server_enumerate_aux_records(AvahiServer *s, AvahiInterface *i, AvahiRecord *r, void (*callback)(AvahiServer *s, AvahiRecord *r, int flush_cache, void* userdata), void* userdata) { assert(s); assert(i); assert(r); assert(callback); /* Call the specified callback far all records referenced by the one specified in *r */ if (r->key->clazz == AVAHI_DNS_CLASS_IN) { if (r->key->type == AVAHI_DNS_TYPE_PTR) { enum_aux_records(s, i, r->data.ptr.name, AVAHI_DNS_TYPE_SRV, callback, userdata); enum_aux_records(s, i, r->data.ptr.name, AVAHI_DNS_TYPE_TXT, callback, userdata); } else if (r->key->type == AVAHI_DNS_TYPE_SRV) { enum_aux_records(s, i, r->data.srv.name, AVAHI_DNS_TYPE_A, callback, userdata); enum_aux_records(s, i, r->data.srv.name, AVAHI_DNS_TYPE_AAAA, callback, userdata); } else if (r->key->type == AVAHI_DNS_TYPE_CNAME) enum_aux_records(s, i, r->data.cname.name, AVAHI_DNS_TYPE_ANY, callback, userdata); } } void avahi_server_prepare_response(AvahiServer *s, AvahiInterface *i, AvahiEntry *e, int unicast_response, int auxiliary) { assert(s); assert(i); assert(e); avahi_record_list_push(s->record_list, e->record, e->flags & AVAHI_PUBLISH_UNIQUE, unicast_response, auxiliary); } void avahi_server_prepare_matching_responses(AvahiServer *s, AvahiInterface *i, AvahiKey *k, int unicast_response) { assert(s); assert(i); assert(k); /* Push all records that match the specified key to the record list */ if (avahi_key_is_pattern(k)) { AvahiEntry *e; /* Handle ANY query */ for (e = s->entries; e; e = e->entries_next) if (!e->dead && avahi_key_pattern_match(k, e->record->key) && avahi_entry_is_registered(s, e, i)) avahi_server_prepare_response(s, i, e, unicast_response, 0); } else { AvahiEntry *e; /* Handle all other queries */ for (e = avahi_hashmap_lookup(s->entries_by_key, k); e; e = e->by_key_next) if (!e->dead && avahi_entry_is_registered(s, e, i)) avahi_server_prepare_response(s, i, e, unicast_response, 0); } /* Look for CNAME records */ if ((k->clazz == AVAHI_DNS_CLASS_IN || k->clazz == AVAHI_DNS_CLASS_ANY) && k->type != AVAHI_DNS_TYPE_CNAME && k->type != AVAHI_DNS_TYPE_ANY) { AvahiKey *cname_key; if (!(cname_key = avahi_key_new(k->name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_CNAME))) return; avahi_server_prepare_matching_responses(s, i, cname_key, unicast_response); avahi_key_unref(cname_key); } } static void withdraw_entry(AvahiServer *s, AvahiEntry *e) { assert(s); assert(e); /* Withdraw the specified entry, and if is part of an entry group, * put that into COLLISION state */ if (e->dead) return; if (e->group) { AvahiEntry *k; for (k = e->group->entries; k; k = k->by_group_next) if (!k->dead) { avahi_goodbye_entry(s, k, 0, 1); k->dead = 1; } e->group->n_probing = 0; avahi_s_entry_group_change_state(e->group, AVAHI_ENTRY_GROUP_COLLISION); } else { avahi_goodbye_entry(s, e, 0, 1); e->dead = 1; } s->need_entry_cleanup = 1; } static void withdraw_rrset(AvahiServer *s, AvahiKey *key) { AvahiEntry *e; assert(s); assert(key); /* Withdraw an entry RRSset */ for (e = avahi_hashmap_lookup(s->entries_by_key, key); e; e = e->by_key_next) withdraw_entry(s, e); } static void incoming_probe(AvahiServer *s, AvahiRecord *record, AvahiInterface *i) { AvahiEntry *e, *n; int ours = 0, won = 0, lost = 0; assert(s); assert(record); assert(i); /* Handle incoming probes and check if they conflict our own probes */ for (e = avahi_hashmap_lookup(s->entries_by_key, record->key); e; e = n) { int cmp; n = e->by_key_next; if (e->dead) continue; if ((cmp = avahi_record_lexicographical_compare(e->record, record)) == 0) { ours = 1; break; } else { if (avahi_entry_is_probing(s, e, i)) { if (cmp > 0) won = 1; else /* cmp < 0 */ lost = 1; } } } if (!ours) { char *t = avahi_record_to_string(record); if (won) avahi_log_debug("Received conflicting probe [%s]. Local host won.", t); else if (lost) { avahi_log_debug("Received conflicting probe [%s]. Local host lost. Withdrawing.", t); withdraw_rrset(s, record->key); } avahi_free(t); } } static int handle_conflict(AvahiServer *s, AvahiInterface *i, AvahiRecord *record, int unique) { int valid = 1, ours = 0, conflict = 0, withdraw_immediately = 0; AvahiEntry *e, *n, *conflicting_entry = NULL; assert(s); assert(i); assert(record); /* Check whether an incoming record conflicts with one of our own */ for (e = avahi_hashmap_lookup(s->entries_by_key, record->key); e; e = n) { n = e->by_key_next; if (e->dead) continue; /* Check if the incoming is a goodbye record */ if (avahi_record_is_goodbye(record)) { if (avahi_record_equal_no_ttl(e->record, record)) { char *t; /* Refresh */ t = avahi_record_to_string(record); avahi_log_debug("Received goodbye record for one of our records [%s]. Refreshing.", t); avahi_server_prepare_matching_responses(s, i, e->record->key, 0); valid = 0; avahi_free(t); break; } /* If the goodybe packet doesn't match one of our own RRs, we simply ignore it. */ continue; } if (!(e->flags & AVAHI_PUBLISH_UNIQUE) && !unique) continue; /* Either our entry or the other is intended to be unique, so let's check */ if (avahi_record_equal_no_ttl(e->record, record)) { ours = 1; /* We have an identical record, so this is no conflict */ /* Check wheter there is a TTL conflict */ if (record->ttl <= e->record->ttl/2 && avahi_entry_is_registered(s, e, i)) { char *t; /* Refresh */ t = avahi_record_to_string(record); avahi_log_debug("Received record with bad TTL [%s]. Refreshing.", t); avahi_server_prepare_matching_responses(s, i, e->record->key, 0); valid = 0; avahi_free(t); } /* There's no need to check the other entries of this RRset */ break; } else { if (avahi_entry_is_registered(s, e, i)) { /* A conflict => we have to return to probe mode */ conflict = 1; conflicting_entry = e; } else if (avahi_entry_is_probing(s, e, i)) { /* We are currently registering a matching record, but * someone else already claimed it, so let's * withdraw */ conflict = 1; withdraw_immediately = 1; } } } if (!ours && conflict) { char *t; valid = 0; t = avahi_record_to_string(record); if (withdraw_immediately) { avahi_log_debug("Received conflicting record [%s] with local record to be. Withdrawing.", t); withdraw_rrset(s, record->key); } else { assert(conflicting_entry); avahi_log_debug("Received conflicting record [%s]. Resetting our record.", t); avahi_entry_return_to_initial_state(s, conflicting_entry, i); /* Local unique records are returned to probing * state. Local shared records are reannounced. */ } avahi_free(t); } return valid; } static void append_aux_callback(AvahiServer *s, AvahiRecord *r, int flush_cache, void* userdata) { int *unicast_response = userdata; assert(s); assert(r); assert(unicast_response); avahi_record_list_push(s->record_list, r, flush_cache, *unicast_response, 1); } static void append_aux_records_to_list(AvahiServer *s, AvahiInterface *i, AvahiRecord *r, int unicast_response) { assert(s); assert(r); avahi_server_enumerate_aux_records(s, i, r, append_aux_callback, &unicast_response); } void avahi_server_generate_response(AvahiServer *s, AvahiInterface *i, AvahiDnsPacket *p, const AvahiAddress *a, uint16_t port, int legacy_unicast, int immediately) { assert(s); assert(i); assert(!legacy_unicast || (a && port > 0 && p)); if (legacy_unicast) { AvahiDnsPacket *reply; AvahiRecord *r; if (!(reply = avahi_dns_packet_new_reply(p, 512 + AVAHI_DNS_PACKET_EXTRA_SIZE /* unicast DNS maximum packet size is 512 */ , 1, 1))) return; /* OOM */ while ((r = avahi_record_list_next(s->record_list, NULL, NULL, NULL))) { append_aux_records_to_list(s, i, r, 0); if (avahi_dns_packet_append_record(reply, r, 0, 10)) avahi_dns_packet_inc_field(reply, AVAHI_DNS_FIELD_ANCOUNT); else { char *t = avahi_record_to_string(r); avahi_log_warn("Record [%s] not fitting in legacy unicast packet, dropping.", t); avahi_free(t); } avahi_record_unref(r); } if (avahi_dns_packet_get_field(reply, AVAHI_DNS_FIELD_ANCOUNT) != 0) avahi_interface_send_packet_unicast(i, reply, a, port); avahi_dns_packet_free(reply); } else { int unicast_response, flush_cache, auxiliary; AvahiDnsPacket *reply = NULL; AvahiRecord *r; /* In case the query packet was truncated never respond immediately, because known answer suppression records might be contained in later packets */ int tc = p && !!(avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_FLAGS) & AVAHI_DNS_FLAG_TC); while ((r = avahi_record_list_next(s->record_list, &flush_cache, &unicast_response, &auxiliary))) { int im = immediately; /* Only send the response immediately if it contains a * unique entry AND it is not in reply to a truncated * packet AND it is not an auxiliary record AND all other * responses for this record are unique too. */ if (flush_cache && !tc && !auxiliary && avahi_record_list_all_flush_cache(s->record_list)) im = 1; if (!avahi_interface_post_response(i, r, flush_cache, a, im) && unicast_response) { /* Due to some reasons the record has not been scheduled. * The client requested an unicast response in that * case. Therefore we prepare such a response */ append_aux_records_to_list(s, i, r, unicast_response); for (;;) { if (!reply) { assert(p); if (!(reply = avahi_dns_packet_new_reply(p, i->hardware->mtu, 0, 0))) break; /* OOM */ } if (avahi_dns_packet_append_record(reply, r, flush_cache, 0)) { /* Appending this record succeeded, so incremeant * the specific header field, and return to the caller */ avahi_dns_packet_inc_field(reply, AVAHI_DNS_FIELD_ANCOUNT); break; } if (avahi_dns_packet_get_field(reply, AVAHI_DNS_FIELD_ANCOUNT) == 0) { size_t size; /* The record is too large for one packet, so create a larger packet */ avahi_dns_packet_free(reply); size = avahi_record_get_estimate_size(r) + AVAHI_DNS_PACKET_HEADER_SIZE; if (!(reply = avahi_dns_packet_new_reply(p, size + AVAHI_DNS_PACKET_EXTRA_SIZE, 0, 1))) break; /* OOM */ if (avahi_dns_packet_append_record(reply, r, flush_cache, 0)) { /* Appending this record succeeded, so incremeant * the specific header field, and return to the caller */ avahi_dns_packet_inc_field(reply, AVAHI_DNS_FIELD_ANCOUNT); break; } else { /* We completely fucked up, there's * nothing we can do. The RR just doesn't * fit in. Let's ignore it. */ char *t; avahi_dns_packet_free(reply); reply = NULL; t = avahi_record_to_string(r); avahi_log_warn("Record [%s] too large, doesn't fit in any packet!", t); avahi_free(t); break; } } /* Appending the record didn't succeeed, so let's send this packet, and create a new one */ avahi_interface_send_packet_unicast(i, reply, a, port); avahi_dns_packet_free(reply); reply = NULL; } } avahi_record_unref(r); } if (reply) { if (avahi_dns_packet_get_field(reply, AVAHI_DNS_FIELD_ANCOUNT) != 0) avahi_interface_send_packet_unicast(i, reply, a, port); avahi_dns_packet_free(reply); } } avahi_record_list_flush(s->record_list); } static void reflect_response(AvahiServer *s, AvahiInterface *i, AvahiRecord *r, int flush_cache) { AvahiInterface *j; assert(s); assert(i); assert(r); if (!s->config.enable_reflector) return; for (j = s->monitor->interfaces; j; j = j->interface_next) if (j != i && (s->config.reflect_ipv || j->protocol == i->protocol)) avahi_interface_post_response(j, r, flush_cache, NULL, 1); } static void* reflect_cache_walk_callback(AvahiCache *c, AvahiKey *pattern, AvahiCacheEntry *e, void* userdata) { AvahiServer *s = userdata; AvahiRecord* r; assert(c); assert(pattern); assert(e); assert(s); /* Don't reflect cache entry with ipv6 link-local addresses. */ r = e->record; if ((r->key->type == AVAHI_DNS_TYPE_AAAA) && (r->data.aaaa.address.address[0] == 0xFE) && (r->data.aaaa.address.address[1] == 0x80)) return NULL; avahi_record_list_push(s->record_list, e->record, e->cache_flush, 0, 0); return NULL; } static void reflect_query(AvahiServer *s, AvahiInterface *i, AvahiKey *k) { AvahiInterface *j; assert(s); assert(i); assert(k); if (!s->config.enable_reflector) return; for (j = s->monitor->interfaces; j; j = j->interface_next) if (j != i && (s->config.reflect_ipv || j->protocol == i->protocol)) { /* Post the query to other networks */ avahi_interface_post_query(j, k, 1, NULL); /* Reply from caches of other network. This is needed to * "work around" known answer suppression. */ avahi_cache_walk(j->cache, k, reflect_cache_walk_callback, s); } } static void reflect_probe(AvahiServer *s, AvahiInterface *i, AvahiRecord *r) { AvahiInterface *j; assert(s); assert(i); assert(r); if (!s->config.enable_reflector) return; for (j = s->monitor->interfaces; j; j = j->interface_next) if (j != i && (s->config.reflect_ipv || j->protocol == i->protocol)) avahi_interface_post_probe(j, r, 1); } static void handle_query_packet(AvahiServer *s, AvahiDnsPacket *p, AvahiInterface *i, const AvahiAddress *a, uint16_t port, int legacy_unicast, int from_local_iface) { size_t n; int is_probe; assert(s); assert(p); assert(i); assert(a); assert(avahi_record_list_is_empty(s->record_list)); is_probe = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) > 0; /* Handle the questions */ for (n = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT); n > 0; n --) { AvahiKey *key; int unicast_response = 0; if (!(key = avahi_dns_packet_consume_key(p, &unicast_response))) { avahi_log_debug(__FILE__": Packet too short or invalid while reading question key. (Maybe a UTF-8 problem?)"); goto fail; } if (!legacy_unicast && !from_local_iface) { reflect_query(s, i, key); if (!unicast_response) avahi_cache_start_poof(i->cache, key, a); } if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0 && !(avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_FLAGS) & AVAHI_DNS_FLAG_TC)) /* Allow our own queries to be suppressed by incoming * queries only when they do not include known answers */ avahi_query_scheduler_incoming(i->query_scheduler, key); avahi_server_prepare_matching_responses(s, i, key, unicast_response); avahi_key_unref(key); } if (!legacy_unicast) { /* Known Answer Suppression */ for (n = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT); n > 0; n --) { AvahiRecord *record; int unique = 0; if (!(record = avahi_dns_packet_consume_record(p, &unique))) { avahi_log_debug(__FILE__": Packet too short or invalid while reading known answer record. (Maybe a UTF-8 problem?)"); goto fail; } avahi_response_scheduler_suppress(i->response_scheduler, record, a); avahi_record_list_drop(s->record_list, record); avahi_cache_stop_poof(i->cache, record, a); avahi_record_unref(record); } /* Probe record */ for (n = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT); n > 0; n --) { AvahiRecord *record; int unique = 0; if (!(record = avahi_dns_packet_consume_record(p, &unique))) { avahi_log_debug(__FILE__": Packet too short or invalid while reading probe record. (Maybe a UTF-8 problem?)"); goto fail; } if (!avahi_key_is_pattern(record->key)) { if (!from_local_iface) reflect_probe(s, i, record); incoming_probe(s, record, i); } avahi_record_unref(record); } } if (!avahi_record_list_is_empty(s->record_list)) avahi_server_generate_response(s, i, p, a, port, legacy_unicast, is_probe); return; fail: avahi_record_list_flush(s->record_list); } static void handle_response_packet(AvahiServer *s, AvahiDnsPacket *p, AvahiInterface *i, const AvahiAddress *a, int from_local_iface) { unsigned n; assert(s); assert(p); assert(i); assert(a); for (n = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) + avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ARCOUNT); n > 0; n--) { AvahiRecord *record; int cache_flush = 0; if (!(record = avahi_dns_packet_consume_record(p, &cache_flush))) { avahi_log_debug(__FILE__": Packet too short or invalid while reading response record. (Maybe a UTF-8 problem?)"); break; } if (!avahi_key_is_pattern(record->key)) { if (handle_conflict(s, i, record, cache_flush)) { if (!from_local_iface && !avahi_record_is_link_local_address(record)) reflect_response(s, i, record, cache_flush); avahi_cache_update(i->cache, record, cache_flush, a); avahi_response_scheduler_incoming(i->response_scheduler, record, cache_flush); } } avahi_record_unref(record); } /* If the incoming response contained a conflicting record, some records have been scheduled for sending. We need to flush them here. */ if (!avahi_record_list_is_empty(s->record_list)) avahi_server_generate_response(s, i, NULL, NULL, 0, 0, 1); } static AvahiLegacyUnicastReflectSlot* allocate_slot(AvahiServer *s) { unsigned n, idx = (unsigned) -1; AvahiLegacyUnicastReflectSlot *slot; assert(s); if (!s->legacy_unicast_reflect_slots) s->legacy_unicast_reflect_slots = avahi_new0(AvahiLegacyUnicastReflectSlot*, AVAHI_LEGACY_UNICAST_REFLECT_SLOTS_MAX); for (n = 0; n < AVAHI_LEGACY_UNICAST_REFLECT_SLOTS_MAX; n++, s->legacy_unicast_reflect_id++) { idx = s->legacy_unicast_reflect_id % AVAHI_LEGACY_UNICAST_REFLECT_SLOTS_MAX; if (!s->legacy_unicast_reflect_slots[idx]) break; } if (idx == (unsigned) -1 || s->legacy_unicast_reflect_slots[idx]) return NULL; if (!(slot = avahi_new(AvahiLegacyUnicastReflectSlot, 1))) return NULL; /* OOM */ s->legacy_unicast_reflect_slots[idx] = slot; slot->id = s->legacy_unicast_reflect_id++; slot->server = s; return slot; } static void deallocate_slot(AvahiServer *s, AvahiLegacyUnicastReflectSlot *slot) { unsigned idx; assert(s); assert(slot); idx = slot->id % AVAHI_LEGACY_UNICAST_REFLECT_SLOTS_MAX; assert(s->legacy_unicast_reflect_slots[idx] == slot); avahi_time_event_free(slot->time_event); avahi_free(slot); s->legacy_unicast_reflect_slots[idx] = NULL; } static void free_slots(AvahiServer *s) { unsigned idx; assert(s); if (!s->legacy_unicast_reflect_slots) return; for (idx = 0; idx < AVAHI_LEGACY_UNICAST_REFLECT_SLOTS_MAX; idx ++) if (s->legacy_unicast_reflect_slots[idx]) deallocate_slot(s, s->legacy_unicast_reflect_slots[idx]); avahi_free(s->legacy_unicast_reflect_slots); s->legacy_unicast_reflect_slots = NULL; } static AvahiLegacyUnicastReflectSlot* find_slot(AvahiServer *s, uint16_t id) { unsigned idx; assert(s); if (!s->legacy_unicast_reflect_slots) return NULL; idx = id % AVAHI_LEGACY_UNICAST_REFLECT_SLOTS_MAX; if (!s->legacy_unicast_reflect_slots[idx] || s->legacy_unicast_reflect_slots[idx]->id != id) return NULL; return s->legacy_unicast_reflect_slots[idx]; } static void legacy_unicast_reflect_slot_timeout(AvahiTimeEvent *e, void *userdata) { AvahiLegacyUnicastReflectSlot *slot = userdata; assert(e); assert(slot); assert(slot->time_event == e); deallocate_slot(slot->server, slot); } static void reflect_legacy_unicast_query_packet(AvahiServer *s, AvahiDnsPacket *p, AvahiInterface *i, const AvahiAddress *a, uint16_t port) { AvahiLegacyUnicastReflectSlot *slot; AvahiInterface *j; assert(s); assert(p); assert(i); assert(a); assert(port > 0); assert(i->protocol == a->proto); if (!s->config.enable_reflector) return; /* Reflecting legacy unicast queries is a little more complicated than reflecting normal queries, since we must route the responses back to the right client. Therefore we must store some information for finding the right client contact data for response packets. In contrast to normal queries legacy unicast query and response packets are reflected untouched and are not reassembled into larger packets */ if (!(slot = allocate_slot(s))) { /* No slot available, we drop this legacy unicast query */ avahi_log_warn("No slot available for legacy unicast reflection, dropping query packet."); return; } slot->original_id = avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ID); slot->address = *a; slot->port = port; slot->interface = i->hardware->index; avahi_elapse_time(&slot->elapse_time, 2000, 0); slot->time_event = avahi_time_event_new(s->time_event_queue, &slot->elapse_time, legacy_unicast_reflect_slot_timeout, slot); /* Patch the packet with our new locally generatet id */ avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_ID, slot->id); for (j = s->monitor->interfaces; j; j = j->interface_next) if (j->announcing && j != i && (s->config.reflect_ipv || j->protocol == i->protocol)) { if (j->protocol == AVAHI_PROTO_INET && s->fd_legacy_unicast_ipv4 >= 0) { avahi_send_dns_packet_ipv4(s->fd_legacy_unicast_ipv4, j->hardware->index, p, NULL, NULL, 0); } else if (j->protocol == AVAHI_PROTO_INET6 && s->fd_legacy_unicast_ipv6 >= 0) avahi_send_dns_packet_ipv6(s->fd_legacy_unicast_ipv6, j->hardware->index, p, NULL, NULL, 0); } /* Reset the id */ avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_ID, slot->original_id); } static int originates_from_local_legacy_unicast_socket(AvahiServer *s, const AvahiAddress *address, uint16_t port) { assert(s); assert(address); assert(port > 0); if (!s->config.enable_reflector) return 0; if (!avahi_address_is_local(s->monitor, address)) return 0; if (address->proto == AVAHI_PROTO_INET && s->fd_legacy_unicast_ipv4 >= 0) { struct sockaddr_in lsa; socklen_t l = sizeof(lsa); if (getsockname(s->fd_legacy_unicast_ipv4, (struct sockaddr*) &lsa, &l) != 0) avahi_log_warn("getsockname(): %s", strerror(errno)); else return avahi_port_from_sockaddr((struct sockaddr*) &lsa) == port; } if (address->proto == AVAHI_PROTO_INET6 && s->fd_legacy_unicast_ipv6 >= 0) { struct sockaddr_in6 lsa; socklen_t l = sizeof(lsa); if (getsockname(s->fd_legacy_unicast_ipv6, (struct sockaddr*) &lsa, &l) != 0) avahi_log_warn("getsockname(): %s", strerror(errno)); else return avahi_port_from_sockaddr((struct sockaddr*) &lsa) == port; } return 0; } static int is_mdns_mcast_address(const AvahiAddress *a) { AvahiAddress b; assert(a); avahi_address_parse(a->proto == AVAHI_PROTO_INET ? AVAHI_IPV4_MCAST_GROUP : AVAHI_IPV6_MCAST_GROUP, a->proto, &b); return avahi_address_cmp(a, &b) == 0; } static int originates_from_local_iface(AvahiServer *s, AvahiIfIndex iface, const AvahiAddress *a, uint16_t port) { assert(s); assert(iface != AVAHI_IF_UNSPEC); assert(a); /* If it isn't the MDNS port it can't be generated by us */ if (port != AVAHI_MDNS_PORT) return 0; return avahi_interface_has_address(s->monitor, iface, a); } static void dispatch_packet(AvahiServer *s, AvahiDnsPacket *p, const AvahiAddress *src_address, uint16_t port, const AvahiAddress *dst_address, AvahiIfIndex iface, int ttl) { AvahiInterface *i; int from_local_iface = 0; assert(s); assert(p); assert(src_address); assert(dst_address); assert(iface > 0); assert(src_address->proto == dst_address->proto); if (!(i = avahi_interface_monitor_get_interface(s->monitor, iface, src_address->proto)) || !i->announcing) { avahi_log_debug("Received packet from invalid interface."); return; } if (port <= 0) { /* This fixes RHBZ #475394 */ avahi_log_debug("Received packet from invalid source port %u.", (unsigned) port); return; } if (avahi_address_is_ipv4_in_ipv6(src_address)) /* This is an IPv4 address encapsulated in IPv6, so let's ignore it. */ return; if (originates_from_local_legacy_unicast_socket(s, src_address, port)) /* This originates from our local reflector, so let's ignore it */ return; /* We don't want to reflect local traffic, so we check if this packet is generated locally. */ if (s->config.enable_reflector) from_local_iface = originates_from_local_iface(s, iface, src_address, port); if (avahi_dns_packet_check_valid_multicast(p) < 0) { avahi_log_debug("Received invalid packet."); return; } if (avahi_dns_packet_is_query(p)) { int legacy_unicast = 0; /* For queries EDNS0 might allow ARCOUNT != 0. We ignore the * AR section completely here, so far. Until the day we add * EDNS0 support. */ if (port != AVAHI_MDNS_PORT) { /* Legacy Unicast */ if ((avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) != 0 || avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) != 0)) { avahi_log_debug("Invalid legacy unicast query packet."); return; } legacy_unicast = 1; } if (legacy_unicast) reflect_legacy_unicast_query_packet(s, p, i, src_address, port); handle_query_packet(s, p, i, src_address, port, legacy_unicast, from_local_iface); } else { char t[AVAHI_ADDRESS_STR_MAX]; if (port != AVAHI_MDNS_PORT) { avahi_log_debug("Received response from host %s with invalid source port %u on interface '%s.%i'", avahi_address_snprint(t, sizeof(t), src_address), port, i->hardware->name, i->protocol); return; } if (ttl != 255 && s->config.check_response_ttl) { avahi_log_debug("Received response from host %s with invalid TTL %u on interface '%s.%i'.", avahi_address_snprint(t, sizeof(t), src_address), ttl, i->hardware->name, i->protocol); return; } if (!is_mdns_mcast_address(dst_address) && !avahi_interface_address_on_link(i, src_address)) { avahi_log_debug("Received non-local response from host %s on interface '%s.%i'.", avahi_address_snprint(t, sizeof(t), src_address), i->hardware->name, i->protocol); return; } if (avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_QDCOUNT) != 0 || avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ANCOUNT) == 0 || avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_NSCOUNT) != 0) { avahi_log_debug("Invalid response packet from host %s.", avahi_address_snprint(t, sizeof(t), src_address)); return; } handle_response_packet(s, p, i, src_address, from_local_iface); } } static void dispatch_legacy_unicast_packet(AvahiServer *s, AvahiDnsPacket *p) { AvahiInterface *j; AvahiLegacyUnicastReflectSlot *slot; assert(s); assert(p); if (avahi_dns_packet_check_valid(p) < 0 || avahi_dns_packet_is_query(p)) { avahi_log_debug("Received invalid packet."); return; } if (!(slot = find_slot(s, avahi_dns_packet_get_field(p, AVAHI_DNS_FIELD_ID)))) { avahi_log_debug("Received legacy unicast response with unknown id"); return; } if (!(j = avahi_interface_monitor_get_interface(s->monitor, slot->interface, slot->address.proto)) || !j->announcing) return; /* Patch the original ID into this response */ avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_ID, slot->original_id); /* Forward the response to the correct client */ avahi_interface_send_packet_unicast(j, p, &slot->address, slot->port); /* Undo changes to packet */ avahi_dns_packet_set_field(p, AVAHI_DNS_FIELD_ID, slot->id); } static void mcast_socket_event(AvahiWatch *w, int fd, AvahiWatchEvent events, void *userdata) { AvahiServer *s = userdata; AvahiAddress dest, src; AvahiDnsPacket *p = NULL; AvahiIfIndex iface; uint16_t port; uint8_t ttl; assert(w); assert(fd >= 0); assert(events & AVAHI_WATCH_IN); if (fd == s->fd_ipv4) { dest.proto = src.proto = AVAHI_PROTO_INET; p = avahi_recv_dns_packet_ipv4(s->fd_ipv4, &src.data.ipv4, &port, &dest.data.ipv4, &iface, &ttl); } else { assert(fd == s->fd_ipv6); dest.proto = src.proto = AVAHI_PROTO_INET6; p = avahi_recv_dns_packet_ipv6(s->fd_ipv6, &src.data.ipv6, &port, &dest.data.ipv6, &iface, &ttl); } if (p) { if (iface == AVAHI_IF_UNSPEC) iface = avahi_find_interface_for_address(s->monitor, &dest); if (iface != AVAHI_IF_UNSPEC) dispatch_packet(s, p, &src, port, &dest, iface, ttl); else avahi_log_error("Incoming packet received on address that isn't local."); avahi_dns_packet_free(p); avahi_cleanup_dead_entries(s); } } static void legacy_unicast_socket_event(AvahiWatch *w, int fd, AvahiWatchEvent events, void *userdata) { AvahiServer *s = userdata; AvahiDnsPacket *p = NULL; assert(w); assert(fd >= 0); assert(events & AVAHI_WATCH_IN); if (fd == s->fd_legacy_unicast_ipv4) p = avahi_recv_dns_packet_ipv4(s->fd_legacy_unicast_ipv4, NULL, NULL, NULL, NULL, NULL); else { assert(fd == s->fd_legacy_unicast_ipv6); p = avahi_recv_dns_packet_ipv6(s->fd_legacy_unicast_ipv6, NULL, NULL, NULL, NULL, NULL); } if (p) { dispatch_legacy_unicast_packet(s, p); avahi_dns_packet_free(p); avahi_cleanup_dead_entries(s); } } static void server_set_state(AvahiServer *s, AvahiServerState state) { assert(s); if (s->state == state) return; s->state = state; avahi_interface_monitor_update_rrs(s->monitor, 0); if (s->callback) s->callback(s, state, s->userdata); } static void withdraw_host_rrs(AvahiServer *s) { assert(s); if (s->hinfo_entry_group) avahi_s_entry_group_reset(s->hinfo_entry_group); if (s->browse_domain_entry_group) avahi_s_entry_group_reset(s->browse_domain_entry_group); avahi_interface_monitor_update_rrs(s->monitor, 1); s->n_host_rr_pending = 0; } void avahi_server_decrease_host_rr_pending(AvahiServer *s) { assert(s); assert(s->n_host_rr_pending > 0); if (--s->n_host_rr_pending == 0) server_set_state(s, AVAHI_SERVER_RUNNING); } void avahi_host_rr_entry_group_callback(AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata) { assert(s); assert(g); if (state == AVAHI_ENTRY_GROUP_REGISTERING && s->state == AVAHI_SERVER_REGISTERING) s->n_host_rr_pending ++; else if (state == AVAHI_ENTRY_GROUP_COLLISION && (s->state == AVAHI_SERVER_REGISTERING || s->state == AVAHI_SERVER_RUNNING)) { withdraw_host_rrs(s); server_set_state(s, AVAHI_SERVER_COLLISION); } else if (state == AVAHI_ENTRY_GROUP_ESTABLISHED && s->state == AVAHI_SERVER_REGISTERING) avahi_server_decrease_host_rr_pending(s); } static void register_hinfo(AvahiServer *s) { struct utsname utsname; AvahiRecord *r; assert(s); if (!s->config.publish_hinfo) return; if (s->hinfo_entry_group) assert(avahi_s_entry_group_is_empty(s->hinfo_entry_group)); else s->hinfo_entry_group = avahi_s_entry_group_new(s, avahi_host_rr_entry_group_callback, NULL); if (!s->hinfo_entry_group) { avahi_log_warn("Failed to create HINFO entry group: %s", avahi_strerror(s->error)); return; } /* Fill in HINFO rr */ if ((r = avahi_record_new_full(s->host_name_fqdn, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_HINFO, AVAHI_DEFAULT_TTL_HOST_NAME))) { if (uname(&utsname) < 0) avahi_log_warn("uname() failed: %s\n", avahi_strerror(errno)); else { r->data.hinfo.cpu = avahi_strdup(avahi_strup(utsname.machine)); r->data.hinfo.os = avahi_strdup(avahi_strup(utsname.sysname)); avahi_log_info("Registering HINFO record with values '%s'/'%s'.", r->data.hinfo.cpu, r->data.hinfo.os); if (avahi_server_add(s, s->hinfo_entry_group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AVAHI_PUBLISH_UNIQUE, r) < 0) { avahi_log_warn("Failed to add HINFO RR: %s", avahi_strerror(s->error)); return; } } avahi_record_unref(r); } if (avahi_s_entry_group_commit(s->hinfo_entry_group) < 0) avahi_log_warn("Failed to commit HINFO entry group: %s", avahi_strerror(s->error)); } static void register_localhost(AvahiServer *s) { AvahiAddress a; assert(s); /* Add localhost entries */ avahi_address_parse("127.0.0.1", AVAHI_PROTO_INET, &a); avahi_server_add_address(s, NULL, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AVAHI_PUBLISH_NO_PROBE|AVAHI_PUBLISH_NO_ANNOUNCE, "localhost", &a); avahi_address_parse("::1", AVAHI_PROTO_INET6, &a); avahi_server_add_address(s, NULL, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AVAHI_PUBLISH_NO_PROBE|AVAHI_PUBLISH_NO_ANNOUNCE, "ip6-localhost", &a); } static void register_browse_domain(AvahiServer *s) { assert(s); if (!s->config.publish_domain) return; if (avahi_domain_equal(s->domain_name, "local")) return; if (s->browse_domain_entry_group) assert(avahi_s_entry_group_is_empty(s->browse_domain_entry_group)); else s->browse_domain_entry_group = avahi_s_entry_group_new(s, NULL, NULL); if (!s->browse_domain_entry_group) { avahi_log_warn("Failed to create browse domain entry group: %s", avahi_strerror(s->error)); return; } if (avahi_server_add_ptr(s, s->browse_domain_entry_group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, AVAHI_DEFAULT_TTL, "b._dns-sd._udp.local", s->domain_name) < 0) { avahi_log_warn("Failed to add browse domain RR: %s", avahi_strerror(s->error)); return; } if (avahi_s_entry_group_commit(s->browse_domain_entry_group) < 0) avahi_log_warn("Failed to commit browse domain entry group: %s", avahi_strerror(s->error)); } static void register_stuff(AvahiServer *s) { assert(s); server_set_state(s, AVAHI_SERVER_REGISTERING); s->n_host_rr_pending ++; /** Make sure that the state isn't changed tp AVAHI_SERVER_RUNNING too early */ register_hinfo(s); register_browse_domain(s); avahi_interface_monitor_update_rrs(s->monitor, 0); assert(s->n_host_rr_pending > 0); s->n_host_rr_pending --; if (s->n_host_rr_pending == 0) server_set_state(s, AVAHI_SERVER_RUNNING); } static void update_fqdn(AvahiServer *s) { char *n; assert(s); assert(s->host_name); assert(s->domain_name); if (!(n = avahi_strdup_printf("%s.%s", s->host_name, s->domain_name))) return; /* OOM */ avahi_free(s->host_name_fqdn); s->host_name_fqdn = n; } int avahi_server_set_host_name(AvahiServer *s, const char *host_name) { char *hn = NULL; assert(s); AVAHI_CHECK_VALIDITY(s, !host_name || avahi_is_valid_host_name(host_name), AVAHI_ERR_INVALID_HOST_NAME); if (!host_name) hn = avahi_get_host_name_strdup(); else hn = avahi_normalize_name_strdup(host_name); hn[strcspn(hn, ".")] = 0; if (avahi_domain_equal(s->host_name, hn) && s->state != AVAHI_SERVER_COLLISION) { avahi_free(hn); return avahi_server_set_errno(s, AVAHI_ERR_NO_CHANGE); } withdraw_host_rrs(s); avahi_free(s->host_name); s->host_name = hn; update_fqdn(s); register_stuff(s); return AVAHI_OK; } int avahi_server_set_domain_name(AvahiServer *s, const char *domain_name) { char *dn = NULL; assert(s); AVAHI_CHECK_VALIDITY(s, !domain_name || avahi_is_valid_domain_name(domain_name), AVAHI_ERR_INVALID_DOMAIN_NAME); if (!domain_name) dn = avahi_strdup("local"); else dn = avahi_normalize_name_strdup(domain_name); if (avahi_domain_equal(s->domain_name, domain_name)) { avahi_free(dn); return avahi_server_set_errno(s, AVAHI_ERR_NO_CHANGE); } withdraw_host_rrs(s); avahi_free(s->domain_name); s->domain_name = dn; update_fqdn(s); register_stuff(s); avahi_free(dn); return AVAHI_OK; } static int valid_server_config(const AvahiServerConfig *sc) { AvahiStringList *l; assert(sc); if (sc->n_wide_area_servers > AVAHI_WIDE_AREA_SERVERS_MAX) return AVAHI_ERR_INVALID_CONFIG; if (sc->host_name && !avahi_is_valid_host_name(sc->host_name)) return AVAHI_ERR_INVALID_HOST_NAME; if (sc->domain_name && !avahi_is_valid_domain_name(sc->domain_name)) return AVAHI_ERR_INVALID_DOMAIN_NAME; for (l = sc->browse_domains; l; l = l->next) if (!avahi_is_valid_domain_name((char*) l->text)) return AVAHI_ERR_INVALID_DOMAIN_NAME; return AVAHI_OK; } static int setup_sockets(AvahiServer *s) { assert(s); s->fd_ipv4 = s->config.use_ipv4 ? avahi_open_socket_ipv4(s->config.disallow_other_stacks) : -1; s->fd_ipv6 = s->config.use_ipv6 ? avahi_open_socket_ipv6(s->config.disallow_other_stacks) : -1; if (s->fd_ipv6 < 0 && s->fd_ipv4 < 0) return AVAHI_ERR_NO_NETWORK; if (s->fd_ipv4 < 0 && s->config.use_ipv4) avahi_log_notice("Failed to create IPv4 socket, proceeding in IPv6 only mode"); else if (s->fd_ipv6 < 0 && s->config.use_ipv6) avahi_log_notice("Failed to create IPv6 socket, proceeding in IPv4 only mode"); s->fd_legacy_unicast_ipv4 = s->fd_ipv4 >= 0 && s->config.enable_reflector ? avahi_open_unicast_socket_ipv4() : -1; s->fd_legacy_unicast_ipv6 = s->fd_ipv6 >= 0 && s->config.enable_reflector ? avahi_open_unicast_socket_ipv6() : -1; s->watch_ipv4 = s->watch_ipv6 = s->watch_legacy_unicast_ipv4 = s->watch_legacy_unicast_ipv6 = NULL; if (s->fd_ipv4 >= 0) s->watch_ipv4 = s->poll_api->watch_new(s->poll_api, s->fd_ipv4, AVAHI_WATCH_IN, mcast_socket_event, s); if (s->fd_ipv6 >= 0) s->watch_ipv6 = s->poll_api->watch_new(s->poll_api, s->fd_ipv6, AVAHI_WATCH_IN, mcast_socket_event, s); if (s->fd_legacy_unicast_ipv4 >= 0) s->watch_legacy_unicast_ipv4 = s->poll_api->watch_new(s->poll_api, s->fd_legacy_unicast_ipv4, AVAHI_WATCH_IN, legacy_unicast_socket_event, s); if (s->fd_legacy_unicast_ipv6 >= 0) s->watch_legacy_unicast_ipv6 = s->poll_api->watch_new(s->poll_api, s->fd_legacy_unicast_ipv6, AVAHI_WATCH_IN, legacy_unicast_socket_event, s); return 0; } AvahiServer *avahi_server_new(const AvahiPoll *poll_api, const AvahiServerConfig *sc, AvahiServerCallback callback, void* userdata, int *error) { AvahiServer *s; int e; if (sc && (e = valid_server_config(sc)) < 0) { if (error) *error = e; return NULL; } if (!(s = avahi_new(AvahiServer, 1))) { if (error) *error = AVAHI_ERR_NO_MEMORY; return NULL; } s->poll_api = poll_api; if (sc) avahi_server_config_copy(&s->config, sc); else avahi_server_config_init(&s->config); if ((e = setup_sockets(s)) < 0) { if (error) *error = e; avahi_server_config_free(&s->config); avahi_free(s); return NULL; } s->n_host_rr_pending = 0; s->need_entry_cleanup = 0; s->need_group_cleanup = 0; s->need_browser_cleanup = 0; s->cleanup_time_event = NULL; s->hinfo_entry_group = NULL; s->browse_domain_entry_group = NULL; s->error = AVAHI_OK; s->state = AVAHI_SERVER_INVALID; s->callback = callback; s->userdata = userdata; s->time_event_queue = avahi_time_event_queue_new(poll_api); s->entries_by_key = avahi_hashmap_new((AvahiHashFunc) avahi_key_hash, (AvahiEqualFunc) avahi_key_equal, NULL, NULL); AVAHI_LLIST_HEAD_INIT(AvahiEntry, s->entries); AVAHI_LLIST_HEAD_INIT(AvahiGroup, s->groups); s->record_browser_hashmap = avahi_hashmap_new((AvahiHashFunc) avahi_key_hash, (AvahiEqualFunc) avahi_key_equal, NULL, NULL); AVAHI_LLIST_HEAD_INIT(AvahiSRecordBrowser, s->record_browsers); AVAHI_LLIST_HEAD_INIT(AvahiSHostNameResolver, s->host_name_resolvers); AVAHI_LLIST_HEAD_INIT(AvahiSAddressResolver, s->address_resolvers); AVAHI_LLIST_HEAD_INIT(AvahiSDomainBrowser, s->domain_browsers); AVAHI_LLIST_HEAD_INIT(AvahiSServiceTypeBrowser, s->service_type_browsers); AVAHI_LLIST_HEAD_INIT(AvahiSServiceBrowser, s->service_browsers); AVAHI_LLIST_HEAD_INIT(AvahiSServiceResolver, s->service_resolvers); AVAHI_LLIST_HEAD_INIT(AvahiSDNSServerBrowser, s->dns_server_browsers); s->legacy_unicast_reflect_slots = NULL; s->legacy_unicast_reflect_id = 0; s->record_list = avahi_record_list_new(); /* Get host name */ s->host_name = s->config.host_name ? avahi_normalize_name_strdup(s->config.host_name) : avahi_get_host_name_strdup(); s->host_name[strcspn(s->host_name, ".")] = 0; s->domain_name = s->config.domain_name ? avahi_normalize_name_strdup(s->config.domain_name) : avahi_strdup("local"); s->host_name_fqdn = NULL; update_fqdn(s); do { s->local_service_cookie = (uint32_t) rand() * (uint32_t) rand(); } while (s->local_service_cookie == AVAHI_SERVICE_COOKIE_INVALID); if (s->config.enable_wide_area) { s->wide_area_lookup_engine = avahi_wide_area_engine_new(s); avahi_wide_area_set_servers(s->wide_area_lookup_engine, s->config.wide_area_servers, s->config.n_wide_area_servers); } else s->wide_area_lookup_engine = NULL; s->multicast_lookup_engine = avahi_multicast_lookup_engine_new(s); s->monitor = avahi_interface_monitor_new(s); avahi_interface_monitor_sync(s->monitor); register_localhost(s); register_stuff(s); return s; } void avahi_server_free(AvahiServer* s) { assert(s); /* Remove all browsers */ while (s->dns_server_browsers) avahi_s_dns_server_browser_free(s->dns_server_browsers); while (s->host_name_resolvers) avahi_s_host_name_resolver_free(s->host_name_resolvers); while (s->address_resolvers) avahi_s_address_resolver_free(s->address_resolvers); while (s->domain_browsers) avahi_s_domain_browser_free(s->domain_browsers); while (s->service_type_browsers) avahi_s_service_type_browser_free(s->service_type_browsers); while (s->service_browsers) avahi_s_service_browser_free(s->service_browsers); while (s->service_resolvers) avahi_s_service_resolver_free(s->service_resolvers); while (s->record_browsers) avahi_s_record_browser_destroy(s->record_browsers); /* Remove all locally rgeistered stuff */ while(s->entries) avahi_entry_free(s, s->entries); avahi_interface_monitor_free(s->monitor); while (s->groups) avahi_entry_group_free(s, s->groups); free_slots(s); avahi_hashmap_free(s->entries_by_key); avahi_record_list_free(s->record_list); avahi_hashmap_free(s->record_browser_hashmap); if (s->wide_area_lookup_engine) avahi_wide_area_engine_free(s->wide_area_lookup_engine); avahi_multicast_lookup_engine_free(s->multicast_lookup_engine); if (s->cleanup_time_event) avahi_time_event_free(s->cleanup_time_event); avahi_time_event_queue_free(s->time_event_queue); /* Free watches */ if (s->watch_ipv4) s->poll_api->watch_free(s->watch_ipv4); if (s->watch_ipv6) s->poll_api->watch_free(s->watch_ipv6); if (s->watch_legacy_unicast_ipv4) s->poll_api->watch_free(s->watch_legacy_unicast_ipv4); if (s->watch_legacy_unicast_ipv6) s->poll_api->watch_free(s->watch_legacy_unicast_ipv6); /* Free sockets */ if (s->fd_ipv4 >= 0) close(s->fd_ipv4); if (s->fd_ipv6 >= 0) close(s->fd_ipv6); if (s->fd_legacy_unicast_ipv4 >= 0) close(s->fd_legacy_unicast_ipv4); if (s->fd_legacy_unicast_ipv6 >= 0) close(s->fd_legacy_unicast_ipv6); /* Free other stuff */ avahi_free(s->host_name); avahi_free(s->domain_name); avahi_free(s->host_name_fqdn); avahi_server_config_free(&s->config); avahi_free(s); } const char* avahi_server_get_domain_name(AvahiServer *s) { assert(s); return s->domain_name; } const char* avahi_server_get_host_name(AvahiServer *s) { assert(s); return s->host_name; } const char* avahi_server_get_host_name_fqdn(AvahiServer *s) { assert(s); return s->host_name_fqdn; } void* avahi_server_get_data(AvahiServer *s) { assert(s); return s->userdata; } void avahi_server_set_data(AvahiServer *s, void* userdata) { assert(s); s->userdata = userdata; } AvahiServerState avahi_server_get_state(AvahiServer *s) { assert(s); return s->state; } AvahiServerConfig* avahi_server_config_init(AvahiServerConfig *c) { assert(c); memset(c, 0, sizeof(AvahiServerConfig)); c->use_ipv6 = 1; c->use_ipv4 = 1; c->allow_interfaces = NULL; c->deny_interfaces = NULL; c->host_name = NULL; c->domain_name = NULL; c->check_response_ttl = 0; c->publish_hinfo = 0; c->publish_addresses = 1; c->publish_workstation = 0; c->publish_domain = 1; c->use_iff_running = 0; c->enable_reflector = 0; c->reflect_ipv = 0; c->add_service_cookie = 0; c->enable_wide_area = 0; c->n_wide_area_servers = 0; c->disallow_other_stacks = 0; c->browse_domains = NULL; c->disable_publishing = 0; c->allow_point_to_point = 0; c->publish_aaaa_on_ipv4 = 1; c->publish_a_on_ipv6 = 0; c->n_cache_entries_max = AVAHI_DEFAULT_CACHE_ENTRIES_MAX; c->ratelimit_interval = 0; c->ratelimit_burst = 0; return c; } void avahi_server_config_free(AvahiServerConfig *c) { assert(c); avahi_free(c->host_name); avahi_free(c->domain_name); avahi_string_list_free(c->browse_domains); avahi_string_list_free(c->allow_interfaces); avahi_string_list_free(c->deny_interfaces); } AvahiServerConfig* avahi_server_config_copy(AvahiServerConfig *ret, const AvahiServerConfig *c) { char *d = NULL, *h = NULL; AvahiStringList *browse = NULL, *allow = NULL, *deny = NULL; assert(ret); assert(c); if (c->host_name) if (!(h = avahi_strdup(c->host_name))) return NULL; if (c->domain_name) if (!(d = avahi_strdup(c->domain_name))) { avahi_free(h); return NULL; } if (!(browse = avahi_string_list_copy(c->browse_domains)) && c->browse_domains) { avahi_free(h); avahi_free(d); return NULL; } if (!(allow = avahi_string_list_copy(c->allow_interfaces)) && c->allow_interfaces) { avahi_string_list_free(browse); avahi_free(h); avahi_free(d); return NULL; } if (!(deny = avahi_string_list_copy(c->deny_interfaces)) && c->deny_interfaces) { avahi_string_list_free(allow); avahi_string_list_free(browse); avahi_free(h); avahi_free(d); return NULL; } *ret = *c; ret->host_name = h; ret->domain_name = d; ret->browse_domains = browse; ret->allow_interfaces = allow; ret->deny_interfaces = deny; return ret; } int avahi_server_errno(AvahiServer *s) { assert(s); return s->error; } /* Just for internal use */ int avahi_server_set_errno(AvahiServer *s, int error) { assert(s); return s->error = error; } uint32_t avahi_server_get_local_service_cookie(AvahiServer *s) { assert(s); return s->local_service_cookie; } static AvahiEntry *find_entry(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, AvahiKey *key) { AvahiEntry *e; assert(s); assert(key); for (e = avahi_hashmap_lookup(s->entries_by_key, key); e; e = e->by_key_next) if ((e->interface == interface || e->interface <= 0 || interface <= 0) && (e->protocol == protocol || e->protocol == AVAHI_PROTO_UNSPEC || protocol == AVAHI_PROTO_UNSPEC) && (!e->group || e->group->state == AVAHI_ENTRY_GROUP_ESTABLISHED || e->group->state == AVAHI_ENTRY_GROUP_REGISTERING)) return e; return NULL; } int avahi_server_get_group_of_service(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, AvahiSEntryGroup** ret_group) { AvahiKey *key = NULL; AvahiEntry *e; int ret; char n[AVAHI_DOMAIN_NAME_MAX]; assert(s); assert(name); assert(type); assert(ret_group); AVAHI_CHECK_VALIDITY(s, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY(s, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY(s, avahi_is_valid_service_name(name), AVAHI_ERR_INVALID_SERVICE_NAME); AVAHI_CHECK_VALIDITY(s, avahi_is_valid_service_type_strict(type), AVAHI_ERR_INVALID_SERVICE_TYPE); AVAHI_CHECK_VALIDITY(s, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); if ((ret = avahi_service_name_join(n, sizeof(n), name, type, domain) < 0)) return avahi_server_set_errno(s, ret); if (!(key = avahi_key_new(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_SRV))) return avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); e = find_entry(s, interface, protocol, key); avahi_key_unref(key); if (e) { *ret_group = e->group; return AVAHI_OK; } return avahi_server_set_errno(s, AVAHI_ERR_NOT_FOUND); } int avahi_server_is_service_local(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, const char *name) { AvahiKey *key = NULL; AvahiEntry *e; assert(s); assert(name); if (!s->host_name_fqdn) return 0; if (!(key = avahi_key_new(name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_SRV))) return 0; e = find_entry(s, interface, protocol, key); avahi_key_unref(key); if (!e) return 0; return avahi_domain_equal(s->host_name_fqdn, e->record->data.srv.name); } int avahi_server_is_record_local(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, AvahiRecord *record) { AvahiEntry *e; assert(s); assert(record); for (e = avahi_hashmap_lookup(s->entries_by_key, record->key); e; e = e->by_key_next) if ((e->interface == interface || e->interface <= 0 || interface <= 0) && (e->protocol == protocol || e->protocol == AVAHI_PROTO_UNSPEC || protocol == AVAHI_PROTO_UNSPEC) && (!e->group || e->group->state == AVAHI_ENTRY_GROUP_ESTABLISHED || e->group->state == AVAHI_ENTRY_GROUP_REGISTERING) && avahi_record_equal_no_ttl(record, e->record)) return 1; return 0; } /** Set the wide area DNS servers */ int avahi_server_set_wide_area_servers(AvahiServer *s, const AvahiAddress *a, unsigned n) { assert(s); if (!s->wide_area_lookup_engine) return avahi_server_set_errno(s, AVAHI_ERR_INVALID_CONFIG); avahi_wide_area_set_servers(s->wide_area_lookup_engine, a, n); return AVAHI_OK; } const AvahiServerConfig* avahi_server_get_config(AvahiServer *s) { assert(s); return &s->config; } /** Set the browsing domains */ int avahi_server_set_browse_domains(AvahiServer *s, AvahiStringList *domains) { AvahiStringList *l; assert(s); for (l = domains; l; l = l->next) if (!avahi_is_valid_domain_name((char*) l->text)) return avahi_server_set_errno(s, AVAHI_ERR_INVALID_DOMAIN_NAME); avahi_string_list_free(s->config.browse_domains); s->config.browse_domains = avahi_string_list_copy(domains); return AVAHI_OK; } avahi-0.7/avahi-core/PaxHeaders.10109/rr-util.h0000644000000000000000000000013213130651643015766 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.127987345 avahi-0.7/avahi-core/rr-util.h0000644000175000017500000000441013130651643017374 0ustar00lathiatlathiat00000000000000#ifndef foorrutilhfoo #define foorrutilhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include "rr.h" AVAHI_C_DECL_BEGIN /** Creaze new AvahiKey object based on an existing key but replaceing the type by CNAME */ AvahiKey *avahi_key_new_cname(AvahiKey *key); /** Match a key to a key pattern. The pattern has a type of AVAHI_DNS_CLASS_ANY, the classes are taken to be equal. Same for the type. If the pattern has neither class nor type with ANY constants, this function is identical to avahi_key_equal(). In contrast to avahi_equal() this function is not commutative. */ int avahi_key_pattern_match(const AvahiKey *pattern, const AvahiKey *k); /** Check whether a key is a pattern key, i.e. the class/type has a * value of AVAHI_DNS_CLASS_ANY/AVAHI_DNS_TYPE_ANY */ int avahi_key_is_pattern(const AvahiKey *k); /** Returns a maximum estimate for the space that is needed to store * this key in a DNS packet. */ size_t avahi_key_get_estimate_size(AvahiKey *k); /** Returns a maximum estimate for the space that is needed to store * the record in a DNS packet. */ size_t avahi_record_get_estimate_size(AvahiRecord *r); /** Do a mDNS spec conforming lexicographical comparison of the two * records. Return a negative value if a < b, a positive if a > b, * zero if equal. */ int avahi_record_lexicographical_compare(AvahiRecord *a, AvahiRecord *b); /** Return 1 if the specified record is an mDNS goodbye record. i.e. TTL is zero. */ int avahi_record_is_goodbye(AvahiRecord *r); /** Make a deep copy of an AvahiRecord object */ AvahiRecord *avahi_record_copy(AvahiRecord *r); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016252 xustar0030 mtime=1499681801.385076295 30 atime=1499681806.604959552 30 ctime=1499681850.103987881 avahi-0.7/avahi-core/Makefile.in0000644000175000017500000042456113130652011017675 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_TESTS_TRUE@noinst_PROGRAMS = prioq-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ avahi-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ conformance-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ avahi-reflector$(EXEEXT) dns-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ dns-spin-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ timeeventq-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ hashmap-test$(EXEEXT) querier-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ update-test$(EXEEXT) @ENABLE_TESTS_TRUE@TESTS = dns-spin-test$(EXEEXT) dns-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ hashmap-test$(EXEEXT) @HAVE_NETLINK_TRUE@am__append_1 = \ @HAVE_NETLINK_TRUE@ iface-linux.c iface-linux.h \ @HAVE_NETLINK_TRUE@ netlink.c netlink.h @HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_TRUE@am__append_2 = \ @HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_TRUE@ iface-pfroute.c iface-pfroute.h @HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_FALSE@am__append_3 = \ @HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_FALSE@ iface-none.c subdir = avahi-core ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(avahiinclude_HEADERS) \ $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahiincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) libavahi_core_la_DEPENDENCIES = ../avahi-common/libavahi-common.la am__libavahi_core_la_SOURCES_DIST = timeeventq.c timeeventq.h iface.c \ iface.h server.c internal.h entry.c prioq.c prioq.h cache.c \ cache.h socket.c socket.h response-sched.c response-sched.h \ query-sched.c query-sched.h probe-sched.c probe-sched.h \ announce.c announce.h browse.c browse.h rrlist.c rrlist.h \ resolve-host-name.c resolve-address.c browse-domain.c \ browse-service-type.c browse-service.c resolve-service.c dns.c \ dns.h rr.c rr.h rr-util.h core.h lookup.h publish.h log.c \ log.h browse-dns-server.c fdutil.h fdutil.c util.c util.h \ hashmap.c hashmap.h wide-area.c wide-area.h multicast-lookup.c \ multicast-lookup.h querier.c querier.h addr-util.h addr-util.c \ domain-util.h domain-util.c dns-srv-rr.h iface-linux.c \ iface-linux.h netlink.c netlink.h iface-pfroute.c \ iface-pfroute.h iface-none.c @HAVE_NETLINK_TRUE@am__objects_1 = libavahi_core_la-iface-linux.lo \ @HAVE_NETLINK_TRUE@ libavahi_core_la-netlink.lo @HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_TRUE@am__objects_2 = libavahi_core_la-iface-pfroute.lo @HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_FALSE@am__objects_3 = libavahi_core_la-iface-none.lo am_libavahi_core_la_OBJECTS = libavahi_core_la-timeeventq.lo \ libavahi_core_la-iface.lo libavahi_core_la-server.lo \ libavahi_core_la-entry.lo libavahi_core_la-prioq.lo \ libavahi_core_la-cache.lo libavahi_core_la-socket.lo \ libavahi_core_la-response-sched.lo \ libavahi_core_la-query-sched.lo \ libavahi_core_la-probe-sched.lo libavahi_core_la-announce.lo \ libavahi_core_la-browse.lo libavahi_core_la-rrlist.lo \ libavahi_core_la-resolve-host-name.lo \ libavahi_core_la-resolve-address.lo \ libavahi_core_la-browse-domain.lo \ libavahi_core_la-browse-service-type.lo \ libavahi_core_la-browse-service.lo \ libavahi_core_la-resolve-service.lo libavahi_core_la-dns.lo \ libavahi_core_la-rr.lo libavahi_core_la-log.lo \ libavahi_core_la-browse-dns-server.lo \ libavahi_core_la-fdutil.lo libavahi_core_la-util.lo \ libavahi_core_la-hashmap.lo libavahi_core_la-wide-area.lo \ libavahi_core_la-multicast-lookup.lo \ libavahi_core_la-querier.lo libavahi_core_la-addr-util.lo \ libavahi_core_la-domain-util.lo $(am__objects_1) \ $(am__objects_2) $(am__objects_3) libavahi_core_la_OBJECTS = $(am_libavahi_core_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libavahi_core_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libavahi_core_la_CFLAGS) $(CFLAGS) \ $(libavahi_core_la_LDFLAGS) $(LDFLAGS) -o $@ PROGRAMS = $(noinst_PROGRAMS) am_avahi_reflector_OBJECTS = \ avahi_reflector-avahi-reflector.$(OBJEXT) avahi_reflector_OBJECTS = $(am_avahi_reflector_OBJECTS) avahi_reflector_DEPENDENCIES = ../avahi-common/libavahi-common.la \ libavahi-core.la avahi_reflector_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(avahi_reflector_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ am_avahi_test_OBJECTS = avahi_test-avahi-test.$(OBJEXT) avahi_test_OBJECTS = $(am_avahi_test_OBJECTS) avahi_test_DEPENDENCIES = ../avahi-common/libavahi-common.la \ libavahi-core.la avahi_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(avahi_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_conformance_test_OBJECTS = \ conformance_test-conformance-test.$(OBJEXT) conformance_test_OBJECTS = $(am_conformance_test_OBJECTS) conformance_test_DEPENDENCIES = ../avahi-common/libavahi-common.la \ libavahi-core.la conformance_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(conformance_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ am_dns_spin_test_OBJECTS = dns_spin_test-dns-spin-test.$(OBJEXT) dns_spin_test_OBJECTS = $(am_dns_spin_test_OBJECTS) dns_spin_test_DEPENDENCIES = libavahi-core.la dns_spin_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dns_spin_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_dns_test_OBJECTS = dns_test-dns.$(OBJEXT) \ dns_test-dns-test.$(OBJEXT) dns_test-log.$(OBJEXT) \ dns_test-util.$(OBJEXT) dns_test-rr.$(OBJEXT) \ dns_test-hashmap.$(OBJEXT) dns_test-domain-util.$(OBJEXT) \ dns_test-addr-util.$(OBJEXT) dns_test_OBJECTS = $(am_dns_test_OBJECTS) dns_test_DEPENDENCIES = ../avahi-common/libavahi-common.la dns_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dns_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_hashmap_test_OBJECTS = hashmap_test-hashmap-test.$(OBJEXT) \ hashmap_test-hashmap.$(OBJEXT) hashmap_test-util.$(OBJEXT) hashmap_test_OBJECTS = $(am_hashmap_test_OBJECTS) hashmap_test_DEPENDENCIES = ../avahi-common/libavahi-common.la hashmap_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(hashmap_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_prioq_test_OBJECTS = prioq_test-prioq-test.$(OBJEXT) \ prioq_test-prioq.$(OBJEXT) prioq_test_OBJECTS = $(am_prioq_test_OBJECTS) prioq_test_DEPENDENCIES = ../avahi-common/libavahi-common.la prioq_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(prioq_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_querier_test_OBJECTS = querier_test-querier-test.$(OBJEXT) querier_test_OBJECTS = $(am_querier_test_OBJECTS) querier_test_DEPENDENCIES = ../avahi-common/libavahi-common.la \ libavahi-core.la querier_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(querier_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_timeeventq_test_OBJECTS = \ timeeventq_test-timeeventq-test.$(OBJEXT) \ timeeventq_test-timeeventq.$(OBJEXT) \ timeeventq_test-prioq.$(OBJEXT) timeeventq_test-log.$(OBJEXT) timeeventq_test_OBJECTS = $(am_timeeventq_test_OBJECTS) timeeventq_test_DEPENDENCIES = ../avahi-common/libavahi-common.la timeeventq_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(timeeventq_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ am_update_test_OBJECTS = update_test-update-test.$(OBJEXT) update_test_OBJECTS = $(am_update_test_OBJECTS) update_test_DEPENDENCIES = ../avahi-common/libavahi-common.la \ libavahi-core.la update_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(update_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libavahi_core_la_SOURCES) $(avahi_reflector_SOURCES) \ $(avahi_test_SOURCES) $(conformance_test_SOURCES) \ $(dns_spin_test_SOURCES) $(dns_test_SOURCES) \ $(hashmap_test_SOURCES) $(prioq_test_SOURCES) \ $(querier_test_SOURCES) $(timeeventq_test_SOURCES) \ $(update_test_SOURCES) DIST_SOURCES = $(am__libavahi_core_la_SOURCES_DIST) \ $(avahi_reflector_SOURCES) $(avahi_test_SOURCES) \ $(conformance_test_SOURCES) $(dns_spin_test_SOURCES) \ $(dns_test_SOURCES) $(hashmap_test_SOURCES) \ $(prioq_test_SOURCES) $(querier_test_SOURCES) \ $(timeeventq_test_SOURCES) $(update_test_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(avahiinclude_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no am__tty_colors = { \ $(am__tty_colors_dummy); \ if test "X$(AM_COLOR_TESTS)" = Xno; then \ am__color_tests=no; \ elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ am__color_tests=yes; \ elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ am__color_tests=yes; \ fi; \ if test $$am__color_tests = yes; then \ red=''; \ grn=''; \ lgn=''; \ blu=''; \ mgn=''; \ brg=''; \ std=''; \ fi; \ } am__recheck_rx = ^[ ]*:recheck:[ ]* am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* # A command that, given a newline-separated list of test names on the # standard input, print the name of the tests that are to be re-run # upon "make recheck". am__list_recheck_tests = $(AWK) '{ \ recheck = 1; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ { \ if ((getline line2 < ($$0 ".log")) < 0) \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ { \ recheck = 0; \ break; \ } \ else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ { \ break; \ } \ }; \ if (recheck) \ print $$0; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # A command that, given a newline-separated list of test names on the # standard input, create the global log from their .trs and .log files. am__create_global_log = $(AWK) ' \ function fatal(msg) \ { \ print "fatal: making $@: " msg | "cat >&2"; \ exit 1; \ } \ function rst_section(header) \ { \ print header; \ len = length(header); \ for (i = 1; i <= len; i = i + 1) \ printf "="; \ printf "\n\n"; \ } \ { \ copy_in_global_log = 1; \ global_test_result = "RUN"; \ while ((rc = (getline line < ($$0 ".trs"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".trs"); \ if (line ~ /$(am__global_test_result_rx)/) \ { \ sub("$(am__global_test_result_rx)", "", line); \ sub("[ ]*$$", "", line); \ global_test_result = line; \ } \ else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ copy_in_global_log = 0; \ }; \ if (copy_in_global_log) \ { \ rst_section(global_test_result ": " $$0); \ while ((rc = (getline line < ($$0 ".log"))) != 0) \ { \ if (rc < 0) \ fatal("failed to read from " $$0 ".log"); \ print line; \ }; \ printf "\n"; \ }; \ close ($$0 ".trs"); \ close ($$0 ".log"); \ }' # Restructured Text title. am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } # Solaris 10 'make', and several other traditional 'make' implementations, # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it # by disabling -e (using the XSI extension "set +e") if it's set. am__sh_e_setup = case $$- in *e*) set +e;; esac # Default flags passed to test drivers. am__common_driver_flags = \ --color-tests "$$am__color_tests" \ --enable-hard-errors "$$am__enable_hard_errors" \ --expect-failure "$$am__expect_failure" # To be inserted before the command running the test. Creates the # directory for the log if needed. Stores in $dir the directory # containing $f, in $tst the test, in $log the log. Executes the # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and # passes TESTS_ENVIRONMENT. Set up options for the wrapper that # will run the test scripts (or their associated LOG_COMPILER, if # thy have one). am__check_pre = \ $(am__sh_e_setup); \ $(am__vpath_adj_setup) $(am__vpath_adj) \ $(am__tty_colors); \ srcdir=$(srcdir); export srcdir; \ case "$@" in \ */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ *) am__odir=.;; \ esac; \ test "x$$am__odir" = x"." || test -d "$$am__odir" \ || $(MKDIR_P) "$$am__odir" || exit $$?; \ if test -f "./$$f"; then dir=./; \ elif test -f "$$f"; then dir=; \ else dir="$(srcdir)/"; fi; \ tst=$$dir$$f; log='$@'; \ if test -n '$(DISABLE_HARD_ERRORS)'; then \ am__enable_hard_errors=no; \ else \ am__enable_hard_errors=yes; \ fi; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ am__expect_failure=yes;; \ *) \ am__expect_failure=no;; \ esac; \ $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) # A shell command to get the names of the tests scripts with any registered # extension removed (i.e., equivalently, the names of the test logs, with # the '.log' extension removed). The result is saved in the shell variable # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", # since that might cause problem with VPATH rewrites for suffix-less tests. # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. am__set_TESTS_bases = \ bases='$(TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` RECHECK_LOGS = $(TEST_LOGS) AM_RECURSIVE_TARGETS = check recheck TEST_SUITE_LOG = test-suite.log TEST_EXTENSIONS = @EXEEXT@ .test LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) am__set_b = \ case '$@' in \ */*) \ case '$*' in \ */*) b='$*';; \ *) b=`echo '$@' | sed 's/\.log$$//'`; \ esac;; \ *) \ b='$*';; \ esac am__test_logs1 = $(TESTS:=.log) am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) TEST_LOGS = $(am__test_logs2:.test.log=.log) TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ $(TEST_LOG_FLAGS) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \ $(top_srcdir)/test-driver DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' avahiincludedir = $(includedir)/avahi-core avahiinclude_HEADERS = \ core.h \ log.h \ rr.h \ publish.h \ lookup.h lib_LTLIBRARIES = \ libavahi-core.la libavahi_core_la_SOURCES = timeeventq.c timeeventq.h iface.c iface.h \ server.c internal.h entry.c prioq.c prioq.h cache.c cache.h \ socket.c socket.h response-sched.c response-sched.h \ query-sched.c query-sched.h probe-sched.c probe-sched.h \ announce.c announce.h browse.c browse.h rrlist.c rrlist.h \ resolve-host-name.c resolve-address.c browse-domain.c \ browse-service-type.c browse-service.c resolve-service.c dns.c \ dns.h rr.c rr.h rr-util.h core.h lookup.h publish.h log.c \ log.h browse-dns-server.c fdutil.h fdutil.c util.c util.h \ hashmap.c hashmap.h wide-area.c wide-area.h multicast-lookup.c \ multicast-lookup.h querier.c querier.h addr-util.h addr-util.c \ domain-util.h domain-util.c dns-srv-rr.h $(am__append_1) \ $(am__append_2) $(am__append_3) libavahi_core_la_CFLAGS = $(AM_CFLAGS) libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_CORE_VERSION_INFO) prioq_test_SOURCES = \ prioq-test.c \ prioq.c prioq.h prioq_test_CFLAGS = $(AM_CFLAGS) prioq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la avahi_test_SOURCES = \ avahi-test.c avahi_test_CFLAGS = $(AM_CFLAGS) avahi_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la update_test_SOURCES = \ update-test.c update_test_CFLAGS = $(AM_CFLAGS) update_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la querier_test_SOURCES = \ querier-test.c querier_test_CFLAGS = $(AM_CFLAGS) querier_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la conformance_test_SOURCES = \ conformance-test.c conformance_test_CFLAGS = $(AM_CFLAGS) conformance_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la avahi_reflector_SOURCES = \ avahi-reflector.c avahi_reflector_CFLAGS = $(AM_CFLAGS) avahi_reflector_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la dns_test_SOURCES = \ dns.c dns.h \ dns-test.c \ log.c log.h \ util.c util.h \ rr.c rr.h \ hashmap.c hashmap.h \ domain-util.c domain-util.h \ addr-util.c addr-util.h dns_test_CFLAGS = $(AM_CFLAGS) dns_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la dns_spin_test_SOURCES = \ dns-spin-test.c dns_spin_test_CFLAGS = $(AM_CFLAGS) dns_spin_test_LDADD = $(AM_LDADD) libavahi-core.la timeeventq_test_SOURCES = \ timeeventq-test.c \ timeeventq.h timeeventq.c \ prioq.h prioq.c \ log.c log.h timeeventq_test_CFLAGS = $(AM_CFLAGS) timeeventq_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la hashmap_test_SOURCES = \ hashmap-test.c \ hashmap.h hashmap.c \ util.h util.c hashmap_test_CFLAGS = $(AM_CFLAGS) hashmap_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la all: all-am .SUFFIXES: .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-core/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-core/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libavahi-core.la: $(libavahi_core_la_OBJECTS) $(libavahi_core_la_DEPENDENCIES) $(EXTRA_libavahi_core_la_DEPENDENCIES) $(AM_V_CCLD)$(libavahi_core_la_LINK) -rpath $(libdir) $(libavahi_core_la_OBJECTS) $(libavahi_core_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list avahi-reflector$(EXEEXT): $(avahi_reflector_OBJECTS) $(avahi_reflector_DEPENDENCIES) $(EXTRA_avahi_reflector_DEPENDENCIES) @rm -f avahi-reflector$(EXEEXT) $(AM_V_CCLD)$(avahi_reflector_LINK) $(avahi_reflector_OBJECTS) $(avahi_reflector_LDADD) $(LIBS) avahi-test$(EXEEXT): $(avahi_test_OBJECTS) $(avahi_test_DEPENDENCIES) $(EXTRA_avahi_test_DEPENDENCIES) @rm -f avahi-test$(EXEEXT) $(AM_V_CCLD)$(avahi_test_LINK) $(avahi_test_OBJECTS) $(avahi_test_LDADD) $(LIBS) conformance-test$(EXEEXT): $(conformance_test_OBJECTS) $(conformance_test_DEPENDENCIES) $(EXTRA_conformance_test_DEPENDENCIES) @rm -f conformance-test$(EXEEXT) $(AM_V_CCLD)$(conformance_test_LINK) $(conformance_test_OBJECTS) $(conformance_test_LDADD) $(LIBS) dns-spin-test$(EXEEXT): $(dns_spin_test_OBJECTS) $(dns_spin_test_DEPENDENCIES) $(EXTRA_dns_spin_test_DEPENDENCIES) @rm -f dns-spin-test$(EXEEXT) $(AM_V_CCLD)$(dns_spin_test_LINK) $(dns_spin_test_OBJECTS) $(dns_spin_test_LDADD) $(LIBS) dns-test$(EXEEXT): $(dns_test_OBJECTS) $(dns_test_DEPENDENCIES) $(EXTRA_dns_test_DEPENDENCIES) @rm -f dns-test$(EXEEXT) $(AM_V_CCLD)$(dns_test_LINK) $(dns_test_OBJECTS) $(dns_test_LDADD) $(LIBS) hashmap-test$(EXEEXT): $(hashmap_test_OBJECTS) $(hashmap_test_DEPENDENCIES) $(EXTRA_hashmap_test_DEPENDENCIES) @rm -f hashmap-test$(EXEEXT) $(AM_V_CCLD)$(hashmap_test_LINK) $(hashmap_test_OBJECTS) $(hashmap_test_LDADD) $(LIBS) prioq-test$(EXEEXT): $(prioq_test_OBJECTS) $(prioq_test_DEPENDENCIES) $(EXTRA_prioq_test_DEPENDENCIES) @rm -f prioq-test$(EXEEXT) $(AM_V_CCLD)$(prioq_test_LINK) $(prioq_test_OBJECTS) $(prioq_test_LDADD) $(LIBS) querier-test$(EXEEXT): $(querier_test_OBJECTS) $(querier_test_DEPENDENCIES) $(EXTRA_querier_test_DEPENDENCIES) @rm -f querier-test$(EXEEXT) $(AM_V_CCLD)$(querier_test_LINK) $(querier_test_OBJECTS) $(querier_test_LDADD) $(LIBS) timeeventq-test$(EXEEXT): $(timeeventq_test_OBJECTS) $(timeeventq_test_DEPENDENCIES) $(EXTRA_timeeventq_test_DEPENDENCIES) @rm -f timeeventq-test$(EXEEXT) $(AM_V_CCLD)$(timeeventq_test_LINK) $(timeeventq_test_OBJECTS) $(timeeventq_test_LDADD) $(LIBS) update-test$(EXEEXT): $(update_test_OBJECTS) $(update_test_DEPENDENCIES) $(EXTRA_update_test_DEPENDENCIES) @rm -f update-test$(EXEEXT) $(AM_V_CCLD)$(update_test_LINK) $(update_test_OBJECTS) $(update_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_reflector-avahi-reflector.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_test-avahi-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conformance_test-conformance-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_spin_test-dns-spin-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_test-addr-util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_test-dns-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_test-dns.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_test-domain-util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_test-hashmap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_test-log.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_test-rr.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dns_test-util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hashmap_test-hashmap-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hashmap_test-hashmap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hashmap_test-util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-addr-util.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-announce.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-browse-dns-server.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-browse-domain.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-browse-service-type.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-browse-service.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-browse.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-cache.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-dns.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-domain-util.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-entry.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-fdutil.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-hashmap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-iface-linux.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-iface-none.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-iface-pfroute.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-iface.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-log.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-multicast-lookup.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-netlink.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-prioq.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-probe-sched.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-querier.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-query-sched.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-resolve-address.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-resolve-host-name.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-resolve-service.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-response-sched.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-rr.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-rrlist.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-server.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-socket.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-timeeventq.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-util.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_core_la-wide-area.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prioq_test-prioq-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prioq_test-prioq.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/querier_test-querier-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeeventq_test-log.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeeventq_test-prioq.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeeventq_test-timeeventq-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeeventq_test-timeeventq.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/update_test-update-test.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libavahi_core_la-timeeventq.lo: timeeventq.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-timeeventq.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-timeeventq.Tpo -c -o libavahi_core_la-timeeventq.lo `test -f 'timeeventq.c' || echo '$(srcdir)/'`timeeventq.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-timeeventq.Tpo $(DEPDIR)/libavahi_core_la-timeeventq.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeeventq.c' object='libavahi_core_la-timeeventq.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-timeeventq.lo `test -f 'timeeventq.c' || echo '$(srcdir)/'`timeeventq.c libavahi_core_la-iface.lo: iface.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-iface.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-iface.Tpo -c -o libavahi_core_la-iface.lo `test -f 'iface.c' || echo '$(srcdir)/'`iface.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-iface.Tpo $(DEPDIR)/libavahi_core_la-iface.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iface.c' object='libavahi_core_la-iface.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-iface.lo `test -f 'iface.c' || echo '$(srcdir)/'`iface.c libavahi_core_la-server.lo: server.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-server.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-server.Tpo -c -o libavahi_core_la-server.lo `test -f 'server.c' || echo '$(srcdir)/'`server.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-server.Tpo $(DEPDIR)/libavahi_core_la-server.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='server.c' object='libavahi_core_la-server.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-server.lo `test -f 'server.c' || echo '$(srcdir)/'`server.c libavahi_core_la-entry.lo: entry.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-entry.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-entry.Tpo -c -o libavahi_core_la-entry.lo `test -f 'entry.c' || echo '$(srcdir)/'`entry.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-entry.Tpo $(DEPDIR)/libavahi_core_la-entry.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='entry.c' object='libavahi_core_la-entry.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-entry.lo `test -f 'entry.c' || echo '$(srcdir)/'`entry.c libavahi_core_la-prioq.lo: prioq.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-prioq.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-prioq.Tpo -c -o libavahi_core_la-prioq.lo `test -f 'prioq.c' || echo '$(srcdir)/'`prioq.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-prioq.Tpo $(DEPDIR)/libavahi_core_la-prioq.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prioq.c' object='libavahi_core_la-prioq.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-prioq.lo `test -f 'prioq.c' || echo '$(srcdir)/'`prioq.c libavahi_core_la-cache.lo: cache.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-cache.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-cache.Tpo -c -o libavahi_core_la-cache.lo `test -f 'cache.c' || echo '$(srcdir)/'`cache.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-cache.Tpo $(DEPDIR)/libavahi_core_la-cache.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cache.c' object='libavahi_core_la-cache.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-cache.lo `test -f 'cache.c' || echo '$(srcdir)/'`cache.c libavahi_core_la-socket.lo: socket.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-socket.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-socket.Tpo -c -o libavahi_core_la-socket.lo `test -f 'socket.c' || echo '$(srcdir)/'`socket.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-socket.Tpo $(DEPDIR)/libavahi_core_la-socket.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='socket.c' object='libavahi_core_la-socket.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-socket.lo `test -f 'socket.c' || echo '$(srcdir)/'`socket.c libavahi_core_la-response-sched.lo: response-sched.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-response-sched.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-response-sched.Tpo -c -o libavahi_core_la-response-sched.lo `test -f 'response-sched.c' || echo '$(srcdir)/'`response-sched.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-response-sched.Tpo $(DEPDIR)/libavahi_core_la-response-sched.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='response-sched.c' object='libavahi_core_la-response-sched.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-response-sched.lo `test -f 'response-sched.c' || echo '$(srcdir)/'`response-sched.c libavahi_core_la-query-sched.lo: query-sched.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-query-sched.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-query-sched.Tpo -c -o libavahi_core_la-query-sched.lo `test -f 'query-sched.c' || echo '$(srcdir)/'`query-sched.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-query-sched.Tpo $(DEPDIR)/libavahi_core_la-query-sched.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='query-sched.c' object='libavahi_core_la-query-sched.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-query-sched.lo `test -f 'query-sched.c' || echo '$(srcdir)/'`query-sched.c libavahi_core_la-probe-sched.lo: probe-sched.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-probe-sched.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-probe-sched.Tpo -c -o libavahi_core_la-probe-sched.lo `test -f 'probe-sched.c' || echo '$(srcdir)/'`probe-sched.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-probe-sched.Tpo $(DEPDIR)/libavahi_core_la-probe-sched.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='probe-sched.c' object='libavahi_core_la-probe-sched.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-probe-sched.lo `test -f 'probe-sched.c' || echo '$(srcdir)/'`probe-sched.c libavahi_core_la-announce.lo: announce.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-announce.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-announce.Tpo -c -o libavahi_core_la-announce.lo `test -f 'announce.c' || echo '$(srcdir)/'`announce.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-announce.Tpo $(DEPDIR)/libavahi_core_la-announce.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='announce.c' object='libavahi_core_la-announce.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-announce.lo `test -f 'announce.c' || echo '$(srcdir)/'`announce.c libavahi_core_la-browse.lo: browse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-browse.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-browse.Tpo -c -o libavahi_core_la-browse.lo `test -f 'browse.c' || echo '$(srcdir)/'`browse.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-browse.Tpo $(DEPDIR)/libavahi_core_la-browse.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse.c' object='libavahi_core_la-browse.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-browse.lo `test -f 'browse.c' || echo '$(srcdir)/'`browse.c libavahi_core_la-rrlist.lo: rrlist.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-rrlist.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-rrlist.Tpo -c -o libavahi_core_la-rrlist.lo `test -f 'rrlist.c' || echo '$(srcdir)/'`rrlist.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-rrlist.Tpo $(DEPDIR)/libavahi_core_la-rrlist.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rrlist.c' object='libavahi_core_la-rrlist.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-rrlist.lo `test -f 'rrlist.c' || echo '$(srcdir)/'`rrlist.c libavahi_core_la-resolve-host-name.lo: resolve-host-name.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-resolve-host-name.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-resolve-host-name.Tpo -c -o libavahi_core_la-resolve-host-name.lo `test -f 'resolve-host-name.c' || echo '$(srcdir)/'`resolve-host-name.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-resolve-host-name.Tpo $(DEPDIR)/libavahi_core_la-resolve-host-name.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resolve-host-name.c' object='libavahi_core_la-resolve-host-name.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-resolve-host-name.lo `test -f 'resolve-host-name.c' || echo '$(srcdir)/'`resolve-host-name.c libavahi_core_la-resolve-address.lo: resolve-address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-resolve-address.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-resolve-address.Tpo -c -o libavahi_core_la-resolve-address.lo `test -f 'resolve-address.c' || echo '$(srcdir)/'`resolve-address.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-resolve-address.Tpo $(DEPDIR)/libavahi_core_la-resolve-address.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resolve-address.c' object='libavahi_core_la-resolve-address.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-resolve-address.lo `test -f 'resolve-address.c' || echo '$(srcdir)/'`resolve-address.c libavahi_core_la-browse-domain.lo: browse-domain.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-browse-domain.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-browse-domain.Tpo -c -o libavahi_core_la-browse-domain.lo `test -f 'browse-domain.c' || echo '$(srcdir)/'`browse-domain.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-browse-domain.Tpo $(DEPDIR)/libavahi_core_la-browse-domain.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse-domain.c' object='libavahi_core_la-browse-domain.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-browse-domain.lo `test -f 'browse-domain.c' || echo '$(srcdir)/'`browse-domain.c libavahi_core_la-browse-service-type.lo: browse-service-type.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-browse-service-type.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-browse-service-type.Tpo -c -o libavahi_core_la-browse-service-type.lo `test -f 'browse-service-type.c' || echo '$(srcdir)/'`browse-service-type.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-browse-service-type.Tpo $(DEPDIR)/libavahi_core_la-browse-service-type.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse-service-type.c' object='libavahi_core_la-browse-service-type.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-browse-service-type.lo `test -f 'browse-service-type.c' || echo '$(srcdir)/'`browse-service-type.c libavahi_core_la-browse-service.lo: browse-service.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-browse-service.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-browse-service.Tpo -c -o libavahi_core_la-browse-service.lo `test -f 'browse-service.c' || echo '$(srcdir)/'`browse-service.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-browse-service.Tpo $(DEPDIR)/libavahi_core_la-browse-service.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse-service.c' object='libavahi_core_la-browse-service.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-browse-service.lo `test -f 'browse-service.c' || echo '$(srcdir)/'`browse-service.c libavahi_core_la-resolve-service.lo: resolve-service.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-resolve-service.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-resolve-service.Tpo -c -o libavahi_core_la-resolve-service.lo `test -f 'resolve-service.c' || echo '$(srcdir)/'`resolve-service.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-resolve-service.Tpo $(DEPDIR)/libavahi_core_la-resolve-service.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resolve-service.c' object='libavahi_core_la-resolve-service.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-resolve-service.lo `test -f 'resolve-service.c' || echo '$(srcdir)/'`resolve-service.c libavahi_core_la-dns.lo: dns.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-dns.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-dns.Tpo -c -o libavahi_core_la-dns.lo `test -f 'dns.c' || echo '$(srcdir)/'`dns.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-dns.Tpo $(DEPDIR)/libavahi_core_la-dns.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dns.c' object='libavahi_core_la-dns.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-dns.lo `test -f 'dns.c' || echo '$(srcdir)/'`dns.c libavahi_core_la-rr.lo: rr.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-rr.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-rr.Tpo -c -o libavahi_core_la-rr.lo `test -f 'rr.c' || echo '$(srcdir)/'`rr.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-rr.Tpo $(DEPDIR)/libavahi_core_la-rr.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rr.c' object='libavahi_core_la-rr.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-rr.lo `test -f 'rr.c' || echo '$(srcdir)/'`rr.c libavahi_core_la-log.lo: log.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-log.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-log.Tpo -c -o libavahi_core_la-log.lo `test -f 'log.c' || echo '$(srcdir)/'`log.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-log.Tpo $(DEPDIR)/libavahi_core_la-log.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='log.c' object='libavahi_core_la-log.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-log.lo `test -f 'log.c' || echo '$(srcdir)/'`log.c libavahi_core_la-browse-dns-server.lo: browse-dns-server.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-browse-dns-server.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-browse-dns-server.Tpo -c -o libavahi_core_la-browse-dns-server.lo `test -f 'browse-dns-server.c' || echo '$(srcdir)/'`browse-dns-server.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-browse-dns-server.Tpo $(DEPDIR)/libavahi_core_la-browse-dns-server.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse-dns-server.c' object='libavahi_core_la-browse-dns-server.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-browse-dns-server.lo `test -f 'browse-dns-server.c' || echo '$(srcdir)/'`browse-dns-server.c libavahi_core_la-fdutil.lo: fdutil.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-fdutil.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-fdutil.Tpo -c -o libavahi_core_la-fdutil.lo `test -f 'fdutil.c' || echo '$(srcdir)/'`fdutil.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-fdutil.Tpo $(DEPDIR)/libavahi_core_la-fdutil.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fdutil.c' object='libavahi_core_la-fdutil.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-fdutil.lo `test -f 'fdutil.c' || echo '$(srcdir)/'`fdutil.c libavahi_core_la-util.lo: util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-util.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-util.Tpo -c -o libavahi_core_la-util.lo `test -f 'util.c' || echo '$(srcdir)/'`util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-util.Tpo $(DEPDIR)/libavahi_core_la-util.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util.c' object='libavahi_core_la-util.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-util.lo `test -f 'util.c' || echo '$(srcdir)/'`util.c libavahi_core_la-hashmap.lo: hashmap.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-hashmap.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-hashmap.Tpo -c -o libavahi_core_la-hashmap.lo `test -f 'hashmap.c' || echo '$(srcdir)/'`hashmap.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-hashmap.Tpo $(DEPDIR)/libavahi_core_la-hashmap.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashmap.c' object='libavahi_core_la-hashmap.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-hashmap.lo `test -f 'hashmap.c' || echo '$(srcdir)/'`hashmap.c libavahi_core_la-wide-area.lo: wide-area.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-wide-area.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-wide-area.Tpo -c -o libavahi_core_la-wide-area.lo `test -f 'wide-area.c' || echo '$(srcdir)/'`wide-area.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-wide-area.Tpo $(DEPDIR)/libavahi_core_la-wide-area.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='wide-area.c' object='libavahi_core_la-wide-area.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-wide-area.lo `test -f 'wide-area.c' || echo '$(srcdir)/'`wide-area.c libavahi_core_la-multicast-lookup.lo: multicast-lookup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-multicast-lookup.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-multicast-lookup.Tpo -c -o libavahi_core_la-multicast-lookup.lo `test -f 'multicast-lookup.c' || echo '$(srcdir)/'`multicast-lookup.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-multicast-lookup.Tpo $(DEPDIR)/libavahi_core_la-multicast-lookup.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='multicast-lookup.c' object='libavahi_core_la-multicast-lookup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-multicast-lookup.lo `test -f 'multicast-lookup.c' || echo '$(srcdir)/'`multicast-lookup.c libavahi_core_la-querier.lo: querier.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-querier.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-querier.Tpo -c -o libavahi_core_la-querier.lo `test -f 'querier.c' || echo '$(srcdir)/'`querier.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-querier.Tpo $(DEPDIR)/libavahi_core_la-querier.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='querier.c' object='libavahi_core_la-querier.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-querier.lo `test -f 'querier.c' || echo '$(srcdir)/'`querier.c libavahi_core_la-addr-util.lo: addr-util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-addr-util.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-addr-util.Tpo -c -o libavahi_core_la-addr-util.lo `test -f 'addr-util.c' || echo '$(srcdir)/'`addr-util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-addr-util.Tpo $(DEPDIR)/libavahi_core_la-addr-util.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addr-util.c' object='libavahi_core_la-addr-util.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-addr-util.lo `test -f 'addr-util.c' || echo '$(srcdir)/'`addr-util.c libavahi_core_la-domain-util.lo: domain-util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-domain-util.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-domain-util.Tpo -c -o libavahi_core_la-domain-util.lo `test -f 'domain-util.c' || echo '$(srcdir)/'`domain-util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-domain-util.Tpo $(DEPDIR)/libavahi_core_la-domain-util.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain-util.c' object='libavahi_core_la-domain-util.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-domain-util.lo `test -f 'domain-util.c' || echo '$(srcdir)/'`domain-util.c libavahi_core_la-iface-linux.lo: iface-linux.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-iface-linux.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-iface-linux.Tpo -c -o libavahi_core_la-iface-linux.lo `test -f 'iface-linux.c' || echo '$(srcdir)/'`iface-linux.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-iface-linux.Tpo $(DEPDIR)/libavahi_core_la-iface-linux.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iface-linux.c' object='libavahi_core_la-iface-linux.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-iface-linux.lo `test -f 'iface-linux.c' || echo '$(srcdir)/'`iface-linux.c libavahi_core_la-netlink.lo: netlink.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-netlink.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-netlink.Tpo -c -o libavahi_core_la-netlink.lo `test -f 'netlink.c' || echo '$(srcdir)/'`netlink.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-netlink.Tpo $(DEPDIR)/libavahi_core_la-netlink.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='netlink.c' object='libavahi_core_la-netlink.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-netlink.lo `test -f 'netlink.c' || echo '$(srcdir)/'`netlink.c libavahi_core_la-iface-pfroute.lo: iface-pfroute.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-iface-pfroute.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-iface-pfroute.Tpo -c -o libavahi_core_la-iface-pfroute.lo `test -f 'iface-pfroute.c' || echo '$(srcdir)/'`iface-pfroute.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-iface-pfroute.Tpo $(DEPDIR)/libavahi_core_la-iface-pfroute.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iface-pfroute.c' object='libavahi_core_la-iface-pfroute.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-iface-pfroute.lo `test -f 'iface-pfroute.c' || echo '$(srcdir)/'`iface-pfroute.c libavahi_core_la-iface-none.lo: iface-none.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-iface-none.lo -MD -MP -MF $(DEPDIR)/libavahi_core_la-iface-none.Tpo -c -o libavahi_core_la-iface-none.lo `test -f 'iface-none.c' || echo '$(srcdir)/'`iface-none.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_core_la-iface-none.Tpo $(DEPDIR)/libavahi_core_la-iface-none.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iface-none.c' object='libavahi_core_la-iface-none.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-iface-none.lo `test -f 'iface-none.c' || echo '$(srcdir)/'`iface-none.c avahi_reflector-avahi-reflector.o: avahi-reflector.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_reflector_CFLAGS) $(CFLAGS) -MT avahi_reflector-avahi-reflector.o -MD -MP -MF $(DEPDIR)/avahi_reflector-avahi-reflector.Tpo -c -o avahi_reflector-avahi-reflector.o `test -f 'avahi-reflector.c' || echo '$(srcdir)/'`avahi-reflector.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_reflector-avahi-reflector.Tpo $(DEPDIR)/avahi_reflector-avahi-reflector.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-reflector.c' object='avahi_reflector-avahi-reflector.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_reflector_CFLAGS) $(CFLAGS) -c -o avahi_reflector-avahi-reflector.o `test -f 'avahi-reflector.c' || echo '$(srcdir)/'`avahi-reflector.c avahi_reflector-avahi-reflector.obj: avahi-reflector.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_reflector_CFLAGS) $(CFLAGS) -MT avahi_reflector-avahi-reflector.obj -MD -MP -MF $(DEPDIR)/avahi_reflector-avahi-reflector.Tpo -c -o avahi_reflector-avahi-reflector.obj `if test -f 'avahi-reflector.c'; then $(CYGPATH_W) 'avahi-reflector.c'; else $(CYGPATH_W) '$(srcdir)/avahi-reflector.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_reflector-avahi-reflector.Tpo $(DEPDIR)/avahi_reflector-avahi-reflector.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-reflector.c' object='avahi_reflector-avahi-reflector.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_reflector_CFLAGS) $(CFLAGS) -c -o avahi_reflector-avahi-reflector.obj `if test -f 'avahi-reflector.c'; then $(CYGPATH_W) 'avahi-reflector.c'; else $(CYGPATH_W) '$(srcdir)/avahi-reflector.c'; fi` avahi_test-avahi-test.o: avahi-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_test_CFLAGS) $(CFLAGS) -MT avahi_test-avahi-test.o -MD -MP -MF $(DEPDIR)/avahi_test-avahi-test.Tpo -c -o avahi_test-avahi-test.o `test -f 'avahi-test.c' || echo '$(srcdir)/'`avahi-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_test-avahi-test.Tpo $(DEPDIR)/avahi_test-avahi-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-test.c' object='avahi_test-avahi-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_test_CFLAGS) $(CFLAGS) -c -o avahi_test-avahi-test.o `test -f 'avahi-test.c' || echo '$(srcdir)/'`avahi-test.c avahi_test-avahi-test.obj: avahi-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_test_CFLAGS) $(CFLAGS) -MT avahi_test-avahi-test.obj -MD -MP -MF $(DEPDIR)/avahi_test-avahi-test.Tpo -c -o avahi_test-avahi-test.obj `if test -f 'avahi-test.c'; then $(CYGPATH_W) 'avahi-test.c'; else $(CYGPATH_W) '$(srcdir)/avahi-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_test-avahi-test.Tpo $(DEPDIR)/avahi_test-avahi-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-test.c' object='avahi_test-avahi-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_test_CFLAGS) $(CFLAGS) -c -o avahi_test-avahi-test.obj `if test -f 'avahi-test.c'; then $(CYGPATH_W) 'avahi-test.c'; else $(CYGPATH_W) '$(srcdir)/avahi-test.c'; fi` conformance_test-conformance-test.o: conformance-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conformance_test_CFLAGS) $(CFLAGS) -MT conformance_test-conformance-test.o -MD -MP -MF $(DEPDIR)/conformance_test-conformance-test.Tpo -c -o conformance_test-conformance-test.o `test -f 'conformance-test.c' || echo '$(srcdir)/'`conformance-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/conformance_test-conformance-test.Tpo $(DEPDIR)/conformance_test-conformance-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conformance-test.c' object='conformance_test-conformance-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conformance_test_CFLAGS) $(CFLAGS) -c -o conformance_test-conformance-test.o `test -f 'conformance-test.c' || echo '$(srcdir)/'`conformance-test.c conformance_test-conformance-test.obj: conformance-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conformance_test_CFLAGS) $(CFLAGS) -MT conformance_test-conformance-test.obj -MD -MP -MF $(DEPDIR)/conformance_test-conformance-test.Tpo -c -o conformance_test-conformance-test.obj `if test -f 'conformance-test.c'; then $(CYGPATH_W) 'conformance-test.c'; else $(CYGPATH_W) '$(srcdir)/conformance-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/conformance_test-conformance-test.Tpo $(DEPDIR)/conformance_test-conformance-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conformance-test.c' object='conformance_test-conformance-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conformance_test_CFLAGS) $(CFLAGS) -c -o conformance_test-conformance-test.obj `if test -f 'conformance-test.c'; then $(CYGPATH_W) 'conformance-test.c'; else $(CYGPATH_W) '$(srcdir)/conformance-test.c'; fi` dns_spin_test-dns-spin-test.o: dns-spin-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_spin_test_CFLAGS) $(CFLAGS) -MT dns_spin_test-dns-spin-test.o -MD -MP -MF $(DEPDIR)/dns_spin_test-dns-spin-test.Tpo -c -o dns_spin_test-dns-spin-test.o `test -f 'dns-spin-test.c' || echo '$(srcdir)/'`dns-spin-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_spin_test-dns-spin-test.Tpo $(DEPDIR)/dns_spin_test-dns-spin-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dns-spin-test.c' object='dns_spin_test-dns-spin-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_spin_test_CFLAGS) $(CFLAGS) -c -o dns_spin_test-dns-spin-test.o `test -f 'dns-spin-test.c' || echo '$(srcdir)/'`dns-spin-test.c dns_spin_test-dns-spin-test.obj: dns-spin-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_spin_test_CFLAGS) $(CFLAGS) -MT dns_spin_test-dns-spin-test.obj -MD -MP -MF $(DEPDIR)/dns_spin_test-dns-spin-test.Tpo -c -o dns_spin_test-dns-spin-test.obj `if test -f 'dns-spin-test.c'; then $(CYGPATH_W) 'dns-spin-test.c'; else $(CYGPATH_W) '$(srcdir)/dns-spin-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_spin_test-dns-spin-test.Tpo $(DEPDIR)/dns_spin_test-dns-spin-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dns-spin-test.c' object='dns_spin_test-dns-spin-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_spin_test_CFLAGS) $(CFLAGS) -c -o dns_spin_test-dns-spin-test.obj `if test -f 'dns-spin-test.c'; then $(CYGPATH_W) 'dns-spin-test.c'; else $(CYGPATH_W) '$(srcdir)/dns-spin-test.c'; fi` dns_test-dns.o: dns.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-dns.o -MD -MP -MF $(DEPDIR)/dns_test-dns.Tpo -c -o dns_test-dns.o `test -f 'dns.c' || echo '$(srcdir)/'`dns.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-dns.Tpo $(DEPDIR)/dns_test-dns.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dns.c' object='dns_test-dns.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-dns.o `test -f 'dns.c' || echo '$(srcdir)/'`dns.c dns_test-dns.obj: dns.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-dns.obj -MD -MP -MF $(DEPDIR)/dns_test-dns.Tpo -c -o dns_test-dns.obj `if test -f 'dns.c'; then $(CYGPATH_W) 'dns.c'; else $(CYGPATH_W) '$(srcdir)/dns.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-dns.Tpo $(DEPDIR)/dns_test-dns.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dns.c' object='dns_test-dns.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-dns.obj `if test -f 'dns.c'; then $(CYGPATH_W) 'dns.c'; else $(CYGPATH_W) '$(srcdir)/dns.c'; fi` dns_test-dns-test.o: dns-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-dns-test.o -MD -MP -MF $(DEPDIR)/dns_test-dns-test.Tpo -c -o dns_test-dns-test.o `test -f 'dns-test.c' || echo '$(srcdir)/'`dns-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-dns-test.Tpo $(DEPDIR)/dns_test-dns-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dns-test.c' object='dns_test-dns-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-dns-test.o `test -f 'dns-test.c' || echo '$(srcdir)/'`dns-test.c dns_test-dns-test.obj: dns-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-dns-test.obj -MD -MP -MF $(DEPDIR)/dns_test-dns-test.Tpo -c -o dns_test-dns-test.obj `if test -f 'dns-test.c'; then $(CYGPATH_W) 'dns-test.c'; else $(CYGPATH_W) '$(srcdir)/dns-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-dns-test.Tpo $(DEPDIR)/dns_test-dns-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dns-test.c' object='dns_test-dns-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-dns-test.obj `if test -f 'dns-test.c'; then $(CYGPATH_W) 'dns-test.c'; else $(CYGPATH_W) '$(srcdir)/dns-test.c'; fi` dns_test-log.o: log.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-log.o -MD -MP -MF $(DEPDIR)/dns_test-log.Tpo -c -o dns_test-log.o `test -f 'log.c' || echo '$(srcdir)/'`log.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-log.Tpo $(DEPDIR)/dns_test-log.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='log.c' object='dns_test-log.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-log.o `test -f 'log.c' || echo '$(srcdir)/'`log.c dns_test-log.obj: log.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-log.obj -MD -MP -MF $(DEPDIR)/dns_test-log.Tpo -c -o dns_test-log.obj `if test -f 'log.c'; then $(CYGPATH_W) 'log.c'; else $(CYGPATH_W) '$(srcdir)/log.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-log.Tpo $(DEPDIR)/dns_test-log.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='log.c' object='dns_test-log.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-log.obj `if test -f 'log.c'; then $(CYGPATH_W) 'log.c'; else $(CYGPATH_W) '$(srcdir)/log.c'; fi` dns_test-util.o: util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-util.o -MD -MP -MF $(DEPDIR)/dns_test-util.Tpo -c -o dns_test-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-util.Tpo $(DEPDIR)/dns_test-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util.c' object='dns_test-util.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c dns_test-util.obj: util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-util.obj -MD -MP -MF $(DEPDIR)/dns_test-util.Tpo -c -o dns_test-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-util.Tpo $(DEPDIR)/dns_test-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util.c' object='dns_test-util.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi` dns_test-rr.o: rr.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-rr.o -MD -MP -MF $(DEPDIR)/dns_test-rr.Tpo -c -o dns_test-rr.o `test -f 'rr.c' || echo '$(srcdir)/'`rr.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-rr.Tpo $(DEPDIR)/dns_test-rr.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rr.c' object='dns_test-rr.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-rr.o `test -f 'rr.c' || echo '$(srcdir)/'`rr.c dns_test-rr.obj: rr.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-rr.obj -MD -MP -MF $(DEPDIR)/dns_test-rr.Tpo -c -o dns_test-rr.obj `if test -f 'rr.c'; then $(CYGPATH_W) 'rr.c'; else $(CYGPATH_W) '$(srcdir)/rr.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-rr.Tpo $(DEPDIR)/dns_test-rr.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rr.c' object='dns_test-rr.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-rr.obj `if test -f 'rr.c'; then $(CYGPATH_W) 'rr.c'; else $(CYGPATH_W) '$(srcdir)/rr.c'; fi` dns_test-hashmap.o: hashmap.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-hashmap.o -MD -MP -MF $(DEPDIR)/dns_test-hashmap.Tpo -c -o dns_test-hashmap.o `test -f 'hashmap.c' || echo '$(srcdir)/'`hashmap.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-hashmap.Tpo $(DEPDIR)/dns_test-hashmap.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashmap.c' object='dns_test-hashmap.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-hashmap.o `test -f 'hashmap.c' || echo '$(srcdir)/'`hashmap.c dns_test-hashmap.obj: hashmap.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-hashmap.obj -MD -MP -MF $(DEPDIR)/dns_test-hashmap.Tpo -c -o dns_test-hashmap.obj `if test -f 'hashmap.c'; then $(CYGPATH_W) 'hashmap.c'; else $(CYGPATH_W) '$(srcdir)/hashmap.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-hashmap.Tpo $(DEPDIR)/dns_test-hashmap.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashmap.c' object='dns_test-hashmap.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-hashmap.obj `if test -f 'hashmap.c'; then $(CYGPATH_W) 'hashmap.c'; else $(CYGPATH_W) '$(srcdir)/hashmap.c'; fi` dns_test-domain-util.o: domain-util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-domain-util.o -MD -MP -MF $(DEPDIR)/dns_test-domain-util.Tpo -c -o dns_test-domain-util.o `test -f 'domain-util.c' || echo '$(srcdir)/'`domain-util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-domain-util.Tpo $(DEPDIR)/dns_test-domain-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain-util.c' object='dns_test-domain-util.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-domain-util.o `test -f 'domain-util.c' || echo '$(srcdir)/'`domain-util.c dns_test-domain-util.obj: domain-util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-domain-util.obj -MD -MP -MF $(DEPDIR)/dns_test-domain-util.Tpo -c -o dns_test-domain-util.obj `if test -f 'domain-util.c'; then $(CYGPATH_W) 'domain-util.c'; else $(CYGPATH_W) '$(srcdir)/domain-util.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-domain-util.Tpo $(DEPDIR)/dns_test-domain-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain-util.c' object='dns_test-domain-util.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-domain-util.obj `if test -f 'domain-util.c'; then $(CYGPATH_W) 'domain-util.c'; else $(CYGPATH_W) '$(srcdir)/domain-util.c'; fi` dns_test-addr-util.o: addr-util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-addr-util.o -MD -MP -MF $(DEPDIR)/dns_test-addr-util.Tpo -c -o dns_test-addr-util.o `test -f 'addr-util.c' || echo '$(srcdir)/'`addr-util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-addr-util.Tpo $(DEPDIR)/dns_test-addr-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addr-util.c' object='dns_test-addr-util.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-addr-util.o `test -f 'addr-util.c' || echo '$(srcdir)/'`addr-util.c dns_test-addr-util.obj: addr-util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -MT dns_test-addr-util.obj -MD -MP -MF $(DEPDIR)/dns_test-addr-util.Tpo -c -o dns_test-addr-util.obj `if test -f 'addr-util.c'; then $(CYGPATH_W) 'addr-util.c'; else $(CYGPATH_W) '$(srcdir)/addr-util.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dns_test-addr-util.Tpo $(DEPDIR)/dns_test-addr-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='addr-util.c' object='dns_test-addr-util.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dns_test_CFLAGS) $(CFLAGS) -c -o dns_test-addr-util.obj `if test -f 'addr-util.c'; then $(CYGPATH_W) 'addr-util.c'; else $(CYGPATH_W) '$(srcdir)/addr-util.c'; fi` hashmap_test-hashmap-test.o: hashmap-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -MT hashmap_test-hashmap-test.o -MD -MP -MF $(DEPDIR)/hashmap_test-hashmap-test.Tpo -c -o hashmap_test-hashmap-test.o `test -f 'hashmap-test.c' || echo '$(srcdir)/'`hashmap-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hashmap_test-hashmap-test.Tpo $(DEPDIR)/hashmap_test-hashmap-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashmap-test.c' object='hashmap_test-hashmap-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -c -o hashmap_test-hashmap-test.o `test -f 'hashmap-test.c' || echo '$(srcdir)/'`hashmap-test.c hashmap_test-hashmap-test.obj: hashmap-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -MT hashmap_test-hashmap-test.obj -MD -MP -MF $(DEPDIR)/hashmap_test-hashmap-test.Tpo -c -o hashmap_test-hashmap-test.obj `if test -f 'hashmap-test.c'; then $(CYGPATH_W) 'hashmap-test.c'; else $(CYGPATH_W) '$(srcdir)/hashmap-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hashmap_test-hashmap-test.Tpo $(DEPDIR)/hashmap_test-hashmap-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashmap-test.c' object='hashmap_test-hashmap-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -c -o hashmap_test-hashmap-test.obj `if test -f 'hashmap-test.c'; then $(CYGPATH_W) 'hashmap-test.c'; else $(CYGPATH_W) '$(srcdir)/hashmap-test.c'; fi` hashmap_test-hashmap.o: hashmap.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -MT hashmap_test-hashmap.o -MD -MP -MF $(DEPDIR)/hashmap_test-hashmap.Tpo -c -o hashmap_test-hashmap.o `test -f 'hashmap.c' || echo '$(srcdir)/'`hashmap.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hashmap_test-hashmap.Tpo $(DEPDIR)/hashmap_test-hashmap.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashmap.c' object='hashmap_test-hashmap.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -c -o hashmap_test-hashmap.o `test -f 'hashmap.c' || echo '$(srcdir)/'`hashmap.c hashmap_test-hashmap.obj: hashmap.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -MT hashmap_test-hashmap.obj -MD -MP -MF $(DEPDIR)/hashmap_test-hashmap.Tpo -c -o hashmap_test-hashmap.obj `if test -f 'hashmap.c'; then $(CYGPATH_W) 'hashmap.c'; else $(CYGPATH_W) '$(srcdir)/hashmap.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hashmap_test-hashmap.Tpo $(DEPDIR)/hashmap_test-hashmap.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashmap.c' object='hashmap_test-hashmap.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -c -o hashmap_test-hashmap.obj `if test -f 'hashmap.c'; then $(CYGPATH_W) 'hashmap.c'; else $(CYGPATH_W) '$(srcdir)/hashmap.c'; fi` hashmap_test-util.o: util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -MT hashmap_test-util.o -MD -MP -MF $(DEPDIR)/hashmap_test-util.Tpo -c -o hashmap_test-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hashmap_test-util.Tpo $(DEPDIR)/hashmap_test-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util.c' object='hashmap_test-util.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -c -o hashmap_test-util.o `test -f 'util.c' || echo '$(srcdir)/'`util.c hashmap_test-util.obj: util.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -MT hashmap_test-util.obj -MD -MP -MF $(DEPDIR)/hashmap_test-util.Tpo -c -o hashmap_test-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hashmap_test-util.Tpo $(DEPDIR)/hashmap_test-util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='util.c' object='hashmap_test-util.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hashmap_test_CFLAGS) $(CFLAGS) -c -o hashmap_test-util.obj `if test -f 'util.c'; then $(CYGPATH_W) 'util.c'; else $(CYGPATH_W) '$(srcdir)/util.c'; fi` prioq_test-prioq-test.o: prioq-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(prioq_test_CFLAGS) $(CFLAGS) -MT prioq_test-prioq-test.o -MD -MP -MF $(DEPDIR)/prioq_test-prioq-test.Tpo -c -o prioq_test-prioq-test.o `test -f 'prioq-test.c' || echo '$(srcdir)/'`prioq-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/prioq_test-prioq-test.Tpo $(DEPDIR)/prioq_test-prioq-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prioq-test.c' object='prioq_test-prioq-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(prioq_test_CFLAGS) $(CFLAGS) -c -o prioq_test-prioq-test.o `test -f 'prioq-test.c' || echo '$(srcdir)/'`prioq-test.c prioq_test-prioq-test.obj: prioq-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(prioq_test_CFLAGS) $(CFLAGS) -MT prioq_test-prioq-test.obj -MD -MP -MF $(DEPDIR)/prioq_test-prioq-test.Tpo -c -o prioq_test-prioq-test.obj `if test -f 'prioq-test.c'; then $(CYGPATH_W) 'prioq-test.c'; else $(CYGPATH_W) '$(srcdir)/prioq-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/prioq_test-prioq-test.Tpo $(DEPDIR)/prioq_test-prioq-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prioq-test.c' object='prioq_test-prioq-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(prioq_test_CFLAGS) $(CFLAGS) -c -o prioq_test-prioq-test.obj `if test -f 'prioq-test.c'; then $(CYGPATH_W) 'prioq-test.c'; else $(CYGPATH_W) '$(srcdir)/prioq-test.c'; fi` prioq_test-prioq.o: prioq.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(prioq_test_CFLAGS) $(CFLAGS) -MT prioq_test-prioq.o -MD -MP -MF $(DEPDIR)/prioq_test-prioq.Tpo -c -o prioq_test-prioq.o `test -f 'prioq.c' || echo '$(srcdir)/'`prioq.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/prioq_test-prioq.Tpo $(DEPDIR)/prioq_test-prioq.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prioq.c' object='prioq_test-prioq.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(prioq_test_CFLAGS) $(CFLAGS) -c -o prioq_test-prioq.o `test -f 'prioq.c' || echo '$(srcdir)/'`prioq.c prioq_test-prioq.obj: prioq.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(prioq_test_CFLAGS) $(CFLAGS) -MT prioq_test-prioq.obj -MD -MP -MF $(DEPDIR)/prioq_test-prioq.Tpo -c -o prioq_test-prioq.obj `if test -f 'prioq.c'; then $(CYGPATH_W) 'prioq.c'; else $(CYGPATH_W) '$(srcdir)/prioq.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/prioq_test-prioq.Tpo $(DEPDIR)/prioq_test-prioq.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prioq.c' object='prioq_test-prioq.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(prioq_test_CFLAGS) $(CFLAGS) -c -o prioq_test-prioq.obj `if test -f 'prioq.c'; then $(CYGPATH_W) 'prioq.c'; else $(CYGPATH_W) '$(srcdir)/prioq.c'; fi` querier_test-querier-test.o: querier-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(querier_test_CFLAGS) $(CFLAGS) -MT querier_test-querier-test.o -MD -MP -MF $(DEPDIR)/querier_test-querier-test.Tpo -c -o querier_test-querier-test.o `test -f 'querier-test.c' || echo '$(srcdir)/'`querier-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/querier_test-querier-test.Tpo $(DEPDIR)/querier_test-querier-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='querier-test.c' object='querier_test-querier-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(querier_test_CFLAGS) $(CFLAGS) -c -o querier_test-querier-test.o `test -f 'querier-test.c' || echo '$(srcdir)/'`querier-test.c querier_test-querier-test.obj: querier-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(querier_test_CFLAGS) $(CFLAGS) -MT querier_test-querier-test.obj -MD -MP -MF $(DEPDIR)/querier_test-querier-test.Tpo -c -o querier_test-querier-test.obj `if test -f 'querier-test.c'; then $(CYGPATH_W) 'querier-test.c'; else $(CYGPATH_W) '$(srcdir)/querier-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/querier_test-querier-test.Tpo $(DEPDIR)/querier_test-querier-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='querier-test.c' object='querier_test-querier-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(querier_test_CFLAGS) $(CFLAGS) -c -o querier_test-querier-test.obj `if test -f 'querier-test.c'; then $(CYGPATH_W) 'querier-test.c'; else $(CYGPATH_W) '$(srcdir)/querier-test.c'; fi` timeeventq_test-timeeventq-test.o: timeeventq-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -MT timeeventq_test-timeeventq-test.o -MD -MP -MF $(DEPDIR)/timeeventq_test-timeeventq-test.Tpo -c -o timeeventq_test-timeeventq-test.o `test -f 'timeeventq-test.c' || echo '$(srcdir)/'`timeeventq-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeeventq_test-timeeventq-test.Tpo $(DEPDIR)/timeeventq_test-timeeventq-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeeventq-test.c' object='timeeventq_test-timeeventq-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -c -o timeeventq_test-timeeventq-test.o `test -f 'timeeventq-test.c' || echo '$(srcdir)/'`timeeventq-test.c timeeventq_test-timeeventq-test.obj: timeeventq-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -MT timeeventq_test-timeeventq-test.obj -MD -MP -MF $(DEPDIR)/timeeventq_test-timeeventq-test.Tpo -c -o timeeventq_test-timeeventq-test.obj `if test -f 'timeeventq-test.c'; then $(CYGPATH_W) 'timeeventq-test.c'; else $(CYGPATH_W) '$(srcdir)/timeeventq-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeeventq_test-timeeventq-test.Tpo $(DEPDIR)/timeeventq_test-timeeventq-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeeventq-test.c' object='timeeventq_test-timeeventq-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -c -o timeeventq_test-timeeventq-test.obj `if test -f 'timeeventq-test.c'; then $(CYGPATH_W) 'timeeventq-test.c'; else $(CYGPATH_W) '$(srcdir)/timeeventq-test.c'; fi` timeeventq_test-timeeventq.o: timeeventq.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -MT timeeventq_test-timeeventq.o -MD -MP -MF $(DEPDIR)/timeeventq_test-timeeventq.Tpo -c -o timeeventq_test-timeeventq.o `test -f 'timeeventq.c' || echo '$(srcdir)/'`timeeventq.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeeventq_test-timeeventq.Tpo $(DEPDIR)/timeeventq_test-timeeventq.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeeventq.c' object='timeeventq_test-timeeventq.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -c -o timeeventq_test-timeeventq.o `test -f 'timeeventq.c' || echo '$(srcdir)/'`timeeventq.c timeeventq_test-timeeventq.obj: timeeventq.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -MT timeeventq_test-timeeventq.obj -MD -MP -MF $(DEPDIR)/timeeventq_test-timeeventq.Tpo -c -o timeeventq_test-timeeventq.obj `if test -f 'timeeventq.c'; then $(CYGPATH_W) 'timeeventq.c'; else $(CYGPATH_W) '$(srcdir)/timeeventq.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeeventq_test-timeeventq.Tpo $(DEPDIR)/timeeventq_test-timeeventq.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeeventq.c' object='timeeventq_test-timeeventq.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -c -o timeeventq_test-timeeventq.obj `if test -f 'timeeventq.c'; then $(CYGPATH_W) 'timeeventq.c'; else $(CYGPATH_W) '$(srcdir)/timeeventq.c'; fi` timeeventq_test-prioq.o: prioq.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -MT timeeventq_test-prioq.o -MD -MP -MF $(DEPDIR)/timeeventq_test-prioq.Tpo -c -o timeeventq_test-prioq.o `test -f 'prioq.c' || echo '$(srcdir)/'`prioq.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeeventq_test-prioq.Tpo $(DEPDIR)/timeeventq_test-prioq.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prioq.c' object='timeeventq_test-prioq.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -c -o timeeventq_test-prioq.o `test -f 'prioq.c' || echo '$(srcdir)/'`prioq.c timeeventq_test-prioq.obj: prioq.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -MT timeeventq_test-prioq.obj -MD -MP -MF $(DEPDIR)/timeeventq_test-prioq.Tpo -c -o timeeventq_test-prioq.obj `if test -f 'prioq.c'; then $(CYGPATH_W) 'prioq.c'; else $(CYGPATH_W) '$(srcdir)/prioq.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeeventq_test-prioq.Tpo $(DEPDIR)/timeeventq_test-prioq.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='prioq.c' object='timeeventq_test-prioq.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -c -o timeeventq_test-prioq.obj `if test -f 'prioq.c'; then $(CYGPATH_W) 'prioq.c'; else $(CYGPATH_W) '$(srcdir)/prioq.c'; fi` timeeventq_test-log.o: log.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -MT timeeventq_test-log.o -MD -MP -MF $(DEPDIR)/timeeventq_test-log.Tpo -c -o timeeventq_test-log.o `test -f 'log.c' || echo '$(srcdir)/'`log.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeeventq_test-log.Tpo $(DEPDIR)/timeeventq_test-log.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='log.c' object='timeeventq_test-log.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -c -o timeeventq_test-log.o `test -f 'log.c' || echo '$(srcdir)/'`log.c timeeventq_test-log.obj: log.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -MT timeeventq_test-log.obj -MD -MP -MF $(DEPDIR)/timeeventq_test-log.Tpo -c -o timeeventq_test-log.obj `if test -f 'log.c'; then $(CYGPATH_W) 'log.c'; else $(CYGPATH_W) '$(srcdir)/log.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeeventq_test-log.Tpo $(DEPDIR)/timeeventq_test-log.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='log.c' object='timeeventq_test-log.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeeventq_test_CFLAGS) $(CFLAGS) -c -o timeeventq_test-log.obj `if test -f 'log.c'; then $(CYGPATH_W) 'log.c'; else $(CYGPATH_W) '$(srcdir)/log.c'; fi` update_test-update-test.o: update-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(update_test_CFLAGS) $(CFLAGS) -MT update_test-update-test.o -MD -MP -MF $(DEPDIR)/update_test-update-test.Tpo -c -o update_test-update-test.o `test -f 'update-test.c' || echo '$(srcdir)/'`update-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/update_test-update-test.Tpo $(DEPDIR)/update_test-update-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='update-test.c' object='update_test-update-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(update_test_CFLAGS) $(CFLAGS) -c -o update_test-update-test.o `test -f 'update-test.c' || echo '$(srcdir)/'`update-test.c update_test-update-test.obj: update-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(update_test_CFLAGS) $(CFLAGS) -MT update_test-update-test.obj -MD -MP -MF $(DEPDIR)/update_test-update-test.Tpo -c -o update_test-update-test.obj `if test -f 'update-test.c'; then $(CYGPATH_W) 'update-test.c'; else $(CYGPATH_W) '$(srcdir)/update-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/update_test-update-test.Tpo $(DEPDIR)/update_test-update-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='update-test.c' object='update_test-update-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(update_test_CFLAGS) $(CFLAGS) -c -o update_test-update-test.obj `if test -f 'update-test.c'; then $(CYGPATH_W) 'update-test.c'; else $(CYGPATH_W) '$(srcdir)/update-test.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahiincludeHEADERS: $(avahiinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(avahiinclude_HEADERS)'; test -n "$(avahiincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahiincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahiincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahiincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahiincludedir)" || exit $$?; \ done uninstall-avahiincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahiinclude_HEADERS)'; test -n "$(avahiincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahiincludedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags # Recover from deleted '.trs' file; this should ensure that # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells # to avoid problems with "make -n". .log.trs: rm -f $< $@ $(MAKE) $(AM_MAKEFLAGS) $< # Leading 'am--fnord' is there to ensure the list of targets does not # expand to empty, as could happen e.g. with make check TESTS=''. am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) am--force-recheck: @: $(TEST_SUITE_LOG): $(TEST_LOGS) @$(am__set_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ redo_bases=`for i in $$bases; do \ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ done`; \ if test -n "$$redo_bases"; then \ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ if $(am__make_dryrun); then :; else \ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ fi; \ fi; \ if test -n "$$am__remaking_logs"; then \ echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ "recursion detected" >&2; \ elif test -n "$$redo_logs"; then \ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ fi; \ if $(am__make_dryrun); then :; else \ st=0; \ errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ for i in $$redo_bases; do \ test -f $$i.trs && test -r $$i.trs \ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ test -f $$i.log && test -r $$i.log \ || { echo "$$errmsg $$i.log" >&2; st=1; }; \ done; \ test $$st -eq 0 || exit 1; \ fi @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ ws='[ ]'; \ results=`for b in $$bases; do echo $$b.trs; done`; \ test -n "$$results" || results=/dev/null; \ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ if test `expr $$fail + $$xpass + $$error` -eq 0; then \ success=true; \ else \ success=false; \ fi; \ br='==================='; br=$$br$$br$$br$$br; \ result_count () \ { \ if test x"$$1" = x"--maybe-color"; then \ maybe_colorize=yes; \ elif test x"$$1" = x"--no-color"; then \ maybe_colorize=no; \ else \ echo "$@: invalid 'result_count' usage" >&2; exit 4; \ fi; \ shift; \ desc=$$1 count=$$2; \ if test $$maybe_colorize = yes && test $$count -gt 0; then \ color_start=$$3 color_end=$$std; \ else \ color_start= color_end=; \ fi; \ echo "$${color_start}# $$desc $$count$${color_end}"; \ }; \ create_testsuite_report () \ { \ result_count $$1 "TOTAL:" $$all "$$brg"; \ result_count $$1 "PASS: " $$pass "$$grn"; \ result_count $$1 "SKIP: " $$skip "$$blu"; \ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ result_count $$1 "FAIL: " $$fail "$$red"; \ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ for b in $$bases; do echo $$b; done \ | $(am__create_global_log); \ } >$(TEST_SUITE_LOG).tmp || exit 1; \ mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ if $$success; then \ col="$$grn"; \ else \ col="$$red"; \ test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ if test -n "$(PACKAGE_BUGREPORT)"; then \ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 check-TESTS: @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ trs_list=`for i in $$bases; do echo $$i.trs; done`; \ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; recheck: all @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ bases=`for i in $$bases; do echo $$i; done \ | $(am__list_recheck_tests)` || exit 1; \ log_list=`for i in $$bases; do echo $$i.log; done`; \ log_list=`echo $$log_list`; \ $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ am__force_recheck=am--force-recheck \ TEST_LOGS="$$log_list"; \ exit $$? dns-spin-test.log: dns-spin-test$(EXEEXT) @p='dns-spin-test$(EXEEXT)'; \ b='dns-spin-test'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) dns-test.log: dns-test$(EXEEXT) @p='dns-test$(EXEEXT)'; \ b='dns-test'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) hashmap-test.log: hashmap-test$(EXEEXT) @p='hashmap-test$(EXEEXT)'; \ b='hashmap-test'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) .test.log: @p='$<'; \ $(am__set_b); \ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) @am__EXEEXT_TRUE@.test$(EXEEXT).log: @am__EXEEXT_TRUE@ @p='$<'; \ @am__EXEEXT_TRUE@ $(am__set_b); \ @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahiincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahiincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahiincludeHEADERS uninstall-libLTLIBRARIES .MAKE: check-am install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \ clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-avahiincludeHEADERS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ recheck tags tags-am uninstall uninstall-am \ uninstall-avahiincludeHEADERS uninstall-libLTLIBRARIES .PRECIOUS: Makefile valgrind: avahi-test libtool --mode=execute valgrind ./avahi-test gdb: avahi-test libtool --mode=execute gdb ./avahi-test # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-core/PaxHeaders.10109/prioq.c0000644000000000000000000000013213130651643015515 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.107987791 avahi-0.7/avahi-core/prioq.c0000644000175000017500000002107513130651643017131 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "prioq.h" AvahiPrioQueue* avahi_prio_queue_new(AvahiPQCompareFunc compare) { AvahiPrioQueue *q; assert(compare); if (!(q = avahi_new(AvahiPrioQueue, 1))) return NULL; /* OOM */ q->root = q->last = NULL; q->n_nodes = 0; q->compare = compare; return q; } void avahi_prio_queue_free(AvahiPrioQueue *q) { assert(q); while (q->last) avahi_prio_queue_remove(q, q->last); assert(!q->n_nodes); avahi_free(q); } static AvahiPrioQueueNode* get_node_at_xy(AvahiPrioQueue *q, unsigned x, unsigned y) { unsigned r; AvahiPrioQueueNode *n; assert(q); n = q->root; assert(n); for (r = 0; r < y; r++) { assert(n); if ((x >> (y-r-1)) & 1) n = n->right; else n = n->left; } assert(n->x == x); assert(n->y == y); return n; } static void exchange_nodes(AvahiPrioQueue *q, AvahiPrioQueueNode *a, AvahiPrioQueueNode *b) { AvahiPrioQueueNode *l, *r, *p, *ap, *an, *bp, *bn; unsigned t; assert(q); assert(a); assert(b); assert(a != b); /* Swap positions */ t = a->x; a->x = b->x; b->x = t; t = a->y; a->y = b->y; b->y = t; if (a->parent == b) { /* B is parent of A */ p = b->parent; b->parent = a; if ((a->parent = p)) { if (a->parent->left == b) a->parent->left = a; else a->parent->right = a; } else q->root = a; if (b->left == a) { if ((b->left = a->left)) b->left->parent = b; a->left = b; r = a->right; if ((a->right = b->right)) a->right->parent = a; if ((b->right = r)) b->right->parent = b; } else { if ((b->right = a->right)) b->right->parent = b; a->right = b; l = a->left; if ((a->left = b->left)) a->left->parent = a; if ((b->left = l)) b->left->parent = b; } } else if (b->parent == a) { /* A ist parent of B */ p = a->parent; a->parent = b; if ((b->parent = p)) { if (b->parent->left == a) b->parent->left = b; else b->parent->right = b; } else q->root = b; if (a->left == b) { if ((a->left = b->left)) a->left->parent = a; b->left = a; r = a->right; if ((a->right = b->right)) a->right->parent = a; if ((b->right = r)) b->right->parent = b; } else { if ((a->right = b->right)) a->right->parent = a; b->right = a; l = a->left; if ((a->left = b->left)) a->left->parent = a; if ((b->left = l)) b->left->parent = b; } } else { AvahiPrioQueueNode *apl = NULL, *bpl = NULL; /* Swap parents */ ap = a->parent; bp = b->parent; if (ap) apl = ap->left; if (bp) bpl = bp->left; if ((a->parent = bp)) { if (bpl == b) bp->left = a; else bp->right = a; } else q->root = a; if ((b->parent = ap)) { if (apl == a) ap->left = b; else ap->right = b; } else q->root = b; /* Swap children */ l = a->left; r = a->right; if ((a->left = b->left)) a->left->parent = a; if ((b->left = l)) b->left->parent = b; if ((a->right = b->right)) a->right->parent = a; if ((b->right = r)) b->right->parent = b; } /* Swap siblings */ ap = a->prev; an = a->next; bp = b->prev; bn = b->next; if (a->next == b) { /* A is predecessor of B */ a->prev = b; b->next = a; if ((a->next = bn)) a->next->prev = a; else q->last = a; if ((b->prev = ap)) b->prev->next = b; } else if (b->next == a) { /* B is predecessor of A */ a->next = b; b->prev = a; if ((a->prev = bp)) a->prev->next = a; if ((b->next = an)) b->next->prev = b; else q->last = b; } else { /* A is no neighbour of B */ if ((a->prev = bp)) a->prev->next = a; if ((a->next = bn)) a->next->prev = a; else q->last = a; if ((b->prev = ap)) b->prev->next = b; if ((b->next = an)) b->next->prev = b; else q->last = b; } } /* Move a node to the correct position */ void avahi_prio_queue_shuffle(AvahiPrioQueue *q, AvahiPrioQueueNode *n) { assert(q); assert(n); assert(n->queue == q); /* Move up until the position is OK */ while (n->parent && q->compare(n->parent->data, n->data) > 0) exchange_nodes(q, n, n->parent); /* Move down until the position is OK */ for (;;) { AvahiPrioQueueNode *min; if (!(min = n->left)) { /* No children */ assert(!n->right); break; } if (n->right && q->compare(n->right->data, min->data) < 0) min = n->right; /* min now contains the smaller one of our two children */ if (q->compare(n->data, min->data) <= 0) /* Order OK */ break; exchange_nodes(q, n, min); } } AvahiPrioQueueNode* avahi_prio_queue_put(AvahiPrioQueue *q, void* data) { AvahiPrioQueueNode *n; assert(q); if (!(n = avahi_new(AvahiPrioQueueNode, 1))) return NULL; /* OOM */ n->queue = q; n->data = data; if (q->last) { assert(q->root); assert(q->n_nodes); n->y = q->last->y; n->x = q->last->x+1; if (n->x >= ((unsigned) 1 << n->y)) { n->x = 0; n->y++; } q->last->next = n; n->prev = q->last; assert(n->y > 0); n->parent = get_node_at_xy(q, n->x/2, n->y-1); if (n->x & 1) n->parent->right = n; else n->parent->left = n; } else { assert(!q->root); assert(!q->n_nodes); n->y = n->x = 0; q->root = n; n->prev = n->parent = NULL; } n->next = n->left = n->right = NULL; q->last = n; q->n_nodes++; avahi_prio_queue_shuffle(q, n); return n; } void avahi_prio_queue_remove(AvahiPrioQueue *q, AvahiPrioQueueNode *n) { assert(q); assert(n); assert(q == n->queue); if (n != q->last) { AvahiPrioQueueNode *replacement = q->last; exchange_nodes(q, replacement, n); avahi_prio_queue_remove(q, n); avahi_prio_queue_shuffle(q, replacement); return; } assert(n == q->last); assert(!n->next); assert(!n->left); assert(!n->right); q->last = n->prev; if (n->prev) { n->prev->next = NULL; assert(n->parent); } else assert(!n->parent); if (n->parent) { assert(n->prev); if (n->parent->left == n) { assert(n->parent->right == NULL); n->parent->left = NULL; } else { assert(n->parent->right == n); assert(n->parent->left != NULL); n->parent->right = NULL; } } else { assert(q->root == n); assert(!n->prev); assert(q->n_nodes == 1); q->root = NULL; } avahi_free(n); assert(q->n_nodes > 0); q->n_nodes--; } avahi-0.7/avahi-core/PaxHeaders.10109/dns-srv-rr.h0000644000000000000000000000013213130651643016405 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.139987076 avahi-0.7/avahi-core/dns-srv-rr.h0000644000175000017500000000607113130651643020020 0ustar00lathiatlathiat00000000000000#ifndef foodnssrvhfoo #define foodnssrvhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file avahi-core/dns-srv-rr.h Functions for announcing and browsing for unicast DNS servers via mDNS */ /** A domain service browser object. Use this to browse for * conventional unicast DNS servers which may be used to resolve * conventional domain names */ typedef struct AvahiSDNSServerBrowser AvahiSDNSServerBrowser; #include #include #include #include AVAHI_C_DECL_BEGIN /** The type of DNS server */ typedef enum { AVAHI_DNS_SERVER_RESOLVE, /**< Unicast DNS servers for normal resolves (_domain._udp)*/ AVAHI_DNS_SERVER_UPDATE, /**< Unicast DNS servers for updates (_dns-update._udp)*/ AVAHI_DNS_SERVER_MAX } AvahiDNSServerType; /** Publish the specified unicast DNS server address via mDNS. You may * browse for records create this way wit * avahi_s_dns_server_browser_new(). */ int avahi_server_add_dns_server_address( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *domain, AvahiDNSServerType type, const AvahiAddress *address, uint16_t port /** should be 53 */); /** Callback prototype for AvahiSDNSServerBrowser events */ typedef void (*AvahiSDNSServerBrowserCallback)( AvahiSDNSServerBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *host_name, /**< Host name of the DNS server, probably useless */ const AvahiAddress *a, /**< Address of the DNS server */ uint16_t port, /**< Port number of the DNS servers, probably 53 */ AvahiLookupResultFlags flags, /**< Lookup flags */ void* userdata); /** Create a new AvahiSDNSServerBrowser object */ AvahiSDNSServerBrowser *avahi_s_dns_server_browser_new( AvahiServer *server, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiDNSServerType type, AvahiProtocol aprotocol, /**< Address protocol for the DNS server */ AvahiLookupFlags flags, /**< Lookup flags. */ AvahiSDNSServerBrowserCallback callback, void* userdata); /** Free an AvahiSDNSServerBrowser object */ void avahi_s_dns_server_browser_free(AvahiSDNSServerBrowser *b); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/query-sched.h0000644000000000000000000000013213130651643016621 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.115987612 avahi-0.7/avahi-core/query-sched.h0000644000175000017500000000251613130651643020234 0ustar00lathiatlathiat00000000000000#ifndef fooqueryschedhfoo #define fooqueryschedhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef struct AvahiQueryScheduler AvahiQueryScheduler; #include #include "iface.h" AvahiQueryScheduler *avahi_query_scheduler_new(AvahiInterface *i); void avahi_query_scheduler_free(AvahiQueryScheduler *s); void avahi_query_scheduler_clear(AvahiQueryScheduler *s); int avahi_query_scheduler_post(AvahiQueryScheduler *s, AvahiKey *key, int immediately, unsigned *ret_id); int avahi_query_scheduler_withdraw_by_id(AvahiQueryScheduler *s, unsigned id); void avahi_query_scheduler_incoming(AvahiQueryScheduler *s, AvahiKey *key); #endif avahi-0.7/avahi-core/PaxHeaders.10109/publish.h0000644000000000000000000000013113130651643016035 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 29 ctime=1499681850.09998797 avahi-0.7/avahi-core/publish.h0000644000175000017500000001761413130651643017456 0ustar00lathiatlathiat00000000000000#ifndef foopublishhfoo #define foopublishhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file core/publish.h Functions for publising local services and RRs */ /** \example core-publish-service.c Example how to register a DNS-SD * service using an embedded mDNS stack. It behaves like a network * printer registering both an IPP and a BSD LPR service. */ /** A group of locally registered DNS RRs */ typedef struct AvahiSEntryGroup AvahiSEntryGroup; #include #include AVAHI_C_DECL_BEGIN /** Prototype for callback functions which are called whenever the state of an AvahiSEntryGroup object changes */ typedef void (*AvahiSEntryGroupCallback) (AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, void* userdata); /** Iterate through all local entries of the server. (when g is NULL) * or of a specified entry group. At the first call state should point * to a NULL initialized void pointer, That pointer is used to track * the current iteration. It is not safe to call any other * avahi_server_xxx() function during the iteration. If the last entry * has been read, NULL is returned. */ const AvahiRecord *avahi_server_iterate(AvahiServer *s, AvahiSEntryGroup *g, void **state); /** Create a new entry group. The specified callback function is * called whenever the state of the group changes. Use entry group * objects to keep track of you RRs. Add new RRs to a group using * avahi_server_add_xxx(). Make sure to call avahi_s_entry_group_commit() * to start the registration process for your RRs */ AvahiSEntryGroup *avahi_s_entry_group_new(AvahiServer *s, AvahiSEntryGroupCallback callback, void* userdata); /** Free an entry group. All RRs assigned to the group are removed from the server */ void avahi_s_entry_group_free(AvahiSEntryGroup *g); /** Commit an entry group. This starts the probing and registration process for all RRs in the group */ int avahi_s_entry_group_commit(AvahiSEntryGroup *g); /** Remove all entries from the entry group and reset the state to AVAHI_ENTRY_GROUP_UNCOMMITED. */ void avahi_s_entry_group_reset(AvahiSEntryGroup *g); /** Return 1 if the entry group is empty, i.e. has no records attached. */ int avahi_s_entry_group_is_empty(AvahiSEntryGroup *g); /** Return the current state of the specified entry group */ AvahiEntryGroupState avahi_s_entry_group_get_state(AvahiSEntryGroup *g); /** Change the opaque user data pointer attached to an entry group object */ void avahi_s_entry_group_set_data(AvahiSEntryGroup *g, void* userdata); /** Return the opaque user data pointer currently set for the entry group object */ void* avahi_s_entry_group_get_data(AvahiSEntryGroup *g); /** Add a new resource record to the server. Returns 0 on success, negative otherwise. */ int avahi_server_add( AvahiServer *s, /**< The server object to add this record to */ AvahiSEntryGroup *g, /**< An entry group object if this new record shall be attached to one, or NULL. If you plan to remove the record sometime later you a required to pass an entry group object here. */ AvahiIfIndex interface, /**< A numeric index of a network interface to attach this record to, or AVAHI_IF_UNSPEC to attach this record to all interfaces */ AvahiProtocol protocol, /**< A protocol family to attach this record to. One of the AVAHI_PROTO_xxx constants. Use AVAHI_PROTO_UNSPEC to make this record available on all protocols (wich means on both IPv4 and IPv6). */ AvahiPublishFlags flags, /**< Special flags for this record */ AvahiRecord *r /**< The record to add. This function increases the reference counter of this object. */); /** Add an IP address mapping to the server. This will add both the * host-name-to-address and the reverse mapping to the server. See * avahi_server_add() for more information. If adding one of the RRs * fails, the function returns with an error, but it is not defined if * the other RR is deleted from the server or not. Therefore, you have * to free the AvahiSEntryGroup and create a new one before * proceeding. */ int avahi_server_add_address( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, AvahiAddress *a); /** Add an DNS-SD service to the Server. This will add all required * RRs to the server. See avahi_server_add() for more information. If * adding one of the RRs fails, the function returns with an error, * but it is not defined if the other RR is deleted from the server or * not. Therefore, you have to free the AvahiSEntryGroup and create a * new one before proceeding. */ int avahi_server_add_service( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, /**< Service name, e.g. "Lennart's Files" */ const char *type, /**< DNS-SD type, e.g. "_http._tcp" */ const char *domain, const char *host, /**< Host name where this servcie resides, or NULL if on the local host */ uint16_t port, /**< Port number of the service */ ... /**< Text records, terminated by NULL */) AVAHI_GCC_SENTINEL; /** Mostly identical to avahi_server_add_service(), but takes an AvahiStringList object for the TXT records. The AvahiStringList object is copied. */ int avahi_server_add_service_strlst( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *host, uint16_t port, AvahiStringList *strlst); /** Add a subtype for an already existing service */ int avahi_server_add_service_subtype( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, /**< Specify the name of main service you already added here */ const char *type, /**< Specify the main type of the service you already added here */ const char *domain, /**< Specify the main type of the service you already added here */ const char *subtype /**< The new subtype for the specified service */ ); /** Update the TXT record for a service with the data from the specified string list */ int avahi_server_update_service_txt_strlst( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, AvahiStringList *strlst); /** Update the TXT record for a service with the NULL termonate list of strings */ int avahi_server_update_service_txt( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, ...) AVAHI_GCC_SENTINEL; /** Check if there is a service locally defined and return the entry group it is attached to. Returns NULL if the service isn't local*/ int avahi_server_get_group_of_service(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, AvahiSEntryGroup** ret_group); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/netlink.h0000644000000000000000000000013213130651643016034 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.139987076 avahi-0.7/avahi-core/netlink.h0000644000175000017500000000255613130651643017453 0ustar00lathiatlathiat00000000000000#ifndef foonetlinkhfoo #define foonetlinkhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include #include #include #include typedef struct AvahiNetlink AvahiNetlink; typedef void (*AvahiNetlinkCallback)(AvahiNetlink *n, struct nlmsghdr *m, void* userdata); AvahiNetlink *avahi_netlink_new(const AvahiPoll *poll_api, uint32_t groups, AvahiNetlinkCallback callback, void* userdata); void avahi_netlink_free(AvahiNetlink *n); int avahi_netlink_send(AvahiNetlink *n, struct nlmsghdr *m, unsigned *ret_seq); int avahi_netlink_work(AvahiNetlink *n, int block); #endif avahi-0.7/avahi-core/PaxHeaders.10109/entry.c0000644000000000000000000000013213130651643015524 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.107987791 avahi-0.7/avahi-core/entry.c0000644000175000017500000011275313130651643017144 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "internal.h" #include "iface.h" #include "socket.h" #include "browse.h" #include "log.h" #include "util.h" #include "dns-srv-rr.h" #include "rr-util.h" #include "domain-util.h" static void transport_flags_from_domain(AvahiServer *s, AvahiPublishFlags *flags, const char *domain) { assert(flags); assert(domain); assert(!((*flags & AVAHI_PUBLISH_USE_MULTICAST) && (*flags & AVAHI_PUBLISH_USE_WIDE_AREA))); if (*flags & (AVAHI_PUBLISH_USE_MULTICAST|AVAHI_PUBLISH_USE_WIDE_AREA)) return; if (!s->wide_area_lookup_engine || !avahi_wide_area_has_servers(s->wide_area_lookup_engine) || avahi_domain_ends_with(domain, AVAHI_MDNS_SUFFIX_LOCAL) || avahi_domain_ends_with(domain, AVAHI_MDNS_SUFFIX_ADDR_IPV4) || avahi_domain_ends_with(domain, AVAHI_MDNS_SUFFIX_ADDR_IPV6)) *flags |= AVAHI_PUBLISH_USE_MULTICAST; else *flags |= AVAHI_PUBLISH_USE_WIDE_AREA; } void avahi_entry_free(AvahiServer*s, AvahiEntry *e) { AvahiEntry *t; assert(s); assert(e); avahi_goodbye_entry(s, e, 1, 1); /* Remove from linked list */ AVAHI_LLIST_REMOVE(AvahiEntry, entries, s->entries, e); /* Remove from hash table indexed by name */ t = avahi_hashmap_lookup(s->entries_by_key, e->record->key); AVAHI_LLIST_REMOVE(AvahiEntry, by_key, t, e); if (t) avahi_hashmap_replace(s->entries_by_key, t->record->key, t); else avahi_hashmap_remove(s->entries_by_key, e->record->key); /* Remove from associated group */ if (e->group) AVAHI_LLIST_REMOVE(AvahiEntry, by_group, e->group->entries, e); avahi_record_unref(e->record); avahi_free(e); } void avahi_entry_group_free(AvahiServer *s, AvahiSEntryGroup *g) { assert(s); assert(g); while (g->entries) avahi_entry_free(s, g->entries); if (g->register_time_event) avahi_time_event_free(g->register_time_event); AVAHI_LLIST_REMOVE(AvahiSEntryGroup, groups, s->groups, g); avahi_free(g); } void avahi_cleanup_dead_entries(AvahiServer *s) { assert(s); if (s->need_group_cleanup) { AvahiSEntryGroup *g, *next; for (g = s->groups; g; g = next) { next = g->groups_next; if (g->dead) avahi_entry_group_free(s, g); } s->need_group_cleanup = 0; } if (s->need_entry_cleanup) { AvahiEntry *e, *next; for (e = s->entries; e; e = next) { next = e->entries_next; if (e->dead) avahi_entry_free(s, e); } s->need_entry_cleanup = 0; } if (s->need_browser_cleanup) avahi_browser_cleanup(s); if (s->cleanup_time_event) { avahi_time_event_free(s->cleanup_time_event); s->cleanup_time_event = NULL; } } static int check_record_conflict(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, AvahiRecord *r, AvahiPublishFlags flags) { AvahiEntry *e; assert(s); assert(r); for (e = avahi_hashmap_lookup(s->entries_by_key, r->key); e; e = e->by_key_next) { if (e->dead) continue; if (!(flags & AVAHI_PUBLISH_UNIQUE) && !(e->flags & AVAHI_PUBLISH_UNIQUE)) continue; if ((flags & AVAHI_PUBLISH_ALLOW_MULTIPLE) && (e->flags & AVAHI_PUBLISH_ALLOW_MULTIPLE) ) continue; if (avahi_record_equal_no_ttl(r, e->record)) { /* The records are the same, not a conflict in any case */ continue; } if ((interface <= 0 || e->interface <= 0 || e->interface == interface) && (protocol == AVAHI_PROTO_UNSPEC || e->protocol == AVAHI_PROTO_UNSPEC || e->protocol == protocol)) return -1; } return 0; } static AvahiEntry * server_add_internal( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, AvahiRecord *r) { AvahiEntry *e; assert(s); assert(r); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, s->state != AVAHI_SERVER_FAILURE && s->state != AVAHI_SERVER_INVALID, AVAHI_ERR_BAD_STATE); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, AVAHI_FLAGS_VALID( flags, AVAHI_PUBLISH_NO_ANNOUNCE| AVAHI_PUBLISH_NO_PROBE| AVAHI_PUBLISH_UNIQUE| AVAHI_PUBLISH_ALLOW_MULTIPLE| AVAHI_PUBLISH_UPDATE| AVAHI_PUBLISH_USE_WIDE_AREA| AVAHI_PUBLISH_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, avahi_is_valid_domain_name(r->key->name), AVAHI_ERR_INVALID_HOST_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, r->ttl != 0, AVAHI_ERR_INVALID_TTL); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, !avahi_key_is_pattern(r->key), AVAHI_ERR_IS_PATTERN); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, avahi_record_is_valid(r), AVAHI_ERR_INVALID_RECORD); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, r->key->clazz == AVAHI_DNS_CLASS_IN, AVAHI_ERR_INVALID_DNS_CLASS); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, (r->key->type != 0) && (r->key->type != AVAHI_DNS_TYPE_ANY) && (r->key->type != AVAHI_DNS_TYPE_OPT) && (r->key->type != AVAHI_DNS_TYPE_TKEY) && (r->key->type != AVAHI_DNS_TYPE_TSIG) && (r->key->type != AVAHI_DNS_TYPE_IXFR) && (r->key->type != AVAHI_DNS_TYPE_AXFR), AVAHI_ERR_INVALID_DNS_TYPE); transport_flags_from_domain(s, &flags, r->key->name); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, flags & AVAHI_PUBLISH_USE_MULTICAST, AVAHI_ERR_NOT_SUPPORTED); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, !s->config.disable_publishing, AVAHI_ERR_NOT_PERMITTED); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, !g || (g->state != AVAHI_ENTRY_GROUP_ESTABLISHED && g->state != AVAHI_ENTRY_GROUP_REGISTERING) || (flags & AVAHI_PUBLISH_UPDATE), AVAHI_ERR_BAD_STATE); if (flags & AVAHI_PUBLISH_UPDATE) { AvahiRecord *old_record; int is_first = 1; /* Update and existing record */ /* Find the first matching entry */ for (e = avahi_hashmap_lookup(s->entries_by_key, r->key); e; e = e->by_key_next) { if (!e->dead && e->group == g && e->interface == interface && e->protocol == protocol) break; is_first = 0; } /* Hmm, nothing found? */ if (!e) { avahi_server_set_errno(s, AVAHI_ERR_NOT_FOUND); return NULL; } /* Update the entry */ old_record = e->record; e->record = avahi_record_ref(r); e->flags = flags; /* Announce our changes when needed */ if (!avahi_record_equal_no_ttl(old_record, r) && (!g || g->state != AVAHI_ENTRY_GROUP_UNCOMMITED)) { /* Remove the old entry from all caches, if needed */ if (!(e->flags & AVAHI_PUBLISH_UNIQUE)) avahi_goodbye_entry(s, e, 1, 0); /* Reannounce our updated entry */ avahi_reannounce_entry(s, e); } /* If we were the first entry in the list, we need to update the key */ if (is_first) avahi_hashmap_replace(s->entries_by_key, e->record->key, e); avahi_record_unref(old_record); } else { AvahiEntry *t; /* Add a new record */ if (check_record_conflict(s, interface, protocol, r, flags) < 0) { avahi_server_set_errno(s, AVAHI_ERR_COLLISION); return NULL; } if (!(e = avahi_new(AvahiEntry, 1))) { avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); return NULL; } e->server = s; e->record = avahi_record_ref(r); e->group = g; e->interface = interface; e->protocol = protocol; e->flags = flags; e->dead = 0; AVAHI_LLIST_HEAD_INIT(AvahiAnnouncer, e->announcers); AVAHI_LLIST_PREPEND(AvahiEntry, entries, s->entries, e); /* Insert into hash table indexed by name */ t = avahi_hashmap_lookup(s->entries_by_key, e->record->key); AVAHI_LLIST_PREPEND(AvahiEntry, by_key, t, e); avahi_hashmap_replace(s->entries_by_key, e->record->key, t); /* Insert into group list */ if (g) AVAHI_LLIST_PREPEND(AvahiEntry, by_group, g->entries, e); avahi_announce_entry(s, e); } return e; } int avahi_server_add( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, AvahiRecord *r) { if (!server_add_internal(s, g, interface, protocol, flags, r)) return avahi_server_errno(s); return AVAHI_OK; } const AvahiRecord *avahi_server_iterate(AvahiServer *s, AvahiSEntryGroup *g, void **state) { AvahiEntry **e = (AvahiEntry**) state; assert(s); assert(e); if (!*e) *e = g ? g->entries : s->entries; while (*e && (*e)->dead) *e = g ? (*e)->by_group_next : (*e)->entries_next; if (!*e) return NULL; return avahi_record_ref((*e)->record); } int avahi_server_dump(AvahiServer *s, AvahiDumpCallback callback, void* userdata) { AvahiEntry *e; assert(s); assert(callback); callback(";;; ZONE DUMP FOLLOWS ;;;", userdata); for (e = s->entries; e; e = e->entries_next) { char *t; char ln[256]; if (e->dead) continue; if (!(t = avahi_record_to_string(e->record))) return avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); snprintf(ln, sizeof(ln), "%s ; iface=%i proto=%i", t, e->interface, e->protocol); avahi_free(t); callback(ln, userdata); } avahi_dump_caches(s->monitor, callback, userdata); if (s->wide_area_lookup_engine) avahi_wide_area_cache_dump(s->wide_area_lookup_engine, callback, userdata); return AVAHI_OK; } static AvahiEntry *server_add_ptr_internal( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, uint32_t ttl, const char *name, const char *dest) { AvahiRecord *r; AvahiEntry *e; assert(s); assert(dest); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, !name || avahi_is_valid_domain_name(name), AVAHI_ERR_INVALID_HOST_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, avahi_is_valid_domain_name(dest), AVAHI_ERR_INVALID_HOST_NAME); if (!name) name = s->host_name_fqdn; if (!(r = avahi_record_new_full(name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_PTR, ttl))) { avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); return NULL; } r->data.ptr.name = avahi_normalize_name_strdup(dest); e = server_add_internal(s, g, interface, protocol, flags, r); avahi_record_unref(r); return e; } int avahi_server_add_ptr( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, uint32_t ttl, const char *name, const char *dest) { AvahiEntry *e; assert(s); if (!(e = server_add_ptr_internal(s, g, interface, protocol, flags, ttl, name, dest))) return avahi_server_errno(s); return AVAHI_OK; } int avahi_server_add_address( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, AvahiAddress *a) { char n[AVAHI_DOMAIN_NAME_MAX]; int ret = AVAHI_OK; AvahiEntry *entry = NULL, *reverse = NULL; AvahiRecord *r; assert(s); assert(a); AVAHI_CHECK_VALIDITY(s, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY(s, AVAHI_PROTO_VALID(protocol) && AVAHI_PROTO_VALID(a->proto), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY(s, AVAHI_FLAGS_VALID(flags, AVAHI_PUBLISH_NO_REVERSE| AVAHI_PUBLISH_NO_ANNOUNCE| AVAHI_PUBLISH_NO_PROBE| AVAHI_PUBLISH_UPDATE| AVAHI_PUBLISH_USE_WIDE_AREA| AVAHI_PUBLISH_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY(s, !name || avahi_is_valid_fqdn(name), AVAHI_ERR_INVALID_HOST_NAME); /* Prepare the host naem */ if (!name) name = s->host_name_fqdn; else { AVAHI_ASSERT_TRUE(avahi_normalize_name(name, n, sizeof(n))); name = n; } transport_flags_from_domain(s, &flags, name); AVAHI_CHECK_VALIDITY(s, flags & AVAHI_PUBLISH_USE_MULTICAST, AVAHI_ERR_NOT_SUPPORTED); /* Create the A/AAAA record */ if (a->proto == AVAHI_PROTO_INET) { if (!(r = avahi_record_new_full(name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_A, AVAHI_DEFAULT_TTL_HOST_NAME))) { ret = avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); goto finish; } r->data.a.address = a->data.ipv4; } else { assert(a->proto == AVAHI_PROTO_INET6); if (!(r = avahi_record_new_full(name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_AAAA, AVAHI_DEFAULT_TTL_HOST_NAME))) { ret = avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); goto finish; } r->data.aaaa.address = a->data.ipv6; } entry = server_add_internal(s, g, interface, protocol, (flags & ~ AVAHI_PUBLISH_NO_REVERSE) | AVAHI_PUBLISH_UNIQUE | AVAHI_PUBLISH_ALLOW_MULTIPLE, r); avahi_record_unref(r); if (!entry) { ret = avahi_server_errno(s); goto finish; } /* Create the reverse lookup entry */ if (!(flags & AVAHI_PUBLISH_NO_REVERSE)) { char reverse_n[AVAHI_DOMAIN_NAME_MAX]; avahi_reverse_lookup_name(a, reverse_n, sizeof(reverse_n)); if (!(reverse = server_add_ptr_internal(s, g, interface, protocol, flags | AVAHI_PUBLISH_UNIQUE, AVAHI_DEFAULT_TTL_HOST_NAME, reverse_n, name))) { ret = avahi_server_errno(s); goto finish; } } finish: if (ret != AVAHI_OK && !(flags & AVAHI_PUBLISH_UPDATE)) { if (entry) avahi_entry_free(s, entry); if (reverse) avahi_entry_free(s, reverse); } return ret; } static AvahiEntry *server_add_txt_strlst_nocopy( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, uint32_t ttl, const char *name, AvahiStringList *strlst) { AvahiRecord *r; AvahiEntry *e; assert(s); if (!(r = avahi_record_new_full(name ? name : s->host_name_fqdn, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_TXT, ttl))) { avahi_string_list_free(strlst); avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); return NULL; } r->data.txt.string_list = strlst; e = server_add_internal(s, g, interface, protocol, flags, r); avahi_record_unref(r); return e; } static AvahiStringList *add_magic_cookie( AvahiServer *s, AvahiStringList *strlst) { assert(s); if (!s->config.add_service_cookie) return strlst; if (avahi_string_list_find(strlst, AVAHI_SERVICE_COOKIE)) /* This string list already contains a magic cookie */ return strlst; return avahi_string_list_add_printf(strlst, AVAHI_SERVICE_COOKIE"=%u", s->local_service_cookie); } static int server_add_service_strlst_nocopy( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *host, uint16_t port, AvahiStringList *strlst) { char ptr_name[AVAHI_DOMAIN_NAME_MAX], svc_name[AVAHI_DOMAIN_NAME_MAX], enum_ptr[AVAHI_DOMAIN_NAME_MAX], *h = NULL; AvahiRecord *r = NULL; int ret = AVAHI_OK; AvahiEntry *srv_entry = NULL, *txt_entry = NULL, *ptr_entry = NULL, *enum_entry = NULL; assert(s); assert(type); assert(name); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_FLAGS_VALID(flags, AVAHI_PUBLISH_NO_COOKIE| AVAHI_PUBLISH_UPDATE| AVAHI_PUBLISH_USE_WIDE_AREA| AVAHI_PUBLISH_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, avahi_is_valid_service_name(name), AVAHI_ERR_INVALID_SERVICE_NAME); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, avahi_is_valid_service_type_strict(type), AVAHI_ERR_INVALID_SERVICE_TYPE); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, !host || avahi_is_valid_fqdn(host), AVAHI_ERR_INVALID_HOST_NAME); if (!domain) domain = s->domain_name; if (!host) host = s->host_name_fqdn; transport_flags_from_domain(s, &flags, domain); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, flags & AVAHI_PUBLISH_USE_MULTICAST, AVAHI_ERR_NOT_SUPPORTED); if (!(h = avahi_normalize_name_strdup(host))) { ret = avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); goto fail; } if ((ret = avahi_service_name_join(svc_name, sizeof(svc_name), name, type, domain)) < 0 || (ret = avahi_service_name_join(ptr_name, sizeof(ptr_name), NULL, type, domain)) < 0 || (ret = avahi_service_name_join(enum_ptr, sizeof(enum_ptr), NULL, "_services._dns-sd._udp", domain)) < 0) { avahi_server_set_errno(s, ret); goto fail; } /* Add service enumeration PTR record */ if (!(ptr_entry = server_add_ptr_internal(s, g, interface, protocol, 0, AVAHI_DEFAULT_TTL, ptr_name, svc_name))) { ret = avahi_server_errno(s); goto fail; } /* Add SRV record */ if (!(r = avahi_record_new_full(svc_name, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_SRV, AVAHI_DEFAULT_TTL_HOST_NAME))) { ret = avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); goto fail; } r->data.srv.priority = 0; r->data.srv.weight = 0; r->data.srv.port = port; r->data.srv.name = h; h = NULL; srv_entry = server_add_internal(s, g, interface, protocol, AVAHI_PUBLISH_UNIQUE, r); avahi_record_unref(r); if (!srv_entry) { ret = avahi_server_errno(s); goto fail; } /* Add TXT record */ if (!(flags & AVAHI_PUBLISH_NO_COOKIE)) strlst = add_magic_cookie(s, strlst); txt_entry = server_add_txt_strlst_nocopy(s, g, interface, protocol, AVAHI_PUBLISH_UNIQUE, AVAHI_DEFAULT_TTL, svc_name, strlst); strlst = NULL; if (!txt_entry) { ret = avahi_server_errno(s); goto fail; } /* Add service type enumeration record */ if (!(enum_entry = server_add_ptr_internal(s, g, interface, protocol, 0, AVAHI_DEFAULT_TTL, enum_ptr, ptr_name))) { ret = avahi_server_errno(s); goto fail; } fail: if (ret != AVAHI_OK && !(flags & AVAHI_PUBLISH_UPDATE)) { if (srv_entry) avahi_entry_free(s, srv_entry); if (txt_entry) avahi_entry_free(s, txt_entry); if (ptr_entry) avahi_entry_free(s, ptr_entry); if (enum_entry) avahi_entry_free(s, enum_entry); } avahi_string_list_free(strlst); avahi_free(h); return ret; } int avahi_server_add_service_strlst( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *host, uint16_t port, AvahiStringList *strlst) { assert(s); assert(type); assert(name); return server_add_service_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, host, port, avahi_string_list_copy(strlst)); } int avahi_server_add_service( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *host, uint16_t port, ... ){ va_list va; int ret; va_start(va, port); ret = server_add_service_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, host, port, avahi_string_list_new_va(va)); va_end(va); return ret; } static int server_update_service_txt_strlst_nocopy( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, AvahiStringList *strlst) { char svc_name[AVAHI_DOMAIN_NAME_MAX]; int ret = AVAHI_OK; AvahiEntry *e; assert(s); assert(type); assert(name); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_FLAGS_VALID(flags, AVAHI_PUBLISH_NO_COOKIE| AVAHI_PUBLISH_USE_WIDE_AREA| AVAHI_PUBLISH_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, avahi_is_valid_service_name(name), AVAHI_ERR_INVALID_SERVICE_NAME); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, avahi_is_valid_service_type_strict(type), AVAHI_ERR_INVALID_SERVICE_TYPE); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); if (!domain) domain = s->domain_name; transport_flags_from_domain(s, &flags, domain); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, flags & AVAHI_PUBLISH_USE_MULTICAST, AVAHI_ERR_NOT_SUPPORTED); if ((ret = avahi_service_name_join(svc_name, sizeof(svc_name), name, type, domain)) < 0) { avahi_server_set_errno(s, ret); goto fail; } /* Add TXT record */ if (!(flags & AVAHI_PUBLISH_NO_COOKIE)) strlst = add_magic_cookie(s, strlst); e = server_add_txt_strlst_nocopy(s, g, interface, protocol, AVAHI_PUBLISH_UNIQUE | AVAHI_PUBLISH_UPDATE, AVAHI_DEFAULT_TTL, svc_name, strlst); strlst = NULL; if (!e) ret = avahi_server_errno(s); fail: avahi_string_list_free(strlst); return ret; } int avahi_server_update_service_txt_strlst( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, AvahiStringList *strlst) { return server_update_service_txt_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, avahi_string_list_copy(strlst)); } /** Update the TXT record for a service with the NULL termonate list of strings */ int avahi_server_update_service_txt( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, ...) { va_list va; int ret; va_start(va, domain); ret = server_update_service_txt_strlst_nocopy(s, g, interface, protocol, flags, name, type, domain, avahi_string_list_new_va(va)); va_end(va); return ret; } int avahi_server_add_service_subtype( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *subtype) { int ret = AVAHI_OK; char svc_name[AVAHI_DOMAIN_NAME_MAX], ptr_name[AVAHI_DOMAIN_NAME_MAX]; assert(name); assert(type); assert(subtype); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_PROTO_VALID(protocol), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, AVAHI_FLAGS_VALID(flags, AVAHI_PUBLISH_USE_MULTICAST|AVAHI_PUBLISH_USE_WIDE_AREA), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, avahi_is_valid_service_name(name), AVAHI_ERR_INVALID_SERVICE_NAME); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, avahi_is_valid_service_type_strict(type), AVAHI_ERR_INVALID_SERVICE_TYPE); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, avahi_is_valid_service_subtype(subtype), AVAHI_ERR_INVALID_SERVICE_SUBTYPE); if (!domain) domain = s->domain_name; transport_flags_from_domain(s, &flags, domain); AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(s, flags & AVAHI_PUBLISH_USE_MULTICAST, AVAHI_ERR_NOT_SUPPORTED); if ((ret = avahi_service_name_join(svc_name, sizeof(svc_name), name, type, domain)) < 0 || (ret = avahi_service_name_join(ptr_name, sizeof(ptr_name), NULL, subtype, domain)) < 0) { avahi_server_set_errno(s, ret); goto fail; } if ((ret = avahi_server_add_ptr(s, g, interface, protocol, 0, AVAHI_DEFAULT_TTL, ptr_name, svc_name)) < 0) goto fail; fail: return ret; } static void hexstring(char *s, size_t sl, const void *p, size_t pl) { static const char hex[] = "0123456789abcdef"; int b = 0; const uint8_t *k = p; while (sl > 1 && pl > 0) { *(s++) = hex[(b ? *k : *k >> 4) & 0xF]; if (b) { k++; pl--; } b = !b; sl--; } if (sl > 0) *s = 0; } static AvahiEntry *server_add_dns_server_name( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *domain, AvahiDNSServerType type, const char *name, uint16_t port /** should be 53 */) { AvahiEntry *e; char t[AVAHI_DOMAIN_NAME_MAX], normalized_d[AVAHI_DOMAIN_NAME_MAX], *n; AvahiRecord *r; assert(s); assert(name); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, AVAHI_FLAGS_VALID(flags, AVAHI_PUBLISH_USE_WIDE_AREA|AVAHI_PUBLISH_USE_MULTICAST), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, type == AVAHI_DNS_SERVER_UPDATE || type == AVAHI_DNS_SERVER_RESOLVE, AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, port != 0, AVAHI_ERR_INVALID_PORT); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, avahi_is_valid_fqdn(name), AVAHI_ERR_INVALID_HOST_NAME); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); if (!domain) domain = s->domain_name; transport_flags_from_domain(s, &flags, domain); AVAHI_CHECK_VALIDITY_RETURN_NULL(s, flags & AVAHI_PUBLISH_USE_MULTICAST, AVAHI_ERR_NOT_SUPPORTED); if (!(n = avahi_normalize_name_strdup(name))) { avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); return NULL; } AVAHI_ASSERT_TRUE(avahi_normalize_name(domain, normalized_d, sizeof(normalized_d))); snprintf(t, sizeof(t), "%s.%s", type == AVAHI_DNS_SERVER_RESOLVE ? "_domain._udp" : "_dns-update._udp", normalized_d); if (!(r = avahi_record_new_full(t, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_SRV, AVAHI_DEFAULT_TTL_HOST_NAME))) { avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); avahi_free(n); return NULL; } r->data.srv.priority = 0; r->data.srv.weight = 0; r->data.srv.port = port; r->data.srv.name = n; e = server_add_internal(s, g, interface, protocol, 0, r); avahi_record_unref(r); return e; } int avahi_server_add_dns_server_address( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *domain, AvahiDNSServerType type, const AvahiAddress *address, uint16_t port /** should be 53 */) { AvahiRecord *r; char n[64], h[64]; AvahiEntry *a_entry, *s_entry; assert(s); assert(address); AVAHI_CHECK_VALIDITY(s, AVAHI_IF_VALID(interface), AVAHI_ERR_INVALID_INTERFACE); AVAHI_CHECK_VALIDITY(s, AVAHI_PROTO_VALID(protocol) && AVAHI_PROTO_VALID(address->proto), AVAHI_ERR_INVALID_PROTOCOL); AVAHI_CHECK_VALIDITY(s, AVAHI_FLAGS_VALID(flags, AVAHI_PUBLISH_USE_MULTICAST|AVAHI_PUBLISH_USE_WIDE_AREA), AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY(s, type == AVAHI_DNS_SERVER_UPDATE || type == AVAHI_DNS_SERVER_RESOLVE, AVAHI_ERR_INVALID_FLAGS); AVAHI_CHECK_VALIDITY(s, port != 0, AVAHI_ERR_INVALID_PORT); AVAHI_CHECK_VALIDITY(s, !domain || avahi_is_valid_domain_name(domain), AVAHI_ERR_INVALID_DOMAIN_NAME); if (!domain) domain = s->domain_name; transport_flags_from_domain(s, &flags, domain); AVAHI_CHECK_VALIDITY(s, flags & AVAHI_PUBLISH_USE_MULTICAST, AVAHI_ERR_NOT_SUPPORTED); if (address->proto == AVAHI_PROTO_INET) { hexstring(h, sizeof(h), &address->data, sizeof(AvahiIPv4Address)); snprintf(n, sizeof(n), "ip-%s.%s", h, domain); r = avahi_record_new_full(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_A, AVAHI_DEFAULT_TTL_HOST_NAME); r->data.a.address = address->data.ipv4; } else { hexstring(h, sizeof(h), &address->data, sizeof(AvahiIPv6Address)); snprintf(n, sizeof(n), "ip6-%s.%s", h, domain); r = avahi_record_new_full(n, AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_AAAA, AVAHI_DEFAULT_TTL_HOST_NAME); r->data.aaaa.address = address->data.ipv6; } if (!r) return avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); a_entry = server_add_internal(s, g, interface, protocol, AVAHI_PUBLISH_UNIQUE | AVAHI_PUBLISH_ALLOW_MULTIPLE, r); avahi_record_unref(r); if (!a_entry) return avahi_server_errno(s); if (!(s_entry = server_add_dns_server_name(s, g, interface, protocol, flags, domain, type, n, port))) { if (!(flags & AVAHI_PUBLISH_UPDATE)) avahi_entry_free(s, a_entry); return avahi_server_errno(s); } return AVAHI_OK; } void avahi_s_entry_group_change_state(AvahiSEntryGroup *g, AvahiEntryGroupState state) { assert(g); if (g->state == state) return; assert(state <= AVAHI_ENTRY_GROUP_COLLISION); if (g->state == AVAHI_ENTRY_GROUP_ESTABLISHED) { /* If the entry group was established for a time longer then * 5s, reset the establishment trial counter */ if (avahi_age(&g->established_at) > 5000000) g->n_register_try = 0; } else if (g->state == AVAHI_ENTRY_GROUP_REGISTERING) { if (g->register_time_event) { avahi_time_event_free(g->register_time_event); g->register_time_event = NULL; } } if (state == AVAHI_ENTRY_GROUP_ESTABLISHED) /* If the entry group is now established, remember the time * this happened */ gettimeofday(&g->established_at, NULL); g->state = state; if (g->callback) g->callback(g->server, g, state, g->userdata); } AvahiSEntryGroup *avahi_s_entry_group_new(AvahiServer *s, AvahiSEntryGroupCallback callback, void* userdata) { AvahiSEntryGroup *g; assert(s); if (!(g = avahi_new(AvahiSEntryGroup, 1))) { avahi_server_set_errno(s, AVAHI_ERR_NO_MEMORY); return NULL; } g->server = s; g->callback = callback; g->userdata = userdata; g->dead = 0; g->state = AVAHI_ENTRY_GROUP_UNCOMMITED; g->n_probing = 0; g->n_register_try = 0; g->register_time_event = NULL; g->register_time.tv_sec = 0; g->register_time.tv_usec = 0; AVAHI_LLIST_HEAD_INIT(AvahiEntry, g->entries); AVAHI_LLIST_PREPEND(AvahiSEntryGroup, groups, s->groups, g); return g; } static void cleanup_time_event_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void* userdata) { AvahiServer *s = userdata; assert(s); avahi_cleanup_dead_entries(s); } static void schedule_cleanup(AvahiServer *s) { struct timeval tv; assert(s); if (!s->cleanup_time_event) s->cleanup_time_event = avahi_time_event_new(s->time_event_queue, avahi_elapse_time(&tv, 1000, 0), &cleanup_time_event_callback, s); } void avahi_s_entry_group_free(AvahiSEntryGroup *g) { AvahiEntry *e; assert(g); assert(g->server); for (e = g->entries; e; e = e->by_group_next) { if (!e->dead) { avahi_goodbye_entry(g->server, e, 1, 1); e->dead = 1; } } if (g->register_time_event) { avahi_time_event_free(g->register_time_event); g->register_time_event = NULL; } g->dead = 1; g->server->need_group_cleanup = 1; g->server->need_entry_cleanup = 1; schedule_cleanup(g->server); } static void entry_group_commit_real(AvahiSEntryGroup *g) { assert(g); gettimeofday(&g->register_time, NULL); avahi_s_entry_group_change_state(g, AVAHI_ENTRY_GROUP_REGISTERING); if (g->dead) return; avahi_announce_group(g->server, g); avahi_s_entry_group_check_probed(g, 0); } static void entry_group_register_time_event_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void* userdata) { AvahiSEntryGroup *g = userdata; assert(g); avahi_time_event_free(g->register_time_event); g->register_time_event = NULL; /* Holdoff time passed, so let's start probing */ entry_group_commit_real(g); } int avahi_s_entry_group_commit(AvahiSEntryGroup *g) { struct timeval now; assert(g); assert(!g->dead); if (g->state != AVAHI_ENTRY_GROUP_UNCOMMITED && g->state != AVAHI_ENTRY_GROUP_COLLISION) return avahi_server_set_errno(g->server, AVAHI_ERR_BAD_STATE); if (avahi_s_entry_group_is_empty(g)) return avahi_server_set_errno(g->server, AVAHI_ERR_IS_EMPTY); g->n_register_try++; avahi_timeval_add(&g->register_time, 1000*(g->n_register_try >= AVAHI_RR_RATE_LIMIT_COUNT ? AVAHI_RR_HOLDOFF_MSEC_RATE_LIMIT : AVAHI_RR_HOLDOFF_MSEC)); gettimeofday(&now, NULL); if (avahi_timeval_compare(&g->register_time, &now) <= 0) { /* Holdoff time passed, so let's start probing */ entry_group_commit_real(g); } else { /* Holdoff time has not yet passed, so let's wait */ assert(!g->register_time_event); g->register_time_event = avahi_time_event_new(g->server->time_event_queue, &g->register_time, entry_group_register_time_event_callback, g); avahi_s_entry_group_change_state(g, AVAHI_ENTRY_GROUP_REGISTERING); } return AVAHI_OK; } void avahi_s_entry_group_reset(AvahiSEntryGroup *g) { AvahiEntry *e; assert(g); for (e = g->entries; e; e = e->by_group_next) { if (!e->dead) { avahi_goodbye_entry(g->server, e, 1, 1); e->dead = 1; } } g->server->need_entry_cleanup = 1; g->n_probing = 0; avahi_s_entry_group_change_state(g, AVAHI_ENTRY_GROUP_UNCOMMITED); schedule_cleanup(g->server); } int avahi_entry_is_commited(AvahiEntry *e) { assert(e); assert(!e->dead); return !e->group || e->group->state == AVAHI_ENTRY_GROUP_REGISTERING || e->group->state == AVAHI_ENTRY_GROUP_ESTABLISHED; } AvahiEntryGroupState avahi_s_entry_group_get_state(AvahiSEntryGroup *g) { assert(g); assert(!g->dead); return g->state; } void avahi_s_entry_group_set_data(AvahiSEntryGroup *g, void* userdata) { assert(g); g->userdata = userdata; } void* avahi_s_entry_group_get_data(AvahiSEntryGroup *g) { assert(g); return g->userdata; } int avahi_s_entry_group_is_empty(AvahiSEntryGroup *g) { AvahiEntry *e; assert(g); /* Look for an entry that is not dead */ for (e = g->entries; e; e = e->by_group_next) if (!e->dead) return 0; return 1; } avahi-0.7/avahi-core/PaxHeaders.10109/internal.h0000644000000000000000000000013213130651643016204 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.107987791 avahi-0.7/avahi-core/internal.h0000644000175000017500000001543513130651643017623 0ustar00lathiatlathiat00000000000000#ifndef foointernalhfoo #define foointernalhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** A locally registered DNS resource record */ typedef struct AvahiEntry AvahiEntry; #include #include #include #include "core.h" #include "iface.h" #include "prioq.h" #include "timeeventq.h" #include "announce.h" #include "browse.h" #include "dns.h" #include "rrlist.h" #include "hashmap.h" #include "wide-area.h" #include "multicast-lookup.h" #include "dns-srv-rr.h" #define AVAHI_LEGACY_UNICAST_REFLECT_SLOTS_MAX 100 #define AVAHI_FLAGS_VALID(flags, max) (!((flags) & ~(max))) #define AVAHI_RR_HOLDOFF_MSEC 1000 #define AVAHI_RR_HOLDOFF_MSEC_RATE_LIMIT 20000 #define AVAHI_RR_RATE_LIMIT_COUNT 15 typedef struct AvahiLegacyUnicastReflectSlot AvahiLegacyUnicastReflectSlot; struct AvahiLegacyUnicastReflectSlot { AvahiServer *server; uint16_t id, original_id; AvahiAddress address; uint16_t port; int interface; struct timeval elapse_time; AvahiTimeEvent *time_event; }; struct AvahiEntry { AvahiServer *server; AvahiSEntryGroup *group; int dead; AvahiPublishFlags flags; AvahiRecord *record; AvahiIfIndex interface; AvahiProtocol protocol; AVAHI_LLIST_FIELDS(AvahiEntry, entries); AVAHI_LLIST_FIELDS(AvahiEntry, by_key); AVAHI_LLIST_FIELDS(AvahiEntry, by_group); AVAHI_LLIST_HEAD(AvahiAnnouncer, announcers); }; struct AvahiSEntryGroup { AvahiServer *server; int dead; AvahiEntryGroupState state; void* userdata; AvahiSEntryGroupCallback callback; unsigned n_probing; unsigned n_register_try; struct timeval register_time; AvahiTimeEvent *register_time_event; struct timeval established_at; AVAHI_LLIST_FIELDS(AvahiSEntryGroup, groups); AVAHI_LLIST_HEAD(AvahiEntry, entries); }; struct AvahiServer { const AvahiPoll *poll_api; AvahiInterfaceMonitor *monitor; AvahiServerConfig config; AVAHI_LLIST_HEAD(AvahiEntry, entries); AvahiHashmap *entries_by_key; AVAHI_LLIST_HEAD(AvahiSEntryGroup, groups); AVAHI_LLIST_HEAD(AvahiSRecordBrowser, record_browsers); AvahiHashmap *record_browser_hashmap; AVAHI_LLIST_HEAD(AvahiSHostNameResolver, host_name_resolvers); AVAHI_LLIST_HEAD(AvahiSAddressResolver, address_resolvers); AVAHI_LLIST_HEAD(AvahiSDomainBrowser, domain_browsers); AVAHI_LLIST_HEAD(AvahiSServiceTypeBrowser, service_type_browsers); AVAHI_LLIST_HEAD(AvahiSServiceBrowser, service_browsers); AVAHI_LLIST_HEAD(AvahiSServiceResolver, service_resolvers); AVAHI_LLIST_HEAD(AvahiSDNSServerBrowser, dns_server_browsers); int need_entry_cleanup, need_group_cleanup, need_browser_cleanup; /* Used for scheduling RR cleanup */ AvahiTimeEvent *cleanup_time_event; AvahiTimeEventQueue *time_event_queue; char *host_name, *host_name_fqdn, *domain_name; int fd_ipv4, fd_ipv6, /* The following two sockets two are used for reflection only */ fd_legacy_unicast_ipv4, fd_legacy_unicast_ipv6; AvahiWatch *watch_ipv4, *watch_ipv6, *watch_legacy_unicast_ipv4, *watch_legacy_unicast_ipv6; AvahiServerState state; AvahiServerCallback callback; void* userdata; AvahiSEntryGroup *hinfo_entry_group; AvahiSEntryGroup *browse_domain_entry_group; unsigned n_host_rr_pending; /* Used for assembling responses */ AvahiRecordList *record_list; /* Used for reflection of legacy unicast packets */ AvahiLegacyUnicastReflectSlot **legacy_unicast_reflect_slots; uint16_t legacy_unicast_reflect_id; /* The last error code */ int error; /* The local service cookie */ uint32_t local_service_cookie; AvahiMulticastLookupEngine *multicast_lookup_engine; AvahiWideAreaLookupEngine *wide_area_lookup_engine; }; void avahi_entry_free(AvahiServer*s, AvahiEntry *e); void avahi_entry_group_free(AvahiServer *s, AvahiSEntryGroup *g); void avahi_cleanup_dead_entries(AvahiServer *s); void avahi_server_prepare_response(AvahiServer *s, AvahiInterface *i, AvahiEntry *e, int unicast_response, int auxiliary); void avahi_server_prepare_matching_responses(AvahiServer *s, AvahiInterface *i, AvahiKey *k, int unicast_response); void avahi_server_generate_response(AvahiServer *s, AvahiInterface *i, AvahiDnsPacket *p, const AvahiAddress *a, uint16_t port, int legacy_unicast, int is_probe); void avahi_s_entry_group_change_state(AvahiSEntryGroup *g, AvahiEntryGroupState state); int avahi_entry_is_commited(AvahiEntry *e); void avahi_server_enumerate_aux_records(AvahiServer *s, AvahiInterface *i, AvahiRecord *r, void (*callback)(AvahiServer *s, AvahiRecord *r, int flush_cache, void* userdata), void* userdata); void avahi_host_rr_entry_group_callback(AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, void *userdata); void avahi_server_decrease_host_rr_pending(AvahiServer *s); int avahi_server_set_errno(AvahiServer *s, int error); int avahi_server_is_service_local(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, const char *name); int avahi_server_is_record_local(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, AvahiRecord *record); int avahi_server_add_ptr( AvahiServer *s, AvahiSEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, uint32_t ttl, const char *name, const char *dest); #define AVAHI_CHECK_VALIDITY(server, expression, error) { \ if (!(expression)) \ return avahi_server_set_errno((server), (error)); \ } #define AVAHI_CHECK_VALIDITY_RETURN_NULL(server, expression, error) { \ if (!(expression)) { \ avahi_server_set_errno((server), (error)); \ return NULL; \ } \ } #define AVAHI_CHECK_VALIDITY_SET_RET_GOTO_FAIL(server, expression, error) {\ if (!(expression)) { \ ret = avahi_server_set_errno((server), (error)); \ goto fail; \ } \ } #define AVAHI_ASSERT_TRUE(expression) { \ int __tmp = !!(expression); \ assert(__tmp); \ } #define AVAHI_ASSERT_SUCCESS(expression) { \ int __tmp = (expression); \ assert(__tmp == 0); \ } #endif avahi-0.7/avahi-core/PaxHeaders.10109/dns-test.c0000644000000000000000000000013213130651643016124 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 30 ctime=1499681850.147986899 avahi-0.7/avahi-core/dns-test.c0000644000175000017500000000656113130651643017543 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "dns.h" #include "log.h" #include "util.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { char t[AVAHI_DOMAIN_NAME_MAX], *m; const char *a, *b, *c, *d; AvahiDnsPacket *p; AvahiRecord *r, *r2; uint8_t rdata[AVAHI_DNS_RDATA_MAX]; size_t l; p = avahi_dns_packet_new(0); assert(avahi_dns_packet_append_name(p, a = "Ahello.hello.hello.de.")); assert(avahi_dns_packet_append_name(p, b = "Bthis is a test.hello.de.")); assert(avahi_dns_packet_append_name(p, c = "Cthis\\.is\\.a\\.test\\.with\\.dots.hello.de.")); assert(avahi_dns_packet_append_name(p, d = "Dthis\\\\is another test.hello.de.")); avahi_hexdump(AVAHI_DNS_PACKET_DATA(p), p->size); assert(avahi_dns_packet_consume_name(p, t, sizeof(t)) == 0); avahi_log_debug(">%s<", t); assert(avahi_domain_equal(a, t)); assert(avahi_dns_packet_consume_name(p, t, sizeof(t)) == 0); avahi_log_debug(">%s<", t); assert(avahi_domain_equal(b, t)); assert(avahi_dns_packet_consume_name(p, t, sizeof(t)) == 0); avahi_log_debug(">%s<", t); assert(avahi_domain_equal(c, t)); assert(avahi_dns_packet_consume_name(p, t, sizeof(t)) == 0); avahi_log_debug(">%s<", t); assert(avahi_domain_equal(d, t)); avahi_dns_packet_free(p); /* RDATA PARSING AND SERIALIZATION */ /* Create an AvahiRecord with some usful data */ r = avahi_record_new_full("foobar.local", AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_HINFO, AVAHI_DEFAULT_TTL); assert(r); r->data.hinfo.cpu = avahi_strdup("FOO"); r->data.hinfo.os = avahi_strdup("BAR"); /* Serialize it into a blob */ assert((l = avahi_rdata_serialize(r, rdata, sizeof(rdata))) != (size_t) -1); /* Print it */ avahi_hexdump(rdata, l); /* Create a new record and fill in the data from the blob */ r2 = avahi_record_new(r->key, AVAHI_DEFAULT_TTL); assert(r2); assert(avahi_rdata_parse(r2, rdata, l) >= 0); /* Compare both versions */ assert(avahi_record_equal_no_ttl(r, r2)); /* Free the records */ avahi_record_unref(r); avahi_record_unref(r2); r = avahi_record_new_full("foobar", 77, 77, AVAHI_DEFAULT_TTL); assert(r); assert(r->data.generic.data = avahi_memdup("HALLO", r->data.generic.size = 5)); m = avahi_record_to_string(r); assert(m); avahi_log_debug(">%s<", m); avahi_free(m); avahi_record_unref(r); return 0; } avahi-0.7/avahi-core/PaxHeaders.10109/rrlist.c0000644000000000000000000000013213130651643015702 xustar0030 mtime=1499681699.107370577 30 atime=1499681699.107370577 30 ctime=1499681850.119987521 avahi-0.7/avahi-core/rrlist.c0000644000175000017500000001064113130651643017313 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "rrlist.h" #include "log.h" typedef struct AvahiRecordListItem AvahiRecordListItem; struct AvahiRecordListItem { int read; AvahiRecord *record; int unicast_response; int flush_cache; int auxiliary; AVAHI_LLIST_FIELDS(AvahiRecordListItem, items); }; struct AvahiRecordList { AVAHI_LLIST_HEAD(AvahiRecordListItem, read); AVAHI_LLIST_HEAD(AvahiRecordListItem, unread); int all_flush_cache; }; AvahiRecordList *avahi_record_list_new(void) { AvahiRecordList *l; if (!(l = avahi_new(AvahiRecordList, 1))) { avahi_log_error("avahi_new() failed."); return NULL; } AVAHI_LLIST_HEAD_INIT(AvahiRecordListItem, l->read); AVAHI_LLIST_HEAD_INIT(AvahiRecordListItem, l->unread); l->all_flush_cache = 1; return l; } void avahi_record_list_free(AvahiRecordList *l) { assert(l); avahi_record_list_flush(l); avahi_free(l); } static void item_free(AvahiRecordList *l, AvahiRecordListItem *i) { assert(l); assert(i); if (i->read) AVAHI_LLIST_REMOVE(AvahiRecordListItem, items, l->read, i); else AVAHI_LLIST_REMOVE(AvahiRecordListItem, items, l->unread, i); avahi_record_unref(i->record); avahi_free(i); } void avahi_record_list_flush(AvahiRecordList *l) { assert(l); while (l->read) item_free(l, l->read); while (l->unread) item_free(l, l->unread); l->all_flush_cache = 1; } AvahiRecord* avahi_record_list_next(AvahiRecordList *l, int *ret_flush_cache, int *ret_unicast_response, int *ret_auxiliary) { AvahiRecord *r; AvahiRecordListItem *i; if (!(i = l->unread)) return NULL; assert(!i->read); r = avahi_record_ref(i->record); if (ret_unicast_response) *ret_unicast_response = i->unicast_response; if (ret_flush_cache) *ret_flush_cache = i->flush_cache; if (ret_auxiliary) *ret_auxiliary = i->auxiliary; AVAHI_LLIST_REMOVE(AvahiRecordListItem, items, l->unread, i); AVAHI_LLIST_PREPEND(AvahiRecordListItem, items, l->read, i); i->read = 1; return r; } static AvahiRecordListItem *get(AvahiRecordList *l, AvahiRecord *r) { AvahiRecordListItem *i; assert(l); assert(r); for (i = l->read; i; i = i->items_next) if (avahi_record_equal_no_ttl(i->record, r)) return i; for (i = l->unread; i; i = i->items_next) if (avahi_record_equal_no_ttl(i->record, r)) return i; return NULL; } void avahi_record_list_push(AvahiRecordList *l, AvahiRecord *r, int flush_cache, int unicast_response, int auxiliary) { AvahiRecordListItem *i; assert(l); assert(r); if (get(l, r)) return; if (!(i = avahi_new(AvahiRecordListItem, 1))) { avahi_log_error("avahi_new() failed."); return; } i->unicast_response = unicast_response; i->flush_cache = flush_cache; i->auxiliary = auxiliary; i->record = avahi_record_ref(r); i->read = 0; l->all_flush_cache = l->all_flush_cache && flush_cache; AVAHI_LLIST_PREPEND(AvahiRecordListItem, items, l->unread, i); } void avahi_record_list_drop(AvahiRecordList *l, AvahiRecord *r) { AvahiRecordListItem *i; assert(l); assert(r); if (!(i = get(l, r))) return; item_free(l, i); } int avahi_record_list_is_empty(AvahiRecordList *l) { assert(l); return !l->unread && !l->read; } int avahi_record_list_all_flush_cache(AvahiRecordList *l) { assert(l); /* Return TRUE if all entries in this list have flush_cache set */ return l->all_flush_cache; } avahi-0.7/avahi-core/PaxHeaders.10109/core.h0000644000000000000000000000013113130651643015317 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 29 ctime=1499681850.09998797 avahi-0.7/avahi-core/core.h0000644000175000017500000002140113130651643016725 0ustar00lathiatlathiat00000000000000#ifndef foocorehfoo #define foocorehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file core.h The Avahi Multicast DNS and DNS Service Discovery implementation. */ /** An mDNS responder object */ typedef struct AvahiServer AvahiServer; #include #include #include #include #include #include AVAHI_C_DECL_BEGIN /** Maximum number of defined DNS servers for wide area DNS */ #define AVAHI_WIDE_AREA_SERVERS_MAX 4 /** Prototype for callback functions which are called whenever the state of an AvahiServer object changes */ typedef void (*AvahiServerCallback) (AvahiServer *s, AvahiServerState state, void* userdata); /** Stores configuration options for a server instance */ typedef struct AvahiServerConfig { char *host_name; /**< Default host name. If left empty defaults to the result of gethostname(2) of the libc */ char *domain_name; /**< Default domain name. If left empty defaults to .local */ int use_ipv4; /**< Enable IPv4 support */ int use_ipv6; /**< Enable IPv6 support */ AvahiStringList *allow_interfaces;/**< Allow specific interface to be used for Avahi */ AvahiStringList *deny_interfaces; /**< Deny specific interfaces to be used for Avahi */ int publish_hinfo; /**< Register a HINFO record for the host containing the local OS and CPU type */ int publish_addresses; /**< Register A, AAAA and PTR records for all local IP addresses */ int publish_workstation; /**< Register a _workstation._tcp service */ int publish_domain; /**< Announce the local domain for browsing */ int check_response_ttl; /**< If enabled the server ignores all incoming responses with IP TTL != 255. Newer versions of the RFC do no longer contain this check, so it is disabled by default. */ int use_iff_running; /**< Require IFF_RUNNING on local network interfaces. This is the official way to check for link beat. Unfortunately this doesn't work with all drivers. So bettere leave this off. */ int enable_reflector; /**< Reflect incoming mDNS traffic to all local networks. This allows mDNS based network browsing beyond ethernet borders */ int reflect_ipv; /**< if enable_reflector is 1, enable/disable reflecting between IPv4 and IPv6 */ int add_service_cookie; /**< Add magic service cookie to all locally generated records implicitly */ int enable_wide_area; /**< Enable wide area support */ AvahiAddress wide_area_servers[AVAHI_WIDE_AREA_SERVERS_MAX]; /** Unicast DNS server to use for wide area lookup */ unsigned n_wide_area_servers; /**< Number of servers in wide_area_servers[] */ int disallow_other_stacks; /**< Make sure that only one mDNS responder is run at the same time on the local machine. If this is enable Avahi will not set SO_REUSADDR on its sockets, effectively preventing other stacks from running on the local machine */ AvahiStringList *browse_domains; /**< Additional browsing domains */ int disable_publishing; /**< Disable publishing of any record */ int allow_point_to_point; /**< Enable publishing on POINTOPOINT interfaces */ int publish_a_on_ipv6; /**< Publish an IPv4 A RR on IPv6 sockets */ int publish_aaaa_on_ipv4; /**< Publish an IPv6 AAAA RR on IPv4 sockets */ unsigned n_cache_entries_max; /**< Maximum number of cache entries per interface */ AvahiUsec ratelimit_interval; /**< If non-zero, rate-limiting interval parameter. */ unsigned ratelimit_burst; /**< If ratelimit_interval is non-zero, rate-limiting burst parameter. */ } AvahiServerConfig; /** Allocate a new mDNS responder object. */ AvahiServer *avahi_server_new( const AvahiPoll *api, /**< The main loop adapter */ const AvahiServerConfig *sc, /**< If non-NULL a pointer to a configuration structure for the server. The server makes an internal deep copy of this structure, so you may free it using avahi_server_config_done() immediately after calling this function. */ AvahiServerCallback callback, /**< A callback which is called whenever the state of the server changes */ void* userdata, /**< An opaque pointer which is passed to the callback function */ int *error); /** Free an mDNS responder object */ void avahi_server_free(AvahiServer* s); /** Fill in default values for a server configuration structure. If you * make use of an AvahiServerConfig structure be sure to initialize * it with this function for the sake of upwards library * compatibility. This call may allocate strings on the heap. To * release this memory make sure to call * avahi_server_config_done(). If you want to replace any strings in * the structure be sure to free the strings filled in by this * function with avahi_free() first and allocate the replacements with * g_malloc() (or g_strdup()).*/ AvahiServerConfig* avahi_server_config_init( AvahiServerConfig *c /**< A structure which shall be filled in */ ); /** Make a deep copy of the configuration structure *c to *ret. */ AvahiServerConfig* avahi_server_config_copy( AvahiServerConfig *ret /**< destination */, const AvahiServerConfig *c /**< source */); /** Free the data in a server configuration structure. */ void avahi_server_config_free(AvahiServerConfig *c); /** Return the currently chosen domain name of the server object. The * return value points to an internally allocated string. Be sure to * make a copy of the string before calling any other library * functions. */ const char* avahi_server_get_domain_name(AvahiServer *s); /** Return the currently chosen host name. The return value points to a internally allocated string. */ const char* avahi_server_get_host_name(AvahiServer *s); /** Return the currently chosen host name as a FQDN ("fully qualified * domain name", i.e. the concatenation of the host and domain * name). The return value points to a internally allocated string. */ const char* avahi_server_get_host_name_fqdn(AvahiServer *s); /** Change the host name of a running mDNS responder. This will drop all automicatilly generated RRs and readd them with the new name. Since the responder has to probe for the new RRs this function takes some time to take effect altough it returns immediately. This function is intended to be called when a host name conflict is reported using AvahiServerCallback. The caller should readd all user defined RRs too since they otherwise continue to point to the outdated host name..*/ int avahi_server_set_host_name(AvahiServer *s, const char *host_name); /** Change the domain name of a running mDNS responder. The same rules * as with avahi_server_set_host_name() apply. */ int avahi_server_set_domain_name(AvahiServer *s, const char *domain_name); /** Return the opaque user data pointer attached to a server object */ void* avahi_server_get_data(AvahiServer *s); /** Change the opaque user data pointer attached to a server object */ void avahi_server_set_data(AvahiServer *s, void* userdata); /** Return the current state of the server object */ AvahiServerState avahi_server_get_state(AvahiServer *s); /** Callback prototype for avahi_server_dump() */ typedef void (*AvahiDumpCallback)(const char *text, void* userdata); /** Dump the current server status by calling "callback" for each line. */ int avahi_server_dump(AvahiServer *s, AvahiDumpCallback callback, void* userdata); /** Return the last error code */ int avahi_server_errno(AvahiServer *s); /** Return the local service cookie */ uint32_t avahi_server_get_local_service_cookie(AvahiServer *s); /** Set the wide area DNS servers */ int avahi_server_set_wide_area_servers(AvahiServer *s, const AvahiAddress *a, unsigned n); /** Set the browsing domains */ int avahi_server_set_browse_domains(AvahiServer *s, AvahiStringList *domains); /** Return the current configuration of the server \since 0.6.17 */ const AvahiServerConfig* avahi_server_get_config(AvahiServer *s); AVAHI_C_DECL_END #endif avahi-0.7/avahi-core/PaxHeaders.10109/log.h0000644000000000000000000000013113130651643015150 xustar0030 mtime=1499681699.103370666 30 atime=1499681699.103370666 29 ctime=1499681850.09998797 avahi-0.7/avahi-core/log.h0000644000175000017500000000501113130651643016555 0ustar00lathiatlathiat00000000000000#ifndef foologhfoo #define foologhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include /** \file log.h Extensible logging subsystem */ AVAHI_C_DECL_BEGIN /** Log level for avahi_log_xxx() */ typedef enum { AVAHI_LOG_ERROR = 0, /**< Error messages */ AVAHI_LOG_WARN = 1, /**< Warning messages */ AVAHI_LOG_NOTICE = 2, /**< Notice messages */ AVAHI_LOG_INFO = 3, /**< Info messages */ AVAHI_LOG_DEBUG = 4, /**< Debug messages */ AVAHI_LOG_LEVEL_MAX } AvahiLogLevel; /** Prototype for a user supplied log function */ typedef void (*AvahiLogFunction)(AvahiLogLevel level, const char *txt); /** Set a user supplied log function, replacing the default which * prints to log messages unconditionally to STDERR. Pass NULL for * resetting to the default log function */ void avahi_set_log_function(AvahiLogFunction function); /** Issue a log message using a va_list object */ void avahi_log_ap(AvahiLogLevel level, const char *format, va_list ap); /** Issue a log message by passing a log level and a format string */ void avahi_log(AvahiLogLevel level, const char*format, ...) AVAHI_GCC_PRINTF_ATTR23; /** Shortcut for avahi_log(AVAHI_LOG_ERROR, ...) */ void avahi_log_error(const char*format, ...) AVAHI_GCC_PRINTF_ATTR12; /** Shortcut for avahi_log(AVAHI_LOG_WARN, ...) */ void avahi_log_warn(const char*format, ...) AVAHI_GCC_PRINTF_ATTR12; /** Shortcut for avahi_log(AVAHI_LOG_NOTICE, ...) */ void avahi_log_notice(const char*format, ...) AVAHI_GCC_PRINTF_ATTR12; /** Shortcut for avahi_log(AVAHI_LOG_INFO, ...) */ void avahi_log_info(const char*format, ...) AVAHI_GCC_PRINTF_ATTR12; /** Shortcut for avahi_log(AVAHI_LOG_DEBUG, ...) */ void avahi_log_debug(const char*format, ...) AVAHI_GCC_PRINTF_ATTR12; AVAHI_C_DECL_END #endif avahi-0.7/PaxHeaders.10109/avahi-ui-sharp.pc.in0000644000000000000000000000013213130651643015750 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.123370216 30 ctime=1499681850.023989663 avahi-0.7/avahi-ui-sharp.pc.in0000644000175000017500000000036313130651643017361 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=@prefix@ libdir=@libdir@ Name: avahi-ui-sharp Description: Mono bindings for the Avahi mDNS/DNS-SD stack Version: @PACKAGE_VERSION@ Requires: gtk-sharp-2.0 Libs: -r:${libdir}/mono/avahi-ui-sharp/avahi-ui-sharp.dll avahi-0.7/PaxHeaders.10109/depcomp0000644000000000000000000000013213130652011013541 xustar0030 mtime=1499681801.061083543 30 atime=1499681802.321055359 30 ctime=1499681850.067988683 avahi-0.7/depcomp0000755000175000017500000005601613130652011015163 0ustar00lathiatlathiat00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2014 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: avahi-0.7/PaxHeaders.10109/avahi-gobject0000644000000000000000000000013013130652072014622 xustar0029 mtime=1499681850.47597958 30 atime=1499681851.283961552 29 ctime=1499681850.47597958 avahi-0.7/avahi-gobject/0000755000175000017500000000000013130652072016310 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-service-resolver.c0000644000000000000000000000013213130651643020734 xustar0030 mtime=1499681699.119370306 30 atime=1499681850.215985382 30 ctime=1499681850.463979847 avahi-0.7/avahi-gobject/ga-service-resolver.c0000644000175000017500000003544713130651643022360 0ustar00lathiatlathiat00000000000000/* * ga-service-resolver.c - Source for GaServiceResolver * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "ga-service-resolver.h" #include "signals-marshal.h" #include "ga-error.h" #include "ga-enums.h" #include "ga-enums-enumtypes.h" #include G_DEFINE_TYPE(GaServiceResolver, ga_service_resolver, G_TYPE_OBJECT) /* signal enum */ enum { FOUND, FAILURE, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; /* properties */ enum { PROP_PROTOCOL = 1, PROP_IFINDEX, PROP_NAME, PROP_TYPE, PROP_DOMAIN, PROP_FLAGS, PROP_APROTOCOL }; /* private structure */ typedef struct _GaServiceResolverPrivate GaServiceResolverPrivate; struct _GaServiceResolverPrivate { GaClient *client; AvahiServiceResolver *resolver; AvahiIfIndex interface; AvahiProtocol protocol; AvahiAddress address; uint16_t port; char *name; char *type; char *domain; AvahiProtocol aprotocol; AvahiLookupFlags flags; gboolean dispose_has_run; }; #define GA_SERVICE_RESOLVER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GA_TYPE_SERVICE_RESOLVER, GaServiceResolverPrivate)) static void ga_service_resolver_init(GaServiceResolver * obj) { GaServiceResolverPrivate *priv = GA_SERVICE_RESOLVER_GET_PRIVATE(obj); /* allocate any data required by the object here */ priv->client = NULL; priv->resolver = NULL; priv->name = NULL; priv->type = NULL; priv->domain = NULL; priv->port = 0; } static void ga_service_resolver_dispose(GObject * object); static void ga_service_resolver_finalize(GObject * object); static void ga_service_resolver_set_property(GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { GaServiceResolver *resolver = GA_SERVICE_RESOLVER(object); GaServiceResolverPrivate *priv = GA_SERVICE_RESOLVER_GET_PRIVATE(resolver); g_assert(priv->resolver == NULL); switch (property_id) { case PROP_PROTOCOL: priv->protocol = g_value_get_enum(value); break; case PROP_APROTOCOL: priv->aprotocol = g_value_get_enum(value); break; case PROP_IFINDEX: priv->interface = g_value_get_int(value); break; case PROP_NAME: priv->name = g_strdup(g_value_get_string(value)); break; case PROP_TYPE: priv->type = g_strdup(g_value_get_string(value)); break; case PROP_DOMAIN: priv->domain = g_strdup(g_value_get_string(value)); break; case PROP_FLAGS: priv->flags = g_value_get_enum(value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_service_resolver_get_property(GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { GaServiceResolver *resolver = GA_SERVICE_RESOLVER(object); GaServiceResolverPrivate *priv = GA_SERVICE_RESOLVER_GET_PRIVATE(resolver); switch (property_id) { case PROP_APROTOCOL: g_value_set_enum(value, priv->aprotocol); break; case PROP_PROTOCOL: g_value_set_enum(value, priv->protocol); break; case PROP_IFINDEX: g_value_set_int(value, priv->interface); break; case PROP_NAME: g_value_set_string(value, priv->name); break; case PROP_TYPE: g_value_set_string(value, priv->type); break; case PROP_DOMAIN: g_value_set_string(value, priv->domain); break; case PROP_FLAGS: g_value_set_enum(value, priv->flags); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_service_resolver_class_init(GaServiceResolverClass * ga_service_resolver_class) { GObjectClass *object_class = G_OBJECT_CLASS(ga_service_resolver_class); GParamSpec *param_spec; g_type_class_add_private(ga_service_resolver_class, sizeof (GaServiceResolverPrivate)); object_class->set_property = ga_service_resolver_set_property; object_class->get_property = ga_service_resolver_get_property; object_class->dispose = ga_service_resolver_dispose; object_class->finalize = ga_service_resolver_finalize; signals[FOUND] = g_signal_new("found", G_OBJECT_CLASS_TYPE(ga_service_resolver_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _ga_signals_marshal_VOID__INT_ENUM_STRING_STRING_STRING_STRING_POINTER_INT_POINTER_INT, G_TYPE_NONE, 10, G_TYPE_INT, GA_TYPE_PROTOCOL, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_INT, G_TYPE_POINTER, GA_TYPE_LOOKUP_RESULT_FLAGS); signals[FAILURE] = g_signal_new("failure", G_OBJECT_CLASS_TYPE(ga_service_resolver_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); param_spec = g_param_spec_enum("protocol", "Avahi protocol to resolve on", "Avahi protocol to resolve on", GA_TYPE_PROTOCOL, GA_PROTOCOL_UNSPEC, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_PROTOCOL, param_spec); param_spec = g_param_spec_enum("aprotocol", "Address protocol", "Avahi protocol of the address to be resolved", GA_TYPE_PROTOCOL, GA_PROTOCOL_UNSPEC, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_APROTOCOL, param_spec); param_spec = g_param_spec_int("interface", "interface index", "Interface use for resolver", AVAHI_IF_UNSPEC, G_MAXINT, AVAHI_IF_UNSPEC, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_IFINDEX, param_spec); param_spec = g_param_spec_string("name", "service name", "name to resolve", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_NAME, param_spec); param_spec = g_param_spec_string("type", "service type", "Service type to browse for", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_TYPE, param_spec); param_spec = g_param_spec_string("domain", "service domain", "Domain to browse in", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_DOMAIN, param_spec); param_spec = g_param_spec_enum("flags", "Lookup flags for the resolver", "Resolver lookup flags", GA_TYPE_LOOKUP_FLAGS, GA_LOOKUP_NO_FLAGS, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_FLAGS, param_spec); } void ga_service_resolver_dispose(GObject * object) { GaServiceResolver *self = GA_SERVICE_RESOLVER(object); GaServiceResolverPrivate *priv = GA_SERVICE_RESOLVER_GET_PRIVATE(self); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; if (priv->client) g_object_unref(priv->client); priv->client = NULL; if (priv->resolver) avahi_service_resolver_free(priv->resolver); priv->resolver = NULL; /* release any references held by the object here */ if (G_OBJECT_CLASS(ga_service_resolver_parent_class)->dispose) G_OBJECT_CLASS(ga_service_resolver_parent_class)->dispose(object); } void ga_service_resolver_finalize(GObject * object) { GaServiceResolver *self = GA_SERVICE_RESOLVER(object); GaServiceResolverPrivate *priv = GA_SERVICE_RESOLVER_GET_PRIVATE(self); /* free any data held directly by the object here */ g_free(priv->name); priv->name = NULL; g_free(priv->type); priv->type = NULL; g_free(priv->domain); priv->domain = NULL; G_OBJECT_CLASS(ga_service_resolver_parent_class)->finalize(object); } static void _avahi_service_resolver_cb(AVAHI_GCC_UNUSED AvahiServiceResolver * resolver, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress * a, uint16_t port, AvahiStringList * txt, AvahiLookupResultFlags flags, void *userdata) { GaServiceResolver *self = GA_SERVICE_RESOLVER(userdata); GaServiceResolverPrivate *priv = GA_SERVICE_RESOLVER_GET_PRIVATE(self); switch (event) { case AVAHI_RESOLVER_FOUND:{ /* FIXME: Double check if this address is always the same */ priv->address = *a; priv->port = port; g_signal_emit(self, signals[FOUND], 0, interface, protocol, name, type, domain, host_name, a, port, txt, flags); break; } case AVAHI_RESOLVER_FAILURE:{ GError *error; int aerrno = avahi_client_errno(priv->client->avahi_client); error = g_error_new(GA_ERROR, aerrno, "Resolving failed: %s", avahi_strerror(aerrno)); g_signal_emit(self, signals[FAILURE], 0, error); g_error_free(error); break; } } } GaServiceResolver *ga_service_resolver_new(AvahiIfIndex interface, AvahiProtocol protocol, const gchar * name, const gchar * type, const gchar * domain, AvahiProtocol address_protocol, GaLookupFlags flags) { return g_object_new(GA_TYPE_SERVICE_RESOLVER, "interface", interface, "protocol", protocol, "name", name, "type", type, "domain", domain, "aprotocol", address_protocol, "flags", flags, NULL); } gboolean ga_service_resolver_attach(GaServiceResolver * resolver, GaClient * client, GError ** error) { GaServiceResolverPrivate *priv = GA_SERVICE_RESOLVER_GET_PRIVATE(resolver); g_assert(client != NULL); g_object_ref(client); priv->client = client; priv->resolver = avahi_service_resolver_new(client->avahi_client, priv->interface, priv->protocol, priv->name, priv->type, priv->domain, priv->aprotocol, priv->flags, _avahi_service_resolver_cb, resolver); if (priv->resolver == NULL) { if (error != NULL) { int aerrno = avahi_client_errno(client->avahi_client); *error = g_error_new(GA_ERROR, aerrno, "Attaching group failed: %s", avahi_strerror(aerrno)); } /* printf("Failed to add resolver\n"); */ return FALSE; } return TRUE; } gboolean ga_service_resolver_get_address(GaServiceResolver * resolver, AvahiAddress * address, uint16_t * port) { GaServiceResolverPrivate *priv = GA_SERVICE_RESOLVER_GET_PRIVATE(resolver); if (priv->port == 0) { /* printf("PORT == 0\n"); */ return FALSE; } *address = priv->address; *port = priv->port; return TRUE; } avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-client.h0000644000000000000000000000013213130651643016720 xustar0030 mtime=1499681699.115370395 30 atime=1499681850.215985382 30 ctime=1499681850.455980026 avahi-0.7/avahi-gobject/ga-client.h0000644000175000017500000000510513130651643020330 0ustar00lathiatlathiat00000000000000/* * ga-client.h - Header for GaClient * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __GA_CLIENT_H__ #define __GA_CLIENT_H__ #include #include G_BEGIN_DECLS typedef enum { GA_CLIENT_STATE_NOT_STARTED = -1, GA_CLIENT_STATE_S_REGISTERING = AVAHI_CLIENT_S_REGISTERING, GA_CLIENT_STATE_S_RUNNING = AVAHI_CLIENT_S_RUNNING, GA_CLIENT_STATE_S_COLLISION = AVAHI_CLIENT_S_COLLISION, GA_CLIENT_STATE_FAILURE = AVAHI_CLIENT_FAILURE, GA_CLIENT_STATE_CONNECTING = AVAHI_CLIENT_CONNECTING } GaClientState; typedef enum { GA_CLIENT_FLAG_NO_FLAGS = 0, GA_CLIENT_FLAG_IGNORE_USER_CONFIG = AVAHI_CLIENT_IGNORE_USER_CONFIG, GA_CLIENT_FLAG_NO_FAIL = AVAHI_CLIENT_NO_FAIL } GaClientFlags; typedef struct _GaClient GaClient; typedef struct _GaClientClass GaClientClass; struct _GaClientClass { GObjectClass parent_class; }; struct _GaClient { GObject parent; /* Raw avahi_client handle, only reuse if you have reffed this instance */ AvahiClient *avahi_client; }; GType ga_client_get_type(void); /* TYPE MACROS */ #define GA_TYPE_CLIENT \ (ga_client_get_type()) #define GA_CLIENT(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), GA_TYPE_CLIENT, GaClient)) #define GA_CLIENT_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass), GA_TYPE_CLIENT, GaClientClass)) #define IS_GA_CLIENT(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GA_TYPE_CLIENT)) #define IS_GA_CLIENT_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass), GA_TYPE_CLIENT)) #define GA_CLIENT_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GA_TYPE_CLIENT, GaClientClass)) GaClient *ga_client_new(GaClientFlags flags); gboolean ga_client_start(GaClient * client, GError ** error); gboolean ga_client_start_in_context(GaClient * client, GMainContext * context, GError ** error); G_END_DECLS #endif /* #ifndef __GA_CLIENT_H__ */ avahi-0.7/avahi-gobject/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016740 xustar0030 mtime=1499681699.115370395 30 atime=1499681796.881177052 30 ctime=1499681850.455980026 avahi-0.7/avahi-gobject/Makefile.am0000644000175000017500000001160613130651643020353 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' EXTRA_DIST = \ AvahiCore-0.6.gir if HAVE_GOBJECT if HAVE_DBUS avahigobjectincludedir=$(includedir)/avahi-gobject avahigobjectinclude_HEADERS = \ ga-client.h \ ga-entry-group.h \ ga-enums.h \ ga-error.h \ ga-record-browser.h \ ga-service-browser.h \ ga-service-resolver.h lib_LTLIBRARIES = \ libavahi-gobject.la BUILT_SOURCES = \ signals-marshal.list \ signals-marshal.h \ signals-marshal.c \ ga-client-enumtypes.h \ ga-client-enumtypes.c \ ga-entry-group-enumtypes.h \ ga-entry-group-enumtypes.c \ ga-enums-enumtypes.h \ ga-enums-enumtypes.c CORE_SOURCES = \ ga-client.c ga-client.h \ ga-entry-group.c ga-entry-group.h \ ga-enums.h \ ga-error.c ga-error.h \ ga-record-browser.c ga-record-browser.h \ ga-service-browser.c ga-service-browser.h \ ga-service-resolver.c ga-service-resolver.h libavahi_gobject_la_SOURCES = \ $(CORE_SOURCES) \ $(BUILT_SOURCES) libavahi_gobject_la_CFLAGS = $(AM_CFLAGS) $(GOBJECT_CFLAGS) libavahi_gobject_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la ../avahi-glib/libavahi-glib.la $(GOBJECT_LIBS) libavahi_gobject_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_GOBJECT_VERSION_INFO) -export-symbols-regex '^ga_' # correctly clean the generated source files CLEANFILES = $(BUILT_SOURCES) dist-hook: $(shell for x in $(BUILT_SOURCES); do rm -f $(distdir)/$$x ; done) signals-marshal.list: $(CORE_SOURCES) Makefile.am $(AM_V_GEN)( cd $(srcdir) && \ LC_ALL=C sed -n -e 's/.*_ga_signals_marshal_\([A-Z]*__[A-Z_]*\).*/\1/p' \ $(CORE_SOURCES) ) \ | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp && \ if cmp -s $@.tmp $@; then \ rm $@.tmp; \ else \ mv $@.tmp $@; \ fi signals-marshal.h: signals-marshal.list $(AM_V_GEN)glib-genmarshal --header --prefix=_ga_signals_marshal $< > $@ signals-marshal.c: signals-marshal.list $(AM_V_GEN)(echo "#include \"signals-marshal.h\"" ; glib-genmarshal --body --prefix=_ga_signals_marshal $< ) > $@ # rules for making the glib enum objects %-enumtypes.h: %.h Makefile.in $(AM_V_GEN)glib-mkenums \ --fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include \n\nG_BEGIN_DECLS\n" \ --fprod "/* enumerations from \"@filename@\" */\n" \ --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \ $< > $@ %-enumtypes.c: %.h Makefile.in $(AM_V_GEN)glib-mkenums \ --fhead "#include <$*.h>\n#include<$*-enumtypes.h>" \ --fprod "\n/* enumerations from \"@filename@\" */" \ --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \ --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ $< > $@ -include $(INTROSPECTION_MAKEFILE) INTROSPECTION_GIRS = INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) if HAVE_INTROSPECTION introspection_sources = $(libavahi_gobject_la_SOURCES) Avahi-0.6.gir: $(lib_LTLIBRARIES) Avahi_0_6_gir_INCLUDES = GObject-2.0 AvahiCore-0.6 Avahi_0_6_gir_CFLAGS = $(libavahi_gobject_la_CFLAGS) Avahi_0_6_gir_LIBS = $(lib_LTLIBRARIES) Avahi_0_6_gir_FILES = $(addprefix $(srcdir)/, $(CORE_SOURCES)) $(BUILT_SOURCES) Avahi_0_6_gir_SCANNERFLAGS = --strip-prefix=Ga INTROSPECTION_GIRS += Avahi-0.6.gir INTROSPECTION_INSTALL_GIRS = AvahiCore-0.6.gir $(INTROSPECTION_GIRS) girdir = $(datadir)/gir-1.0 gir_DATA = $(INTROSPECTION_INSTALL_GIRS) typelibdir = $(libdir)/girepository-1.0 typelib_DATA = $(INTROSPECTION_INSTALL_GIRS:.gir=.typelib) CLEANFILES += $(INTROSPECTION_GIRS) $(typelib_DATA) endif endif endif indent: indent -brf -nbbo -nbc -ip0 -cs -nbfde -npsl -br -brs -bap -i4 -bs -cdw -ce -npcs -hnl -cli4 -nut -ci8 ga-*.[ch] avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-record-browser.h0000644000000000000000000000013213130651643020401 xustar0030 mtime=1499681699.119370306 30 atime=1499681850.215985382 30 ctime=1499681850.459979937 avahi-0.7/avahi-gobject/ga-record-browser.h0000644000175000017500000000513513130651643022014 0ustar00lathiatlathiat00000000000000/* * ga-record-browser.h - Header for GaRecordBrowser * Copyright (C) 2007 Collabora Ltd. * @author Sjoerd Simons * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __GA_RECORD_BROWSER_H__ #define __GA_RECORD_BROWSER_H__ #include #include #include #include "ga-client.h" #include "ga-enums.h" G_BEGIN_DECLS typedef struct _GaRecordBrowser GaRecordBrowser; typedef struct _GaRecordBrowserClass GaRecordBrowserClass; struct _GaRecordBrowserClass { GObjectClass parent_class; }; struct _GaRecordBrowser { GObject parent; }; GType ga_record_browser_get_type(void); /* TYPE MACROS */ #define GA_TYPE_RECORD_BROWSER \ (ga_record_browser_get_type()) #define GA_RECORD_BROWSER(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), GA_TYPE_RECORD_BROWSER, GaRecordBrowser)) #define GA_RECORD_BROWSER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass), GA_TYPE_RECORD_BROWSER, GaRecordBrowserClass)) #define IS_GA_RECORD_BROWSER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GA_TYPE_RECORD_BROWSER)) #define IS_GA_RECORD_BROWSER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass), GA_TYPE_RECORD_BROWSER)) #define GA_RECORD_BROWSER_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GA_TYPE_RECORD_BROWSER, GaRecordBrowserClass)) GaRecordBrowser *ga_record_browser_new(const gchar * name, guint16 type); GaRecordBrowser *ga_record_browser_new_full(AvahiIfIndex interface, AvahiProtocol protocol, const gchar * name, guint16 clazz, guint16 type, GaLookupFlags flags); gboolean ga_record_browser_attach(GaRecordBrowser * browser, GaClient * client, GError ** error); G_END_DECLS #endif /* #ifndef __GA_RECORD_BROWSER_H__ */ avahi-0.7/avahi-gobject/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016737 xustar0030 mtime=1499681801.557072448 30 atime=1499681806.620959194 30 ctime=1499681850.459979937 avahi-0.7/avahi-gobject/Makefile.in0000644000175000017500000014627713130652011020367 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@am__append_1 = Avahi-0.6.gir @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@am__append_2 = $(INTROSPECTION_GIRS) $(typelib_DATA) subdir = avahi-gobject ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am \ $(am__avahigobjectinclude_HEADERS_DIST) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \ "$(DESTDIR)$(typelibdir)" \ "$(DESTDIR)$(avahigobjectincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@libavahi_gobject_la_DEPENDENCIES = ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(am__DEPENDENCIES_1) am__libavahi_gobject_la_SOURCES_DIST = ga-client.c ga-client.h \ ga-entry-group.c ga-entry-group.h ga-enums.h ga-error.c \ ga-error.h ga-record-browser.c ga-record-browser.h \ ga-service-browser.c ga-service-browser.h \ ga-service-resolver.c ga-service-resolver.h \ signals-marshal.list signals-marshal.h signals-marshal.c \ ga-client-enumtypes.h ga-client-enumtypes.c \ ga-entry-group-enumtypes.h ga-entry-group-enumtypes.c \ ga-enums-enumtypes.h ga-enums-enumtypes.c @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@am__objects_1 = libavahi_gobject_la-ga-client.lo \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi_gobject_la-ga-entry-group.lo \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi_gobject_la-ga-error.lo \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi_gobject_la-ga-record-browser.lo \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi_gobject_la-ga-service-browser.lo \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi_gobject_la-ga-service-resolver.lo @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@am__objects_2 = libavahi_gobject_la-signals-marshal.lo \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi_gobject_la-ga-client-enumtypes.lo \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi_gobject_la-ga-entry-group-enumtypes.lo \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi_gobject_la-ga-enums-enumtypes.lo @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@am_libavahi_gobject_la_OBJECTS = \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(am__objects_1) \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(am__objects_2) libavahi_gobject_la_OBJECTS = $(am_libavahi_gobject_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libavahi_gobject_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libavahi_gobject_la_CFLAGS) $(CFLAGS) \ $(libavahi_gobject_la_LDFLAGS) $(LDFLAGS) -o $@ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@am_libavahi_gobject_la_rpath = \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ -rpath $(libdir) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libavahi_gobject_la_SOURCES) DIST_SOURCES = $(am__libavahi_gobject_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DATA = $(gir_DATA) $(typelib_DATA) am__avahigobjectinclude_HEADERS_DIST = ga-client.h ga-entry-group.h \ ga-enums.h ga-error.h ga-record-browser.h ga-service-browser.h \ ga-service-resolver.h HEADERS = $(avahigobjectinclude_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' EXTRA_DIST = \ AvahiCore-0.6.gir @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@avahigobjectincludedir = $(includedir)/avahi-gobject @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@avahigobjectinclude_HEADERS = \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-client.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-entry-group.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-enums.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-error.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-record-browser.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-service-browser.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-service-resolver.h @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@lib_LTLIBRARIES = \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ libavahi-gobject.la @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@BUILT_SOURCES = \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ signals-marshal.list \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ signals-marshal.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ signals-marshal.c \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-client-enumtypes.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-client-enumtypes.c \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-entry-group-enumtypes.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-entry-group-enumtypes.c \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-enums-enumtypes.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-enums-enumtypes.c @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@CORE_SOURCES = \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-client.c ga-client.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-entry-group.c ga-entry-group.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-enums.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-error.c ga-error.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-record-browser.c ga-record-browser.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-service-browser.c ga-service-browser.h \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ ga-service-resolver.c ga-service-resolver.h @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@libavahi_gobject_la_SOURCES = \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(CORE_SOURCES) \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(BUILT_SOURCES) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@libavahi_gobject_la_CFLAGS = $(AM_CFLAGS) $(GOBJECT_CFLAGS) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@libavahi_gobject_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la ../avahi-glib/libavahi-glib.la $(GOBJECT_LIBS) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@libavahi_gobject_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_GOBJECT_VERSION_INFO) -export-symbols-regex '^ga_' # correctly clean the generated source files @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@CLEANFILES = $(BUILT_SOURCES) \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(am__append_2) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@INTROSPECTION_GIRS = \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(am__append_1) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@introspection_sources = $(libavahi_gobject_la_SOURCES) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@Avahi_0_6_gir_INCLUDES = GObject-2.0 AvahiCore-0.6 @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@Avahi_0_6_gir_CFLAGS = $(libavahi_gobject_la_CFLAGS) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@Avahi_0_6_gir_LIBS = $(lib_LTLIBRARIES) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@Avahi_0_6_gir_FILES = $(addprefix $(srcdir)/, $(CORE_SOURCES)) $(BUILT_SOURCES) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@Avahi_0_6_gir_SCANNERFLAGS = --strip-prefix=Ga @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@INTROSPECTION_INSTALL_GIRS = AvahiCore-0.6.gir $(INTROSPECTION_GIRS) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0 @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@gir_DATA = $(INTROSPECTION_INSTALL_GIRS) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@typelibdir = $(libdir)/girepository-1.0 @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@typelib_DATA = $(INTROSPECTION_INSTALL_GIRS:.gir=.typelib) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-gobject/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-gobject/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libavahi-gobject.la: $(libavahi_gobject_la_OBJECTS) $(libavahi_gobject_la_DEPENDENCIES) $(EXTRA_libavahi_gobject_la_DEPENDENCIES) $(AM_V_CCLD)$(libavahi_gobject_la_LINK) $(am_libavahi_gobject_la_rpath) $(libavahi_gobject_la_OBJECTS) $(libavahi_gobject_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-client-enumtypes.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-client.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-entry-group-enumtypes.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-entry-group.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-enums-enumtypes.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-error.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-record-browser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-service-browser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-ga-service-resolver.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_gobject_la-signals-marshal.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libavahi_gobject_la-ga-client.lo: ga-client.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-client.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-client.Tpo -c -o libavahi_gobject_la-ga-client.lo `test -f 'ga-client.c' || echo '$(srcdir)/'`ga-client.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-client.Tpo $(DEPDIR)/libavahi_gobject_la-ga-client.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-client.c' object='libavahi_gobject_la-ga-client.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-client.lo `test -f 'ga-client.c' || echo '$(srcdir)/'`ga-client.c libavahi_gobject_la-ga-entry-group.lo: ga-entry-group.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-entry-group.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-entry-group.Tpo -c -o libavahi_gobject_la-ga-entry-group.lo `test -f 'ga-entry-group.c' || echo '$(srcdir)/'`ga-entry-group.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-entry-group.Tpo $(DEPDIR)/libavahi_gobject_la-ga-entry-group.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-entry-group.c' object='libavahi_gobject_la-ga-entry-group.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-entry-group.lo `test -f 'ga-entry-group.c' || echo '$(srcdir)/'`ga-entry-group.c libavahi_gobject_la-ga-error.lo: ga-error.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-error.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-error.Tpo -c -o libavahi_gobject_la-ga-error.lo `test -f 'ga-error.c' || echo '$(srcdir)/'`ga-error.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-error.Tpo $(DEPDIR)/libavahi_gobject_la-ga-error.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-error.c' object='libavahi_gobject_la-ga-error.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-error.lo `test -f 'ga-error.c' || echo '$(srcdir)/'`ga-error.c libavahi_gobject_la-ga-record-browser.lo: ga-record-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-record-browser.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-record-browser.Tpo -c -o libavahi_gobject_la-ga-record-browser.lo `test -f 'ga-record-browser.c' || echo '$(srcdir)/'`ga-record-browser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-record-browser.Tpo $(DEPDIR)/libavahi_gobject_la-ga-record-browser.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-record-browser.c' object='libavahi_gobject_la-ga-record-browser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-record-browser.lo `test -f 'ga-record-browser.c' || echo '$(srcdir)/'`ga-record-browser.c libavahi_gobject_la-ga-service-browser.lo: ga-service-browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-service-browser.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-service-browser.Tpo -c -o libavahi_gobject_la-ga-service-browser.lo `test -f 'ga-service-browser.c' || echo '$(srcdir)/'`ga-service-browser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-service-browser.Tpo $(DEPDIR)/libavahi_gobject_la-ga-service-browser.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-service-browser.c' object='libavahi_gobject_la-ga-service-browser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-service-browser.lo `test -f 'ga-service-browser.c' || echo '$(srcdir)/'`ga-service-browser.c libavahi_gobject_la-ga-service-resolver.lo: ga-service-resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-service-resolver.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-service-resolver.Tpo -c -o libavahi_gobject_la-ga-service-resolver.lo `test -f 'ga-service-resolver.c' || echo '$(srcdir)/'`ga-service-resolver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-service-resolver.Tpo $(DEPDIR)/libavahi_gobject_la-ga-service-resolver.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-service-resolver.c' object='libavahi_gobject_la-ga-service-resolver.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-service-resolver.lo `test -f 'ga-service-resolver.c' || echo '$(srcdir)/'`ga-service-resolver.c libavahi_gobject_la-signals-marshal.lo: signals-marshal.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-signals-marshal.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-signals-marshal.Tpo -c -o libavahi_gobject_la-signals-marshal.lo `test -f 'signals-marshal.c' || echo '$(srcdir)/'`signals-marshal.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-signals-marshal.Tpo $(DEPDIR)/libavahi_gobject_la-signals-marshal.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='signals-marshal.c' object='libavahi_gobject_la-signals-marshal.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-signals-marshal.lo `test -f 'signals-marshal.c' || echo '$(srcdir)/'`signals-marshal.c libavahi_gobject_la-ga-client-enumtypes.lo: ga-client-enumtypes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-client-enumtypes.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-client-enumtypes.Tpo -c -o libavahi_gobject_la-ga-client-enumtypes.lo `test -f 'ga-client-enumtypes.c' || echo '$(srcdir)/'`ga-client-enumtypes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-client-enumtypes.Tpo $(DEPDIR)/libavahi_gobject_la-ga-client-enumtypes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-client-enumtypes.c' object='libavahi_gobject_la-ga-client-enumtypes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-client-enumtypes.lo `test -f 'ga-client-enumtypes.c' || echo '$(srcdir)/'`ga-client-enumtypes.c libavahi_gobject_la-ga-entry-group-enumtypes.lo: ga-entry-group-enumtypes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-entry-group-enumtypes.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-entry-group-enumtypes.Tpo -c -o libavahi_gobject_la-ga-entry-group-enumtypes.lo `test -f 'ga-entry-group-enumtypes.c' || echo '$(srcdir)/'`ga-entry-group-enumtypes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-entry-group-enumtypes.Tpo $(DEPDIR)/libavahi_gobject_la-ga-entry-group-enumtypes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-entry-group-enumtypes.c' object='libavahi_gobject_la-ga-entry-group-enumtypes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-entry-group-enumtypes.lo `test -f 'ga-entry-group-enumtypes.c' || echo '$(srcdir)/'`ga-entry-group-enumtypes.c libavahi_gobject_la-ga-enums-enumtypes.lo: ga-enums-enumtypes.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -MT libavahi_gobject_la-ga-enums-enumtypes.lo -MD -MP -MF $(DEPDIR)/libavahi_gobject_la-ga-enums-enumtypes.Tpo -c -o libavahi_gobject_la-ga-enums-enumtypes.lo `test -f 'ga-enums-enumtypes.c' || echo '$(srcdir)/'`ga-enums-enumtypes.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_gobject_la-ga-enums-enumtypes.Tpo $(DEPDIR)/libavahi_gobject_la-ga-enums-enumtypes.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ga-enums-enumtypes.c' object='libavahi_gobject_la-ga-enums-enumtypes.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_gobject_la_CFLAGS) $(CFLAGS) -c -o libavahi_gobject_la-ga-enums-enumtypes.lo `test -f 'ga-enums-enumtypes.c' || echo '$(srcdir)/'`ga-enums-enumtypes.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-girDATA: $(gir_DATA) @$(NORMAL_INSTALL) @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \ done uninstall-girDATA: @$(NORMAL_UNINSTALL) @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir) install-typelibDATA: $(typelib_DATA) @$(NORMAL_INSTALL) @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(typelibdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(typelibdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibdir)" || exit $$?; \ done uninstall-typelibDATA: @$(NORMAL_UNINSTALL) @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(typelibdir)'; $(am__uninstall_files_from_dir) install-avahigobjectincludeHEADERS: $(avahigobjectinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(avahigobjectinclude_HEADERS)'; test -n "$(avahigobjectincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahigobjectincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahigobjectincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahigobjectincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahigobjectincludedir)" || exit $$?; \ done uninstall-avahigobjectincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahigobjectinclude_HEADERS)'; test -n "$(avahigobjectincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahigobjectincludedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @HAVE_DBUS_FALSE@dist-hook: @HAVE_GOBJECT_FALSE@dist-hook: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(typelibdir)" "$(DESTDIR)$(avahigobjectincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahigobjectincludeHEADERS install-girDATA \ install-typelibDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahigobjectincludeHEADERS uninstall-girDATA \ uninstall-libLTLIBRARIES uninstall-typelibDATA .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ ctags-am dist-hook distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-avahigobjectincludeHEADERS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-girDATA install-html install-html-am \ install-info install-info-am install-libLTLIBRARIES \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip install-typelibDATA installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-avahigobjectincludeHEADERS uninstall-girDATA \ uninstall-libLTLIBRARIES uninstall-typelibDATA .PRECIOUS: Makefile @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@dist-hook: @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(shell for x in $(BUILT_SOURCES); do rm -f $(distdir)/$$x ; done) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@signals-marshal.list: $(CORE_SOURCES) Makefile.am @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(AM_V_GEN)( cd $(srcdir) && \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ LC_ALL=C sed -n -e 's/.*_ga_signals_marshal_\([A-Z]*__[A-Z_]*\).*/\1/p' \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(CORE_SOURCES) ) \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp && \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ if cmp -s $@.tmp $@; then \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ rm $@.tmp; \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ else \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ mv $@.tmp $@; \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ fi @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@signals-marshal.h: signals-marshal.list @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(AM_V_GEN)glib-genmarshal --header --prefix=_ga_signals_marshal $< > $@ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@signals-marshal.c: signals-marshal.list @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(AM_V_GEN)(echo "#include \"signals-marshal.h\"" ; glib-genmarshal --body --prefix=_ga_signals_marshal $< ) > $@ # rules for making the glib enum objects @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@%-enumtypes.h: %.h Makefile.in @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(AM_V_GEN)glib-mkenums \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include \n\nG_BEGIN_DECLS\n" \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --fprod "/* enumerations from \"@filename@\" */\n" \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $< > $@ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@%-enumtypes.c: %.h Makefile.in @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $(AM_V_GEN)glib-mkenums \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --fhead "#include <$*.h>\n#include<$*-enumtypes.h>" \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --fprod "\n/* enumerations from \"@filename@\" */" \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@ $< > $@ @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@-include $(INTROSPECTION_MAKEFILE) @HAVE_DBUS_TRUE@@HAVE_GOBJECT_TRUE@@HAVE_INTROSPECTION_TRUE@Avahi-0.6.gir: $(lib_LTLIBRARIES) indent: indent -brf -nbbo -nbc -ip0 -cs -nbfde -npsl -br -brs -bap -i4 -bs -cdw -ce -npcs -hnl -cli4 -nut -ci8 ga-*.[ch] # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-error.h0000644000000000000000000000013213130651643016573 xustar0030 mtime=1499681699.115370395 30 atime=1499681850.215985382 30 ctime=1499681850.455980026 avahi-0.7/avahi-gobject/ga-error.h0000644000175000017500000000205413130651643020203 0ustar00lathiatlathiat00000000000000/* * ga-error.h - Header for Avahi error types * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __GA_ERROR_H__ #define __GA_ERROR_H__ #include G_BEGIN_DECLS #include GQuark ga_error_quark(void); #define GA_ERROR ga_error_quark() G_END_DECLS #endif /* #ifndef __GA_ERROR_H__ */ avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-entry-group.h0000644000000000000000000000013213130651643017735 xustar0030 mtime=1499681699.115370395 30 atime=1499681850.215985382 30 ctime=1499681850.455980026 avahi-0.7/avahi-gobject/ga-entry-group.h0000644000175000017500000001710313130651643021346 0ustar00lathiatlathiat00000000000000/* * ga-entry-group.h - Header for GaEntryGroup * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __GA_ENTRY_GROUP_H__ #define __GA_ENTRY_GROUP_H__ #include #include #include #include "ga-client.h" G_BEGIN_DECLS typedef enum { GA_ENTRY_GROUP_STATE_UNCOMMITED = AVAHI_ENTRY_GROUP_UNCOMMITED, GA_ENTRY_GROUP_STATE_REGISTERING = AVAHI_ENTRY_GROUP_REGISTERING, GA_ENTRY_GROUP_STATE_ESTABLISHED = AVAHI_ENTRY_GROUP_ESTABLISHED, GA_ENTRY_GROUP_STATE_COLLISTION = AVAHI_ENTRY_GROUP_COLLISION, GA_ENTRY_GROUP_STATE_FAILURE = AVAHI_ENTRY_GROUP_FAILURE } GaEntryGroupState; typedef struct _GaEntryGroupService GaEntryGroupService; typedef struct _GaEntryGroup GaEntryGroup; typedef struct _GaEntryGroupClass GaEntryGroupClass; struct _GaEntryGroupService { AvahiIfIndex interface; AvahiProtocol protocol; AvahiPublishFlags flags; gchar *name; gchar *type; gchar *domain; gchar *host; guint16 port; }; struct _GaEntryGroupClass { GObjectClass parent_class; }; struct _GaEntryGroup { GObject parent; }; GType ga_entry_group_get_type(void); /* TYPE MACROS */ #define GA_TYPE_ENTRY_GROUP \ (ga_entry_group_get_type()) #define GA_ENTRY_GROUP(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), GA_TYPE_ENTRY_GROUP, GaEntryGroup)) #define GA_ENTRY_GROUP_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass), GA_TYPE_ENTRY_GROUP, GaEntryGroupClass)) #define IS_GA_ENTRY_GROUP(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GA_TYPE_ENTRY_GROUP)) #define IS_GA_ENTRY_GROUP_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass), GA_TYPE_ENTRY_GROUP)) #define GA_ENTRY_GROUP_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GA_TYPE_ENTRY_GROUP, GaEntryGroupClass)) GaEntryGroup *ga_entry_group_new(void); gboolean ga_entry_group_attach(GaEntryGroup * group, GaClient * client, GError ** error); GaEntryGroupService *ga_entry_group_add_service_strlist(GaEntryGroup * group, const gchar * name, const gchar * type, guint16 port, GError ** error, AvahiStringList * txt); GaEntryGroupService *ga_entry_group_add_service_full_strlist(GaEntryGroup * group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const gchar * name, const gchar * type, const gchar * domain, const gchar * host, guint16 port, GError ** error, AvahiStringList * txt); GaEntryGroupService *ga_entry_group_add_service(GaEntryGroup * group, const gchar * name, const gchar * type, guint16 port, GError ** error, ...); GaEntryGroupService *ga_entry_group_add_service_full(GaEntryGroup * group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const gchar * name, const gchar * type, const gchar * domain, const gchar * host, guint16 port, GError ** error, ...); /* Add raw record */ gboolean ga_entry_group_add_record(GaEntryGroup * group, AvahiPublishFlags flags, const gchar * name, guint16 type, guint32 ttl, const void *rdata, gsize size, GError ** error); gboolean ga_entry_group_add_record_full(GaEntryGroup * group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const gchar * name, guint16 clazz, guint16 type, guint32 ttl, const void *rdata, gsize size, GError ** error); void ga_entry_group_service_freeze(GaEntryGroupService * service); /* Set a key in the service record. If the service isn't frozen it's committed * immediately */ gboolean ga_entry_group_service_set(GaEntryGroupService * service, const gchar * key, const gchar * value, GError ** error); gboolean ga_entry_group_service_set_arbitrary(GaEntryGroupService * service, const gchar * key, const guint8 * value, gsize size, GError ** error); /* Remove one key from the service record */ gboolean ga_entry_group_service_remove_key(GaEntryGroupService * service, const gchar * key, GError ** error); /* Update the txt record of the frozen service */ gboolean ga_entry_group_service_thaw(GaEntryGroupService * service, GError ** error); /* Commit all newly added services */ gboolean ga_entry_group_commit(GaEntryGroup * group, GError ** error); /* Invalidated all GaEntryGroupServices */ gboolean ga_entry_group_reset(GaEntryGroup * group, GError ** error); G_END_DECLS #endif /* #ifndef __GA_ENTRY_GROUP_H__ */ avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-error.c0000644000000000000000000000013213130651643016566 xustar0030 mtime=1499681699.115370395 30 atime=1499681850.215985382 30 ctime=1499681850.463979847 avahi-0.7/avahi-gobject/ga-error.c0000644000175000017500000000205613130651643020200 0ustar00lathiatlathiat00000000000000/* * ga-error.c - Source for error types used * Copyright (C) 2006 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef HAVE_CONFIG_H #include #endif #include #include "ga-error.h" GQuark ga_error_quark(void) { static GQuark quark = 0; if (!quark) quark = g_quark_from_static_string("ga_error"); return quark; } avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-enums.h0000644000000000000000000000013213130651643016571 xustar0030 mtime=1499681699.115370395 30 atime=1499681850.215985382 30 ctime=1499681850.455980026 avahi-0.7/avahi-gobject/ga-enums.h0000644000175000017500000000773013130651643020207 0ustar00lathiatlathiat00000000000000/* * ga-enums.h * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __GA_ENUMS_H__ #define __GA_ENUMS_H__ #include #include #include G_BEGIN_DECLS /** Values for GaProtocol */ typedef enum { GA_PROTOCOL_INET = AVAHI_PROTO_INET, /**< IPv4 */ GA_PROTOCOL_INET6 = AVAHI_PROTO_INET6, /**< IPv6 */ GA_PROTOCOL_UNSPEC = AVAHI_PROTO_UNSPEC /**< Unspecified/all protocol(s) */ } GaProtocol; /** Some flags for lookup callback functions */ typedef enum { GA_LOOKUP_RESULT_CACHED = AVAHI_LOOKUP_RESULT_CACHED, /**< This response originates from the cache */ GA_LOOKUP_RESULT_WIDE_AREA = AVAHI_LOOKUP_RESULT_WIDE_AREA, /**< This response originates from wide area DNS */ GA_LOOKUP_RESULT_MULTICAST = AVAHI_LOOKUP_RESULT_MULTICAST, /**< This response originates from multicast DNS */ GA_LOOKUP_RESULT_LOCAL = AVAHI_LOOKUP_RESULT_LOCAL, /**< This record/service resides on and was announced by the local host. Only available in service and record browsers and only on AVAHI_BROWSER_NEW. */ GA_LOOKUP_RESULT_OUR_OWN = AVAHI_LOOKUP_RESULT_OUR_OWN, /**< This service belongs to the same local client as the browser object. Only available in avahi-client, and only for service browsers and only on AVAHI_BROWSER_NEW. */ GA_LOOKUP_RESULT_STATIC = AVAHI_LOOKUP_RESULT_STATIC /**< The returned data has been defined statically by some configuration option */ } GaLookupResultFlags; typedef enum { GA_LOOKUP_NO_FLAGS = 0, GA_LOOKUP_USE_WIDE_AREA = AVAHI_LOOKUP_USE_WIDE_AREA, /**< Force lookup via wide area DNS */ GA_LOOKUP_USE_MULTICAST = AVAHI_LOOKUP_USE_MULTICAST, /**< Force lookup via multicast DNS */ GA_LOOKUP_NO_TXT = AVAHI_LOOKUP_NO_TXT, /**< When doing service resolving, don't lookup TXT record */ GA_LOOKUP_NO_ADDRESS = AVAHI_LOOKUP_NO_ADDRESS /**< When doing service resolving, don't lookup A/AAAA record */ } GaLookupFlags; typedef enum { GA_RESOLVER_FOUND = AVAHI_RESOLVER_FOUND, /**< RR found, resolving successful */ GA_RESOLVER_FAILURE = AVAHI_RESOLVER_FAILURE /**< Resolving failed due to some reason which can be retrieved using avahi_server_errno()/avahi_client_errno() */ } GaResolverEvent; typedef enum { GA_BROWSER_NEW = AVAHI_BROWSER_NEW, /**< The object is new on the network */ GA_BROWSER_REMOVE = AVAHI_BROWSER_REMOVE, /**< The object has been removed from the network */ GA_BROWSER_CACHE_EXHAUSTED = AVAHI_BROWSER_CACHE_EXHAUSTED, /**< One-time event, to notify the user that all entries from the caches have been send */ GA_BROWSER_ALL_FOR_NOW = AVAHI_BROWSER_ALL_FOR_NOW, /**< One-time event, to notify the user that more records will probably not show up in the near future, i.e. all cache entries have been read and all static servers been queried */ GA_BROWSER_FAILURE = AVAHI_BROWSER_FAILURE /**< Browsing failed due to some reason which can be retrieved using avahi_server_errno()/avahi_client_errno() */ } GaBrowserEvent; G_END_DECLS #endif /* #ifndef __GA_CLIENT_H__ */ avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-service-browser.c0000644000000000000000000000013213130651643020556 xustar0030 mtime=1499681699.119370306 30 atime=1499681850.215985382 30 ctime=1499681850.463979847 avahi-0.7/avahi-gobject/ga-service-browser.c0000644000175000017500000003324013130651643022167 0ustar00lathiatlathiat00000000000000/* * ga-service-browser.c - Source for GaServiceBrowser * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "ga-service-browser.h" #include "signals-marshal.h" #include "ga-error.h" #include "ga-enums-enumtypes.h" G_DEFINE_TYPE(GaServiceBrowser, ga_service_browser, G_TYPE_OBJECT) /* signal enum */ enum { NEW, REMOVED, CACHE_EXHAUSTED, ALL_FOR_NOW, FAILURE, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; /* properties */ enum { PROP_PROTOCOL = 1, PROP_IFINDEX, PROP_TYPE, PROP_DOMAIN, PROP_FLAGS }; /* private structure */ typedef struct _GaServiceBrowserPrivate GaServiceBrowserPrivate; struct _GaServiceBrowserPrivate { GaClient *client; AvahiServiceBrowser *browser; AvahiIfIndex interface; AvahiProtocol protocol; char *type; char *domain; AvahiLookupFlags flags; gboolean dispose_has_run; }; #define GA_SERVICE_BROWSER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GA_TYPE_SERVICE_BROWSER, GaServiceBrowserPrivate)) static void ga_service_browser_init(GaServiceBrowser * obj) { GaServiceBrowserPrivate *priv = GA_SERVICE_BROWSER_GET_PRIVATE(obj); /* allocate any data required by the object here */ priv->client = NULL; priv->browser = NULL; priv->type = NULL; priv->domain = NULL; } static void ga_service_browser_dispose(GObject * object); static void ga_service_browser_finalize(GObject * object); static void ga_service_browser_set_property(GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { GaServiceBrowser *browser = GA_SERVICE_BROWSER(object); GaServiceBrowserPrivate *priv = GA_SERVICE_BROWSER_GET_PRIVATE(browser); g_assert(priv->browser == NULL); switch (property_id) { case PROP_PROTOCOL: priv->protocol = g_value_get_enum(value); break; case PROP_IFINDEX: priv->interface = g_value_get_int(value); break; case PROP_TYPE: priv->type = g_strdup(g_value_get_string(value)); break; case PROP_DOMAIN: priv->domain = g_strdup(g_value_get_string(value)); break; case PROP_FLAGS: priv->flags = g_value_get_enum(value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_service_browser_get_property(GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { GaServiceBrowser *browser = GA_SERVICE_BROWSER(object); GaServiceBrowserPrivate *priv = GA_SERVICE_BROWSER_GET_PRIVATE(browser); switch (property_id) { case PROP_PROTOCOL: g_value_set_int(value, priv->protocol); break; case PROP_IFINDEX: g_value_set_int(value, priv->interface); break; case PROP_TYPE: g_value_set_string(value, priv->type); break; case PROP_DOMAIN: g_value_set_string(value, priv->domain); break; case PROP_FLAGS: g_value_set_enum(value, priv->flags); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_service_browser_class_init(GaServiceBrowserClass * ga_service_browser_class) { GObjectClass *object_class = G_OBJECT_CLASS(ga_service_browser_class); GParamSpec *param_spec; g_type_class_add_private(ga_service_browser_class, sizeof (GaServiceBrowserPrivate)); object_class->dispose = ga_service_browser_dispose; object_class->finalize = ga_service_browser_finalize; object_class->set_property = ga_service_browser_set_property; object_class->get_property = ga_service_browser_get_property; signals[NEW] = g_signal_new("new-service", G_OBJECT_CLASS_TYPE(ga_service_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _ga_signals_marshal_VOID__INT_ENUM_STRING_STRING_STRING_UINT, G_TYPE_NONE, 6, G_TYPE_INT, GA_TYPE_PROTOCOL, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, GA_TYPE_LOOKUP_RESULT_FLAGS); signals[REMOVED] = g_signal_new("removed-service", G_OBJECT_CLASS_TYPE(ga_service_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _ga_signals_marshal_VOID__INT_ENUM_STRING_STRING_STRING_UINT, G_TYPE_NONE, 6, G_TYPE_INT, GA_TYPE_PROTOCOL, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, GA_TYPE_LOOKUP_RESULT_FLAGS); signals[ALL_FOR_NOW] = g_signal_new("all-for-now", G_OBJECT_CLASS_TYPE(ga_service_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[CACHE_EXHAUSTED] = g_signal_new("cache-exhausted", G_OBJECT_CLASS_TYPE(ga_service_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[FAILURE] = g_signal_new("failure", G_OBJECT_CLASS_TYPE(ga_service_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); param_spec = g_param_spec_enum("protocol", "Avahi protocol to browse", "Avahi protocol to browse", GA_TYPE_PROTOCOL, GA_PROTOCOL_UNSPEC, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_PROTOCOL, param_spec); param_spec = g_param_spec_int("interface", "interface index", "Interface use for browser", AVAHI_IF_UNSPEC, G_MAXINT, AVAHI_IF_UNSPEC, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_IFINDEX, param_spec); param_spec = g_param_spec_string("type", "service type", "Service type to browse for", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_TYPE, param_spec); param_spec = g_param_spec_string("domain", "service domain", "Domain to browse in", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_DOMAIN, param_spec); param_spec = g_param_spec_enum("flags", "Lookup flags for the browser", "Browser lookup flags", GA_TYPE_LOOKUP_FLAGS, GA_LOOKUP_NO_FLAGS, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_FLAGS, param_spec); } void ga_service_browser_dispose(GObject * object) { GaServiceBrowser *self = GA_SERVICE_BROWSER(object); GaServiceBrowserPrivate *priv = GA_SERVICE_BROWSER_GET_PRIVATE(self); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; if (priv->browser) avahi_service_browser_free(priv->browser); priv->browser = NULL; if (priv->client) g_object_unref(priv->client); priv->client = NULL; /* release any references held by the object here */ if (G_OBJECT_CLASS(ga_service_browser_parent_class)->dispose) G_OBJECT_CLASS(ga_service_browser_parent_class)->dispose(object); } void ga_service_browser_finalize(GObject * object) { GaServiceBrowser *self = GA_SERVICE_BROWSER(object); GaServiceBrowserPrivate *priv = GA_SERVICE_BROWSER_GET_PRIVATE(self); /* free any data held directly by the object here */ g_free(priv->type); priv->type = NULL; g_free(priv->domain); priv->domain = NULL; G_OBJECT_CLASS(ga_service_browser_parent_class)->finalize(object); } static void _avahi_service_browser_cb(AvahiServiceBrowser * b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AvahiLookupResultFlags flags, void *userdata) { GaServiceBrowser *self = GA_SERVICE_BROWSER(userdata); GaServiceBrowserPrivate *priv = GA_SERVICE_BROWSER_GET_PRIVATE(self); if (priv->browser == NULL) { priv->browser = b; } g_assert(priv->browser == b); switch (event) { case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE:{ guint signalid; signalid = (event == AVAHI_BROWSER_NEW ? NEW : REMOVED); g_signal_emit(self, signals[signalid], 0, interface, protocol, name, type, domain, flags); break; } case AVAHI_BROWSER_CACHE_EXHAUSTED: g_signal_emit(self, signals[CACHE_EXHAUSTED], 0); break; case AVAHI_BROWSER_ALL_FOR_NOW: g_signal_emit(self, signals[ALL_FOR_NOW], 0); break; case AVAHI_BROWSER_FAILURE:{ GError *error; int aerrno = avahi_client_errno(priv->client->avahi_client); error = g_error_new(GA_ERROR, aerrno, "Browsing failed: %s", avahi_strerror(aerrno)); g_signal_emit(self, signals[FAILURE], 0, error); g_error_free(error); break; } } } GaServiceBrowser *ga_service_browser_new(const gchar * type) { return ga_service_browser_new_full(AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, type, NULL, 0); } GaServiceBrowser *ga_service_browser_new_full(AvahiIfIndex interface, AvahiProtocol protocol, const gchar * type, gchar * domain, GaLookupFlags flags) { return g_object_new(GA_TYPE_SERVICE_BROWSER, "interface", interface, "protocol", protocol, "type", type, "domain", domain, "flags", flags, NULL); } gboolean ga_service_browser_attach(GaServiceBrowser * browser, GaClient * client, GError ** error) { GaServiceBrowserPrivate *priv = GA_SERVICE_BROWSER_GET_PRIVATE(browser); g_object_ref(client); priv->client = client; priv->browser = avahi_service_browser_new(client->avahi_client, priv->interface, priv->protocol, priv->type, priv->domain, priv->flags, _avahi_service_browser_cb, browser); if (priv->browser == NULL) { if (error != NULL) { int aerrno = avahi_client_errno(client->avahi_client); *error = g_error_new(GA_ERROR, aerrno, "Attaching group failed: %s", avahi_strerror(aerrno)); } return FALSE; } return TRUE; } avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-client.c0000644000000000000000000000013213130651643016713 xustar0030 mtime=1499681699.115370395 30 atime=1499681850.215985382 30 ctime=1499681850.459979937 avahi-0.7/avahi-gobject/ga-client.c0000644000175000017500000002031313130651643020321 0ustar00lathiatlathiat00000000000000/* * ga-client.c - Source for GaClient * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "ga-client.h" #include "ga-client-enumtypes.h" #include "ga-error.h" /* FIXME what to do about glib-malloc ? */ #include #include #include #include G_DEFINE_TYPE(GaClient, ga_client, G_TYPE_OBJECT) /* signal enum */ enum { STATE_CHANGED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; /* properties */ enum { PROP_STATE = 1, PROP_FLAGS }; /* private structure */ typedef struct _GaClientPrivate GaClientPrivate; struct _GaClientPrivate { AvahiGLibPoll *poll; GaClientFlags flags; GaClientState state; gboolean dispose_has_run; }; #define GA_CLIENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GA_TYPE_CLIENT, GaClientPrivate)) static void ga_client_init(GaClient * self) { GaClientPrivate *priv = GA_CLIENT_GET_PRIVATE(self); /* allocate any data required by the object here */ self->avahi_client = NULL; priv->state = GA_CLIENT_STATE_NOT_STARTED; priv->flags = GA_CLIENT_FLAG_NO_FLAGS; } static void ga_client_dispose(GObject * object); static void ga_client_finalize(GObject * object); static void ga_client_set_property(GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { GaClient *client = GA_CLIENT(object); GaClientPrivate *priv = GA_CLIENT_GET_PRIVATE(client); switch (property_id) { case PROP_FLAGS: g_assert(client->avahi_client == NULL); priv->flags = g_value_get_enum(value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_client_get_property(GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { GaClient *client = GA_CLIENT(object); GaClientPrivate *priv = GA_CLIENT_GET_PRIVATE(client); switch (property_id) { case PROP_STATE: g_value_set_enum(value, priv->state); break; case PROP_FLAGS: g_value_set_enum(value, priv->flags); default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_client_class_init(GaClientClass * ga_client_class) { GObjectClass *object_class = G_OBJECT_CLASS(ga_client_class); GParamSpec *param_spec; g_type_class_add_private(ga_client_class, sizeof (GaClientPrivate)); object_class->dispose = ga_client_dispose; object_class->finalize = ga_client_finalize; object_class->set_property = ga_client_set_property; object_class->get_property = ga_client_get_property; param_spec = g_param_spec_enum("state", "Client state", "The state of the Avahi client", GA_TYPE_CLIENT_STATE, GA_CLIENT_STATE_NOT_STARTED, G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_STATE, param_spec); param_spec = g_param_spec_enum("flags", "Client flags", "The flags the Avahi client is started with", GA_TYPE_CLIENT_FLAGS, GA_CLIENT_FLAG_NO_FLAGS, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_FLAGS, param_spec); signals[STATE_CHANGED] = g_signal_new("state-changed", G_OBJECT_CLASS_TYPE(ga_client_class), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__ENUM, G_TYPE_NONE, 1, GA_TYPE_CLIENT_STATE); } void ga_client_dispose(GObject * object) { GaClient *self = GA_CLIENT(object); GaClientPrivate *priv = GA_CLIENT_GET_PRIVATE(self); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; if (self->avahi_client) { avahi_client_free(self->avahi_client); self->avahi_client = NULL; } if (priv->poll) { avahi_glib_poll_free(priv->poll); priv->poll = NULL; } /* release any references held by the object here */ if (G_OBJECT_CLASS(ga_client_parent_class)->dispose) G_OBJECT_CLASS(ga_client_parent_class)->dispose(object); } void ga_client_finalize(GObject * object) { /* free any data held directly by the object here */ G_OBJECT_CLASS(ga_client_parent_class)->finalize(object); } GaClient *ga_client_new(GaClientFlags flags) { return g_object_new(GA_TYPE_CLIENT, "flags", flags, NULL); } static GQuark detail_for_state(AvahiClientState state) { static struct { AvahiClientState state; const gchar *name; GQuark quark; } states[] = { { AVAHI_CLIENT_S_REGISTERING, "registering", 0}, { AVAHI_CLIENT_S_RUNNING, "running", 0}, { AVAHI_CLIENT_S_COLLISION, "collistion", 0}, { AVAHI_CLIENT_FAILURE, "failure", 0}, { AVAHI_CLIENT_CONNECTING, "connecting", 0}, { 0, NULL, 0} }; int i; for (i = 0; states[i].name != NULL; i++) { if (state != states[i].state) continue; if (!states[i].quark) states[i].quark = g_quark_from_static_string(states[i].name); /* printf("Detail: %s\n", states[i].name); */ return states[i].quark; } g_assert_not_reached(); } static void _avahi_client_cb(AvahiClient * c, AvahiClientState state, void *data) { GaClient *self = GA_CLIENT(data); GaClientPrivate *priv = GA_CLIENT_GET_PRIVATE(self); /* printf("CLIENT CB: %d\n", state); */ /* Avahi can call the callback before return from _client_new */ if (self->avahi_client == NULL) self->avahi_client = c; g_assert(c == self->avahi_client); priv->state = state; g_signal_emit(self, signals[STATE_CHANGED], detail_for_state(state), state); } gboolean ga_client_start(GaClient * client, GError ** error) { return ga_client_start_in_context(client, NULL, error); } gboolean ga_client_start_in_context(GaClient * client, GMainContext * context, GError ** error) { GaClientPrivate *priv = GA_CLIENT_GET_PRIVATE(client); AvahiClient *aclient; int aerror; g_assert(client->avahi_client == NULL); g_assert(priv->poll == NULL); avahi_set_allocator(avahi_glib_allocator()); priv->poll = avahi_glib_poll_new(context, G_PRIORITY_DEFAULT); aclient = avahi_client_new(avahi_glib_poll_get(priv->poll), priv->flags, _avahi_client_cb, client, &aerror); if (aclient == NULL) { if (error != NULL) { *error = g_error_new(GA_ERROR, aerror, "Failed to create avahi client: %s", avahi_strerror(aerror)); } return FALSE; } client->avahi_client = aclient; return TRUE; } avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-entry-group.c0000644000000000000000000000013213130651643017730 xustar0030 mtime=1499681699.115370395 30 atime=1499681850.215985382 30 ctime=1499681850.459979937 avahi-0.7/avahi-gobject/ga-entry-group.c0000644000175000017500000005404613130651643021350 0ustar00lathiatlathiat00000000000000/* * ga-entry-group.c - Source for GaEntryGroup * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "ga-error.h" #include "ga-entry-group.h" #include "ga-entry-group-enumtypes.h" G_DEFINE_TYPE(GaEntryGroup, ga_entry_group, G_TYPE_OBJECT) static void _free_service(gpointer data); /* signal enum */ enum { STATE_CHANGED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; /* properties */ enum { PROP_STATE = 1 }; /* private structures */ typedef struct _GaEntryGroupPrivate GaEntryGroupPrivate; struct _GaEntryGroupPrivate { GaEntryGroupState state; GaClient *client; AvahiEntryGroup *group; GHashTable *services; gboolean dispose_has_run; }; typedef struct _GaEntryGroupServicePrivate GaEntryGroupServicePrivate; struct _GaEntryGroupServicePrivate { GaEntryGroupService public; GaEntryGroup *group; gboolean frozen; GHashTable *entries; }; typedef struct _GaEntryGroupServiceEntry GaEntryGroupServiceEntry; struct _GaEntryGroupServiceEntry { guint8 *value; gsize size; }; #define GA_ENTRY_GROUP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GA_TYPE_ENTRY_GROUP, GaEntryGroupPrivate)) static void ga_entry_group_init(GaEntryGroup * obj) { GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(obj); /* allocate any data required by the object here */ priv->state = GA_ENTRY_GROUP_STATE_UNCOMMITED; priv->client = NULL; priv->group = NULL; priv->services = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, _free_service); } static void ga_entry_group_dispose(GObject * object); static void ga_entry_group_finalize(GObject * object); static void ga_entry_group_get_property(GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { GaEntryGroup *group = GA_ENTRY_GROUP(object); GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group); switch (property_id) { case PROP_STATE: g_value_set_enum(value, priv->state); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_entry_group_class_init(GaEntryGroupClass * ga_entry_group_class) { GObjectClass *object_class = G_OBJECT_CLASS(ga_entry_group_class); GParamSpec *param_spec; g_type_class_add_private(ga_entry_group_class, sizeof (GaEntryGroupPrivate)); object_class->dispose = ga_entry_group_dispose; object_class->finalize = ga_entry_group_finalize; object_class->get_property = ga_entry_group_get_property; param_spec = g_param_spec_enum("state", "Entry Group state", "The state of the avahi entry group", GA_TYPE_ENTRY_GROUP_STATE, GA_ENTRY_GROUP_STATE_UNCOMMITED, G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_STATE, param_spec); signals[STATE_CHANGED] = g_signal_new("state-changed", G_OBJECT_CLASS_TYPE(ga_entry_group_class), G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__ENUM, G_TYPE_NONE, 1, GA_TYPE_ENTRY_GROUP_STATE); } void ga_entry_group_dispose(GObject * object) { GaEntryGroup *self = GA_ENTRY_GROUP(object); GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(self); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; /* release any references held by the object here */ if (priv->group) { avahi_entry_group_free(priv->group); priv->group = NULL; } if (priv->client) { g_object_unref(priv->client); priv->client = NULL; } if (G_OBJECT_CLASS(ga_entry_group_parent_class)->dispose) G_OBJECT_CLASS(ga_entry_group_parent_class)->dispose(object); } void ga_entry_group_finalize(GObject * object) { GaEntryGroup *self = GA_ENTRY_GROUP(object); GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(self); /* free any data held directly by the object here */ g_hash_table_destroy(priv->services); priv->services = NULL; G_OBJECT_CLASS(ga_entry_group_parent_class)->finalize(object); } static void _free_service(gpointer data) { GaEntryGroupService *s = (GaEntryGroupService *) data; GaEntryGroupServicePrivate *p = (GaEntryGroupServicePrivate *) s; g_free(s->name); g_free(s->type); g_free(s->domain); g_free(s->host); g_hash_table_destroy(p->entries); g_free(s); } static GQuark detail_for_state(AvahiEntryGroupState state) { static struct { AvahiEntryGroupState state; const gchar *name; GQuark quark; } states[] = { { AVAHI_ENTRY_GROUP_UNCOMMITED, "uncommited", 0}, { AVAHI_ENTRY_GROUP_REGISTERING, "registering", 0}, { AVAHI_ENTRY_GROUP_ESTABLISHED, "established", 0}, { AVAHI_ENTRY_GROUP_COLLISION, "collistion", 0}, { AVAHI_ENTRY_GROUP_FAILURE, "failure", 0}, { 0, NULL, 0} }; int i; for (i = 0; states[i].name != NULL; i++) { if (state != states[i].state) continue; if (!states[i].quark) states[i].quark = g_quark_from_static_string(states[i].name); return states[i].quark; } g_assert_not_reached(); } static void _avahi_entry_group_cb(AvahiEntryGroup * g, AvahiEntryGroupState state, void *data) { GaEntryGroup *self = GA_ENTRY_GROUP(data); GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(self); /* Avahi can call the callback before return from _client_new */ if (priv->group == NULL) priv->group = g; g_assert(g == priv->group); priv->state = state; g_signal_emit(self, signals[STATE_CHANGED], detail_for_state(state), state); } GaEntryGroup *ga_entry_group_new(void) { return g_object_new(GA_TYPE_ENTRY_GROUP, NULL); } static guint _entry_hash(gconstpointer v) { const GaEntryGroupServiceEntry *entry = (const GaEntryGroupServiceEntry *) v; guint32 h = 0; guint i; for (i = 0; i < entry->size; i++) { h = (h << 5) - h + entry->value[i]; } return h; } static gboolean _entry_equal(gconstpointer a, gconstpointer b) { const GaEntryGroupServiceEntry *aentry = (const GaEntryGroupServiceEntry *) a; const GaEntryGroupServiceEntry *bentry = (const GaEntryGroupServiceEntry *) b; if (aentry->size != bentry->size) { return FALSE; } return memcmp(aentry->value, bentry->value, aentry->size) == 0; } static GaEntryGroupServiceEntry *_new_entry(const guint8 * value, gsize size) { GaEntryGroupServiceEntry *entry; if (value == NULL) { return NULL; } entry = g_slice_new(GaEntryGroupServiceEntry); entry->value = g_malloc(size + 1); memcpy(entry->value, value, size); /* for string keys, make sure it's NUL-terminated too */ entry->value[size] = 0; entry->size = size; return entry; } static void _set_entry(GHashTable * table, const guint8 * key, gsize ksize, const guint8 * value, gsize vsize) { g_hash_table_insert(table, _new_entry(key, ksize), _new_entry(value, vsize)); } static void _free_entry(gpointer data) { GaEntryGroupServiceEntry *entry = (GaEntryGroupServiceEntry *) data; if (entry == NULL) { return; } g_free(entry->value); g_slice_free(GaEntryGroupServiceEntry, entry); } static GHashTable *_string_list_to_hash(AvahiStringList * list) { GHashTable *ret; AvahiStringList *t; ret = g_hash_table_new_full(_entry_hash, _entry_equal, _free_entry, _free_entry); for (t = list; t != NULL; t = avahi_string_list_get_next(t)) { gchar *key; gchar *value; gsize size; int r; /* list_get_pair only fails if if memory allocation fails. Normal glib * behaviour is to assert/abort when that happens */ r = avahi_string_list_get_pair(t, &key, &value, &size); g_assert(r == 0); if (value == NULL) { _set_entry(ret, t->text, t->size, NULL, 0); } else { _set_entry(ret, (const guint8 *) key, strlen(key), (const guint8 *) value, size); } avahi_free(key); avahi_free(value); } return ret; } static void _hash_to_string_list_foreach(gpointer key, gpointer value, gpointer data) { AvahiStringList **list = (AvahiStringList **) data; GaEntryGroupServiceEntry *kentry = (GaEntryGroupServiceEntry *) key; GaEntryGroupServiceEntry *ventry = (GaEntryGroupServiceEntry *) value; if (value != NULL) { *list = avahi_string_list_add_pair_arbitrary(*list, (gchar *) kentry->value, ventry->value, ventry->size); } else { *list = avahi_string_list_add_arbitrary(*list, kentry->value, kentry->size); } } static AvahiStringList *_hash_to_string_list(GHashTable * table) { AvahiStringList *list = NULL; g_hash_table_foreach(table, _hash_to_string_list_foreach, (gpointer) & list); return list; } GaEntryGroupService *ga_entry_group_add_service_strlist(GaEntryGroup * group, const gchar * name, const gchar * type, guint16 port, GError ** error, AvahiStringList * txt) { return ga_entry_group_add_service_full_strlist(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, type, NULL, NULL, port, error, txt); } GaEntryGroupService *ga_entry_group_add_service_full_strlist(GaEntryGroup * group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const gchar * name, const gchar * type, const gchar * domain, const gchar * host, guint16 port, GError ** error, AvahiStringList * txt) { GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group); GaEntryGroupServicePrivate *service = NULL; int ret; ret = avahi_entry_group_add_service_strlst(priv->group, interface, protocol, flags, name, type, domain, host, port, txt); if (ret) { if (error != NULL) { *error = g_error_new(GA_ERROR, ret, "Adding service to group failed: %s", avahi_strerror(ret)); } goto out; } service = g_new0(GaEntryGroupServicePrivate, 1); service->public.interface = interface; service->public.protocol = protocol; service->public.flags = flags; service->public.name = g_strdup(name); service->public.type = g_strdup(type); service->public.domain = g_strdup(domain); service->public.host = g_strdup(host); service->public.port = port; service->group = group; service->frozen = FALSE; service->entries = _string_list_to_hash(txt); g_hash_table_insert(priv->services, group, service); out: return (GaEntryGroupService *) service; } GaEntryGroupService *ga_entry_group_add_service(GaEntryGroup * group, const gchar * name, const gchar * type, guint16 port, GError ** error, ...) { GaEntryGroupService *ret; AvahiStringList *txt = NULL; va_list va; va_start(va, error); txt = avahi_string_list_new_va(va); ret = ga_entry_group_add_service_full_strlist(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, type, NULL, NULL, port, error, txt); avahi_string_list_free(txt); va_end(va); return ret; } GaEntryGroupService *ga_entry_group_add_service_full(GaEntryGroup * group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const gchar * name, const gchar * type, const gchar * domain, const gchar * host, guint16 port, GError ** error, ...) { GaEntryGroupService *ret; AvahiStringList *txt = NULL; va_list va; va_start(va, error); txt = avahi_string_list_new_va(va); ret = ga_entry_group_add_service_full_strlist(group, interface, protocol, flags, name, type, domain, host, port, error, txt); avahi_string_list_free(txt); va_end(va); return ret; } gboolean ga_entry_group_add_record(GaEntryGroup * group, AvahiPublishFlags flags, const gchar * name, guint16 type, guint32 ttl, const void *rdata, gsize size, GError ** error) { return ga_entry_group_add_record_full(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, flags, name, AVAHI_DNS_CLASS_IN, type, ttl, rdata, size, error); } gboolean ga_entry_group_add_record_full(GaEntryGroup * group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const gchar * name, guint16 clazz, guint16 type, guint32 ttl, const void *rdata, gsize size, GError ** error) { int ret; GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group); g_assert(group != NULL && priv->group != NULL); ret = avahi_entry_group_add_record(priv->group, interface, protocol, flags, name, clazz, type, ttl, rdata, size); if (ret) { if (error != NULL) { *error = g_error_new(GA_ERROR, ret, "Setting raw record failed: %s", avahi_strerror(ret)); } return FALSE; } return TRUE; } void ga_entry_group_service_freeze(GaEntryGroupService * service) { GaEntryGroupServicePrivate *p = (GaEntryGroupServicePrivate *) service; p->frozen = TRUE; } gboolean ga_entry_group_service_thaw(GaEntryGroupService * service, GError ** error) { GaEntryGroupServicePrivate *priv = (GaEntryGroupServicePrivate *) service; int ret; gboolean result = TRUE; AvahiStringList *txt = _hash_to_string_list(priv->entries); ret = avahi_entry_group_update_service_txt_strlst (GA_ENTRY_GROUP_GET_PRIVATE(priv->group)->group, service->interface, service->protocol, service->flags, service->name, service->type, service->domain, txt); if (ret) { if (error != NULL) { *error = g_error_new(GA_ERROR, ret, "Updating txt record failed: %s", avahi_strerror(ret)); } result = FALSE; } avahi_string_list_free(txt); priv->frozen = FALSE; return result; } gboolean ga_entry_group_service_set(GaEntryGroupService * service, const gchar * key, const gchar * value, GError ** error) { return ga_entry_group_service_set_arbitrary(service, key, (const guint8 *) value, strlen(value), error); } gboolean ga_entry_group_service_set_arbitrary(GaEntryGroupService * service, const gchar * key, const guint8 * value, gsize size, GError ** error) { GaEntryGroupServicePrivate *priv = (GaEntryGroupServicePrivate *) service; _set_entry(priv->entries, (const guint8 *) key, strlen(key), value, size); if (!priv->frozen) return ga_entry_group_service_thaw(service, error); else return TRUE; } gboolean ga_entry_group_service_remove_key(GaEntryGroupService * service, const gchar * key, GError ** error) { GaEntryGroupServicePrivate *priv = (GaEntryGroupServicePrivate *) service; GaEntryGroupServiceEntry entry; entry.value = (void*) key; entry.size = strlen(key); g_hash_table_remove(priv->entries, &entry); if (!priv->frozen) return ga_entry_group_service_thaw(service, error); else return TRUE; } gboolean ga_entry_group_attach(GaEntryGroup * group, GaClient * client, GError ** error) { GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group); g_return_val_if_fail(client->avahi_client, FALSE); g_assert(priv->client == NULL || priv->client == client); g_assert(priv->group == NULL); priv->client = client; g_object_ref(client); priv->group = avahi_entry_group_new(client->avahi_client, _avahi_entry_group_cb, group); if (priv->group == NULL) { if (error != NULL) { int aerrno = avahi_client_errno(client->avahi_client); *error = g_error_new(GA_ERROR, aerrno, "Attaching group failed: %s", avahi_strerror(aerrno)); } return FALSE; } return TRUE; } gboolean ga_entry_group_commit(GaEntryGroup * group, GError ** error) { GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group); int ret; ret = avahi_entry_group_commit(priv->group); if (ret) { if (error != NULL) { *error = g_error_new(GA_ERROR, ret, "Committing group failed: %s", avahi_strerror(ret)); } return FALSE; } return TRUE; } gboolean ga_entry_group_reset(GaEntryGroup * group, GError ** error) { GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group); int ret; ret = avahi_entry_group_reset(priv->group); if (ret) { if (error != NULL) { *error = g_error_new(GA_ERROR, ret, "Resetting group failed: %s", avahi_strerror(ret)); } return FALSE; } return TRUE; } avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-service-browser.h0000644000000000000000000000013213130651643020563 xustar0030 mtime=1499681699.119370306 30 atime=1499681850.215985382 30 ctime=1499681850.459979937 avahi-0.7/avahi-gobject/ga-service-browser.h0000644000175000017500000000475413130651643022204 0ustar00lathiatlathiat00000000000000/* * ga-service-browser.h - Header for GaServiceBrowser * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __GA_SERVICE_BROWSER_H__ #define __GA_SERVICE_BROWSER_H__ #include #include #include #include "ga-client.h" #include "ga-enums.h" G_BEGIN_DECLS typedef struct _GaServiceBrowser GaServiceBrowser; typedef struct _GaServiceBrowserClass GaServiceBrowserClass; struct _GaServiceBrowserClass { GObjectClass parent_class; }; struct _GaServiceBrowser { GObject parent; }; GType ga_service_browser_get_type(void); /* TYPE MACROS */ #define GA_TYPE_SERVICE_BROWSER \ (ga_service_browser_get_type()) #define GA_SERVICE_BROWSER(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), GA_TYPE_SERVICE_BROWSER, GaServiceBrowser)) #define GA_SERVICE_BROWSER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass), GA_TYPE_SERVICE_BROWSER, GaServiceBrowserClass)) #define IS_GA_SERVICE_BROWSER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GA_TYPE_SERVICE_BROWSER)) #define IS_GA_SERVICE_BROWSER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass), GA_TYPE_SERVICE_BROWSER)) #define GA_SERVICE_BROWSER_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GA_TYPE_SERVICE_BROWSER, GaServiceBrowserClass)) GaServiceBrowser *ga_service_browser_new(const gchar * type); GaServiceBrowser *ga_service_browser_new_full(AvahiIfIndex interface, AvahiProtocol protocol, const gchar * type, gchar * domain, GaLookupFlags flags); gboolean ga_service_browser_attach(GaServiceBrowser * browser, GaClient * client, GError ** error); G_END_DECLS #endif /* #ifndef __GA_SERVICE_BROWSER_H__ */ avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-record-browser.c0000644000000000000000000000013213130651643020374 xustar0030 mtime=1499681699.119370306 30 atime=1499681850.215985382 30 ctime=1499681850.463979847 avahi-0.7/avahi-gobject/ga-record-browser.c0000644000175000017500000003444013130651643022010 0ustar00lathiatlathiat00000000000000/* * ga-record-browser.c - Source for GaRecordBrowser * Copyright (C) 2007 Collabora Ltd. * @author Sjoerd Simons * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "ga-record-browser.h" #include "signals-marshal.h" #include "ga-error.h" #include "ga-enums-enumtypes.h" G_DEFINE_TYPE(GaRecordBrowser, ga_record_browser, G_TYPE_OBJECT) /* signal enum */ enum { NEW, REMOVED, FAILURE, ALL_FOR_NOW, CACHE_EXHAUSTED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; /* properties */ enum { PROP_PROTOCOL = 1, PROP_IFINDEX, PROP_NAME, PROP_CLASS, PROP_TYPE, PROP_FLAGS }; /* private structure */ typedef struct _GaRecordBrowserPrivate GaRecordBrowserPrivate; struct _GaRecordBrowserPrivate { gboolean dispose_has_run; GaClient *client; AvahiRecordBrowser *browser; AvahiProtocol protocol; AvahiIfIndex interface; gchar *name; guint16 class; guint16 type; AvahiLookupFlags flags; }; #define GA_RECORD_BROWSER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GA_TYPE_RECORD_BROWSER, GaRecordBrowserPrivate)) static void ga_record_browser_init(AVAHI_GCC_UNUSED GaRecordBrowser * obj) { /* allocate any data required by the object here */ } static void ga_record_browser_dispose(GObject * object); static void ga_record_browser_finalize(GObject * object); static void ga_record_browser_set_property(GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { GaRecordBrowser *browser = GA_RECORD_BROWSER(object); GaRecordBrowserPrivate *priv = GA_RECORD_BROWSER_GET_PRIVATE(browser); g_assert(priv->browser == NULL); switch (property_id) { case PROP_PROTOCOL: priv->protocol = g_value_get_enum(value); break; case PROP_IFINDEX: priv->interface = g_value_get_int(value); break; case PROP_NAME: priv->name = g_value_dup_string(value); break; case PROP_CLASS: priv->class = g_value_get_uint(value); break; case PROP_TYPE: priv->type = g_value_get_uint(value); break; case PROP_FLAGS: priv->flags = g_value_get_enum(value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_record_browser_get_property(GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { GaRecordBrowser *browser = GA_RECORD_BROWSER(object); GaRecordBrowserPrivate *priv = GA_RECORD_BROWSER_GET_PRIVATE(browser); switch (property_id) { case PROP_PROTOCOL: g_value_set_int(value, priv->protocol); break; case PROP_IFINDEX: g_value_set_int(value, priv->interface); break; case PROP_TYPE: g_value_set_uint(value, priv->type); break; case PROP_CLASS: g_value_set_uint(value, priv->class); break; case PROP_NAME: g_value_set_string(value, priv->name); break; case PROP_FLAGS: g_value_set_enum(value, priv->flags); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); break; } } static void ga_record_browser_class_init(GaRecordBrowserClass * ga_record_browser_class) { GObjectClass *object_class = G_OBJECT_CLASS(ga_record_browser_class); GParamSpec *param_spec; g_type_class_add_private(ga_record_browser_class, sizeof (GaRecordBrowserPrivate)); object_class->dispose = ga_record_browser_dispose; object_class->finalize = ga_record_browser_finalize; object_class->set_property = ga_record_browser_set_property; object_class->get_property = ga_record_browser_get_property; signals[NEW] = g_signal_new("new-record", G_OBJECT_CLASS_TYPE(ga_record_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _ga_signals_marshal_VOID__INT_ENUM_STRING_UINT_UINT_POINTER_INT_INT, G_TYPE_NONE, 8, G_TYPE_INT, GA_TYPE_PROTOCOL, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_POINTER, G_TYPE_INT, GA_TYPE_LOOKUP_RESULT_FLAGS); signals[REMOVED] = g_signal_new("removed-record", G_OBJECT_CLASS_TYPE(ga_record_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, _ga_signals_marshal_VOID__INT_ENUM_STRING_UINT_UINT_POINTER_INT_INT, G_TYPE_NONE, 8, G_TYPE_INT, GA_TYPE_PROTOCOL, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_POINTER, G_TYPE_INT, GA_TYPE_LOOKUP_RESULT_FLAGS); signals[ALL_FOR_NOW] = g_signal_new("all-for-now", G_OBJECT_CLASS_TYPE(ga_record_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[CACHE_EXHAUSTED] = g_signal_new("cache-exhausted", G_OBJECT_CLASS_TYPE(ga_record_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); signals[FAILURE] = g_signal_new("failure", G_OBJECT_CLASS_TYPE(ga_record_browser_class), G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER); param_spec = g_param_spec_enum("protocol", "Avahi protocol to browse", "Avahi protocol to browse", GA_TYPE_PROTOCOL, GA_PROTOCOL_UNSPEC, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_PROTOCOL, param_spec); param_spec = g_param_spec_int("interface", "interface index", "Interface use for browser", AVAHI_IF_UNSPEC, G_MAXINT, AVAHI_IF_UNSPEC, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_IFINDEX, param_spec); param_spec = g_param_spec_string("name", "record name", "Record name to browse for", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_NAME, param_spec); param_spec = g_param_spec_uint("type", "record type", "Record type to browse for", 0, G_MAXUINT16, 0, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_TYPE, param_spec); param_spec = g_param_spec_uint("class", "record class", "Record class to browse for", 0, G_MAXUINT16, 0, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_CLASS, param_spec); param_spec = g_param_spec_enum("flags", "Lookup flags for the browser", "Browser lookup flags", GA_TYPE_LOOKUP_FLAGS, GA_LOOKUP_NO_FLAGS, G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB); g_object_class_install_property(object_class, PROP_FLAGS, param_spec); } void ga_record_browser_dispose(GObject * object) { GaRecordBrowser *self = GA_RECORD_BROWSER(object); GaRecordBrowserPrivate *priv = GA_RECORD_BROWSER_GET_PRIVATE(self); if (priv->dispose_has_run) return; priv->dispose_has_run = TRUE; /* release any references held by the object here */ if (priv->client) g_object_unref(priv->client); priv->client = NULL; if (priv->browser) avahi_record_browser_free(priv->browser); priv->browser = NULL; if (G_OBJECT_CLASS(ga_record_browser_parent_class)->dispose) G_OBJECT_CLASS(ga_record_browser_parent_class)->dispose(object); } void ga_record_browser_finalize(GObject * object) { GaRecordBrowser *self = GA_RECORD_BROWSER(object); GaRecordBrowserPrivate *priv = GA_RECORD_BROWSER_GET_PRIVATE(self); /* free any data held directly by the object here */ g_free(priv->name); G_OBJECT_CLASS(ga_record_browser_parent_class)->finalize(object); } GaRecordBrowser *ga_record_browser_new(const gchar * name, guint16 type) { return ga_record_browser_new_full(AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, name, AVAHI_DNS_CLASS_IN, type, 0); } GaRecordBrowser *ga_record_browser_new_full(AvahiIfIndex interface, AvahiProtocol protocol, const gchar * name, guint16 clazz, guint16 type, GaLookupFlags flags) { return g_object_new(GA_TYPE_RECORD_BROWSER, "interface", interface, "protocol", protocol, "name", name, "class", clazz, "type", type, "flags", flags, NULL); } static void _avahi_record_browser_cb(AVAHI_GCC_UNUSED AvahiRecordBrowser * r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, uint16_t clazz, uint16_t type, const void *rdata, size_t rdata_size, AvahiLookupResultFlags flags, void *userdata) { GaRecordBrowser *self = GA_RECORD_BROWSER(userdata); GaRecordBrowserPrivate *priv = GA_RECORD_BROWSER_GET_PRIVATE(userdata); switch (event) { case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE:{ guint signalid = (event == AVAHI_BROWSER_NEW ? NEW : REMOVED); g_signal_emit(self, signals[signalid], 0, interface, protocol, name, clazz, type, rdata, rdata_size, flags); break; } case AVAHI_BROWSER_CACHE_EXHAUSTED: g_signal_emit(self, signals[CACHE_EXHAUSTED], 0); break; case AVAHI_BROWSER_ALL_FOR_NOW: g_signal_emit(self, signals[ALL_FOR_NOW], 0); break; case AVAHI_BROWSER_FAILURE:{ GError *error; int aerrno = avahi_client_errno(priv->client->avahi_client); error = g_error_new(GA_ERROR, aerrno, "Browsing failed: %s", avahi_strerror(aerrno)); g_signal_emit(self, signals[FAILURE], 0, error); g_error_free(error); break; } } } gboolean ga_record_browser_attach(GaRecordBrowser * browser, GaClient * client, GError ** error) { GaRecordBrowserPrivate *priv = GA_RECORD_BROWSER_GET_PRIVATE(browser); priv->client = g_object_ref(client); priv->browser = avahi_record_browser_new(client->avahi_client, priv->interface, priv->protocol, priv->name, priv->class, priv->type, priv->flags, _avahi_record_browser_cb, browser); if (priv->browser == NULL) { if (error != NULL) { int aerrno = avahi_client_errno(client->avahi_client); *error = g_error_new(GA_ERROR, aerrno, "Attaching record browser failed: %s", avahi_strerror(aerrno)); } return FALSE; } return TRUE; } avahi-0.7/avahi-gobject/PaxHeaders.10109/ga-service-resolver.h0000644000000000000000000000013213130651643020741 xustar0030 mtime=1499681699.119370306 30 atime=1499681850.215985382 30 ctime=1499681850.459979937 avahi-0.7/avahi-gobject/ga-service-resolver.h0000644000175000017500000000535713130651643022362 0ustar00lathiatlathiat00000000000000/* * ga-service-resolver.h - Header for GaServiceResolver * Copyright (C) 2006-2007 Collabora Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef __GA_SERVICE_RESOLVER_H__ #define __GA_SERVICE_RESOLVER_H__ #include #include #include "ga-client.h" #include "ga-enums.h" G_BEGIN_DECLS typedef struct _GaServiceResolver GaServiceResolver; typedef struct _GaServiceResolverClass GaServiceResolverClass; struct _GaServiceResolverClass { GObjectClass parent_class; }; struct _GaServiceResolver { GObject parent; }; GType ga_service_resolver_get_type(void); /* TYPE MACROS */ #define GA_TYPE_SERVICE_RESOLVER \ (ga_service_resolver_get_type()) #define GA_SERVICE_RESOLVER(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), GA_TYPE_SERVICE_RESOLVER, GaServiceResolver)) #define GA_SERVICE_RESOLVER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST((klass), GA_TYPE_SERVICE_RESOLVER, GaServiceResolverClass)) #define IS_GA_SERVICE_RESOLVER(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE((obj), GA_TYPE_SERVICE_RESOLVER)) #define IS_GA_SERVICE_RESOLVER_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass), GA_TYPE_SERVICE_RESOLVER)) #define GA_SERVICE_RESOLVER_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GA_TYPE_SERVICE_RESOLVER, GaServiceResolverClass)) GaServiceResolver *ga_service_resolver_new(AvahiIfIndex interface, AvahiProtocol protocol, const gchar * name, const gchar * type, const gchar * domain, AvahiProtocol address_protocol, GaLookupFlags flags); gboolean ga_service_resolver_attach(GaServiceResolver * resolver, GaClient * client, GError ** error); gboolean ga_service_resolver_get_address(GaServiceResolver * resolver, AvahiAddress * address, uint16_t * port); G_END_DECLS #endif /* #ifndef __GA_SERVICE_RESOLVER_H__ */ avahi-0.7/avahi-gobject/PaxHeaders.10109/AvahiCore-0.6.gir0000644000000000000000000000013113130651643017550 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 29 ctime=1499681850.47197967 avahi-0.7/avahi-gobject/AvahiCore-0.6.gir0000644000175000017500000000443113130651643021162 0ustar00lathiatlathiat00000000000000 avahi-0.7/PaxHeaders.10109/ABOUT-NLS0000644000000000000000000000013013130652004013416 xustar0030 mtime=1499681796.605183224 30 atime=1499681796.605183224 28 ctime=1499681849.9999902 avahi-0.7/ABOUT-NLS0000644000175000017500000026747413130652004015053 0ustar00lathiatlathiat000000000000001 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this 'ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU 'gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU 'gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU 'gettext'. Other packages have their own ways to internationalization, predating GNU 'gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU 'gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU 'gettext' installed on your system and run configure without an option for your new package, 'configure' will probably detect the previously built and installed 'libintl' library and will decide to use it. If not, you may have to to use the '--with-libintl-prefix' option to tell 'configure' where to look for it. Internationalized packages usually have many 'po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at 'configure' time by using the '--disable-nls' switch, all available translations are installed together with the package. However, the environment variable 'LINGUAS' may be set, prior to configuration, to limit the installed set. 'LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the 'LANG' environment variable to the appropriate 'LL_CC' combination. If you happen to have the 'LC_ALL' or some other 'LC_xxx' environment variables set, you should unset them before setting 'LANG', otherwise the setting of 'LANG' will not have the desired effect. Here 'LL' is an ISO 639 two-letter language code, and 'CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute 'setenv LANG de_DE' (in 'csh'), 'export LANG; LANG=de_DE' (in 'sh') or 'export LANG=de_DE' (in 'bash'). This can be done from your '.login' or '.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, 'de_AT' is used for Austria, and 'pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of 'LL_CC', with 'LL' denoting the language and 'CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as 'LL' or 'LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command 'locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called 'LANGUAGE'. GNU 'gettext' gives preference to 'LANGUAGE' over 'LANG' for the purpose of message handling, but you still need to have 'LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set 'LANGUAGE' to 'sv:de' while leaving 'LANG' to 'sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from 'no' to 'nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under 'nb' and some older ones under 'no', it's recommended for Norwegian users to set 'LANGUAGE' to 'nb:no' so that both newer and older translations are used. In the 'LANGUAGE' environment variable, but not in the 'LANG' environment variable, 'LL_CC' combinations can be abbreviated as 'LL' to denote the language's main dialect. For example, 'de' is equivalent to 'de_DE' (German as spoken in Germany), and 'pt' to 'pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, 'http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has '-request' appended. For example, speakers of Swedish can send a message to 'sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to 'coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of Jun 2014. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be bg bn bn_IN bs ca crh cs +---------------------------------------------------+ a2ps | [] [] [] | aegis | | anubis | | aspell | [] [] [] | bash | [] [] [] | bfd | | binutils | [] | bison | | bison-runtime | [] | buzztrax | [] | ccd2cue | | ccide | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | [] | datamash | | denemo | [] [] | dfarc | [] | dialog | [] [] [] | dico | | diffutils | [] | dink | [] | direvent | | doodle | [] | dos2unix | | dos2unix-man | | e2fsprogs | [] [] | enscript | [] | exif | [] | fetchmail | [] [] | findutils | [] | flex | [] | freedink | [] [] | fusionforge | | gas | | gawk | [] | gcal | [] | gcc | | gdbm | | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] | gettext-tools | [] [] | gjay | | glunarclock | [] [] [] | gnubiff | [] | gnubik | [] | gnucash | () () [] | gnuchess | | gnulib | [] | gnunet | | gnunet-gtk | | gold | | gphoto2 | [] | gprof | [] | gramadoir | | grep | [] [] [] | grub | [] | gsasl | | gss | | gst-plugins-bad | [] [] | gst-plugins-base | [] [] [] | gst-plugins-good | [] [] [] | gst-plugins-ugly | [] [] [] | gstreamer | [] [] [] [] | gtick | [] | gtkam | [] [] | gtkspell | [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] | hello | [] | help2man | | help2man-texi | | hylafax | | idutils | | iso_15924 | [] | iso_3166 | [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | iso_639_5 | | jwhois | | kbd | [] | klavaro | [] [] [] [] [] | ld | [] | leafpad | [] [] [] [] | libc | [] [] [] | libexif | () | libextractor | | libgnutls | [] | libgphoto2 | [] | libgphoto2_port | [] | libgsasl | | libiconv | [] [] | libidn | [] | liferea | [] [] [] [] | lilypond | [] [] | lordsawar | [] | lprng | | lynx | [] [] | m4 | [] | mailfromd | | mailutils | | make | [] | man-db | [] [] | man-db-manpages | | midi-instruments | [] [] [] | minicom | [] | mkisofs | [] | myserver | [] | nano | [] [] [] | opcodes | | parted | [] | pies | | pnmixer | | popt | [] | procps-ng | | procps-ng-man | | psmisc | [] | pspp | [] | pushover | [] | pwdutils | | pyspread | | radius | [] | recode | [] [] [] | recutils | | rpm | | rush | | sarg | | sed | [] [] [] [] | sharutils | [] | shishi | | skribilo | | solfege | [] [] | solfege-manual | | spotmachine | | sudo | [] [] | sudoers | [] [] | sysstat | [] | tar | [] [] [] | texinfo | [] [] | texinfo_document | [] [] | tigervnc | [] | tin | | tin-man | | tracgoogleappsa... | | trader | | util-linux | [] | ve | | vice | | vmm | | vorbis-tools | [] | wastesedge | | wcd | | wcd-man | | wdiff | [] [] | wget | [] | wyslij-po | | xboard | | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ af am an ar as ast az be bg bn bn_IN bs ca crh cs 4 0 2 5 3 11 0 8 25 3 3 1 55 4 74 da de el en en_GB en_ZA eo es et eu fa fi fr +--------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] [] | aegis | [] [] [] [] | anubis | [] [] [] [] [] | aspell | [] [] [] [] [] [] [] | bash | [] [] [] | bfd | [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] [] [] [] [] | bison-runtime | [] [] [] [] [] [] [] [] | buzztrax | [] [] [] [] | ccd2cue | [] [] [] [] | ccide | [] [] [] [] [] [] | cflow | [] [] [] [] [] | clisp | [] [] [] [] [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] [] | cppi | [] [] [] [] [] | cpplib | [] [] [] [] [] [] | cryptsetup | [] [] [] [] [] | datamash | [] [] [] [] | denemo | [] | dfarc | [] [] [] [] [] [] | dialog | [] [] [] [] [] [] [] [] [] | dico | [] [] [] [] | diffutils | [] [] [] [] [] [] | dink | [] [] [] [] [] [] | direvent | [] [] [] [] | doodle | [] [] [] [] | dos2unix | [] [] [] [] [] | dos2unix-man | [] [] [] | e2fsprogs | [] [] [] [] [] | enscript | [] [] [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] () [] [] [] [] [] | findutils | [] [] [] [] [] [] [] [] | flex | [] [] [] [] [] [] | freedink | [] [] [] [] [] [] [] [] | fusionforge | [] [] [] | gas | [] [] [] | gawk | [] [] [] [] [] | gcal | [] [] [] [] | gcc | [] | gdbm | [] [] [] [] [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] | gjay | [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | () [] [] () | gnubik | [] [] [] [] [] | gnucash | [] () () () () () () | gnuchess | [] [] [] [] | gnulib | [] [] [] [] [] [] [] | gnunet | [] | gnunet-gtk | [] | gold | [] [] [] | gphoto2 | [] () [] [] | gprof | [] [] [] [] [] [] | gramadoir | [] [] [] [] [] | grep | [] [] [] [] [] [] [] | grub | [] [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] [] [] | gstreamer | [] [] [] [] [] [] [] | gtick | [] () [] [] [] | gtkam | [] () [] [] [] [] | gtkspell | [] [] [] [] [] [] [] [] | guix | [] [] | guix-packages | | gutenprint | [] [] [] [] | hello | [] [] [] [] [] [] [] [] | help2man | [] [] [] [] [] [] [] | help2man-texi | [] [] [] | hylafax | [] [] | idutils | [] [] [] [] [] | iso_15924 | [] () [] [] () [] () | iso_3166 | [] () [] [] [] [] () [] () | iso_3166_2 | [] () () () | iso_4217 | [] () [] [] [] () [] () | iso_639 | [] () [] [] () [] () | iso_639_3 | () () () | iso_639_5 | () () () | jwhois | [] [] [] [] [] | kbd | [] [] [] [] [] [] | klavaro | [] [] [] [] [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] [] () [] [] | libextractor | [] | libgnutls | [] [] [] [] | libgphoto2 | [] () [] | libgphoto2_port | [] () [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] [] | libidn | [] [] [] [] [] | liferea | [] () [] [] [] [] [] | lilypond | [] [] [] [] [] [] | lordsawar | [] [] | lprng | | lynx | [] [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | [] | mailutils | [] [] [] [] | make | [] [] [] [] [] | man-db | [] [] [] [] | man-db-manpages | [] [] | midi-instruments | [] [] [] [] [] [] [] [] [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] | myserver | [] [] [] [] | nano | [] [] [] [] [] [] [] | opcodes | [] [] [] [] [] | parted | [] [] [] | pies | [] | pnmixer | [] [] | popt | [] [] [] [] [] [] | procps-ng | [] [] | procps-ng-man | [] [] | psmisc | [] [] [] [] [] [] [] | pspp | [] [] [] | pushover | () [] [] [] | pwdutils | [] [] [] | pyspread | [] [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] | recutils | [] [] [] [] | rpm | [] [] [] [] [] | rush | [] [] [] | sarg | [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] [] [] | skribilo | [] [] [] | solfege | [] [] [] [] [] [] [] [] | solfege-manual | [] [] [] [] [] | spotmachine | [] [] [] [] [] | sudo | [] [] [] [] [] [] | sudoers | [] [] [] [] [] [] | sysstat | [] [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] [] | texinfo_document | [] [] [] [] | tigervnc | [] [] [] [] [] [] | tin | [] [] [] [] | tin-man | [] | tracgoogleappsa... | [] [] [] [] [] | trader | [] [] [] [] [] [] | util-linux | [] [] [] [] | ve | [] [] [] [] [] | vice | () () () | vmm | [] [] | vorbis-tools | [] [] [] [] | wastesedge | [] | wcd | [] [] [] [] | wcd-man | [] | wdiff | [] [] [] [] [] [] [] | wget | [] [] [] [] [] [] | wyslij-po | [] [] [] [] | xboard | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] [] | +--------------------------------------------------+ da de el en en_GB en_ZA eo es et eu fa fi fr 119 131 32 1 6 0 94 95 22 13 4 102 139 ga gd gl gu he hi hr hu hy ia id is it ja ka kk +-------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] | anubis | [] [] [] [] | aspell | [] [] [] [] [] | bash | [] [] [] [] | bfd | [] [] | binutils | [] [] [] | bison | [] | bison-runtime | [] [] [] [] [] [] [] [] | buzztrax | | ccd2cue | [] | ccide | [] [] | cflow | [] [] [] | clisp | | coreutils | [] [] | cpio | [] [] [] [] [] [] | cppi | [] [] [] [] [] | cpplib | [] [] | cryptsetup | [] | datamash | | denemo | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] | dink | [] | direvent | [] | doodle | [] [] | dos2unix | [] [] | dos2unix-man | | e2fsprogs | [] [] | enscript | [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] | findutils | [] [] [] [] [] [] [] | flex | [] | freedink | [] [] [] [] | fusionforge | | gas | [] | gawk | [] () [] | gcal | | gcc | | gdbm | | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] | gettext-tools | [] [] [] | gjay | [] | glunarclock | [] [] [] [] [] [] | gnubiff | [] [] () | gnubik | [] [] [] | gnucash | () () () () () | gnuchess | | gnulib | [] [] [] [] [] | gnunet | | gnunet-gtk | | gold | [] [] | gphoto2 | [] [] [] [] | gprof | [] [] [] [] | gramadoir | [] [] [] | grep | [] [] [] [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] | gst-plugins-base | [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] [] [] | hello | [] [] [] [] [] | help2man | [] [] [] | help2man-texi | | hylafax | [] | idutils | [] [] | iso_15924 | [] [] [] [] [] [] | iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] | iso_4217 | [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | iso_639_5 | | jwhois | [] [] [] [] | kbd | [] [] [] | klavaro | [] [] [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] | libgphoto2 | [] [] | libgphoto2_port | [] [] | libgsasl | [] [] [] [] | libiconv | [] [] [] [] [] [] [] | libidn | [] [] [] [] | liferea | [] [] [] [] [] | lilypond | [] | lordsawar | | lprng | [] | lynx | [] [] [] [] | m4 | [] [] [] [] [] | mailfromd | | mailutils | | make | [] [] [] [] | man-db | [] [] | man-db-manpages | [] [] | midi-instruments | [] [] [] [] [] [] [] [] [] | minicom | [] [] [] | mkisofs | [] [] | myserver | [] | nano | [] [] [] [] [] [] | opcodes | [] [] [] | parted | [] [] [] [] [] | pies | | pnmixer | [] [] | popt | [] [] [] [] [] [] [] [] [] [] | procps-ng | | procps-ng-man | | psmisc | [] [] [] [] | pspp | [] [] | pushover | [] | pwdutils | [] | pyspread | | radius | [] | recode | [] [] [] [] [] [] [] | recutils | | rpm | [] | rush | [] | sarg | | sed | [] [] [] [] [] [] [] | sharutils | | shishi | | skribilo | [] | solfege | [] [] | solfege-manual | | spotmachine | | sudo | [] [] [] [] | sudoers | [] [] [] | sysstat | [] [] [] [] | tar | [] [] [] [] [] [] | texinfo | [] [] [] | texinfo_document | [] [] [] | tigervnc | | tin | | tin-man | | tracgoogleappsa... | [] [] [] [] | trader | [] [] | util-linux | [] | ve | [] | vice | () () | vmm | | vorbis-tools | [] [] | wastesedge | [] | wcd | | wcd-man | | wdiff | [] [] [] | wget | [] [] [] [] | wyslij-po | [] [] [] | xboard | | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ ga gd gl gu he hi hr hu hy ia id is it ja ka kk 35 2 47 4 8 2 60 71 2 6 81 11 87 57 0 3 kn ko ku ky lg lt lv mk ml mn mr ms mt nb ne nl +--------------------------------------------------+ a2ps | [] [] | aegis | [] | anubis | [] [] [] | aspell | [] [] | bash | [] [] | bfd | | binutils | | bison | [] | bison-runtime | [] [] [] [] [] [] | buzztrax | | ccd2cue | | ccide | [] [] | cflow | [] | clisp | [] | coreutils | [] [] | cpio | [] | cppi | | cpplib | [] | cryptsetup | [] | datamash | [] [] | denemo | | dfarc | [] [] | dialog | [] [] [] [] [] [] | dico | | diffutils | [] [] [] | dink | [] | direvent | [] | doodle | [] | dos2unix | [] [] | dos2unix-man | [] | e2fsprogs | [] | enscript | [] | exif | [] [] [] | fetchmail | [] | findutils | [] [] | flex | [] | freedink | [] [] | fusionforge | | gas | | gawk | [] | gcal | | gcc | | gdbm | | gettext-examples | [] [] [] [] [] [] | gettext-runtime | [] [] [] | gettext-tools | [] | gjay | | glunarclock | [] [] | gnubiff | [] | gnubik | [] [] | gnucash | () () () () () () () [] | gnuchess | [] [] | gnulib | [] | gnunet | | gnunet-gtk | | gold | | gphoto2 | [] | gprof | [] [] | gramadoir | [] | grep | [] [] | grub | [] [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] | gst-plugins-base | [] [] [] | gst-plugins-good | [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | [] [] [] | gtick | [] | gtkam | [] [] | gtkspell | [] [] [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] | hello | [] [] [] | help2man | [] | help2man-texi | | hylafax | [] | idutils | [] | iso_15924 | () [] [] | iso_3166 | [] [] [] () [] [] [] [] [] [] | iso_3166_2 | () [] | iso_4217 | () [] [] [] | iso_639 | [] [] () [] [] [] [] | iso_639_3 | [] () [] | iso_639_5 | () | jwhois | [] [] | kbd | [] | klavaro | [] [] | ld | | leafpad | [] [] [] [] [] | libc | [] [] | libexif | [] | libextractor | [] | libgnutls | [] [] | libgphoto2 | [] | libgphoto2_port | [] | libgsasl | [] | libiconv | [] [] | libidn | [] | liferea | [] [] [] | lilypond | [] | lordsawar | | lprng | | lynx | [] | m4 | [] | mailfromd | | mailutils | | make | [] [] | man-db | [] | man-db-manpages | [] | midi-instruments | [] [] [] [] [] [] [] | minicom | [] | mkisofs | [] | myserver | | nano | [] [] [] | opcodes | [] | parted | [] [] | pies | | pnmixer | [] | popt | [] [] [] [] [] | procps-ng | | procps-ng-man | | psmisc | [] | pspp | [] [] | pushover | | pwdutils | [] | pyspread | | radius | [] | recode | [] [] | recutils | [] | rpm | [] | rush | [] | sarg | | sed | [] [] | sharutils | [] | shishi | | skribilo | | solfege | [] [] | solfege-manual | [] | spotmachine | [] | sudo | [] [] [] | sudoers | [] [] [] | sysstat | [] [] | tar | [] [] [] | texinfo | [] | texinfo_document | [] | tigervnc | [] | tin | | tin-man | | tracgoogleappsa... | [] [] [] | trader | [] | util-linux | [] | ve | [] | vice | [] | vmm | [] | vorbis-tools | [] | wastesedge | [] | wcd | [] | wcd-man | [] | wdiff | [] | wget | [] [] | wyslij-po | [] | xboard | [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +--------------------------------------------------+ kn ko ku ky lg lt lv mk ml mn mr ms mt nb ne nl 5 15 4 6 0 13 23 3 3 3 4 11 2 42 1 125 nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] [] [] | bash | [] [] [] [] [] [] | bfd | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] [] | buzztrax | [] | ccd2cue | [] [] | ccide | [] [] [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] | cpio | [] [] [] | cppi | [] [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | datamash | [] [] | denemo | | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | [] | diffutils | [] [] [] | dink | | direvent | [] [] [] | doodle | [] [] | dos2unix | [] [] [] [] | dos2unix-man | [] [] | e2fsprogs | [] | enscript | [] [] [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] [] [] [] | fusionforge | | gas | | gawk | [] | gcal | | gcc | | gdbm | [] [] [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] [] | gjay | [] | glunarclock | [] [] [] [] [] [] | gnubiff | [] | gnubik | [] [] [] [] | gnucash | () () () () () [] | gnuchess | [] [] | gnulib | [] [] [] [] [] | gnunet | | gnunet-gtk | | gold | | gphoto2 | [] [] [] [] [] | gprof | [] [] [] [] | gramadoir | [] [] | grep | [] [] [] [] [] [] | grub | [] [] [] [] [] | gsasl | [] [] [] | gss | [] [] [] [] | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] [] | gstreamer | [] [] [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] [] | hello | [] [] [] [] [] [] | help2man | [] [] [] [] | help2man-texi | [] | hylafax | | idutils | [] [] [] | iso_15924 | [] () [] [] [] [] | iso_3166 | [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] () [] | iso_4217 | [] [] () [] [] [] [] [] | iso_639 | [] [] [] () [] [] [] [] [] [] | iso_639_3 | [] () | iso_639_5 | () [] | jwhois | [] [] [] [] | kbd | [] [] | klavaro | [] [] [] [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] | libc | [] [] [] | libexif | [] () [] | libextractor | [] | libgnutls | [] | libgphoto2 | [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] [] | liferea | [] [] [] [] () [] [] | lilypond | | lordsawar | | lprng | [] | lynx | [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | midi-instruments | [] [] [] [] [] [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | [] [] | nano | [] [] [] [] [] [] | opcodes | | parted | [] [] [] [] [] [] | pies | [] | pnmixer | [] | popt | [] [] [] [] [] [] | procps-ng | [] | procps-ng-man | [] | psmisc | [] [] [] [] | pspp | [] [] | pushover | | pwdutils | [] | pyspread | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | recutils | [] [] | rpm | [] | rush | [] [] [] | sarg | [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] | shishi | [] [] | skribilo | [] | solfege | [] [] [] | solfege-manual | [] [] | spotmachine | [] [] | sudo | [] [] [] [] [] [] | sudoers | [] [] [] [] | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] | texinfo | [] [] [] | texinfo_document | [] [] | tigervnc | [] [] [] | tin | [] | tin-man | | tracgoogleappsa... | [] [] [] [] | trader | [] [] | util-linux | [] [] | ve | [] [] [] | vice | | vmm | | vorbis-tools | [] [] [] | wastesedge | | wcd | | wcd-man | | wdiff | [] [] [] [] [] | wget | [] [] [] [] [] | wyslij-po | [] [] [] [] | xboard | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] | +------------------------------------------------+ nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 7 3 6 114 1 12 88 32 82 3 40 45 7 101 sv sw ta te tg th tr uk ur vi wa wo zh_CN +----------------------------------------------+ a2ps | [] [] [] [] [] | aegis | [] | anubis | [] [] [] [] | aspell | [] [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | buzztrax | [] [] [] | ccd2cue | [] [] [] | ccide | [] [] [] [] | cflow | [] [] [] [] | clisp | | coreutils | [] [] [] | cpio | [] [] [] [] [] | cppi | [] [] [] [] | cpplib | [] [] [] [] [] | cryptsetup | [] [] [] | datamash | [] [] [] | denemo | [] | dfarc | [] [] | dialog | [] [] [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] | dink | [] | direvent | [] [] | doodle | [] [] | dos2unix | [] [] [] [] | dos2unix-man | [] [] [] | e2fsprogs | [] [] [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] | freedink | [] [] [] | fusionforge | | gas | [] | gawk | [] [] [] | gcal | [] [] [] | gcc | [] | gdbm | [] [] | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] [] [] | gettext-tools | [] [] [] [] [] | gjay | [] [] [] | glunarclock | [] [] [] [] | gnubiff | [] [] | gnubik | [] [] [] [] | gnucash | () () () () [] | gnuchess | [] [] [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gold | [] [] | gphoto2 | [] [] [] [] | gprof | [] [] [] [] | gramadoir | [] [] [] | grep | [] [] [] [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | guix | | guix-packages | | gutenprint | [] [] [] [] | hello | [] [] [] [] [] [] | help2man | [] [] [] | help2man-texi | [] | hylafax | [] | idutils | [] [] [] | iso_15924 | [] () [] [] () [] | iso_3166 | [] [] () [] [] () [] [] | iso_3166_2 | () [] [] () [] | iso_4217 | [] () [] [] () [] | iso_639 | [] [] [] () [] [] () [] [] | iso_639_3 | [] () [] [] () | iso_639_5 | () [] () | jwhois | [] [] [] [] | kbd | [] [] [] [] | klavaro | [] [] [] [] [] [] | ld | [] [] [] [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] [] () | libextractor | [] [] | libgnutls | [] [] [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] [] | libgsasl | [] [] [] [] | libiconv | [] [] [] [] [] | libidn | () [] [] [] | liferea | [] [] [] [] [] | lilypond | [] | lordsawar | | lprng | [] | lynx | [] [] [] [] | m4 | [] [] [] | mailfromd | [] [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] | midi-instruments | [] [] [] [] [] [] | minicom | [] [] | mkisofs | [] [] [] | myserver | [] | nano | [] [] [] [] | opcodes | [] [] [] | parted | [] [] [] [] [] | pies | [] [] | pnmixer | [] [] [] | popt | [] [] [] [] [] [] [] | procps-ng | [] [] | procps-ng-man | [] | psmisc | [] [] [] [] | pspp | [] [] [] | pushover | [] | pwdutils | [] [] | pyspread | [] | radius | [] [] | recode | [] [] [] [] | recutils | [] [] [] | rpm | [] [] [] [] | rush | [] [] | sarg | | sed | [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] [] | skribilo | [] [] | solfege | [] [] [] [] | solfege-manual | [] | spotmachine | [] [] [] | sudo | [] [] [] [] [] | sudoers | [] [] [] [] | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] | texinfo | [] [] [] | texinfo_document | [] | tigervnc | [] [] [] | tin | [] | tin-man | | tracgoogleappsa... | [] [] [] [] [] | trader | [] | util-linux | [] [] [] [] | ve | [] [] [] [] | vice | () () | vmm | | vorbis-tools | [] [] | wastesedge | | wcd | [] [] [] | wcd-man | [] | wdiff | [] [] [] [] | wget | [] [] [] | wyslij-po | [] [] | xboard | [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] | +----------------------------------------------+ sv sw ta te tg th tr uk ur vi wa wo zh_CN 106 1 4 3 0 13 51 115 1 125 7 1 100 zh_HK zh_TW +-------------+ a2ps | | 30 aegis | | 9 anubis | | 19 aspell | | 29 bash | [] | 23 bfd | | 11 binutils | | 12 bison | [] | 18 bison-runtime | [] | 38 buzztrax | | 9 ccd2cue | | 10 ccide | | 17 cflow | | 16 clisp | | 10 coreutils | | 18 cpio | | 20 cppi | | 17 cpplib | [] | 19 cryptsetup | | 14 datamash | | 11 denemo | | 5 dfarc | | 17 dialog | [] | 42 dico | | 6 diffutils | | 22 dink | | 10 direvent | | 11 doodle | | 12 dos2unix | [] | 18 dos2unix-man | | 9 e2fsprogs | | 15 enscript | | 21 exif | | 27 fetchmail | | 19 findutils | | 29 flex | [] | 19 freedink | | 24 fusionforge | | 3 gas | | 5 gawk | | 13 gcal | | 8 gcc | | 2 gdbm | | 10 gettext-examples | [] [] | 40 gettext-runtime | [] [] | 35 gettext-tools | [] | 24 gjay | | 9 glunarclock | [] | 27 gnubiff | | 9 gnubik | | 19 gnucash | () | 6 gnuchess | | 11 gnulib | | 23 gnunet | | 1 gnunet-gtk | | 1 gold | | 7 gphoto2 | [] | 19 gprof | | 21 gramadoir | | 14 grep | [] | 31 grub | | 21 gsasl | [] | 19 gss | | 17 gst-plugins-bad | | 21 gst-plugins-base | | 27 gst-plugins-good | | 32 gst-plugins-ugly | | 34 gstreamer | [] | 32 gtick | | 19 gtkam | | 24 gtkspell | [] [] | 48 guix | | 2 guix-packages | | 0 gutenprint | | 15 hello | [] | 30 help2man | | 18 help2man-texi | | 5 hylafax | | 5 idutils | | 14 iso_15924 | [] | 23 iso_3166 | [] [] | 58 iso_3166_2 | | 9 iso_4217 | [] [] | 28 iso_639 | [] [] | 46 iso_639_3 | | 10 iso_639_5 | | 2 jwhois | [] | 20 kbd | | 17 klavaro | | 30 ld | [] | 15 leafpad | [] | 39 libc | [] | 24 libexif | | 10 libextractor | | 5 libgnutls | | 13 libgphoto2 | | 10 libgphoto2_port | [] | 19 libgsasl | | 18 libiconv | [] | 29 libidn | | 17 liferea | | 29 lilypond | | 11 lordsawar | | 3 lprng | | 3 lynx | | 19 m4 | [] | 22 mailfromd | | 4 mailutils | | 6 make | | 19 man-db | | 15 man-db-manpages | | 10 midi-instruments | [] | 43 minicom | [] | 17 mkisofs | | 13 myserver | | 9 nano | [] | 30 opcodes | | 12 parted | [] | 23 pies | | 4 pnmixer | | 9 popt | [] | 36 procps-ng | | 5 procps-ng-man | | 4 psmisc | [] | 22 pspp | | 13 pushover | | 6 pwdutils | | 8 pyspread | | 6 radius | | 9 recode | | 31 recutils | | 10 rpm | [] | 13 rush | | 10 sarg | | 4 sed | [] | 35 sharutils | | 13 shishi | | 7 skribilo | | 7 solfege | | 21 solfege-manual | | 9 spotmachine | | 11 sudo | | 26 sudoers | | 22 sysstat | | 23 tar | [] | 30 texinfo | | 17 texinfo_document | | 13 tigervnc | | 14 tin | [] | 7 tin-man | | 1 tracgoogleappsa... | [] | 22 trader | | 12 util-linux | | 13 ve | | 14 vice | | 1 vmm | | 3 vorbis-tools | | 13 wastesedge | | 3 wcd | | 8 wcd-man | | 3 wdiff | [] | 23 wget | | 21 wyslij-po | | 14 xboard | | 10 xdg-user-dirs | [] [] | 68 xkeyboard-config | [] | 28 +-------------+ 89 teams zh_HK zh_TW 166 domains 7 42 2809 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If Jun 2014 seems to be old, you may fetch a more recent copy of this 'ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at 'http://translationproject.org/extra/matrix.html'. 1.5 Using 'gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU 'gettext' in your package. Of course you have to respect the GNU Lesser General Public License which covers the use of the GNU 'gettext' library. This means in particular that even non-free programs can use 'libintl' as a shared library, whereas only free software can use 'libintl' as a static library or use modified versions of 'libintl'. Once the sources are changed appropriately and the setup can handle the use of 'gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact 'coordinator@translationproject.org' to make the '.pot' files available to the translation teams. avahi-0.7/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643014235 xustar0030 mtime=1499681699.083371116 30 atime=1499681796.889176873 30 ctime=1499681849.979990644 avahi-0.7/Makefile.am0000644000175000017500000001236613130651643015654 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. ACLOCAL_AMFLAGS = -I common include $(srcdir)/common/doxygen.mk EXTRA_DIST = \ autogen.sh \ bootstrap.sh \ LICENSE \ $(DX_CONFIG) \ docs/INSTALL \ docs/TODO \ docs/NEWS \ docs/README \ docs/DBUS-API \ docs/AUTHORS \ docs/HACKING \ docs/API-CHANGES-0.6 \ docs/COMPAT-LAYERS \ docs/MALLOC \ docs/overview.dia \ docs/server-states.dia \ docs/avahi-poll.dia \ avahi-core.pc.in \ avahi-client.pc.in \ avahi-glib.pc.in \ avahi-gobject.pc.in \ avahi-qt3.pc.in \ avahi-qt4.pc.in \ avahi-sharp.pc.in \ avahi-ui-sharp.pc.in \ avahi-compat-libdns_sd.pc.in \ avahi-compat-howl.pc.in \ avahi-ui.pc.in \ avahi-ui-gtk3.pc.in \ doxygen_to_devhelp.xsl \ common/introspection.m4 SUBDIRS = \ common \ avahi-common \ avahi-core \ avahi-qt \ avahi-client \ avahi-glib \ avahi-gobject \ avahi-discover-standalone \ avahi-daemon \ avahi-sharp \ initscript \ avahi-dnsconfd \ avahi-utils \ avahi-python \ examples \ man \ tests \ service-type-database \ avahi-compat-libdns_sd \ avahi-compat-howl \ avahi-autoipd \ avahi-ui \ avahi-ui-sharp \ po DX_INPUT = \ $(srcdir)/avahi-common/address.h \ $(srcdir)/avahi-common/malloc.h \ $(srcdir)/avahi-common/strlst.h \ $(srcdir)/avahi-common/alternative.h \ $(srcdir)/avahi-common/defs.h \ $(srcdir)/avahi-common/error.h \ $(srcdir)/avahi-common/domain.h \ $(srcdir)/avahi-common/watch.h \ $(srcdir)/avahi-common/simple-watch.h \ $(srcdir)/avahi-common/thread-watch.h DX_EXAMPLE_PATH = $(srcdir)/examples DX_EXAMPLE_PATTERNS = *.c if HAVE_QT3 DX_INPUT += \ $(srcdir)/avahi-qt/qt-watch.h else if HAVE_QT4 DX_INPUT += \ $(srcdir)/avahi-qt/qt-watch.h endif endif if HAVE_GLIB DX_INPUT += \ $(srcdir)/avahi-glib/glib-watch.h \ $(srcdir)/avahi-glib/glib-malloc.h if HAVE_GOBJECT if HAVE_DBUS DX_INPUT += \ $(srcdir)/avahi-gobject/ga-client.h \ $(srcdir)/avahi-gobject/ga-entry-group.h \ $(srcdir)/avahi-gobject/ga-enums.h \ $(srcdir)/avahi-gobject/ga-error.h \ $(srcdir)/avahi-gobject/ga-record-browser.h \ $(srcdir)/avahi-gobject/ga-service-browser.h \ $(srcdir)/avahi-gobject/ga-service-resolver.h endif endif endif if HAVE_DBUS DX_INPUT += \ $(srcdir)/avahi-client/client.h \ $(srcdir)/avahi-client/lookup.h \ $(srcdir)/avahi-client/publish.h endif if HAVE_DBUS if HAVE_GTK DX_INPUT += \ $(srcdir)/avahi-ui/avahi-ui.h endif endif if ENABLE_CORE_DOCS DX_INPUT += \ $(srcdir)/avahi-core/core.h \ $(srcdir)/avahi-core/lookup.h \ $(srcdir)/avahi-core/publish.h \ $(srcdir)/avahi-core/rr.h \ $(srcdir)/avahi-core/log.h endif if HAVE_GTK DX_INPUT += \ $(srcdir)/avahi-ui/avahi-ui.h endif pkgconfigdir = $(libdir)/pkgconfig %.pc: %.pc.in $(AM_V_GEN)sed -e 's,@prefix\@,$(prefix),g' \ -e 's,@libdir\@,$(libdir),g' \ -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' \ -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ pkgconfig_DATA = avahi-core.pc CLEANFILES = avahi-core.pc if HAVE_DBUS pkgconfig_DATA += avahi-client.pc CLEANFILES += avahi-client.pc if ENABLE_COMPAT_HOWL pkgconfig_DATA += avahi-compat-howl.pc CLEANFILES += avahi-compat-howl.pc endif if ENABLE_COMPAT_LIBDNS_SD pkgconfig_DATA += avahi-compat-libdns_sd.pc CLEANFILES += avahi-compat-libdns_sd.pc endif if HAVE_MONO pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc endif endif if HAVE_GLIB pkgconfig_DATA += avahi-glib.pc CLEANFILES += avahi-glib.pc if HAVE_GOBJECT pkgconfig_DATA += avahi-gobject.pc CLEANFILES += avahi-gobject.pc endif endif if HAVE_GTK if HAVE_DBUS pkgconfig_DATA += avahi-ui.pc CLEANFILES += avahi-ui.pc endif endif if HAVE_GTK3 if HAVE_DBUS pkgconfig_DATA += avahi-ui-gtk3.pc CLEANFILES += avahi-ui-gtk3.pc endif endif if HAVE_QT3 pkgconfig_DATA += avahi-qt3.pc CLEANFILES += avahi-qt3.pc endif if HAVE_QT4 pkgconfig_DATA += avahi-qt4.pc CLEANFILES += avahi-qt4.pc endif CLEANFILES += avahi.devhelp avahi.devhelp: doxygen-run xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml MOSTLYCLEANFILES = $(DX_CLEANFILES) DISTCHECK_CONFIGURE_FLAGS = \ --disable-monodoc \ --enable-introspection \ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) homepage: $(MAKE) -C man scp avahi-daemon/*.xml avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\ man/*.xml man/xmltoman.dtd man/xmltoman.xsl \ tango:www/avahi.org/tree/download/ scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/ rm -rf doxygen $(MAKE) doxygen-run ssh tango rm -rf www/avahi.org/tree/download/doxygen scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen DISTCLEANFILES = \ po/.intltool-merge-cache avahi-0.7/PaxHeaders.10109/config.sub0000644000000000000000000000013213130652011014147 xustar0030 mtime=1499681801.013084616 30 atime=1499681802.133059564 30 ctime=1499681850.003990109 avahi-0.7/config.sub0000755000175000017500000010676313130652011015576 0ustar00lathiatlathiat00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2016 Free Software Foundation, Inc. timestamp='2016-11-04' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ kopensolaris*-gnu* | cloudabi*-eabi* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | ba \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ | e2k | epiphany \ | fido | fr30 | frv | ft32 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pru \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | visium \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; leon|leon[3-9]) basic_machine=sparc-$basic_machine ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | ba-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | e2k-* | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pru-* \ | pyramid-* \ | riscv32-* | riscv64-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | visium-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; asmjs) basic_machine=asmjs-unknown ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; e500v[12]) basic_machine=powerpc-unknown os=$os"spe" ;; e500v[12]-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` os=$os"spe" ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; leon-*|leon[3-9]-*) basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; moxiebox) basic_machine=moxie-unknown os=-moxiebox ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* | -cloudabi* | -sortix* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | -onefs* | -tirtos* | -phoenix* | -fuchsia*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -ios) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: avahi-0.7/PaxHeaders.10109/ChangeLog0000644000000000000000000000012413130652004013744 xustar0028 mtime=1499681796.7851792 28 atime=1499681796.7851792 28 ctime=1499681849.9999902 avahi-0.7/ChangeLog0000644000175000017500000000023213130652004015347 0ustar00lathiatlathiat000000000000002017-07-10 gettextize * Makefile.am (EXTRA_DIST): Add config.rpath. * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in. avahi-0.7/PaxHeaders.10109/avahi-qt0000644000000000000000000000013213130652072013633 xustar0030 mtime=1499681850.163986539 30 atime=1499681851.283961552 30 ctime=1499681850.163986539 avahi-0.7/avahi-qt/0000755000175000017500000000000013130652072015317 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-qt/PaxHeaders.10109/qt-watch.cpp0000644000000000000000000000013213130651643016147 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.163986539 avahi-0.7/avahi-qt/qt-watch.cpp0000644000175000017500000001127213130651643017561 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #ifdef QT4 #include #include #include #else #include #include #include #endif #include #include "qt-watch.h" class AvahiWatch : public QObject { Q_OBJECT public: AvahiWatch(int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void* userdata); ~AvahiWatch() {} AvahiWatchEvent getEvents() const { return m_incallback ? m_lastEvent : (AvahiWatchEvent)0; } void setWatchedEvents(AvahiWatchEvent event); private slots: void gotIn(); void gotOut(); private: QSocketNotifier* m_in; QSocketNotifier* m_out; //FIXME: ERR and HUP? AvahiWatchCallback m_callback; AvahiWatchEvent m_lastEvent; int m_fd; void* m_userdata; bool m_incallback; }; class AvahiTimeout : public QObject { Q_OBJECT public: AvahiTimeout(const struct timeval* tv, AvahiTimeoutCallback callback, void* userdata); ~AvahiTimeout() {} void update(const struct timeval* tv); private slots: void timeout(); private: QTimer m_timer; AvahiTimeoutCallback m_callback; void* m_userdata; }; AvahiWatch::AvahiWatch(int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void* userdata) : m_in(0), m_out(0), m_callback(callback), m_fd(fd), m_userdata(userdata), m_incallback(false) { setWatchedEvents(event); } void AvahiWatch::gotIn() { m_lastEvent = AVAHI_WATCH_IN; m_incallback=true; m_callback(this,m_fd,m_lastEvent,m_userdata); m_incallback=false; } void AvahiWatch::gotOut() { m_lastEvent = AVAHI_WATCH_IN; m_incallback=true; m_callback(this,m_fd,m_lastEvent,m_userdata); m_incallback=false; } void AvahiWatch::setWatchedEvents(AvahiWatchEvent event) { if (!(event & AVAHI_WATCH_IN)) { delete m_in; m_in=0; } if (!(event & AVAHI_WATCH_OUT)) { delete m_out; m_out=0; } if (event & AVAHI_WATCH_IN) { m_in = new QSocketNotifier(m_fd,QSocketNotifier::Read, this); connect(m_in,SIGNAL(activated(int)),SLOT(gotIn())); } if (event & AVAHI_WATCH_OUT) { m_out = new QSocketNotifier(m_fd,QSocketNotifier::Write, this); connect(m_out,SIGNAL(activated(int)),SLOT(gotOut())); } } AvahiTimeout::AvahiTimeout(const struct timeval* tv, AvahiTimeoutCallback callback, void *userdata) : m_callback(callback), m_userdata(userdata) { connect(&m_timer, SIGNAL(timeout()), this, SLOT(timeout())); #ifdef QT4 m_timer.setSingleShot(true); #endif update(tv); } void AvahiTimeout::update(const struct timeval *tv) { m_timer.stop(); if (tv) { AvahiUsec u = avahi_age(tv)/1000; #ifdef QT4 m_timer.start( (u>0) ? 0 : -u); #else m_timer.start( (u>0) ? 0 : -u,true); #endif } } void AvahiTimeout::timeout() { m_callback(this,m_userdata); } static AvahiWatch* q_watch_new(const AvahiPoll *api, int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void *userdata) { return new AvahiWatch(fd, event, callback, userdata); } static void q_watch_update(AvahiWatch *w, AvahiWatchEvent events) { w->setWatchedEvents(events); } static AvahiWatchEvent q_watch_get_events(AvahiWatch *w) { return w->getEvents(); } static void q_watch_free(AvahiWatch *w) { delete w; } static AvahiTimeout* q_timeout_new(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata) { return new AvahiTimeout(tv, callback, userdata); } static void q_timeout_update(AvahiTimeout *t, const struct timeval *tv) { t->update(tv); } static void q_timeout_free(AvahiTimeout *t) { delete t; } const AvahiPoll* avahi_qt_poll_get(void) { static const AvahiPoll qt_poll = { NULL, q_watch_new, q_watch_update, q_watch_get_events, q_watch_free, q_timeout_new, q_timeout_update, q_timeout_free }; return &qt_poll; } #ifdef QT4 #include "qt-watch.moc4" #else #include "qt-watch.moc3" #endif avahi-0.7/avahi-qt/PaxHeaders.10109/Makefile.am0000644000000000000000000000013113130651643015746 xustar0030 mtime=1499681699.119370306 30 atime=1499681796.837178035 29 ctime=1499681850.15998663 avahi-0.7/avahi-qt/Makefile.am0000644000175000017500000000354713130651643017367 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) lib_LTLIBRARIES = BUILT_SOURCES = if HAVE_QT3 avahiqt3includedir=$(includedir)/avahi-qt3 avahiqt3include_HEADERS = \ qt-watch.h lib_LTLIBRARIES += \ libavahi-qt3.la BUILT_SOURCES += qt-watch.moc3 libavahi_qt3_la_SOURCES = \ qt-watch.cpp qt-watch.moc3: qt-watch.cpp $(AM_V_GEN)$(MOC_QT3) $^ > $@ libavahi_qt3_la_CPPFLAGS = $(AM_CFLAGS) $(QT3_CFLAGS) $(VISIBILITY_HIDDEN_CFLAGS) libavahi_qt3_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT3_LIBS) libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO) endif if HAVE_QT4 avahiqt4includedir=$(includedir)/avahi-qt4 avahiqt4include_HEADERS = \ qt-watch.h lib_LTLIBRARIES += \ libavahi-qt4.la BUILT_SOURCES += qt-watch.moc4 libavahi_qt4_la_SOURCES = \ qt-watch.cpp qt-watch.moc4: qt-watch.cpp $(AM_V_GEN)$(MOC_QT4) $^ > $@ libavahi_qt4_la_CPPFLAGS = $(AM_CFLAGS) $(QT4_CFLAGS) -DQT4 $(VISIBILITY_HIDDEN_CFLAGS) libavahi_qt4_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT4_LIBS) libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT4_VERSION_INFO) endif CLEANFILES = $(BUILT_SOURCES) avahi-0.7/avahi-qt/PaxHeaders.10109/qt-watch.h0000644000000000000000000000013213130651643015614 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.163986539 avahi-0.7/avahi-qt/qt-watch.h0000644000175000017500000000210613130651643017222 0ustar00lathiatlathiat00000000000000#ifndef QAVAHI_H #define QAVAHI_H /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file qt-watch.h Qt main loop adapter */ #include AVAHI_C_DECL_BEGIN /** Setup abstract poll structure for integration with Qt main loop */ const AvahiPoll* avahi_qt_poll_get(void) #ifdef HAVE_VISIBILITY_HIDDEN __attribute__ ((visibility("default"))) #endif ; AVAHI_C_DECL_END #endif avahi-0.7/avahi-qt/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011015745 xustar0029 mtime=1499681801.64907039 30 atime=1499681806.628959015 30 ctime=1499681850.163986539 avahi-0.7/avahi-qt/Makefile.in0000644000175000017500000010163413130652011017362 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_QT3_TRUE@am__append_1 = \ @HAVE_QT3_TRUE@ libavahi-qt3.la @HAVE_QT3_TRUE@am__append_2 = qt-watch.moc3 @HAVE_QT4_TRUE@am__append_3 = \ @HAVE_QT4_TRUE@ libavahi-qt4.la @HAVE_QT4_TRUE@am__append_4 = qt-watch.moc4 subdir = avahi-qt ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am \ $(am__avahiqt3include_HEADERS_DIST) \ $(am__avahiqt4include_HEADERS_DIST) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(avahiqt3includedir)" \ "$(DESTDIR)$(avahiqt4includedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = @HAVE_QT3_TRUE@libavahi_qt3_la_DEPENDENCIES = \ @HAVE_QT3_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_QT3_TRUE@ $(am__DEPENDENCIES_1) am__libavahi_qt3_la_SOURCES_DIST = qt-watch.cpp @HAVE_QT3_TRUE@am_libavahi_qt3_la_OBJECTS = \ @HAVE_QT3_TRUE@ libavahi_qt3_la-qt-watch.lo libavahi_qt3_la_OBJECTS = $(am_libavahi_qt3_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libavahi_qt3_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(AM_CXXFLAGS) $(CXXFLAGS) $(libavahi_qt3_la_LDFLAGS) \ $(LDFLAGS) -o $@ @HAVE_QT3_TRUE@am_libavahi_qt3_la_rpath = -rpath $(libdir) @HAVE_QT4_TRUE@libavahi_qt4_la_DEPENDENCIES = \ @HAVE_QT4_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_QT4_TRUE@ $(am__DEPENDENCIES_1) am__libavahi_qt4_la_SOURCES_DIST = qt-watch.cpp @HAVE_QT4_TRUE@am_libavahi_qt4_la_OBJECTS = \ @HAVE_QT4_TRUE@ libavahi_qt4_la-qt-watch.lo libavahi_qt4_la_OBJECTS = $(am_libavahi_qt4_la_OBJECTS) libavahi_qt4_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(AM_CXXFLAGS) $(CXXFLAGS) $(libavahi_qt4_la_LDFLAGS) \ $(LDFLAGS) -o $@ @HAVE_QT4_TRUE@am_libavahi_qt4_la_rpath = -rpath $(libdir) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(libavahi_qt3_la_SOURCES) $(libavahi_qt4_la_SOURCES) DIST_SOURCES = $(am__libavahi_qt3_la_SOURCES_DIST) \ $(am__libavahi_qt4_la_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__avahiqt3include_HEADERS_DIST = qt-watch.h am__avahiqt4include_HEADERS_DIST = qt-watch.h HEADERS = $(avahiqt3include_HEADERS) $(avahiqt4include_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = -I$(top_srcdir) lib_LTLIBRARIES = $(am__append_1) $(am__append_3) BUILT_SOURCES = $(am__append_2) $(am__append_4) @HAVE_QT3_TRUE@avahiqt3includedir = $(includedir)/avahi-qt3 @HAVE_QT3_TRUE@avahiqt3include_HEADERS = \ @HAVE_QT3_TRUE@ qt-watch.h @HAVE_QT3_TRUE@libavahi_qt3_la_SOURCES = \ @HAVE_QT3_TRUE@ qt-watch.cpp @HAVE_QT3_TRUE@libavahi_qt3_la_CPPFLAGS = $(AM_CFLAGS) $(QT3_CFLAGS) $(VISIBILITY_HIDDEN_CFLAGS) @HAVE_QT3_TRUE@libavahi_qt3_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT3_LIBS) @HAVE_QT3_TRUE@libavahi_qt3_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_QT3_VERSION_INFO) @HAVE_QT4_TRUE@avahiqt4includedir = $(includedir)/avahi-qt4 @HAVE_QT4_TRUE@avahiqt4include_HEADERS = \ @HAVE_QT4_TRUE@ qt-watch.h @HAVE_QT4_TRUE@libavahi_qt4_la_SOURCES = \ @HAVE_QT4_TRUE@ qt-watch.cpp @HAVE_QT4_TRUE@libavahi_qt4_la_CPPFLAGS = $(AM_CFLAGS) $(QT4_CFLAGS) -DQT4 $(VISIBILITY_HIDDEN_CFLAGS) @HAVE_QT4_TRUE@libavahi_qt4_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(QT4_LIBS) @HAVE_QT4_TRUE@libavahi_qt4_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_QT4_VERSION_INFO) CLEANFILES = $(BUILT_SOURCES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-qt/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-qt/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libavahi-qt3.la: $(libavahi_qt3_la_OBJECTS) $(libavahi_qt3_la_DEPENDENCIES) $(EXTRA_libavahi_qt3_la_DEPENDENCIES) $(AM_V_CXXLD)$(libavahi_qt3_la_LINK) $(am_libavahi_qt3_la_rpath) $(libavahi_qt3_la_OBJECTS) $(libavahi_qt3_la_LIBADD) $(LIBS) libavahi-qt4.la: $(libavahi_qt4_la_OBJECTS) $(libavahi_qt4_la_DEPENDENCIES) $(EXTRA_libavahi_qt4_la_DEPENDENCIES) $(AM_V_CXXLD)$(libavahi_qt4_la_LINK) $(am_libavahi_qt4_la_rpath) $(libavahi_qt4_la_OBJECTS) $(libavahi_qt4_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_qt3_la-qt-watch.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_qt4_la-qt-watch.Plo@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< libavahi_qt3_la-qt-watch.lo: qt-watch.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libavahi_qt3_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libavahi_qt3_la-qt-watch.lo -MD -MP -MF $(DEPDIR)/libavahi_qt3_la-qt-watch.Tpo -c -o libavahi_qt3_la-qt-watch.lo `test -f 'qt-watch.cpp' || echo '$(srcdir)/'`qt-watch.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_qt3_la-qt-watch.Tpo $(DEPDIR)/libavahi_qt3_la-qt-watch.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='qt-watch.cpp' object='libavahi_qt3_la-qt-watch.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libavahi_qt3_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libavahi_qt3_la-qt-watch.lo `test -f 'qt-watch.cpp' || echo '$(srcdir)/'`qt-watch.cpp libavahi_qt4_la-qt-watch.lo: qt-watch.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libavahi_qt4_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libavahi_qt4_la-qt-watch.lo -MD -MP -MF $(DEPDIR)/libavahi_qt4_la-qt-watch.Tpo -c -o libavahi_qt4_la-qt-watch.lo `test -f 'qt-watch.cpp' || echo '$(srcdir)/'`qt-watch.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_qt4_la-qt-watch.Tpo $(DEPDIR)/libavahi_qt4_la-qt-watch.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='qt-watch.cpp' object='libavahi_qt4_la-qt-watch.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libavahi_qt4_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libavahi_qt4_la-qt-watch.lo `test -f 'qt-watch.cpp' || echo '$(srcdir)/'`qt-watch.cpp mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahiqt3includeHEADERS: $(avahiqt3include_HEADERS) @$(NORMAL_INSTALL) @list='$(avahiqt3include_HEADERS)'; test -n "$(avahiqt3includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahiqt3includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahiqt3includedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahiqt3includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahiqt3includedir)" || exit $$?; \ done uninstall-avahiqt3includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahiqt3include_HEADERS)'; test -n "$(avahiqt3includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahiqt3includedir)'; $(am__uninstall_files_from_dir) install-avahiqt4includeHEADERS: $(avahiqt4include_HEADERS) @$(NORMAL_INSTALL) @list='$(avahiqt4include_HEADERS)'; test -n "$(avahiqt4includedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahiqt4includedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahiqt4includedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahiqt4includedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahiqt4includedir)" || exit $$?; \ done uninstall-avahiqt4includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahiqt4include_HEADERS)'; test -n "$(avahiqt4includedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahiqt4includedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahiqt3includedir)" "$(DESTDIR)$(avahiqt4includedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahiqt3includeHEADERS \ install-avahiqt4includeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahiqt3includeHEADERS \ uninstall-avahiqt4includeHEADERS uninstall-libLTLIBRARIES .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am \ install-avahiqt3includeHEADERS install-avahiqt4includeHEADERS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-libLTLIBRARIES \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-avahiqt3includeHEADERS \ uninstall-avahiqt4includeHEADERS uninstall-libLTLIBRARIES .PRECIOUS: Makefile @HAVE_QT3_TRUE@qt-watch.moc3: qt-watch.cpp @HAVE_QT3_TRUE@ $(AM_V_GEN)$(MOC_QT3) $^ > $@ @HAVE_QT4_TRUE@qt-watch.moc4: qt-watch.cpp @HAVE_QT4_TRUE@ $(AM_V_GEN)$(MOC_QT4) $^ > $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/PaxHeaders.10109/docs0000644000000000000000000000013213130652072013051 xustar0030 mtime=1499681850.015989844 30 atime=1499681851.283961552 30 ctime=1499681850.015989844 avahi-0.7/docs/0000755000175000017500000000000013130652072014535 5ustar00lathiatlathiat00000000000000avahi-0.7/docs/PaxHeaders.10109/avahi-poll.dia0000644000000000000000000000013213130651643015644 xustar0030 mtime=1499681699.131370037 30 atime=1499681699.131370037 30 ctime=1499681850.015989844 avahi-0.7/docs/avahi-poll.dia0000644000175000017500000011066513130651643017264 0ustar00lathiatlathiat00000000000000 #A4# #A main loop of some kind# #AvahiPoll# #AvahiPoll# #AvahiPoll# #AvahiDBusAdapter# #Some other consumer# #Some other consumer# #AvahiPoll# #AvahiServer# #If you chose GMainLoop as main event loop, you can use AvahiGLibPoll as implementation for AvahiPoll# #If you don't have a main loop yet you can choose AvahiSimplePoll as implementation for the main loop. It provides *one* AvahiPoll# #AvahiClient# avahi-0.7/docs/PaxHeaders.10109/HACKING0000644000000000000000000000013213130651643014120 xustar0030 mtime=1499681699.131370037 30 atime=1499681814.956772828 30 ctime=1499681850.011989933 avahi-0.7/docs/HACKING0000644000175000017500000000547413130651643015541 0ustar00lathiatlathiat00000000000000Please comply with the following rules when hacking on Avahi: * Before commiting check with "git st" that all built files are ignored by git. To change the list of ignored files use $VISUAL .gitignore This is similar to the ".cvsignore" file in CVS times. * Don't forget to add the autoconf config.h inclusion to all C source files: #ifdef HAVE_CONFIG_H #include #endif This needs to be placed in in .c files only. NOT IN HEADER FILES! * Don't hardcode any paths in source files. Either use the -D option of gcc for C sources or use "sed" to replace them based on a .in file. * Never forget that Avahi should be buildable without DBUS, GTK or python! * Before commiting, test your code! In case of C consider running it a few times through valgrind, to make sure that you got everything right. You have to call libtool explicitly when running valgrind on binaries that depend on shared objects. e.g: libtool --mode=execute valgrind ./avahi-daemon Please note that valgrind can't find you all bugs. Please check your code thrice with your brain before committing. Valgrind is only a final check. * Whenever you add a new Makefile.am, C (.c or .h) source file, shell or python script please add this legal blurb to its header: For Makefile.am, python and shell code: # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. For C source code: /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ avahi-0.7/docs/PaxHeaders.10109/COMPAT-LAYERS0000644000000000000000000000013213130651643015034 xustar0030 mtime=1499681699.131370037 30 atime=1499681814.956772828 30 ctime=1499681850.015989844 avahi-0.7/docs/COMPAT-LAYERS0000644000175000017500000000121113130651643016436 0ustar00lathiatlathiat00000000000000Avahi 0.6.1 and above offer full API and ABI compatibility with HOWL and Bonjour out-of-the-box. To enable this you pass --enable-compat-libdns_sd and/or --enable-compat-howl to the configure script. The build system installs both a shared library libdns_sd.so and one named libhowl.so. These files might overwrite the original implementations, so take care! Distributors that want full build system compatibility in addition to ABI/API compatibility should: 1) Symlink the pkg-config file avahi-compat-howl.pc to howl.pc 2) Symlink $(includedir)/avahi-compat-libdns_sd/dns_sd.h to $(includedir)/dns_sd.h -- Lennart avahi-0.7/docs/PaxHeaders.10109/server-states.dia0000644000000000000000000000013213130651643016417 xustar0030 mtime=1499681699.131370037 30 atime=1499681699.131370037 30 ctime=1499681850.015989844 avahi-0.7/docs/server-states.dia0000644000175000017500000010135513130651643020033 0ustar00lathiatlathiat00000000000000 #A4# #SERVER_INVALID# #SERVER_REGISTERING# #SERVER_RUNNING# #CLIENT_DISCONNECTED# #SERVER_COLLISION# #Client side# #Server side# avahi-0.7/docs/PaxHeaders.10109/overview.dia0000644000000000000000000000013213130651643015456 xustar0030 mtime=1499681699.131370037 30 atime=1499681699.131370037 30 ctime=1499681850.015989844 avahi-0.7/docs/overview.dia0000644000175000017500000014526613130651643017103 0ustar00lathiatlathiat00000000000000 #A4# #libavahi-core# #avahi-daemon# #DBUS protocol# #simple protocol# #nss-mdns# #avahi-dnsconfd# #DBUS# #libavahi-client# #libavahi-common# #C based tools: nautilus, rhythmbox, ...# #static services# #Python/other PL based tools# #avahi-compat-libdns_sd# #avahi-compat-howl# #kdnssd-avahi# #Legacy Bonjour Apps# #Legacy HOWL Apps# #KDE Applications using KDNSSD# #avahi-sharp# #Mono/C# based Apps# avahi-0.7/docs/PaxHeaders.10109/AUTHORS0000644000000000000000000000013213130651643014201 xustar0030 mtime=1499681699.131370037 30 atime=1499681699.131370037 30 ctime=1499681850.011989933 avahi-0.7/docs/AUTHORS0000644000175000017500000000062613130651643015614 0ustar00lathiatlathiat00000000000000If you wish to contact the developers, you can mail our mailing list avahi@freedesktop.org For more information and how to subscribe, see http://lists.freedesktop.org/mailman/listinfo/avahi Lennart Poettering Trent Lloyd Sebastien Estienne Jakub Stachowski James Willcox Sjoerd Simons Ted Percival Pedraig O'Briain Mathieu Drouet avahi-0.7/docs/PaxHeaders.10109/INSTALL0000644000000000000000000000013213130651643014162 xustar0030 mtime=1499681699.131370037 30 atime=1499681699.131370037 30 ctime=1499681850.007990023 avahi-0.7/docs/INSTALL0000644000175000017500000000372313130651643015576 0ustar00lathiatlathiat00000000000000*** Quick install instructions (tested on Debian/Ubuntu only!) *** While "configure" and "make" may be run as normal user all other commands need to be run as root. Configure the build system: $ ./configure --sysconfdir=/etc --localstatedir=/var Some configure options available: --disable-gtk disable GTK+ tools (default: enabled) --disable-dbus disable DBUS support (default: enabled) --disable-python disable building python modules (default: enabled) --with-dbus-sys= where D-BUS system.d directory is --with-distro= the target Linux distribution (one of redhat, suse, gentoo, debian or slackware) --with-avahi-user= User for running the Avahi daemon (avahi) --with-avahi-group= Group for Avahi (avahi) Please note that by disabling DBUS you lose the ability to publish and browse services from local applications. Please note that Avahi currently ships with a init scripts for only a few distributions. if yours is not supported right now, YMMV. Patches welcome. $ make # make install # ldconfig Add a user an a group for avahi. (Debian specific) # addgroup --system avahi # adduser --system --no-create-home --ingroup avahi avahi Ask DBUS to re-read its policies: # kill -HUP `cat /var/run/dbus/pid` Now start the Avahi daemon: # /etc/init.d/avahi-daemon start Optionally start the unicast DNS configuration daemon: # /etc/init.d/avahi-dnsconfd start To start the two daemons at boot time on Debian based distributions: with DBUS support: # ln -s /etc/init.d/avahi-daemon /etc/dbus-1/event.d/75avahi-daemon # ln -s /etc/init.d/avahi-dnsconfd /etc/dbus-1/event.d/76avahi-dnsconfd without DBUS support: # update-rc.d avahi-daemon defaults 25 15 # update-rc.d avahi-dnsconfd defaults 26 14 If you plan to use avahi-autoipd you have to create the user/group "avahi-autoipd" much the same way as "avahi". avahi-0.7/docs/PaxHeaders.10109/API-CHANGES-0.60000644000000000000000000000013213130651643015034 xustar0030 mtime=1499681699.131370037 30 atime=1499681814.956772828 30 ctime=1499681850.015989844 avahi-0.7/docs/API-CHANGES-0.60000644000175000017500000000612313130651643016445 0ustar00lathiatlathiat00000000000000-*-text-*- A terse (and incomplete) list of API changes between 0.5.2 and 0.6: * Most browsing and registration functions and their callbacks gained new "flags" parameters. Passing 0 results in similar behaviour as in 0.5.2 * avahi-client/client.h has been split into client.h, publish.h and lookup.h * avahi-core/core.h has been split into core.h publish.h lookup.h * avahi_client_is_service_local() has been removed. Use instead the special flags AVAHI_LOOKUP_RESULT_LOCAL and AVAHI_LOOKUP_RESULT_OUR_OWN which are set when resolving or browsing for services. AVAHI_LOOKUP_RESULT_OUR_OWN is what most people should use. * AVAHI_RESOLVER_TIMEOUT and AVAHI_RESOLVER_NOT_FOUND have been removed. Instead AVAHI_RESOLVER_FAILURE is used and the exact error code is available from avahi_client_errno()/avahi_server_errno() * The events AVAHI_BROWSER_CACHE_EXHAUSTED, AVAHI_BROWSER_ALL_FOR_NOW have been introduced. Failures during browsing are now passed as AVAHI_BROWSER_FAILURE and the error code is made available through avahi_client_errno()/avahi_server_errno(). * The server gained a new state AVAHI_SERVER_FAILURE if some fatal error happens. The reason can be found in avahi_server_errno(). Clients can safely ignore this state. * You can now update existing records by setting the AVAHI_PUBLISH_UPDATE flags for add_service() and friends. Consider using avahi_server_update_service_txt_strlst() if you need to update only the TXT record for a service. * Proper support for service subtypes is now available. Use avahi_server_add_service_subtype() for that. * Entry groups gained the new state AVAHI_ENTRY_GROUP_FAILURE. The reason is available using avahi_server_errno()/avahi_client_errno(). * Many superfluous functions have been removed from the public API or entirely. * avahi_simple_poll_iterate() has been split up into three functions. avahi_simple_poll_loop() has been introduced. * Some new limits have been introduced: AVAHI_ADDRESS_STR_MAX, AVAHI_DOMAIN_NAME_MAX, AVAHI_LABEL_MAX * The functions avahi_service_name_join() and avahi_service_name_split() have been introduced. * AVAHI_ERR_LOCAL_COLLISION has been renamed to AVAHI_ERR_COLLSION * The values of AVAHI_PROTO_xxx have changed, they are no longer identical to the BSD AF_xxx constants * avahi_client_new() now takes an additional flags parameter. Most interesting flag here is AVAHI_CLIENT_NO_FAIL, which can be used to create an AvahiClient object even when the daemon is not running. This is useful to deal with daemon restarts. * AvahiClient gained a new state AVAHI_CLIENT_FAILURE. (superseding AVAHI_CLIENT_DISCONNECTED). If this event happens, avahi_client_errno() will return the reason. If the error returned is AVAHI_ERR_DISCONNECTED, the situation where AVAHI_CLIENT_DISCONNECTED was previously thrown is entered. You may choose to reconnect in that case by freeing your AvahiClient new and create a new one with passing AVAHI_CLIENT_NO_FAIL. * There's now a client side AvahiRecordBrowser, and avahi_entry_group_add_record(). avahi-0.7/docs/PaxHeaders.10109/TODO0000644000000000000000000000013213130651643013621 xustar0030 mtime=1499681699.131370037 30 atime=1499681814.956772828 30 ctime=1499681850.011989933 avahi-0.7/docs/TODO0000644000175000017500000001206013130651643015227 0ustar00lathiatlathiat00000000000000later: * add simplification routine for adding services * support for special domain PTR records based on local IP subnet address * Changes resulting in updated RFC of 7th June 2005: * Defer responses to replies with TC bit set by 400-500msec * Defer unicast responses the same way as multicast responses * DNSSEC [federico] * Wide area DNS Update [federico] * long lived queries * libavahi-compat-libdns_sd: implement kDNSServiceFlagsNoAutoRename and missing functions * libavahi-compat-howl: implement missing functions * add API to allow user to tell the server that some service is not reachable * gtk3 * qt5 * goodbye/hello on sleep/suspend/wake * sleep proxy * hostname aliases * test suite * api for creating custom dns records * LLMNR * ruby dbus wrapper (https://github.com/pawelpacana/avahi) * review various limits including dbus object limits * can we solve multiple unicast sockets with SO_REUSEPORT? https://lwn.net/Articles/542629/ done: * drop glib from avahi-daemon * doxygen updates * deal with no local interface * Probing/Conflict resolution * uniqueness * respect escaping in name serialization * really send goodbye packets * refresh subscribed records only * FLX_DNS_TYPE_ANY support * Known-Answer suppression client part * Known-Answer suppression server part * make flx_server_add_text() and flx_server_add_service() variadic functions * name compression * remove expression "rrset" from source files * defend our entries on incoming goodbye * allow NULL bytes in TXT records * add flx_server_add_service_strlst() and friends * change flx_* to avahi_* * Unicast responses/queries * Legacy unicast * no flush bit in known answer * always set AA * check: TC bit is valid for queries ONLY * add SRV and TXT records referenced from PTR records automatically to packet * add A and AAAA records referenced from SRV records automatically to packet * support known answer suppresion for incoming unicast queries * check wether RRsets are supported correctly (i.e. that all records of an RRset are really sent if it is requested) (rfc 2181) * case insensitve comparison * drop records from cache only one second after flush cache bit entry was received * either send entire RRSET or don't set flush cache bit! * mantain flush cache bit correctly in psched * Return to probing state on conflict * response job dependencies * enlarge packet in case a record/query is too large to fit in a normal packet * reflector * test against apple test suite * sensible logging * c++ support * drop trailing dot on avahi_normalize_name() * add entry_group::reset() * add internal error codes * finish DBUS stuff: allow NUL bytes in TXT records * allow srv port == 0 * avahi-client: * service resolving * examples * publish IP addresses with scope "link" only, unless ther are the only one the interface * release 0.2! * add identical service detection cookie * add API to detect if a service is local * make AVAHI_PROTO_xxx well defined constants * if two local clients browse for the same RRs, only send out query series once * handle multicast/wide area resolving for reverse host name looups * add wide area support (i.e. DNS-SD over unicast DNS) * add a way to notify the user that all cache entries have been read when browsing * allow resolving of services without name * add sever version check to avahi-client * Passive observation of failures * add option to disable SO_REUSEADDR to disallow binding of multiple processes to port 5353 * add flags argument to disable cookies-setting for local services * add API to add addresses without reverse PTR record * reset commit throttling for entry groups after a while * wrap subtype support for avahi-client * add subtype browsing * split linux specific parts from iface.c * consolidate browsing failure events and add an API to query the reason * Add sensible record updating API * rename AvahiAnnouncement to AvahiAnnouncer (to match AvahiQuerier) * implement avahi_client_add_address * remove AVAHI_PUBLISH_IS_PROXY * replace avahi_server_is_service_local() by AVAHI_PUBLISH flag * drop partially created created entries on failure * add error state for server and entry group * make sure that all limit definitions end with _MAX * generate local CNAME responses * remove irrelevant functions from pubic rr.h API * unify argument order of functions returning a string in a user supplied buffer * add support for subtypes in static services * wrap avahi_server_add_record() via DBUS and in avahi-client [lathiat] * add service type database support to avahi-browse * add domain browsing to avahi-browse * always set source address for outgoing packets * add support for defining browsing domains with an option in avahi-daemon.onf * return an error when the user tries to register a service in a domain != .local, for now * introduce AVAHI_CLIENT_FAILURE * remove outgoing queries from queue if the browse object they were issued from is destroyed * pass *all* Bonjour conformance tests * fix python scripts * Expose AvahiSRecordBrowser over D-BUS and implement in avahi-client * avahi-publish-* rewrites in C, update man pages * Add static host configuration like static services [lathiat] avahi-0.7/docs/PaxHeaders.10109/MALLOC0000644000000000000000000000013213130651643014023 xustar0030 mtime=1499681699.131370037 30 atime=1499681814.956772828 30 ctime=1499681850.015989844 avahi-0.7/docs/MALLOC0000644000175000017500000000056613130651643015441 0ustar00lathiatlathiat00000000000000Avahi supports pluggable memory allocator implemenations. See for more information. Currently, Avahi does not deal well with out-of-memory situations. Therefore we recommend the usage of memory allocators that abort() in case of OOM. The default allocator used by Avahi does this. Eventually we will improve Avahi to deal with these things better. avahi-0.7/docs/PaxHeaders.10109/README0000644000000000000000000000013213130651643014011 xustar0030 mtime=1499681699.131370037 30 atime=1499681814.956772828 30 ctime=1499681850.011989933 avahi-0.7/docs/README0000644000175000017500000000275613130651643015432 0ustar00lathiatlathiat00000000000000Avahi is a free, LGPL mDNS/DNS-SD implementation. Copyright 2004-2009 by the Avahi developers. http://avahi.org/ Avahi has a mailing list: http://lists.freedesktop.org/mailman/listinfo/avahi You have a chance to meet the developers on #avahi on irc.freenode.org Please report bugs to the freedesktop.org bugzilla: http://bugs.freedesktop.org/ Avahi's SVN repository is freely accessible: svn checkout svn://svn.0pointer.de/avahi/trunk avahi http://0pointer.de/cgi-bin/viewcvs.cgi/?root=avahi Avahi has the following requirements: - glib2 - expat - libdaemon (http://0pointer.de/lennart/projects/libdaemon/) - Linux 2.4 or 2.6 - DBUS 0.3x (optional, if you disable this, the daemon is not accessible over IPC to other applications!) - gtk2 + glade (optional, needed for avahi-discover-standalone) - doxygen (optional, needed for he API documentaton) - Python 2.4, pygtk2 (optional, needed by all client tools) - python-twisted (optional, needed by avahi-bookmarks) - xmltoman (if building from SVN rather than a tarball) If you are not using debian or ubuntu, the upstream authors page has disappeared, but you can get the source from debian here http://ftp.debian.org/debian/pool/main/x/xmltoman/xmltoman_0.3.orig.tar.gz Please make sure to read the currently available documentation for avahi before asking for support on the mailing list: - INSTALL - Man pages - Homepage http://avahi.org/ - Mailing list archive http://lists.freedesktop.org/archives/avahi/ avahi-0.7/docs/PaxHeaders.10109/DBUS-API0000644000000000000000000000013213130651643014220 xustar0030 mtime=1499681699.131370037 30 atime=1499681814.956772828 30 ctime=1499681850.011989933 avahi-0.7/docs/DBUS-API0000644000175000017500000000076613130651643015640 0ustar00lathiatlathiat00000000000000* NOTE * This file used to contain an overview of the DBUS API for Avahi, however since it was no longer up to date you should now read the XML-formatted DBUS Introspection files, which are fairly easy to understand and kept up to date. You can see them in the avahi-daemon source directory, named *.introspect. Opening them in a web browser is a good way to view them as they are formatted nicely, you can also view our online copy under "Developing with Avahi" here: http://avahi.org/ - Lathiat avahi-0.7/docs/PaxHeaders.10109/NEWS0000644000000000000000000000013213130651643013630 xustar0030 mtime=1499681699.131370037 30 atime=1499681814.956772828 30 ctime=1499681850.011989933 avahi-0.7/docs/NEWS0000644000175000017500000011002513130651643015236 0ustar00lathiatlathiat00000000000000Avahi 0.7, the 'Adieu' release ============================== The Avahi 0.7 release brings two new features, binary TXT records in XML service files and the ability to start the gobject client in a custom context. A number of other changes are detailed below. New Features: * Add support for binary values in TXT records in XML service files by specifying value-format="text|binary-hex|binary-base64". If not specified, defaults to the normal value of "text" (thus backwards compatible) * avahi-gobject: Allow starting the client in a custom GMainContext by passing context to ga_client_start_in_context instead of ga_client_start (avahi-gobject minor version has been incremented) Thanks to Krzesimir Nowak for both of these additions. Notable Changes: * avahi-daemon: Remove all default rlimits from avahi-daemon.conf, as two main problems happened with firstly rlimit-nproc causing avahi to fail when started in a container without user namespaces and secondly because memory rlimits were causing avahi to crash in some cases. Leave it up to the init system to impose any modified limits instead. It is recommend to ship this change in distribution default config files. * avahi-common: Fix watch cleanup issue in watch_free * avahi-discover (python): Updated for Python3 & GTK3 * avahi-autoipd: clear previously set address before binding a new one * avahi-autoipd: fix dhclient hooks to check for avahi-autoipd before running * build: Move default rundir from /var/run to /run as per modern system setups Other Changes: * build: Fix the printed value of "Building libavahi-client" in ./configure * build: autogen.sh improved to work when called from another directory * build: Fix warnings when compiling against musl libc * Updated translations: Polish, Ukranian, Turkish, Indonesian, Swedish, Hungarian, Occitan (New), Czech, Chinese (Simplified) * avahi-compat-libdns_sd: Fix incorrect URL in warnings * service-type-database: Add new service Types: _ipps._tcp, _xpra._tcp * avahi-dnsconfd: Update manpage with the correct action script name * avahi-gobject: Use the correct shared library name in AvahiCore-0.6.gir * avahi-gobject: Fix build failing under some locales * avahi-common/dbus-watch-glue.c: remove Unneeded semicolon * Update gentoo init scripts for newer openrc version Big thank-you to everyone contributing to the project through issues & pull requests, including the the following people who contributed changes to this release: Andika Triwidada, Andreas Henriksson, Anthony G. Basile, Antoine Martin, Ben Chan, Cedric Hombourger, Cedric Valmary, Gabor Kelemen, HMikolon, Jan Alexander, Steffens (heftig), Josef Andersson, Jussi Kukkonen, Krzesimir Nowak, Kylie McClain, Michael Biebl, Muhammet Kara, Peter Meerwald, Philip Withnall, Piotr DrÄ…g, Sebastiaan Lokhorst, Thomas Kluyver, Trent Lloyd This release is otherwise backwards compatible with Avahi 0.6.x except for ga_client_start_in_context (new function, incremented avahi-goject SO minor version) and value-format in XML service files. Avahi 0.6.32 ============ This is largely a bugfix release, non-bug changes are listed separately. * Don't log warnings about invalid packets, commonly triggered by Windows 10 systems * Fix issue with bad packet size estimation, causing probes to continuously be sent when hosting large numbers of services (Lee, Chun-Yi) * Fix build on Solaris/SmartOS (filio.h issue) * Fix build on FreeBSD (PCAP_D_IN issue) * Fix debug output with libdaemon >= 0.14 * avahi_server_set_browse_domains now correctly uses the provided list, instead of re-using the list from the configuration file * Set nl_pid to 0, this will automatically assign the value and prevent conflicts per netlink(7). (Bug #334) * Check for netlink pid=0 (kernel) instead of uid=0, which works correctly with network & user namespaces. * Fix reversed IFA_LOCAL and IFA_ADDRESS checks. (Avahi#355) * Don't fail the build on deprecated GTK/GLIB usage * Gracefully fail if SO_REUSEPORT is not available * Minor Python 3 update for the python ServiceTypeDatabase test usage of print, should be backwards compatible * avahi-autoipd: Fix incorrect usage of IFLA_RTA instead of IFA_RTA which could crash on ARM (Closes: #42) Changes * GTK3 deprecation fixes including vbox, g_object_unref on GdkCursor, stock items, composite API * New feature: host-name-from-machine-id= to configure the hostname from the machine-id, defaults to off. * Configuration change: Enable IPv6 by default (use-ipv6=yes) * Configuration change: Disable publishing HINFO and WORKSTATION records in the default config (publish-hinfo=no, publish-workstation=no) * Configuration change: Don't browse 0pointer.de and zeroconf.org wide-area by default (browse-domain=) This release is backwards compatible with Avahi 0.6.x with x < 32. Avahi 0.6.32-rc =============== This is largely a bugfix release, non-bug changes are listed separately. * Don't log warnings about invalid packets, commonly triggered by Windows 10 systems * Fix issue with bad packet size estimation, causing probes to continuously be sent when hosting large numbers of services (Lee, Chun-Yi) * Fix build on Solaris/SmartOS (filio.h issue) * Fix build on FreeBSD (PCAP_D_IN issue) * Fix debug output with libdaemon >= 0.14 * avahi_server_set_browse_domains now correctly uses the provided list, instead of re-using the list from the configuration file * Set nl_pid to 0, this will automatically assign the value and prevent conflicts per netlink(7). (Bug #334) * Check for netlink pid=0 (kernel) instead of uid=0, which works correctly with network & user namespaces. * Fix reversed IFA_LOCAL and IFA_ADDRESS checks. (Avahi#355) * Don't fail the build on deprecated GTK/GLIB usage * Gracefully fail if SO_REUSEPORT is not available * Minor Python 3 update for the python ServiceTypeDatabase test usage of print, should be backwards compatible Changes * GTK3 deprecation fixes including vbox, g_object_unref on GdkCursor, stock items, composite API * New feature: host-name-from-machine-id= to configure the hostname from the machine-id, defaults to off. * Configuration change: Enable IPv6 by default (use-ipv6=yes) * Configuration change: Disable publishing HINFO and WORKSTATION records in the default config (publish-hinfo=no, publish-workstation=no) * Configuration change: Don't browse 0pointer.de and zeroconf.org wide-area by default (browse-domain=) This release is backwards compatible with Avahi 0.6.x with x < 32. Avahi 0.6.31 ============ This is a bugfix release. * Fix compatibility with newest autoconf This release is backwards compatible with Avahi 0.6.x with x < 31. Avahi 0.6.30 ============ This is a bugfix release. * Make IPv6 work again * i18n updates * Minor other updates This release is backwards compatible with Avahi 0.6.x with x < 30. Avahi 0.6.29 ============ This is a bugfix release. * Updates regarding systemd integration * Compatibility with newer gtk3 and gobject introspection * i18n updates * Minor other updates * Fix CVE-2011-1002, fixing the fix for CVE-2010-2244 This release is backwards compatible with Avahi 0.6.x with x < 29. Avahi 0.6.28 ============ This is a bugfix release. * Updates regarding systemd integration * Properly avoid bus activation on non-systemd systems * Compatibility with newer gtk3 and gobject introspection * i18n updates * Minor other updates This release is backwards compatible with Avahi 0.6.x with x < 28. Avahi 0.6.27 ============ This is a bugfix release. * Various updates to the systemd integration * Reset all signal handlers and the signal mask on initialization * Don't trip over SIGPIPE * i18n updates * Minor other updates This release is backwards compatible with Avahi 0.6.x with x < 27. Avahi 0.6.26 ============ This is mostly a bugfix release but also fixes a low risk security issue and adds a couple of minor new features. * Fix CVE-2010-2244 (Ludwig Nussel) * Support for Gtk+ 3 and Gtk+ Introspection * Native systemd socket activation support * Add systemd service files * Add various resource control options, for traffic rate limiting as well as cache size and D-Bus client object limits. * i18n updates * Minor other updates This release is backwards compatible with Avahi 0.6.x with x < 26. Avahi 0.6.25 ============ This is mostly a bugfix release but also fixes a low risk security issue. * Fix CVE-2009-0758 (Rob Leslie) * i18n updates * Minor other updates This release is backwards compatible with Avahi 0.6.x with x < 25. Avahi 0.6.24 ============ This is mostly a bugfix release. * A huge number of bug fixes, including a security relavant one (low risk) * Add two new configuration directives "allow-interfaces" and "deny-interfaces" which can be used to make Avahi ignore certain network interfaces or only use certain network interfaces. * A lot of translation updates This release is backwards compatible with Avahi 0.6.x with x < 24. Avahi 0.6.23 ============ This is an bugfix release. * A lot of translation updates * Beef up bnvc quite a bit, including passing a domain to browse in (patch from lkundrak) * Increase numer of open files resource limit to 300 so that we can deal with more clients simultaneously. * Rework 'poof' algorithm a bit to reduce traffic load on noisy links. * Build fixes * Minor other updates This release is backwards compatible with Avahi 0.6.x with x < 23. Please note that Avahi's SVN has been converted to GIT and is now available on git://git.0pointer.de/avahi. Avahi 0.6.22 ============ This is an important bugfix release, and adds a couple of new features. * i18n support * Documentation and example code updates * Support for registering the Avahi documentation in devhelp (needs manual setup) * Added a new component libavahi-gobject, which is a GObjectified version of the Avahi API, contributed by Sjoerd Simons * Major BSD compatibility improvements, contributed by "zml" * avahi-ui: Allow overwriting of pretty service name by the application * Service type database updates * Add new option --parsable to avahi-browse * Minor other updates This release is backwards compatible with Avahi 0.6.x with x < 22. Avahi 0.6.21 ============ This is an important bugfix release. * Make avahi-autoipd actually produce correct ARP packets (Identified and patched by Pauline Yeung) * Add FreeBSD kqueue support for watching /etc/avahi/services (Contributed by Marcus Clarke) * Use search domain from /etc/resolv.conf as additional browse domains. * No longer return a conflict error when two local applications register identical RRs. * Properly find alternative service/host names for very long names * DNS name compression fix (Sjoerd Simons) * Fedora init script order fix * Several fixes to make gcc produce less warnings * Minor documentation and build fixes This release is backwards compatible with Avahi 0.6.x with x < 21. Avahi 0.6.20 ============ This is a bugfix release and contains a fix for a low risk security vulnerability. * Fix a local DoS vulnerability, where an assert() could be hit by passing empty TXT data over D-Bus to the Avahi daemon. (Low Risk) * Solaris/dbm portability fixes * Close all open file descriptors when daemonizing. Is generally safer and fixes a few issues with broken init systems of several distributions. * avahi-autoipd: allow passing the path of the action script on the command line. * Several minor build fixes and other cleanups This release is backwards compatible with Avahi 0.6.x with x < 20. Avahi 0.6.19 ============ This is a bugfix release, but also adds a new component "avahi-ui-sharp". * Rename zssh/zvnc to bssh/bvnc to avoid a name collision with another free software tool, on request of the Debian developers. I hope this name change early in the life of bssh/bvnc won't be too difficult to handle by the distributors. * Add man page for bssh/bvnc * avahi-ui: fix segfault when browsing in empty domains * avahi-ui: allow GTK_RESPONSE_OK, _YES and _APPLY besides _ACCEPT as positive dialog response codes * avahi-ui-sharp: Add Mono/C# API wrapper for avahi-ui * Don't pick the first and the last 256 IP addresses from the IPV4LL range in avahi-autoipd, as required by RC3927 section 2.1 * No longer publish the Avahi service identification cookie anymore by default. It was a bad idea in the first place. A better replacement will hopefully be made available in Avahi eventually. * Properly set umask before writing to /var/lib/avahi-autoipd * Update .deskop files to work around KDE menu issue * Various build fixes and other minor fixes and updates This release is backwards compatible with Avahi 0.6.x with x < 19. Avahi 0.6.18 ============ This is a bugfix release, adds a few new features and includes a new component. * Add a new library libavahi-ui which contains a standard Gtk dialog for browsing for services, and a new tool "zssh" that makes use of it, which allows browsing for SSH and VNC servers and starts ssh or xvncviewer if one item is selected. * avahi-autoipd has been ported to FreeBSD (original patch from Bruce M Simpson) * Improve OpenBSD, Solaris, MacOS X compatibility * Linux inotify support for monitoring /etc/avahi/services/ and /etc/avahi/hosts for changes. (Original patch from "behanw") * Add the ability to dump the service type database from avahi-browse with the new option "-b". * Enable GCC stack smashing protection if available and working (Patch from tedp) * Improve compatibility with Bonjour's libdns_sd (patch from Chris Rivera) * Various updates to the service type database (based on patches from uws) * Fix a local DoS vulnerability (very low priority, all you can do is make Avahi hit an assert()); problem identified by "jamesh" * Fix a problem when constantly generating conflict events for an RR * Fix registration of very large RRs (original patch from Sjoerd Simons) * Various minor fixes This release is backwards compatible with Avahi 0.6.x with x < 18. Avahi 0.6.17 ============ This is a bugfix release. * Don't accept "localhost" as a local mDNS host name * Allow running avahi-bookmarks as CGI script * Improve libdns_sd compatibility * Stability: libdns_sd mutex locking order fix * Publish IPv6 addresses via IPv4 and vice versa * IA64 fixes * A lot of minor cleanups and fixes This release is backwards compatible with Avahi 0.6.x with x < 17. Avahi 0.6.16 ============ This is a bugfix release, it fixes one DoS (100% CPU Usage) and a regression from the last release * Revert previous patch to check nlmsg_pid as it is bogus and breaks in many cases, notably when using NetworkManager (Closes: #72) * Replace with new SO_PASSCRED-based check of the sending UID, which seems to work better (Closes: #72) * Handle some errors in libdns_sd more gracefully the way the real libdns_sd does (Closes: #64) * Apply fix for Linux 2.6.19+ where IFA_RTA / IFLA_RTA is no longer defined (Closes: #86) * Fix doxygen comments for avahi watch, thanks to tedp (Closes: #77) * Make d-bus version detection work for >= 1.0 (Closes: #71) * Dont dbus_connection_close on shared dbus connections (Closes: #68) * Fix potential endless loop in dns label unpacking code (Closes: #84) * Fix bogus assertion in client-publish-service.c example * Mild fix to some doxygen docs for avahi-common/address.h * Fix passing in custom privileged group (previously ignored setting) (Closes: #85) This release is backwards compatible with Avahi 0.6.x with x < 16. Avahi 0.6.15 ============ This is a bugfix release, this bug is potentially security sensitive * Check that netlink messages actually originate from the kernel and not another process. * Fix build on NetBSD (thanks to Daniel S. Haischt) * Fix dbus_service_browser not setting AVAHI_LOOKUP_RESULT_OUR_OWN. This release is backwards compatible with Avahi 0.6.x with x < 15. Avahi 0.6.14 ============ This release fixes some bugs and includes a new component. Changes: * Add new daemon "avahi-autoipd" which is an implementation of IPv4LL as defined in RFC3927, a technology for assigning link-local IP addresses without DHCP server. The same functionality has been available on Windows under the name APIPA. While it is not the first implemenatation of this technology for Free operating systems it is clearly the most powerful and hopefully even the most secure. (Because it chroot()s and drops privileges and suchlike) For more information, especially about packaging this new tool for distributions, please make sure to read: http://avahi.org/wiki/AvahiAutoipd and of course the man page included in the tarball. For the rationale for adding this program to the Avahi toolset please read this mailing list thread: http://lists.freedesktop.org/archives/avahi/2006-September/000863.html * Fix a segfault in the code handling static host name registrations * Add a few new entries to the service type database * s/D-?BUS/D-Bus/g * Documentation updates * Fix service type database building on Solaris * Make use of newer D-Bus APIs * Fix random seed initialization * Install SFTP static service file by default * Other minor code cleanups This release is backwards compatible with Avahi 0.6.x with x < 14. Please note that this version doesn't compile on NetBSD, patches welcome. Please note that avahi-autoipd is available on Linux only for now. Patches welcome. It is recommended to pass --disable-autoipd to "configure" on non-Linux operating systems, otherwise the build will fail. Avahi 0.6.13 ============ This release fixes some bugs and includes minor enhancements. Changes: * Add a new D-Bus method for changing the mDNS host name during runtime. This functionality is only available to members of the UNIX group "netdev", which is the same access group that is enforced by GNOME's NetworkManager daemon. Since NM will probably be the most prominent user of this new method, we decided to limit access to the same group. The access group can be set by passing --with-avahi-priv-access-group= to "configure". If you need more sophisticated access control you can freely edit /etc/dbus/system.d/avahi-dbus.conf. * Add a new utility "avahi-set-host-name" which is a command line wrapper around the aforementioned SetHostName() method. * Bonjour API compatibility library: * Implement DNSServiceUpdateRecord() * Allow passing NULL as callback function for DNSServiceRegister() * Implement subtype registration in DNSServiceRegister() in a way that is compatible with Bonjour. * Update to newer copy of dns_sd.h * If the host name changes update names of static services wich contain wildcards. * Don't build documentation about embedding the Avahi mDNS stack into other programs by default. This is a feature used only by embedded developers. Pass --enable-core-docs to "configure" to enable building these docs, like in Avahi <= 0.6.12. * Build Qt documentation only when Qt support is enabled in the configuration. Same for GLib. * Change algorithm used to find a new host name on conflict. In Avahi <= 0.6.12 a conflicting host name of "foobar" would be changed to the new name "foobar2". With 0.6.13 "foobar-2" will be picked instead. This follows Bonjour's behaviour and has the advantage not confusing people with regular host names ending in digits. * Don't disable all static services when SIGHUP is received. * Fix build when Avahi is configured without Gtk+ but with Python support * Fix build on MacOS X * Support using Solaris DBM instead of gdbm for the service type database. The latter is still recommended * Minor other fixes and documentation updates This release is backwards compatible with Avahi 0.6.x with x < 13. Avahi 0.6.12 ============ This is a bugfix and general cleanups release. Changes: * Compatibility with newer D-Bus releases (0.9x) * Compatibility with DBUS builds with --disable-checks * Fix an error in the DBUS event loop wrapping which caused the avahi client libraries to dispatch some events too late when used with D-BUS 0.62 and newer. * avahi-daemon: fix a minor memory leak in the DBUS code. * avahi-glib: some GLIB adapter cleanups * avahi-dnsconfd: fix segfault when passing an invalid command line option * avahi-test: portability patches for Solaris * avahi-browse: flush STDOUT after each line, making it useful in shell scripts. * update service type database This release is backwards compatible with Avahi 0.6.x with x < 12. Avahi 0.6.11 ============ This is a bugfix and portability release. Changes: * Ported to Solaris * avahi-sharp: fix a fatal error in object disposal code * add a few new entries to the servivce type database * fix potential crash when the daemon shuts down * compatibility with newer autoconf versions This release is backwards compatible with Avahi 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.9 and 0.6.10. Avahi 0.6.10 ============ This is mostly a bugfix release. Two of the bugs fixed are security sensitive: a remote denial-of-service vulnerability and a buffer overflow that can allow local users to become the 'avahi' user. We do not consider either of them major security threats. The DoS vulnerability can be exploited from a local network only. It is not worth much, though, since mDNS can easily be flooded with nonsense anyway. It is easy to kick remote mDNS/DNS-SD services by provoking a name conflict in perfect accordance with the specs. The buffer overflow is hard to exploit remotely, only local users can become the 'avahi' user. In addition the user is trapped inside a chroot() environment (at least on Linux). Anyhow, our security assessments are possibly as buggy as our code. Hence: *** PLEASE UPDATE YOUR INSTALLATION ASAP! *** Changes: * Fix a buffer overflow in avahi-core * Refuse to process invalid UTF8 data * Automatically reconnect to the DBUS if we're kicked. (Works only if chroot() is disabled) * Don't hit an assert() in the client libs when the Avahi daemon is terminated * Enumerate all service types in the database in the Service Discovery Applet for Gnome * Improve the Bonjour compatibility layer to make it survive GnomeMeeting's broken usage * Deal properly with local non-ASCII hostnames * AMD64 and FreeBSD portability fixes * Filter double DNS server entries in avahi-dnsconfd * Fix a locking bug in avahi-sharp's EntryGroup.AddService() * Ported to Solaris (incomplete) * Add _airport._tcp to our service type database This release is backwards compatible with Avahi 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8 and 0.6.9. Avahi 0.6.9 =========== This release fixes some bugs and includes minor enhancements. * Don't allow registration of address records with invalid host names * Clean up argument validity checking for AvahiHostNameResolver and AvahiAddressResolver * Fix Avahi builds without DBUS This release is backwards compatible with Avahi 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7 and 0.6.8. Avahi 0.6.8 =========== This release fixes some bugs and adds a few new features. Users of 0.6.7, please update ASAP! * Fix broken parsing of static hosts file * Improve out-of-the-box Debian support * Add configuration option to allow mDNS over POINTOPOINT links. This is a potential security hole and YMMV. See man page for details. * Create $(localstatedir)/run on installation This release is backwards compatible with Avahi 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6 and 0.6.7. Avahi 0.6.7 =========== This release fixes some bugs and adds a few new features * Add static hosts name mappings * Work around kernel bugs regarding multicast group membership * ia64 portability fixes * Don't require X11 to run avahi-bookmarks * API: Return AVAHI_ERR_IS_EMPTY when the user tries to commit an empty entry group. * Improved Slackware and Fedora suppport This release is backwards compatible with Avahi 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5 and 0.6.6. Avahi 0.6.6 =========== This release fixes some bugs and includes some documentation updates * Add a bunch of new types to the service type database * Return errors of avahi_entry_group_commit() properly * Many doxygen documentation improvements * Fix destruction of AvahiEntryGroup objects using avahi_entry_group_free(). * Don't allow commiting of empty entry groups * Use a little less memory in avahi-qt * Don't accept empty TXT strings * Update example "client-publish-service.c" to show how to modify an existing service This release is backwards compatible with Avahi 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4 and 0.6.5. Avahi 0.6.5 =========== This release fixes some bugs and adds a new API function. * avahi-browse: properly show services that are removed from the network * fix build on bi-arch platforms, on GNU/kFreeBSD, on MIPS and for non-DBUS builds * add new API function avahi_nss_support() and DBUS function IsNSSSupportAvailable() which may be used to detect whether libc's gethostbyname() supports mDNS domain names. * patch avahi-bookmarks to make use of IsNSSSupportAvailable(). avahi-bookmarks will now generate links with real hostnames instead of numeric IP addresses if mDNS support is detected for gethostbyname(). * add init script for Mandriva Linux * speed up avahi_client_free() * man page updates * install missing header thread-watch.h * fix avahi-bookmarks to work with certain twisted versions * fix record updating * Use pkg-config's Requires.private directive where it makes sense This release is backwards compatible with Avahi 0.6, 0.6.1, 0.6.2, 0.6.3 and 0.6.4. Avahi 0.6.4 =========== This is a bugfix release and adds a new event loop implementation to avahi-common's public interface. * avahi-common: add new AvahiThreadedPool event loop implementation * avahi-sharp: compatibility with newer mono versions * avahi-publish-service: don't ignore the port number specified * avahi-sharp: correct some flags definitions This release is backwards compatible with Avahi 0.6, 0.6.1, 0.6.2 and 0.6.3. A quick introduction how to use the new AvahiThreadedPool interface is available in our Wiki: http://avahi.org/wiki/RunningAvahiClientAsThread Avahi 0.6.3 =========== This is a bugfix release. Everyone should update ASAP! * avahi-sharp: make sure to append a trailing NUL byte to all C strings * avahi-core: fix a double free() which occurs when wide area lookups timeout This release is fully compatible with Avahi 0.6, 0.6.1 and 0.6.2. Avahi 0.6.2 =========== This is mostly a bugfix release. * Compatibility with DBUS 0.60 (Full compatibility with DBUS 0.3x and 0.5 is retained) * Fix introspection for some auxiliary DBUS objects * Miscellaneous documentation updates * Improve Autoconf support for detecting PTHREADS library * Fix avahi-publish --help * Workaround a DBUS limitation which might cause Avahi to die when a user sends an empty TXT entry over DBUS * Increase number of resolver/browser objects a DBUS client may create * Remove fprintf() call in avahi_client_new() * Other minor fixes This release is both up and downwards compatible with Avahi 0.6 and 0.6.1. Avahi now has its own Domain (http://avahi.org) and a new Website! And, most importantly, we now have a Logo: http://avahi.org/chrome/site/avahi-trac.png Avahi 0.6.1 =========== This is mostly a bugfix release. * Fix a segfault when shutting down the daemon. Please note that this issue was not security sensitive in any way but had the ugly side effect that the daemon's PID file was not removed properly. * Added init scripts for ArchLinux and FreeBSD * Add DBUS API versioning through the new method GetAPIVersion() * Build the HOWL compatibility library as "libhowl.so", instead of "libavahi-compat-howl.so". This will help distributors to ensure full API/ABI compatibility with HOWL out-of-the-box. * Same for the Bonjour compatibility library * Other fixes We encourage Linux users to update to libdaemon 0.10 since logging does not work from a chroot() environment with older versions. This release is fully API and ABI compatible with Avahi 0.6. This is true for both the C libraries and the DBUS interface. Packagers should read the new documentation file doc/COMPAT-LAYERS which contains some information about maintaining full build system compatibility in addition to ABI/API compatibility. Avahi 0.6, the "Goddag" release =============================== * Support for (read-only) wide area support. (i.e. DNS-SD over unicast DNS) * Ported to FreeBSD, NetBSD, Darwin/MacOSX and to some extent OpenBSD * Portability fixes for ARM CPUs * Compatibility layers for the HOWL and Bonjour APIs * Support for registering/browsing arbitrary records * Proper support for DNS-SD service subtypes * Native C implementations of the client utilities * Now passes the Bonjour conformance test suite without any exceptions * "Passive observation of failures" * chroot() support * Many traffic reduction improvements * Bugfixes, cleanups This release is not API/ABI compatible with Avahi 0.5. Please see docs/API-CHANGES-0.6 for a rough overview over the changes. Avahi 0.5.2 =========== * Bug fix release. * Fix browing in QT applications (was totally broken) * Minor documentation update. Avahi 0.5.1 =========== * This is a bug fix release, before the big changes coming in 0.6 * Fix reporting of the NO_DAEMON error * Fix commit throttling algorithm for entry groups * Fix counting of the number of resources in an entry group Avahi 0.5, the 'Bom Dia' release ================================ * New Mono bindings, allowing you to use Avahi from any CLI language such as C# * Attempt auto-detection of the D-BUS system bus address * Include a 'cookie' in all published records which allows us to reliably determine if a service is the same as another. * Add API to determine if services are local * Better support for threading with AvahiSimplePoll * Add some new StringList functions to help binding to it in other languages * Various build and run-time bug fixes Avahi 0.4, the 'Hyvää päivää' release ===================================== * Renamed the include dirs for the Qt bindings to include the version number, as they may diverge in future. * Fix a critical bug in avahi-daemon triggered by configuring an interface with various DHCP clients when you have no other active addresses which caused avahi-daemon to abort. * Move to using python-gdbm exclusivly for the service type database. * Add support for SUSE * Various fixes to the build system Avahi 0.3, the 'Buenos Días' release ==================================== * New integration library for QT main-loop applications. * Fix a crash in avahi-dnsconfd * Documentation Updates * Fix building when you don't want Python DBUS or GTK * avahi-bookmarks - Add new help option - Fix handling of paths not starting with a / - You can now specify the port and IP to bind to - Add option to generate links with hostnames instead of IPs Avahi 0.2, the 'DzieÅ„ Dobry' release ==================================== * Unfortunately this release broke the API/ABI of libavahi-client with the following function removals Removal of these functions may affect users of the 0.1 API - avahi_service_resolver_block() The following functions were simply for debugging information and their removal should not affect anyone - avahi_entry_group_get_dbus_path() - avahi_domain_browser_get_dbus_path() - avahi_service_type_browser_get_dbus_path() - avahi_service_browser_get_dbus_path() Note that while the libavahi-client API changed slightly, the DBUS API itself has only had additions and no existing definitions have changed. * avahi-daemon will now ignore local IP addresses with the "link" scope unless it is the only IP address on the interface. * avahi-daemon will no longer fail to start if D-BUS is not available (if configured with enable-dbus=warn) * Fixed a potential crasher when resolving things in libavahi-core. * New example demonstrating integration into glib applications * Addtion of a set of convenience functions for AvahiStringList avahi_string_list_find() avahi_string_list_get_pair() avahi_string_list_add_pair() avahi_string_list_add_pair_arbitrary() * Fixed a typo in avahi-glib.pc that stopped programs using the GLIB api from compiling correctly * A critical bug in the reflector was fixed where it may go into a state of constantly flooding queries out to the network. * Introduced new asynchronous resolver API * libavahi-client gained an API for resolving HostNames and Addresses in addition to the ServiceResolver provided in 0.1 * Added support for Arch and Gentoo linux distributions. * Allowed configuration on non-supported distributions * Fixed a critical bug where you cannot use more than one AvahiClient or use it in an application already using D-BUS * Fixed assembly of empty string lists to RFC compliant TXT records * Added a new service type description database with human understandable descriptions of services with translations. * Fixed various minor memory corruption bugs * Fixed an issue where Avahi might think it encountered a conflict if the process or machine has been suspended * Fixed compilation and runtime issues on 64-bit distributions * ... * PROFIT!!! Avahi 0.1, the "Guten Tag" release ================================== The Avahi team would like to announce the immediate availability of Avahi 0.1 "Guten Tag". Avahi is a fully LGPL framework for Multicast DNS Service Discovery. It allows programs to publish and discover services and hosts running on a local network with no specific configuration. For example you can plug into a network and instantly find printers to print to, files to look at and people to talk to. Avahi is designed to be compatible with the mDNS/DNS-SD specification and boasts the following features * Fully open source and freely available under the LGPL * Full IPv4 and IPv6 support * An embeddable mDNS stack * Dynamic adjustment to network reconfiguration * Daemon with DBUS API for desktop applications * C library to interface with the DBUS API * Compatible with other mDNS/DNS-SD implementations such as Howl and Apple Bonjour (previously Rendezvous) * Ability to correctly "reflect" mDNS between two or more LAN segments * Ability to configure DNS servers based on mDNS/DNS-SD published information, a feature that is very usefull on IPv6 which has no other mechanism for this. * Combined with nss-mdns, allows hostname lookup such as 'laptop.local' without the configuration of a DNS server. http://0pointer.de/lennart/projects/nss-mdns/ * Easy integration into GLIB, GTK other mainloop applications. * Documentation and examples of both developer APIs and utilities. mDNS/DNS-SD is part of a larger set of specifications for easy configuration of networking known as "ZeroConf" (http://www.zeroconf.org/), with the aim of allowing you to plug into a network and instantly be able to interact with its services. Avahi was designed to be a fully free implementation, and is available under the LGPL. Many other implementations of the mDNS/DNS-SD specification were previously non-free, restricting their use in many platforms such as the GNOME desktop and many distributions. While Avahi is a 0.1 release, we feel it is feature complete and available for immediate use, developers can make use of the Avahi client library to provide above mentioned functionality in their programs. We unfortunately do not have a logo yet! We would love if someone could suggest ideas for a logo or even design us one. If you think you can help us out, you can contact us on our mailing list or by emailing Trent Lloyd on lathiat@bur.st. If you would like more information or help, you can subscribe to our mailinglist, goto http://lists.freedesktop.org/mailman/listinfo/avahi You can download Avahi 0.1 here http://www.freedesktop.org/~lennart/avahi-0.1.tar.gz You can also find out more information from our homepage http://www.freedesktop.org/Software/Avahi We would like to thank the following people for their contribution to Avahi 0.1. Lennart Poeterring Trent Lloyd Sebastien Estienne Ross Burton Tommi Vainikainen Joe Shaw Ikke Steev Cheers, The Avahi Team avahi-0.7/PaxHeaders.10109/py-compile0000644000000000000000000000013213130652011014170 xustar0030 mtime=1499681801.589071732 30 atime=1499681801.589071732 30 ctime=1499681850.791972528 avahi-0.7/py-compile0000755000175000017500000001107613130652011015607 0ustar00lathiatlathiat00000000000000#!/bin/sh # py-compile - Compile a Python program scriptversion=2011-06-08.12; # UTC # Copyright (C) 2000-2014 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . if [ -z "$PYTHON" ]; then PYTHON=python fi me=py-compile usage_error () { echo "$me: $*" >&2 echo "Try '$me --help' for more information." >&2 exit 1 } basedir= destdir= while test $# -ne 0; do case "$1" in --basedir) if test $# -lt 2; then usage_error "option '--basedir' requires an argument" else basedir=$2 fi shift ;; --destdir) if test $# -lt 2; then usage_error "option '--destdir' requires an argument" else destdir=$2 fi shift ;; -h|--help) cat <<\EOF Usage: py-compile [--help] [--version] [--basedir DIR] [--destdir DIR] FILES..." Byte compile some python scripts FILES. Use --destdir to specify any leading directory path to the FILES that you don't want to include in the byte compiled file. Specify --basedir for any additional path information you do want to be shown in the byte compiled file. Example: py-compile --destdir /tmp/pkg-root --basedir /usr/share/test test.py test2.py Report bugs to . EOF exit $? ;; -v|--version) echo "$me $scriptversion" exit $? ;; --) shift break ;; -*) usage_error "unrecognized option '$1'" ;; *) break ;; esac shift done files=$* if test -z "$files"; then usage_error "no files given" fi # if basedir was given, then it should be prepended to filenames before # byte compilation. if [ -z "$basedir" ]; then pathtrans="path = file" else pathtrans="path = os.path.join('$basedir', file)" fi # if destdir was given, then it needs to be prepended to the filename to # byte compile but not go into the compiled file. if [ -z "$destdir" ]; then filetrans="filepath = path" else filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)" fi $PYTHON -c " import sys, os, py_compile, imp files = '''$files''' sys.stdout.write('Byte-compiling python modules...\n') for file in files.split(): $pathtrans $filetrans if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'): continue sys.stdout.write(file) sys.stdout.flush() if hasattr(imp, 'get_tag'): py_compile.compile(filepath, imp.cache_from_source(filepath), path) else: py_compile.compile(filepath, filepath + 'c', path) sys.stdout.write('\n')" || exit $? # this will fail for python < 1.5, but that doesn't matter ... $PYTHON -O -c " import sys, os, py_compile, imp # pypy does not use .pyo optimization if hasattr(sys, 'pypy_translation_info'): sys.exit(0) files = '''$files''' sys.stdout.write('Byte-compiling python modules (optimized versions) ...\n') for file in files.split(): $pathtrans $filetrans if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'): continue sys.stdout.write(file) sys.stdout.flush() if hasattr(imp, 'get_tag'): py_compile.compile(filepath, imp.cache_from_source(filepath, False), path) else: py_compile.compile(filepath, filepath + 'o', path) sys.stdout.write('\n')" 2>/dev/null || : # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: avahi-0.7/PaxHeaders.10109/avahi-ui-gtk3.pc.in0000644000000000000000000000013213130651643015503 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.023989663 avahi-0.7/avahi-ui-gtk3.pc.in0000644000175000017500000000046413130651643017116 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: avahi-ui Description: Avahi Multicast DNS Responder (Common GTK3 UI support) Requires: gtk+-3.0 avahi-client avahi-glib Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lavahi-ui-gtk3 Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/avahi-client0000644000000000000000000000013213130652072014465 xustar0030 mtime=1499681850.187986003 30 atime=1499681851.283961552 30 ctime=1499681850.187986003 avahi-0.7/avahi-client/0000755000175000017500000000000013130652072016151 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-client/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016600 xustar0030 mtime=1499681801.125082112 30 atime=1499681806.668958121 30 ctime=1499681850.179986184 avahi-0.7/avahi-client/Makefile.in0000644000175000017500000016375213130652011020225 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@noinst_PROGRAMS = \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ client-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ srv-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ xdg-config-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ rr-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ check-nss-test$(EXEEXT) @HAVE_DBUS_TRUE@@HAVE_DLOPEN_TRUE@am__append_1 = -ldl @HAVE_DBUS_TRUE@@HAVE_DLOPEN_TRUE@am__append_2 = -ldl subdir = avahi-client ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am \ $(am__avahi_clientinclude_HEADERS_DIST) \ $(am__noinst_HEADERS_DIST) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(avahi_clientincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = @HAVE_DBUS_TRUE@libavahi_client_la_DEPENDENCIES = \ @HAVE_DBUS_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@ $(am__DEPENDENCIES_1) am__libavahi_client_la_SOURCES_DIST = client.c client.h entrygroup.c \ browser.c resolver.c publish.h lookup.h xdg-config.c \ xdg-config.h check-nss.c ../avahi-common/dbus.c \ ../avahi-common/dbus.h ../avahi-common/dbus-watch-glue.c \ ../avahi-common/dbus-watch-glue.h @HAVE_DBUS_TRUE@am_libavahi_client_la_OBJECTS = \ @HAVE_DBUS_TRUE@ libavahi_client_la-client.lo \ @HAVE_DBUS_TRUE@ libavahi_client_la-entrygroup.lo \ @HAVE_DBUS_TRUE@ libavahi_client_la-browser.lo \ @HAVE_DBUS_TRUE@ libavahi_client_la-resolver.lo \ @HAVE_DBUS_TRUE@ libavahi_client_la-xdg-config.lo \ @HAVE_DBUS_TRUE@ libavahi_client_la-check-nss.lo \ @HAVE_DBUS_TRUE@ libavahi_client_la-dbus.lo \ @HAVE_DBUS_TRUE@ libavahi_client_la-dbus-watch-glue.lo libavahi_client_la_OBJECTS = $(am_libavahi_client_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libavahi_client_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libavahi_client_la_CFLAGS) $(CFLAGS) \ $(libavahi_client_la_LDFLAGS) $(LDFLAGS) -o $@ @HAVE_DBUS_TRUE@am_libavahi_client_la_rpath = -rpath $(libdir) PROGRAMS = $(noinst_PROGRAMS) am__check_nss_test_SOURCES_DIST = check-nss.c check-nss-test.c \ client.h @HAVE_DBUS_TRUE@am_check_nss_test_OBJECTS = \ @HAVE_DBUS_TRUE@ check_nss_test-check-nss.$(OBJEXT) \ @HAVE_DBUS_TRUE@ check_nss_test-check-nss-test.$(OBJEXT) check_nss_test_OBJECTS = $(am_check_nss_test_OBJECTS) @HAVE_DBUS_TRUE@check_nss_test_DEPENDENCIES = $(am__DEPENDENCIES_1) check_nss_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(check_nss_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ $@ am__client_test_SOURCES_DIST = client-test.c @HAVE_DBUS_TRUE@am_client_test_OBJECTS = \ @HAVE_DBUS_TRUE@ client_test-client-test.$(OBJEXT) client_test_OBJECTS = $(am_client_test_OBJECTS) @HAVE_DBUS_TRUE@client_test_DEPENDENCIES = libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la client_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(client_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__rr_test_SOURCES_DIST = rr-test.c @HAVE_DBUS_TRUE@am_rr_test_OBJECTS = rr_test-rr-test.$(OBJEXT) rr_test_OBJECTS = $(am_rr_test_OBJECTS) @HAVE_DBUS_TRUE@rr_test_DEPENDENCIES = libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la rr_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(rr_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__srv_test_SOURCES_DIST = srv-test.c @HAVE_DBUS_TRUE@am_srv_test_OBJECTS = srv_test-srv-test.$(OBJEXT) srv_test_OBJECTS = $(am_srv_test_OBJECTS) @HAVE_DBUS_TRUE@srv_test_DEPENDENCIES = libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la srv_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(srv_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__xdg_config_test_SOURCES_DIST = xdg-config-test.c xdg-config.c \ xdg-config.h @HAVE_DBUS_TRUE@am_xdg_config_test_OBJECTS = \ @HAVE_DBUS_TRUE@ xdg_config_test-xdg-config-test.$(OBJEXT) \ @HAVE_DBUS_TRUE@ xdg_config_test-xdg-config.$(OBJEXT) xdg_config_test_OBJECTS = $(am_xdg_config_test_OBJECTS) xdg_config_test_DEPENDENCIES = xdg_config_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(xdg_config_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libavahi_client_la_SOURCES) $(check_nss_test_SOURCES) \ $(client_test_SOURCES) $(rr_test_SOURCES) $(srv_test_SOURCES) \ $(xdg_config_test_SOURCES) DIST_SOURCES = $(am__libavahi_client_la_SOURCES_DIST) \ $(am__check_nss_test_SOURCES_DIST) \ $(am__client_test_SOURCES_DIST) $(am__rr_test_SOURCES_DIST) \ $(am__srv_test_SOURCES_DIST) \ $(am__xdg_config_test_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__avahi_clientinclude_HEADERS_DIST = client.h lookup.h publish.h am__noinst_HEADERS_DIST = internal.h HEADERS = $(avahi_clientinclude_HEADERS) $(noinst_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' @HAVE_DBUS_TRUE@avahi_clientincludedir = $(includedir)/avahi-client @HAVE_DBUS_TRUE@avahi_clientinclude_HEADERS = client.h lookup.h publish.h @HAVE_DBUS_TRUE@noinst_HEADERS = internal.h @HAVE_DBUS_TRUE@lib_LTLIBRARIES = libavahi-client.la @HAVE_DBUS_TRUE@libavahi_client_la_SOURCES = \ @HAVE_DBUS_TRUE@ client.c client.h \ @HAVE_DBUS_TRUE@ entrygroup.c \ @HAVE_DBUS_TRUE@ browser.c \ @HAVE_DBUS_TRUE@ resolver.c \ @HAVE_DBUS_TRUE@ publish.h lookup.h \ @HAVE_DBUS_TRUE@ xdg-config.c xdg-config.h \ @HAVE_DBUS_TRUE@ check-nss.c \ @HAVE_DBUS_TRUE@ ../avahi-common/dbus.c ../avahi-common/dbus.h \ @HAVE_DBUS_TRUE@ ../avahi-common/dbus-watch-glue.c ../avahi-common/dbus-watch-glue.h @HAVE_DBUS_TRUE@libavahi_client_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"$(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)\" @HAVE_DBUS_TRUE@libavahi_client_la_LIBADD = $(AM_LDADD) $(DBUS_LIBS) \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@ $(am__append_2) @HAVE_DBUS_TRUE@libavahi_client_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_CLIENT_VERSION_INFO) @HAVE_DBUS_TRUE@client_test_SOURCES = client-test.c @HAVE_DBUS_TRUE@client_test_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@client_test_LDADD = $(AM_LDADD) libavahi-client.la ../avahi-common/libavahi-common.la @HAVE_DBUS_TRUE@srv_test_SOURCES = srv-test.c @HAVE_DBUS_TRUE@srv_test_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@srv_test_LDADD = $(AM_LDADD) libavahi-client.la ../avahi-common/libavahi-common.la @HAVE_DBUS_TRUE@rr_test_SOURCES = rr-test.c @HAVE_DBUS_TRUE@rr_test_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@rr_test_LDADD = $(AM_LDADD) libavahi-client.la ../avahi-common/libavahi-common.la @HAVE_DBUS_TRUE@xdg_config_test_SOURCES = xdg-config-test.c xdg-config.c xdg-config.h @HAVE_DBUS_TRUE@xdg_config_test_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@xdg_config_test_LDADD = $(AM_LDADD) @HAVE_DBUS_TRUE@check_nss_test_SOURCES = check-nss.c check-nss-test.c client.h @HAVE_DBUS_TRUE@check_nss_test_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@check_nss_test_LDADD = $(AM_LDADD) $(am__append_1) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-client/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-client/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libavahi-client.la: $(libavahi_client_la_OBJECTS) $(libavahi_client_la_DEPENDENCIES) $(EXTRA_libavahi_client_la_DEPENDENCIES) $(AM_V_CCLD)$(libavahi_client_la_LINK) $(am_libavahi_client_la_rpath) $(libavahi_client_la_OBJECTS) $(libavahi_client_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list check-nss-test$(EXEEXT): $(check_nss_test_OBJECTS) $(check_nss_test_DEPENDENCIES) $(EXTRA_check_nss_test_DEPENDENCIES) @rm -f check-nss-test$(EXEEXT) $(AM_V_CCLD)$(check_nss_test_LINK) $(check_nss_test_OBJECTS) $(check_nss_test_LDADD) $(LIBS) client-test$(EXEEXT): $(client_test_OBJECTS) $(client_test_DEPENDENCIES) $(EXTRA_client_test_DEPENDENCIES) @rm -f client-test$(EXEEXT) $(AM_V_CCLD)$(client_test_LINK) $(client_test_OBJECTS) $(client_test_LDADD) $(LIBS) rr-test$(EXEEXT): $(rr_test_OBJECTS) $(rr_test_DEPENDENCIES) $(EXTRA_rr_test_DEPENDENCIES) @rm -f rr-test$(EXEEXT) $(AM_V_CCLD)$(rr_test_LINK) $(rr_test_OBJECTS) $(rr_test_LDADD) $(LIBS) srv-test$(EXEEXT): $(srv_test_OBJECTS) $(srv_test_DEPENDENCIES) $(EXTRA_srv_test_DEPENDENCIES) @rm -f srv-test$(EXEEXT) $(AM_V_CCLD)$(srv_test_LINK) $(srv_test_OBJECTS) $(srv_test_LDADD) $(LIBS) xdg-config-test$(EXEEXT): $(xdg_config_test_OBJECTS) $(xdg_config_test_DEPENDENCIES) $(EXTRA_xdg_config_test_DEPENDENCIES) @rm -f xdg-config-test$(EXEEXT) $(AM_V_CCLD)$(xdg_config_test_LINK) $(xdg_config_test_OBJECTS) $(xdg_config_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_nss_test-check-nss-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_nss_test-check-nss.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client_test-client-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_client_la-browser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_client_la-check-nss.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_client_la-client.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_client_la-dbus-watch-glue.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_client_la-dbus.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_client_la-entrygroup.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_client_la-resolver.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_client_la-xdg-config.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rr_test-rr-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/srv_test-srv-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdg_config_test-xdg-config-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdg_config_test-xdg-config.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libavahi_client_la-client.lo: client.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -MT libavahi_client_la-client.lo -MD -MP -MF $(DEPDIR)/libavahi_client_la-client.Tpo -c -o libavahi_client_la-client.lo `test -f 'client.c' || echo '$(srcdir)/'`client.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_client_la-client.Tpo $(DEPDIR)/libavahi_client_la-client.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='client.c' object='libavahi_client_la-client.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -c -o libavahi_client_la-client.lo `test -f 'client.c' || echo '$(srcdir)/'`client.c libavahi_client_la-entrygroup.lo: entrygroup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -MT libavahi_client_la-entrygroup.lo -MD -MP -MF $(DEPDIR)/libavahi_client_la-entrygroup.Tpo -c -o libavahi_client_la-entrygroup.lo `test -f 'entrygroup.c' || echo '$(srcdir)/'`entrygroup.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_client_la-entrygroup.Tpo $(DEPDIR)/libavahi_client_la-entrygroup.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='entrygroup.c' object='libavahi_client_la-entrygroup.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -c -o libavahi_client_la-entrygroup.lo `test -f 'entrygroup.c' || echo '$(srcdir)/'`entrygroup.c libavahi_client_la-browser.lo: browser.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -MT libavahi_client_la-browser.lo -MD -MP -MF $(DEPDIR)/libavahi_client_la-browser.Tpo -c -o libavahi_client_la-browser.lo `test -f 'browser.c' || echo '$(srcdir)/'`browser.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_client_la-browser.Tpo $(DEPDIR)/libavahi_client_la-browser.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browser.c' object='libavahi_client_la-browser.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -c -o libavahi_client_la-browser.lo `test -f 'browser.c' || echo '$(srcdir)/'`browser.c libavahi_client_la-resolver.lo: resolver.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -MT libavahi_client_la-resolver.lo -MD -MP -MF $(DEPDIR)/libavahi_client_la-resolver.Tpo -c -o libavahi_client_la-resolver.lo `test -f 'resolver.c' || echo '$(srcdir)/'`resolver.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_client_la-resolver.Tpo $(DEPDIR)/libavahi_client_la-resolver.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resolver.c' object='libavahi_client_la-resolver.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -c -o libavahi_client_la-resolver.lo `test -f 'resolver.c' || echo '$(srcdir)/'`resolver.c libavahi_client_la-xdg-config.lo: xdg-config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -MT libavahi_client_la-xdg-config.lo -MD -MP -MF $(DEPDIR)/libavahi_client_la-xdg-config.Tpo -c -o libavahi_client_la-xdg-config.lo `test -f 'xdg-config.c' || echo '$(srcdir)/'`xdg-config.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_client_la-xdg-config.Tpo $(DEPDIR)/libavahi_client_la-xdg-config.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xdg-config.c' object='libavahi_client_la-xdg-config.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -c -o libavahi_client_la-xdg-config.lo `test -f 'xdg-config.c' || echo '$(srcdir)/'`xdg-config.c libavahi_client_la-check-nss.lo: check-nss.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -MT libavahi_client_la-check-nss.lo -MD -MP -MF $(DEPDIR)/libavahi_client_la-check-nss.Tpo -c -o libavahi_client_la-check-nss.lo `test -f 'check-nss.c' || echo '$(srcdir)/'`check-nss.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_client_la-check-nss.Tpo $(DEPDIR)/libavahi_client_la-check-nss.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='check-nss.c' object='libavahi_client_la-check-nss.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -c -o libavahi_client_la-check-nss.lo `test -f 'check-nss.c' || echo '$(srcdir)/'`check-nss.c libavahi_client_la-dbus.lo: ../avahi-common/dbus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -MT libavahi_client_la-dbus.lo -MD -MP -MF $(DEPDIR)/libavahi_client_la-dbus.Tpo -c -o libavahi_client_la-dbus.lo `test -f '../avahi-common/dbus.c' || echo '$(srcdir)/'`../avahi-common/dbus.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_client_la-dbus.Tpo $(DEPDIR)/libavahi_client_la-dbus.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/dbus.c' object='libavahi_client_la-dbus.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -c -o libavahi_client_la-dbus.lo `test -f '../avahi-common/dbus.c' || echo '$(srcdir)/'`../avahi-common/dbus.c libavahi_client_la-dbus-watch-glue.lo: ../avahi-common/dbus-watch-glue.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -MT libavahi_client_la-dbus-watch-glue.lo -MD -MP -MF $(DEPDIR)/libavahi_client_la-dbus-watch-glue.Tpo -c -o libavahi_client_la-dbus-watch-glue.lo `test -f '../avahi-common/dbus-watch-glue.c' || echo '$(srcdir)/'`../avahi-common/dbus-watch-glue.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_client_la-dbus-watch-glue.Tpo $(DEPDIR)/libavahi_client_la-dbus-watch-glue.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/dbus-watch-glue.c' object='libavahi_client_la-dbus-watch-glue.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_client_la_CFLAGS) $(CFLAGS) -c -o libavahi_client_la-dbus-watch-glue.lo `test -f '../avahi-common/dbus-watch-glue.c' || echo '$(srcdir)/'`../avahi-common/dbus-watch-glue.c check_nss_test-check-nss.o: check-nss.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(check_nss_test_CFLAGS) $(CFLAGS) -MT check_nss_test-check-nss.o -MD -MP -MF $(DEPDIR)/check_nss_test-check-nss.Tpo -c -o check_nss_test-check-nss.o `test -f 'check-nss.c' || echo '$(srcdir)/'`check-nss.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/check_nss_test-check-nss.Tpo $(DEPDIR)/check_nss_test-check-nss.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='check-nss.c' object='check_nss_test-check-nss.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(check_nss_test_CFLAGS) $(CFLAGS) -c -o check_nss_test-check-nss.o `test -f 'check-nss.c' || echo '$(srcdir)/'`check-nss.c check_nss_test-check-nss.obj: check-nss.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(check_nss_test_CFLAGS) $(CFLAGS) -MT check_nss_test-check-nss.obj -MD -MP -MF $(DEPDIR)/check_nss_test-check-nss.Tpo -c -o check_nss_test-check-nss.obj `if test -f 'check-nss.c'; then $(CYGPATH_W) 'check-nss.c'; else $(CYGPATH_W) '$(srcdir)/check-nss.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/check_nss_test-check-nss.Tpo $(DEPDIR)/check_nss_test-check-nss.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='check-nss.c' object='check_nss_test-check-nss.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(check_nss_test_CFLAGS) $(CFLAGS) -c -o check_nss_test-check-nss.obj `if test -f 'check-nss.c'; then $(CYGPATH_W) 'check-nss.c'; else $(CYGPATH_W) '$(srcdir)/check-nss.c'; fi` check_nss_test-check-nss-test.o: check-nss-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(check_nss_test_CFLAGS) $(CFLAGS) -MT check_nss_test-check-nss-test.o -MD -MP -MF $(DEPDIR)/check_nss_test-check-nss-test.Tpo -c -o check_nss_test-check-nss-test.o `test -f 'check-nss-test.c' || echo '$(srcdir)/'`check-nss-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/check_nss_test-check-nss-test.Tpo $(DEPDIR)/check_nss_test-check-nss-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='check-nss-test.c' object='check_nss_test-check-nss-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(check_nss_test_CFLAGS) $(CFLAGS) -c -o check_nss_test-check-nss-test.o `test -f 'check-nss-test.c' || echo '$(srcdir)/'`check-nss-test.c check_nss_test-check-nss-test.obj: check-nss-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(check_nss_test_CFLAGS) $(CFLAGS) -MT check_nss_test-check-nss-test.obj -MD -MP -MF $(DEPDIR)/check_nss_test-check-nss-test.Tpo -c -o check_nss_test-check-nss-test.obj `if test -f 'check-nss-test.c'; then $(CYGPATH_W) 'check-nss-test.c'; else $(CYGPATH_W) '$(srcdir)/check-nss-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/check_nss_test-check-nss-test.Tpo $(DEPDIR)/check_nss_test-check-nss-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='check-nss-test.c' object='check_nss_test-check-nss-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(check_nss_test_CFLAGS) $(CFLAGS) -c -o check_nss_test-check-nss-test.obj `if test -f 'check-nss-test.c'; then $(CYGPATH_W) 'check-nss-test.c'; else $(CYGPATH_W) '$(srcdir)/check-nss-test.c'; fi` client_test-client-test.o: client-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_test_CFLAGS) $(CFLAGS) -MT client_test-client-test.o -MD -MP -MF $(DEPDIR)/client_test-client-test.Tpo -c -o client_test-client-test.o `test -f 'client-test.c' || echo '$(srcdir)/'`client-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/client_test-client-test.Tpo $(DEPDIR)/client_test-client-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='client-test.c' object='client_test-client-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_test_CFLAGS) $(CFLAGS) -c -o client_test-client-test.o `test -f 'client-test.c' || echo '$(srcdir)/'`client-test.c client_test-client-test.obj: client-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_test_CFLAGS) $(CFLAGS) -MT client_test-client-test.obj -MD -MP -MF $(DEPDIR)/client_test-client-test.Tpo -c -o client_test-client-test.obj `if test -f 'client-test.c'; then $(CYGPATH_W) 'client-test.c'; else $(CYGPATH_W) '$(srcdir)/client-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/client_test-client-test.Tpo $(DEPDIR)/client_test-client-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='client-test.c' object='client_test-client-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_test_CFLAGS) $(CFLAGS) -c -o client_test-client-test.obj `if test -f 'client-test.c'; then $(CYGPATH_W) 'client-test.c'; else $(CYGPATH_W) '$(srcdir)/client-test.c'; fi` rr_test-rr-test.o: rr-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rr_test_CFLAGS) $(CFLAGS) -MT rr_test-rr-test.o -MD -MP -MF $(DEPDIR)/rr_test-rr-test.Tpo -c -o rr_test-rr-test.o `test -f 'rr-test.c' || echo '$(srcdir)/'`rr-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/rr_test-rr-test.Tpo $(DEPDIR)/rr_test-rr-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rr-test.c' object='rr_test-rr-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rr_test_CFLAGS) $(CFLAGS) -c -o rr_test-rr-test.o `test -f 'rr-test.c' || echo '$(srcdir)/'`rr-test.c rr_test-rr-test.obj: rr-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rr_test_CFLAGS) $(CFLAGS) -MT rr_test-rr-test.obj -MD -MP -MF $(DEPDIR)/rr_test-rr-test.Tpo -c -o rr_test-rr-test.obj `if test -f 'rr-test.c'; then $(CYGPATH_W) 'rr-test.c'; else $(CYGPATH_W) '$(srcdir)/rr-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/rr_test-rr-test.Tpo $(DEPDIR)/rr_test-rr-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rr-test.c' object='rr_test-rr-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rr_test_CFLAGS) $(CFLAGS) -c -o rr_test-rr-test.obj `if test -f 'rr-test.c'; then $(CYGPATH_W) 'rr-test.c'; else $(CYGPATH_W) '$(srcdir)/rr-test.c'; fi` srv_test-srv-test.o: srv-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(srv_test_CFLAGS) $(CFLAGS) -MT srv_test-srv-test.o -MD -MP -MF $(DEPDIR)/srv_test-srv-test.Tpo -c -o srv_test-srv-test.o `test -f 'srv-test.c' || echo '$(srcdir)/'`srv-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/srv_test-srv-test.Tpo $(DEPDIR)/srv_test-srv-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='srv-test.c' object='srv_test-srv-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(srv_test_CFLAGS) $(CFLAGS) -c -o srv_test-srv-test.o `test -f 'srv-test.c' || echo '$(srcdir)/'`srv-test.c srv_test-srv-test.obj: srv-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(srv_test_CFLAGS) $(CFLAGS) -MT srv_test-srv-test.obj -MD -MP -MF $(DEPDIR)/srv_test-srv-test.Tpo -c -o srv_test-srv-test.obj `if test -f 'srv-test.c'; then $(CYGPATH_W) 'srv-test.c'; else $(CYGPATH_W) '$(srcdir)/srv-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/srv_test-srv-test.Tpo $(DEPDIR)/srv_test-srv-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='srv-test.c' object='srv_test-srv-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(srv_test_CFLAGS) $(CFLAGS) -c -o srv_test-srv-test.obj `if test -f 'srv-test.c'; then $(CYGPATH_W) 'srv-test.c'; else $(CYGPATH_W) '$(srcdir)/srv-test.c'; fi` xdg_config_test-xdg-config-test.o: xdg-config-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdg_config_test_CFLAGS) $(CFLAGS) -MT xdg_config_test-xdg-config-test.o -MD -MP -MF $(DEPDIR)/xdg_config_test-xdg-config-test.Tpo -c -o xdg_config_test-xdg-config-test.o `test -f 'xdg-config-test.c' || echo '$(srcdir)/'`xdg-config-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xdg_config_test-xdg-config-test.Tpo $(DEPDIR)/xdg_config_test-xdg-config-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xdg-config-test.c' object='xdg_config_test-xdg-config-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdg_config_test_CFLAGS) $(CFLAGS) -c -o xdg_config_test-xdg-config-test.o `test -f 'xdg-config-test.c' || echo '$(srcdir)/'`xdg-config-test.c xdg_config_test-xdg-config-test.obj: xdg-config-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdg_config_test_CFLAGS) $(CFLAGS) -MT xdg_config_test-xdg-config-test.obj -MD -MP -MF $(DEPDIR)/xdg_config_test-xdg-config-test.Tpo -c -o xdg_config_test-xdg-config-test.obj `if test -f 'xdg-config-test.c'; then $(CYGPATH_W) 'xdg-config-test.c'; else $(CYGPATH_W) '$(srcdir)/xdg-config-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xdg_config_test-xdg-config-test.Tpo $(DEPDIR)/xdg_config_test-xdg-config-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xdg-config-test.c' object='xdg_config_test-xdg-config-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdg_config_test_CFLAGS) $(CFLAGS) -c -o xdg_config_test-xdg-config-test.obj `if test -f 'xdg-config-test.c'; then $(CYGPATH_W) 'xdg-config-test.c'; else $(CYGPATH_W) '$(srcdir)/xdg-config-test.c'; fi` xdg_config_test-xdg-config.o: xdg-config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdg_config_test_CFLAGS) $(CFLAGS) -MT xdg_config_test-xdg-config.o -MD -MP -MF $(DEPDIR)/xdg_config_test-xdg-config.Tpo -c -o xdg_config_test-xdg-config.o `test -f 'xdg-config.c' || echo '$(srcdir)/'`xdg-config.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xdg_config_test-xdg-config.Tpo $(DEPDIR)/xdg_config_test-xdg-config.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xdg-config.c' object='xdg_config_test-xdg-config.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdg_config_test_CFLAGS) $(CFLAGS) -c -o xdg_config_test-xdg-config.o `test -f 'xdg-config.c' || echo '$(srcdir)/'`xdg-config.c xdg_config_test-xdg-config.obj: xdg-config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdg_config_test_CFLAGS) $(CFLAGS) -MT xdg_config_test-xdg-config.obj -MD -MP -MF $(DEPDIR)/xdg_config_test-xdg-config.Tpo -c -o xdg_config_test-xdg-config.obj `if test -f 'xdg-config.c'; then $(CYGPATH_W) 'xdg-config.c'; else $(CYGPATH_W) '$(srcdir)/xdg-config.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/xdg_config_test-xdg-config.Tpo $(DEPDIR)/xdg_config_test-xdg-config.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xdg-config.c' object='xdg_config_test-xdg-config.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(xdg_config_test_CFLAGS) $(CFLAGS) -c -o xdg_config_test-xdg-config.obj `if test -f 'xdg-config.c'; then $(CYGPATH_W) 'xdg-config.c'; else $(CYGPATH_W) '$(srcdir)/xdg-config.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahi_clientincludeHEADERS: $(avahi_clientinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(avahi_clientinclude_HEADERS)'; test -n "$(avahi_clientincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_clientincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_clientincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahi_clientincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahi_clientincludedir)" || exit $$?; \ done uninstall-avahi_clientincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahi_clientinclude_HEADERS)'; test -n "$(avahi_clientincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahi_clientincludedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahi_clientincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahi_clientincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahi_clientincludeHEADERS \ uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-avahi_clientincludeHEADERS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-avahi_clientincludeHEADERS uninstall-libLTLIBRARIES .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-client/PaxHeaders.10109/client-test.c0000644000000000000000000000013213130651643017144 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.187986003 avahi-0.7/avahi-client/client-test.c0000644000175000017500000003074213130651643020561 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include static const AvahiPoll *poll_api = NULL; static AvahiSimplePoll *simple_poll = NULL; static void avahi_client_callback (AvahiClient *c, AvahiClientState state, void *userdata) { printf ("CLIENT: Callback on %p, state -> %d, data -> %s\n", (void*) c, state, (char*)userdata); } static void avahi_entry_group_callback (AvahiEntryGroup *g, AvahiEntryGroupState state, void *userdata) { printf ("ENTRY-GROUP: Callback on %p, state -> %d, data -> %s\n", (void*) g, state, (char*)userdata); } static void avahi_entry_group2_callback (AvahiEntryGroup *g, AvahiEntryGroupState state, void *userdata) { printf ("ENTRY-GROUP2: Callback on %p, state -> %d, data -> %s\n", (void*) g, state, (char*)userdata); } static void avahi_domain_browser_callback( AvahiDomainBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { printf ("DOMAIN-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, domain ? domain : "NULL", (char*)userdata); } static void avahi_service_resolver_callback( AvahiServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { char addr[64]; char *txtr; if (event == AVAHI_RESOLVER_FAILURE) { printf ("SERVICE-RESOLVER: ServiceResolver %p timed out (%s %s)\n", (void*) r, name, type); return; } avahi_address_snprint (addr, sizeof (addr), a); txtr = avahi_string_list_to_string (txt); printf ("SERVICE-RESOLVER: Callback on ServiceResolver, interface (%d), protocol (%d), event (%d), name (%s), type (%s), domain (%s), host_name (%s), address (%s), port (%d), txtdata (%s), data(%s)\n", interface, protocol, event, name, type, domain, host_name, addr, port, txtr, (char*)userdata); avahi_free(txtr); } static void avahi_service_browser_callback ( AvahiServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { AvahiServiceResolver *sr; printf ("SERVICE-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), name (%s), type (%s), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, name ? name : "NULL", type, domain ? domain : "NULL", (char*)userdata); if (b && name) { sr = avahi_service_resolver_new (avahi_service_browser_get_client (b), interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, 0, avahi_service_resolver_callback, (char*) "xxXXxx"); printf("New service resolver %p\n", (void*) sr); } } static void avahi_service_type_browser_callback ( AvahiServiceTypeBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { printf ("SERVICE-TYPE-BROWSER: Callback on %p, interface (%d), protocol (%d), event (%d), type (%s), domain (%s), data (%s)\n", (void*) b, interface, protocol, event, type ? type : "NULL", domain ? domain : "NULL", (char*)userdata); } static void avahi_address_resolver_callback ( AVAHI_GCC_UNUSED AvahiAddressResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *address, const char *name, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { char addr[64]; if (event == AVAHI_RESOLVER_FAILURE) { printf ("ADDRESS-RESOLVER: Callback on AddressResolver, timed out.\n"); return; } avahi_address_snprint (addr, sizeof (addr), address); printf ("ADDRESS-RESOLVER: Callback on AddressResolver, interface (%d), protocol (%d), even (%d), address (%s), name (%s), data(%s)\n", interface, protocol, event, addr, name, (char*) userdata); } static void avahi_host_name_resolver_callback ( AvahiHostNameResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const AvahiAddress *a, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { AvahiClient *client; AvahiAddressResolver *ar; char addr[64]; if (event == AVAHI_RESOLVER_FAILURE) { printf ("HOST-NAME-RESOLVER: Callback on HostNameResolver, timed out.\n"); return; } client = avahi_host_name_resolver_get_client (r); ar = avahi_address_resolver_new(client, interface, protocol, a, 0, avahi_address_resolver_callback, (char*) "omghai6u"); if (ar) { printf ("Succesfully created address resolver object\n"); } else { printf ("Failed to create AddressResolver\n"); } avahi_address_snprint (addr, sizeof (addr), a); printf ("HOST-NAME-RESOLVER: Callback on HostNameResolver, interface (%d), protocol (%d), event (%d), name (%s), address (%s), data (%s)\n", interface, protocol, event, name, addr, (char*)userdata); } static void test_free_domain_browser(AVAHI_GCC_UNUSED AvahiTimeout *timeout, void* userdata) { AvahiServiceBrowser *b = userdata; printf ("Freeing domain browser\n"); avahi_service_browser_free (b); } static void test_free_entry_group (AVAHI_GCC_UNUSED AvahiTimeout *timeout, void* userdata) { AvahiEntryGroup *g = userdata; printf ("Freeing entry group\n"); avahi_entry_group_free (g); } static void test_entry_group_reset (AVAHI_GCC_UNUSED AvahiTimeout *timeout, void* userdata) { AvahiEntryGroup *g = userdata; printf ("Resetting entry group\n"); avahi_entry_group_reset (g); avahi_entry_group_add_service (g, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "Lathiat's Site", "_http._tcp", NULL, NULL, 80, "foo=bar2", NULL); avahi_entry_group_commit (g); } static void test_entry_group_update(AVAHI_GCC_UNUSED AvahiTimeout *timeout, void* userdata) { AvahiEntryGroup *g = userdata; printf ("Updating entry group\n"); avahi_entry_group_update_service_txt(g, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "Lathiat's Site", "_http._tcp", NULL, "foo=bar3", NULL); } static void terminate(AVAHI_GCC_UNUSED AvahiTimeout *timeout, AVAHI_GCC_UNUSED void *userdata) { avahi_simple_poll_quit(simple_poll); } int main (AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { AvahiClient *avahi; AvahiEntryGroup *group, *group2; AvahiDomainBrowser *domain; AvahiServiceBrowser *sb; AvahiServiceTypeBrowser *st; AvahiHostNameResolver *hnr; AvahiAddress *aar; const char *ret; int error; uint32_t cookie; struct timeval tv; AvahiAddress a; simple_poll = avahi_simple_poll_new(); poll_api = avahi_simple_poll_get(simple_poll); if (!(avahi = avahi_client_new(poll_api, 0, avahi_client_callback, (char*) "omghai2u", &error))) { fprintf(stderr, "Client failed: %s\n", avahi_strerror(error)); goto fail; } printf("State: %i\n", avahi_client_get_state(avahi)); ret = avahi_client_get_version_string (avahi); printf("Avahi Server Version: %s (Error Return: %s)\n", ret, ret ? "OK" : avahi_strerror(avahi_client_errno(avahi))); ret = avahi_client_get_host_name (avahi); printf("Host Name: %s (Error Return: %s)\n", ret, ret ? "OK" : avahi_strerror(avahi_client_errno(avahi))); ret = avahi_client_get_domain_name (avahi); printf("Domain Name: %s (Error Return: %s)\n", ret, ret ? "OK" : avahi_strerror(avahi_client_errno(avahi))); ret = avahi_client_get_host_name_fqdn (avahi); printf("FQDN: %s (Error Return: %s)\n", ret, ret ? "OK" : avahi_strerror(avahi_client_errno(avahi))); cookie = avahi_client_get_local_service_cookie(avahi); printf("Local service cookie: %u (Error Return: %s)\n", cookie, cookie != AVAHI_SERVICE_COOKIE_INVALID ? "OK" : avahi_strerror(avahi_client_errno(avahi))); group = avahi_entry_group_new(avahi, avahi_entry_group_callback, (char*) "omghai"); printf("Creating entry group: %s\n", group ? "OK" : avahi_strerror(avahi_client_errno (avahi))); assert(group); printf("Sucessfully created entry group %p\n", (void*) group); printf("%s\n", avahi_strerror(avahi_entry_group_add_service (group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "Lathiat's Site", "_http._tcp", NULL, NULL, 80, "foo=bar", NULL))); printf("add_record: %d\n", avahi_entry_group_add_record (group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "TestX", 0x01, 0x10, 120, "\5booya", 6)); avahi_entry_group_commit (group); domain = avahi_domain_browser_new (avahi, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, AVAHI_DOMAIN_BROWSER_BROWSE, 0, avahi_domain_browser_callback, (char*) "omghai3u"); if (domain == NULL) printf ("Failed to create domain browser object\n"); else printf ("Sucessfully created domain browser %p\n", (void*) domain); st = avahi_service_type_browser_new (avahi, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, 0, avahi_service_type_browser_callback, (char*) "omghai3u"); if (st == NULL) printf ("Failed to create service type browser object\n"); else printf ("Sucessfully created service type browser %p\n", (void*) st); sb = avahi_service_browser_new (avahi, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_http._tcp", NULL, 0, avahi_service_browser_callback, (char*) "omghai3u"); if (sb == NULL) printf ("Failed to create service browser object\n"); else printf ("Sucessfully created service browser %p\n", (void*) sb); hnr = avahi_host_name_resolver_new (avahi, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "ecstasy.local", AVAHI_PROTO_UNSPEC, 0, avahi_host_name_resolver_callback, (char*) "omghai4u"); if (hnr == NULL) printf ("Failed to create hostname resolver object\n"); else printf ("Successfully created hostname resolver object\n"); aar = avahi_address_parse ("224.0.0.251", AVAHI_PROTO_UNSPEC, &a); if (aar == NULL) { printf ("failed to create address object\n"); } else { group2 = avahi_entry_group_new (avahi, avahi_entry_group2_callback, (char*) "omghai222"); if ((error = avahi_entry_group_add_address (group2, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "test-mdns.local.", aar)) < 0) { printf ("*** failed to add address to entry group: %s\n", avahi_strerror (error)); avahi_entry_group_free (group2); } else { printf ("*** success, added address\n"); avahi_entry_group_commit (group2); } } avahi_elapse_time(&tv, 8000, 0); poll_api->timeout_new(poll_api, &tv, test_entry_group_reset, group); avahi_elapse_time(&tv, 15000, 0); poll_api->timeout_new(poll_api, &tv, test_entry_group_update, group); avahi_elapse_time(&tv, 20000, 0); poll_api->timeout_new(poll_api, &tv, test_free_entry_group, group); avahi_elapse_time(&tv, 25000, 0); poll_api->timeout_new(poll_api, &tv, test_free_domain_browser, sb); avahi_elapse_time(&tv, 30000, 0); poll_api->timeout_new(poll_api, &tv, terminate, NULL); avahi_simple_poll_loop(simple_poll); printf("terminating...\n"); fail: if (avahi) avahi_client_free (avahi); if (simple_poll) avahi_simple_poll_free(simple_poll); return 0; } avahi-0.7/avahi-client/PaxHeaders.10109/browser.c0000644000000000000000000000013213130651643016374 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.183986095 avahi-0.7/avahi-client/browser.c0000644000175000017500000006705713130651643020022 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include "client.h" #include "internal.h" #include "xdg-config.h" static void parse_environment(AvahiDomainBrowser *b) { char buf[AVAHI_DOMAIN_NAME_MAX*3], *e, *t, *p; assert(b); if (!(e = getenv("AVAHI_BROWSE_DOMAINS"))) return; snprintf(buf, sizeof(buf), "%s", e); for (t = strtok_r(buf, ":", &p); t; t = strtok_r(NULL, ":", &p)) { char domain[AVAHI_DOMAIN_NAME_MAX]; if (avahi_normalize_name(t, domain, sizeof(domain))) b->static_browse_domains = avahi_string_list_add(b->static_browse_domains, domain); } } static void parse_domain_file(AvahiDomainBrowser *b) { FILE *f; char buf[AVAHI_DOMAIN_NAME_MAX]; assert(b); if (!(f = avahi_xdg_config_open("avahi/browse-domains"))) return; while (fgets(buf, sizeof(buf)-1, f)) { char domain[AVAHI_DOMAIN_NAME_MAX]; buf[strcspn(buf, "\n\r")] = 0; if (avahi_normalize_name(buf, domain, sizeof(domain))) b->static_browse_domains = avahi_string_list_add(b->static_browse_domains, domain); } } static void domain_browser_ref(AvahiDomainBrowser *db) { assert(db); assert(db->ref >= 1); db->ref++; } static void defer_timeout_callback(AvahiTimeout *t, void *userdata) { AvahiDomainBrowser *db = userdata; AvahiStringList *l; assert(t); db->client->poll_api->timeout_free(db->defer_timeout); db->defer_timeout = NULL; domain_browser_ref(db); for (l = db->static_browse_domains; l; l = l->next) { if (db->ref <= 1) break; db->callback(db, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, AVAHI_BROWSER_NEW, (char*) l->text, AVAHI_LOOKUP_RESULT_STATIC, db->userdata); } avahi_domain_browser_free(db); } AvahiDomainBrowser* avahi_domain_browser_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiDomainBrowserType btype, AvahiLookupFlags flags, AvahiDomainBrowserCallback callback, void *userdata) { AvahiDomainBrowser *db = NULL; DBusMessage *message = NULL, *reply = NULL; DBusError error; char *path; int32_t i_interface, i_protocol, bt; uint32_t u_flags; assert(client); assert(callback); dbus_error_init (&error); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); goto fail; } if (!domain) domain = ""; if (!(db = avahi_new (AvahiDomainBrowser, 1))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } db->ref = 1; db->client = client; db->callback = callback; db->userdata = userdata; db->path = NULL; db->interface = interface; db->protocol = protocol; db->static_browse_domains = NULL; db->defer_timeout = NULL; AVAHI_LLIST_PREPEND(AvahiDomainBrowser, domain_browsers, client->domain_browsers, db); if (!(client->flags & AVAHI_CLIENT_IGNORE_USER_CONFIG)) { parse_environment(db); parse_domain_file(db); } db->static_browse_domains = avahi_string_list_reverse(db->static_browse_domains); if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "DomainBrowserNew"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; bt = btype; if (!(dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &domain, DBUS_TYPE_INT32, &bt, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || dbus_error_is_set(&error)) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args (reply, &error, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID) || dbus_error_is_set(&error) || !path) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!(db->path = avahi_strdup(path))) { /* FIXME: We don't remove the object on the server side */ avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (db->static_browse_domains && btype == AVAHI_DOMAIN_BROWSER_BROWSE) { struct timeval tv = { 0, 0 }; if (!(db->defer_timeout = client->poll_api->timeout_new(client->poll_api, &tv, defer_timeout_callback, db))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } } dbus_message_unref(message); dbus_message_unref(reply); return db; fail: if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (db) avahi_domain_browser_free(db); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return NULL; } AvahiClient* avahi_domain_browser_get_client (AvahiDomainBrowser *b) { assert(b); return b->client; } int avahi_domain_browser_free (AvahiDomainBrowser *b) { AvahiClient *client; int r = AVAHI_OK; assert(b); assert(b->ref >= 1); if (--(b->ref) >= 1) return AVAHI_OK; client = b->client; if (b->path && avahi_client_is_connected(b->client)) r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, "Free"); AVAHI_LLIST_REMOVE(AvahiDomainBrowser, domain_browsers, client->domain_browsers, b); if (b->defer_timeout) b->client->poll_api->timeout_free(b->defer_timeout); avahi_string_list_free(b->static_browse_domains); avahi_free(b->path); avahi_free(b); return r; } DBusHandlerResult avahi_domain_browser_event (AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message) { AvahiDomainBrowser *db = NULL; DBusError error; const char *path; char *domain = NULL; int32_t interface, protocol; uint32_t flags = 0; AvahiStringList *l; assert(client); assert(message); dbus_error_init (&error); if (!(path = dbus_message_get_path(message))) goto fail; for (db = client->domain_browsers; db; db = db->domain_browsers_next) if (strcmp (db->path, path) == 0) break; if (!db) goto fail; interface = db->interface; protocol = db->protocol; switch (event) { case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE: if (!dbus_message_get_args( message, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse browser event.\n"); goto fail; } break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; case AVAHI_BROWSER_FAILURE: { char *etxt; if (!dbus_message_get_args( message, &error, DBUS_TYPE_STRING, &etxt, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse browser event.\n"); goto fail; } avahi_client_set_errno(db->client, avahi_error_dbus_to_number(etxt)); break; } } if (domain) for (l = db->static_browse_domains; l; l = l->next) if (avahi_domain_equal((char*) l->text, domain)) { /* We had this entry already in the static entries */ return DBUS_HANDLER_RESULT_HANDLED; } db->callback(db, (AvahiIfIndex) interface, (AvahiProtocol) protocol, event, domain, (AvahiLookupResultFlags) flags, db->userdata); return DBUS_HANDLER_RESULT_HANDLED; fail: dbus_error_free (&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } /* AvahiServiceTypeBrowser */ AvahiServiceTypeBrowser* avahi_service_type_browser_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiLookupFlags flags, AvahiServiceTypeBrowserCallback callback, void *userdata) { AvahiServiceTypeBrowser *b = NULL; DBusMessage *message = NULL, *reply = NULL; DBusError error; char *path; int32_t i_interface, i_protocol; uint32_t u_flags; assert(client); assert(callback); dbus_error_init(&error); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); goto fail; } if (!domain) domain = ""; if (!(b = avahi_new(AvahiServiceTypeBrowser, 1))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } b->client = client; b->callback = callback; b->userdata = userdata; b->path = NULL; b->domain = NULL; b->interface = interface; b->protocol = protocol; AVAHI_LLIST_PREPEND(AvahiServiceTypeBrowser, service_type_browsers, client->service_type_browsers, b); if (domain[0]) if (!(b->domain = avahi_strdup(domain))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "ServiceTypeBrowserNew"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID)) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || dbus_error_is_set(&error)) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args (reply, &error, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID) || dbus_error_is_set(&error) || !path) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!(b->path = avahi_strdup(path))) { /* FIXME: We don't remove the object on the server side */ avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return b; fail: if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (b) avahi_service_type_browser_free(b); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return NULL; } AvahiClient* avahi_service_type_browser_get_client (AvahiServiceTypeBrowser *b) { assert(b); return b->client; } int avahi_service_type_browser_free (AvahiServiceTypeBrowser *b) { AvahiClient *client; int r = AVAHI_OK; assert(b); client = b->client; if (b->path && avahi_client_is_connected(b->client)) r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, "Free"); AVAHI_LLIST_REMOVE(AvahiServiceTypeBrowser, service_type_browsers, b->client->service_type_browsers, b); avahi_free(b->path); avahi_free(b->domain); avahi_free(b); return r; } DBusHandlerResult avahi_service_type_browser_event (AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message) { AvahiServiceTypeBrowser *b = NULL; DBusError error; const char *path; char *domain, *type = NULL; int32_t interface, protocol; uint32_t flags = 0; assert(client); assert(message); dbus_error_init (&error); if (!(path = dbus_message_get_path(message))) goto fail; for (b = client->service_type_browsers; b; b = b->service_type_browsers_next) if (strcmp (b->path, path) == 0) break; if (!b) goto fail; domain = b->domain; interface = b->interface; protocol = b->protocol; switch (event) { case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE: if (!dbus_message_get_args( message, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || dbus_error_is_set(&error)) { fprintf(stderr, "Failed to parse browser event.\n"); goto fail; } break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; case AVAHI_BROWSER_FAILURE: { char *etxt; if (!dbus_message_get_args( message, &error, DBUS_TYPE_STRING, &etxt, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse browser event.\n"); goto fail; } avahi_client_set_errno(b->client, avahi_error_dbus_to_number(etxt)); break; } } b->callback(b, (AvahiIfIndex) interface, (AvahiProtocol) protocol, event, type, domain, (AvahiLookupResultFlags) flags, b->userdata); return DBUS_HANDLER_RESULT_HANDLED; fail: dbus_error_free (&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } /* AvahiServiceBrowser */ AvahiServiceBrowser* avahi_service_browser_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *type, const char *domain, AvahiLookupFlags flags, AvahiServiceBrowserCallback callback, void *userdata) { AvahiServiceBrowser *b = NULL; DBusMessage *message = NULL, *reply = NULL; DBusError error; char *path; int32_t i_protocol, i_interface; uint32_t u_flags; assert(client); assert(type); assert(callback); dbus_error_init(&error); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); goto fail; } if (!domain) domain = ""; if (!(b = avahi_new(AvahiServiceBrowser, 1))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } b->client = client; b->callback = callback; b->userdata = userdata; b->path = NULL; b->type = b->domain = NULL; b->interface = interface; b->protocol = protocol; AVAHI_LLIST_PREPEND(AvahiServiceBrowser, service_browsers, client->service_browsers, b); if (!(b->type = avahi_strdup(type))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (domain && domain[0]) if (!(b->domain = avahi_strdup(domain))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "ServiceBrowserNew"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID)) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || dbus_error_is_set(&error)) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args (reply, &error, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID) || dbus_error_is_set(&error) || !path) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!(b->path = avahi_strdup(path))) { /* FIXME: We don't remove the object on the server side */ avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return b; fail: if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (b) avahi_service_browser_free(b); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return NULL; } AvahiClient* avahi_service_browser_get_client (AvahiServiceBrowser *b) { assert(b); return b->client; } int avahi_service_browser_free (AvahiServiceBrowser *b) { AvahiClient *client; int r = AVAHI_OK; assert(b); client = b->client; if (b->path && avahi_client_is_connected(b->client)) r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, "Free"); AVAHI_LLIST_REMOVE(AvahiServiceBrowser, service_browsers, b->client->service_browsers, b); avahi_free(b->path); avahi_free(b->type); avahi_free(b->domain); avahi_free(b); return r; } DBusHandlerResult avahi_service_browser_event(AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message) { AvahiServiceBrowser *b = NULL; DBusError error; const char *path; char *name = NULL, *type, *domain; int32_t interface, protocol; uint32_t flags = 0; dbus_error_init (&error); if (!(path = dbus_message_get_path(message))) goto fail; for (b = client->service_browsers; b; b = b->service_browsers_next) if (strcmp (b->path, path) == 0) break; if (!b) goto fail; type = b->type; domain = b->domain; interface = b->interface; protocol = b->protocol; switch (event) { case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE: if (!dbus_message_get_args ( message, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || dbus_error_is_set(&error)) { fprintf(stderr, "Failed to parse browser event.\n"); goto fail; } break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; case AVAHI_BROWSER_FAILURE: { char *etxt; if (!dbus_message_get_args( message, &error, DBUS_TYPE_STRING, &etxt, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse browser event.\n"); goto fail; } avahi_client_set_errno(b->client, avahi_error_dbus_to_number(etxt)); break; } } b->callback(b, (AvahiIfIndex) interface, (AvahiProtocol) protocol, event, name, type, domain, (AvahiLookupResultFlags) flags, b->userdata); return DBUS_HANDLER_RESULT_HANDLED; fail: dbus_error_free (&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } /* AvahiRecordBrowser */ AvahiRecordBrowser* avahi_record_browser_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, uint16_t clazz, uint16_t type, AvahiLookupFlags flags, AvahiRecordBrowserCallback callback, void *userdata) { AvahiRecordBrowser *b = NULL; DBusMessage *message = NULL, *reply = NULL; DBusError error; char *path; int32_t i_protocol, i_interface; uint32_t u_flags; assert(client); assert(name); assert(callback); dbus_error_init(&error); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); goto fail; } if (!(b = avahi_new(AvahiRecordBrowser, 1))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } b->client = client; b->callback = callback; b->userdata = userdata; b->path = NULL; b->name = NULL; b->clazz = clazz; b->type = type; b->interface = interface; b->protocol = protocol; AVAHI_LLIST_PREPEND(AvahiRecordBrowser, record_browsers, client->record_browsers, b); if (!(b->name = avahi_strdup(name))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "RecordBrowserNew"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_UINT16, &clazz, DBUS_TYPE_UINT16, &type, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID)) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || dbus_error_is_set(&error)) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args (reply, &error, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID) || dbus_error_is_set(&error) || !path) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!(b->path = avahi_strdup(path))) { /* FIXME: We don't remove the object on the server side */ avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return b; fail: if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (b) avahi_record_browser_free(b); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return NULL; } AvahiClient* avahi_record_browser_get_client (AvahiRecordBrowser *b) { assert(b); return b->client; } int avahi_record_browser_free (AvahiRecordBrowser *b) { AvahiClient *client; int r = AVAHI_OK; assert(b); client = b->client; if (b->path && avahi_client_is_connected(b->client)) r = avahi_client_simple_method_call(client, b->path, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "Free"); AVAHI_LLIST_REMOVE(AvahiRecordBrowser, record_browsers, b->client->record_browsers, b); avahi_free(b->path); avahi_free(b->name); avahi_free(b); return r; } DBusHandlerResult avahi_record_browser_event(AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message) { AvahiRecordBrowser *b = NULL; DBusError error; const char *path; char *name; int32_t interface, protocol; uint32_t flags = 0; uint16_t clazz, type; void *rdata = NULL; int rdata_size = 0; dbus_error_init (&error); if (!(path = dbus_message_get_path(message))) goto fail; for (b = client->record_browsers; b; b = b->record_browsers_next) if (strcmp (b->path, path) == 0) break; if (!b) goto fail; interface = b->interface; protocol = b->protocol; clazz = b->clazz; type = b->type; name = b->name; switch (event) { case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE: { DBusMessageIter iter, sub; int j; if (!dbus_message_get_args ( message, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_UINT16, &clazz, DBUS_TYPE_UINT16, &type, DBUS_TYPE_INVALID) || dbus_error_is_set(&error)) { fprintf(stderr, "Failed to parse browser event.\n"); goto fail; } dbus_message_iter_init(message, &iter); for (j = 0; j < 5; j++) dbus_message_iter_next(&iter); if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_ARRAY || dbus_message_iter_get_element_type(&iter) != DBUS_TYPE_BYTE) goto fail; dbus_message_iter_recurse(&iter, &sub); dbus_message_iter_get_fixed_array(&sub, &rdata, &rdata_size); dbus_message_iter_next(&iter); if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_UINT32) goto fail; dbus_message_iter_get_basic(&iter, &flags); break; } case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; case AVAHI_BROWSER_FAILURE: { char *etxt; if (!dbus_message_get_args( message, &error, DBUS_TYPE_STRING, &etxt, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse browser event.\n"); goto fail; } avahi_client_set_errno(b->client, avahi_error_dbus_to_number(etxt)); break; } } b->callback(b, (AvahiIfIndex) interface, (AvahiProtocol) protocol, event, name, clazz, type, rdata, (size_t) rdata_size, (AvahiLookupResultFlags) flags, b->userdata); return DBUS_HANDLER_RESULT_HANDLED; fail: dbus_error_free (&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } avahi-0.7/avahi-client/PaxHeaders.10109/check-nss.c0000644000000000000000000000013213130651643016567 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.183986095 avahi-0.7/avahi-client/check-nss.c0000644000175000017500000000243713130651643020204 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_DLOPEN #include #endif #include #include "client.h" int avahi_nss_support(void) { int b = 0; #ifdef HAVE_DLOPEN static const char * const libs[] = { "libnss_mdns.so.2", "libnss_mdns4.so.2", "libnss_mdns6.so.2", NULL }; const char * const *l; for (l = libs; *l; l++) { void *dl; if ((dl = dlopen(*l, RTLD_LAZY))) { b = 1; dlclose(dl); break; } } #endif return b; } avahi-0.7/avahi-client/PaxHeaders.10109/internal.h0000644000000000000000000000013213130651643016532 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.179986184 avahi-0.7/avahi-client/internal.h0000644000175000017500000001226113130651643020143 0ustar00lathiatlathiat00000000000000#ifndef foointernalhfoo #define foointernalhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include "client.h" #include "lookup.h" #include "publish.h" struct AvahiClient { const AvahiPoll *poll_api; DBusConnection *bus; int error; AvahiClientState state; AvahiClientFlags flags; /* Cache for some seldom changing server data */ char *version_string, *host_name, *host_name_fqdn, *domain_name; uint32_t local_service_cookie; int local_service_cookie_valid; AvahiClientCallback callback; void *userdata; AVAHI_LLIST_HEAD(AvahiEntryGroup, groups); AVAHI_LLIST_HEAD(AvahiDomainBrowser, domain_browsers); AVAHI_LLIST_HEAD(AvahiServiceBrowser, service_browsers); AVAHI_LLIST_HEAD(AvahiServiceTypeBrowser, service_type_browsers); AVAHI_LLIST_HEAD(AvahiServiceResolver, service_resolvers); AVAHI_LLIST_HEAD(AvahiHostNameResolver, host_name_resolvers); AVAHI_LLIST_HEAD(AvahiAddressResolver, address_resolvers); AVAHI_LLIST_HEAD(AvahiRecordBrowser, record_browsers); }; struct AvahiEntryGroup { char *path; AvahiEntryGroupState state; int state_valid; AvahiClient *client; AvahiEntryGroupCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiEntryGroup, groups); }; struct AvahiDomainBrowser { int ref; char *path; AvahiClient *client; AvahiDomainBrowserCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiDomainBrowser, domain_browsers); AvahiIfIndex interface; AvahiProtocol protocol; AvahiTimeout *defer_timeout; AvahiStringList *static_browse_domains; }; struct AvahiServiceBrowser { char *path; AvahiClient *client; AvahiServiceBrowserCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiServiceBrowser, service_browsers); char *type, *domain; AvahiIfIndex interface; AvahiProtocol protocol; }; struct AvahiServiceTypeBrowser { char *path; AvahiClient *client; AvahiServiceTypeBrowserCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiServiceTypeBrowser, service_type_browsers); char *domain; AvahiIfIndex interface; AvahiProtocol protocol; }; struct AvahiServiceResolver { char *path; AvahiClient *client; AvahiServiceResolverCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiServiceResolver, service_resolvers); char *name, *type, *domain; AvahiIfIndex interface; AvahiProtocol protocol; }; struct AvahiHostNameResolver { char *path; AvahiClient *client; AvahiHostNameResolverCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiHostNameResolver, host_name_resolvers); char *host_name; AvahiIfIndex interface; AvahiProtocol protocol; }; struct AvahiAddressResolver { char *path; AvahiClient *client; AvahiAddressResolverCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiAddressResolver, address_resolvers); AvahiAddress address; AvahiIfIndex interface; AvahiProtocol protocol; }; struct AvahiRecordBrowser { char *path; AvahiClient *client; AvahiRecordBrowserCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiRecordBrowser, record_browsers); char *name; uint16_t clazz, type; AvahiIfIndex interface; AvahiProtocol protocol; }; int avahi_client_set_errno (AvahiClient *client, int error); int avahi_client_set_dbus_error(AvahiClient *client, DBusError *error); void avahi_entry_group_set_state(AvahiEntryGroup *group, AvahiEntryGroupState state); DBusHandlerResult avahi_domain_browser_event (AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message); DBusHandlerResult avahi_service_type_browser_event (AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message); DBusHandlerResult avahi_service_browser_event (AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message); DBusHandlerResult avahi_record_browser_event(AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message); DBusHandlerResult avahi_service_resolver_event (AvahiClient *client, AvahiResolverEvent event, DBusMessage *message); DBusHandlerResult avahi_host_name_resolver_event (AvahiClient *client, AvahiResolverEvent event, DBusMessage *message); DBusHandlerResult avahi_address_resolver_event (AvahiClient *client, AvahiResolverEvent event, DBusMessage *message); int avahi_client_simple_method_call(AvahiClient *client, const char *path, const char *interface, const char *method); int avahi_client_is_connected(AvahiClient *client); #endif avahi-0.7/avahi-client/PaxHeaders.10109/xdg-config-test.c0000644000000000000000000000013213130651643017713 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.187986003 avahi-0.7/avahi-client/xdg-config-test.c0000644000175000017500000000177613130651643021335 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include "xdg-config.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { FILE *f; f = avahi_xdg_config_open("foo"); if (f) fclose(f); return 0; } avahi-0.7/avahi-client/PaxHeaders.10109/publish.h0000644000000000000000000000013213130651643016364 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.179986184 avahi-0.7/avahi-client/publish.h0000644000175000017500000002127113130651643017776 0ustar00lathiatlathiat00000000000000#ifndef fooclientpublishhfoo #define fooclientpublishhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include #include #include #include #include #include /** \file avahi-client/publish.h Publishing Client API */ /** \example client-publish-service.c Example how to register a DNS-SD * service using the client interface to avahi-daemon. It behaves like a network * printer registering both an IPP and a BSD LPR service. */ AVAHI_C_DECL_BEGIN /** An entry group object */ typedef struct AvahiEntryGroup AvahiEntryGroup; /** The function prototype for the callback of an AvahiEntryGroup */ typedef void (*AvahiEntryGroupCallback) ( AvahiEntryGroup *g, AvahiEntryGroupState state /**< The new state of the entry group */, void* userdata /* The arbitrary user data pointer originally passed to avahi_entry_group_new()*/); /** @{ \name Construction and destruction */ /** Create a new AvahiEntryGroup object */ AvahiEntryGroup* avahi_entry_group_new( AvahiClient* c, AvahiEntryGroupCallback callback /**< This callback is called whenever the state of this entry group changes. May not be NULL. Please note that this function is called for the first time from within the avahi_entry_group_new() context! Thus, in the callback you should not make use of global variables that are initialized only after your call to avahi_entry_group_new(). A common mistake is to store the AvahiEntryGroup pointer returned by avahi_entry_group_new() in a global variable and assume that this global variable already contains the valid pointer when the callback is called for the first time. A work-around for this is to always use the AvahiEntryGroup pointer passed to the callback function instead of the global pointer. */, void *userdata /**< This arbitrary user data pointer will be passed to the callback functon */); /** Clean up and free an AvahiEntryGroup object */ int avahi_entry_group_free (AvahiEntryGroup *); /** @} */ /** @{ \name State */ /** Commit an AvahiEntryGroup. The entries in the entry group are now registered on the network. Commiting empty entry groups is considered an error. */ int avahi_entry_group_commit (AvahiEntryGroup*); /** Reset an AvahiEntryGroup. This takes effect immediately. */ int avahi_entry_group_reset (AvahiEntryGroup*); /** Get an AvahiEntryGroup's state */ int avahi_entry_group_get_state (AvahiEntryGroup*); /** Check if an AvahiEntryGroup is empty */ int avahi_entry_group_is_empty (AvahiEntryGroup*); /** Get an AvahiEntryGroup's owning client instance */ AvahiClient* avahi_entry_group_get_client (AvahiEntryGroup*); /** @} */ /** @{ \name Adding and updating entries */ /** Add a service. Takes a variable NULL terminated list of TXT record strings as last arguments. Please note that this service is not announced on the network before avahi_entry_group_commit() is called. */ int avahi_entry_group_add_service( AvahiEntryGroup *group, AvahiIfIndex interface /**< The interface this service shall be announced on. We recommend to pass AVAHI_IF_UNSPEC here, to announce on all interfaces. */, AvahiProtocol protocol /**< The protocol this service shall be announced with, i.e. MDNS over IPV4 or MDNS over IPV6. We recommend to pass AVAHI_PROTO_UNSPEC here, to announce this service on all protocols the daemon supports. */, AvahiPublishFlags flags /**< Usually 0, unless you know what you do */, const char *name /**< The name for the new service. Must be valid service name. i.e. a string shorter than 63 characters and valid UTF-8. May not be NULL. */, const char *type /**< The service type for the new service, such as _http._tcp. May not be NULL. */, const char *domain /**< The domain to register this domain in. We recommend to pass NULL here, to let the daemon decide */, const char *host /**< The host this services is residing on. We recommend to pass NULL here, the daemon will than automatically insert the local host name in that case */, uint16_t port /**< The IP port number of this service */, ...) AVAHI_GCC_SENTINEL; /** Add a service, takes an AvahiStringList for TXT records. Arguments have the same meaning as for avahi_entry_group_add_service(). */ int avahi_entry_group_add_service_strlst( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *host, uint16_t port, AvahiStringList *txt /**< The TXT data for this service. You may free this object after calling this function, it is not referenced any further */); /** Add a subtype for a service. The service should already be existent in the entry group. You may add as many subtypes for a service as you wish. */ int avahi_entry_group_add_service_subtype( AvahiEntryGroup *group, AvahiIfIndex interface /**< The interface this subtype shall be announced on. This should match the value passed for the original avahi_entry_group_add_service() call. */, AvahiProtocol protocol /**< The protocol this subtype shall be announced with. This should match the value passed for the original avahi_entry_group_add_service() call. */, AvahiPublishFlags flags /**< Only != 0 if you really know what you do */, const char *name /**< The name of the service, as passed to avahi_entry_group_add_service(). May not be NULL. */, const char *type /**< The type of the service, as passed to avahi_entry_group_add_service(). May not be NULL. */, const char *domain /**< The domain this service resides is, as passed to avahi_entry_group_add_service(). May be NULL. */, const char *subtype /**< The new subtype to register for the specified service. May not be NULL. */); /** Update a TXT record for an existing service. The service should already be existent in the entry group. */ int avahi_entry_group_update_service_txt( AvahiEntryGroup *g, AvahiIfIndex interface /**< The interface this service is announced on. This should match the value passed to the original avahi_entry_group_add_service() call. */, AvahiProtocol protocol /**< The protocol this service is announced with. This should match the value passed to the original avahi_entry_group_add_service() call. */, AvahiPublishFlags flags /**< Only != 0 if you really know what you do */, const char *name /**< The name of the service, as passed to avahi_entry_group_add_service(). May not be NULL. */, const char *type /**< The type of the service, as passed to avahi_entry_group_add_service(). May not be NULL. */, const char *domain /**< The domain this service resides is, as passed to avahi_entry_group_add_service(). May be NULL. */, ...) AVAHI_GCC_SENTINEL; /** Update a TXT record for an existing service. Similar to avahi_entry_group_update_service_txt() but takes an AvahiStringList for the TXT strings, instead of a NULL terminated list of arguments. */ int avahi_entry_group_update_service_txt_strlst( AvahiEntryGroup *g, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, AvahiStringList *strlst); /** \cond fulldocs */ /** Add a host/address pair */ int avahi_entry_group_add_address( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name /**< The FDQN of the new hostname to register */, const AvahiAddress *a /**< The address this host name shall map to */); /** \endcond */ /** Add an arbitrary record. I hope you know what you do. */ int avahi_entry_group_add_record( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, uint16_t clazz, uint16_t type, uint32_t ttl, const void *rdata, size_t size); /** @} */ AVAHI_C_DECL_END #endif avahi-0.7/avahi-client/PaxHeaders.10109/entrygroup.c0000644000000000000000000000013213130651643017127 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.179986184 avahi-0.7/avahi-client/entrygroup.c0000644000175000017500000005613213130651643020545 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include "client.h" #include "internal.h" void avahi_entry_group_set_state(AvahiEntryGroup *group, AvahiEntryGroupState state) { assert(group); if (group->state_valid && group->state == state) return; group->state = state; group->state_valid = 1; if (group->callback) group->callback(group, state, group->userdata); } static int retrieve_state(AvahiEntryGroup *group) { DBusMessage *message = NULL, *reply = NULL; DBusError error; int r = AVAHI_OK; int32_t state; AvahiClient *client; dbus_error_init(&error); assert(group); client = group->client; if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, group->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "GetState"))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INT32, &state, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return state; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } AvahiEntryGroup* avahi_entry_group_new (AvahiClient *client, AvahiEntryGroupCallback callback, void *userdata) { AvahiEntryGroup *group = NULL; DBusMessage *message = NULL, *reply = NULL; DBusError error; char *path; int state; assert(client); dbus_error_init (&error); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); goto fail; } if (!(group = avahi_new(AvahiEntryGroup, 1))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } group->client = client; group->callback = callback; group->userdata = userdata; group->state_valid = 0; group->path = NULL; AVAHI_LLIST_PREPEND(AvahiEntryGroup, groups, client->groups, group); if (!(message = dbus_message_new_method_call( AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "EntryGroupNew"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { avahi_client_set_errno (client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { avahi_client_set_errno (client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!(group->path = avahi_strdup (path))) { /* FIXME: We don't remove the object on the server side */ avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if ((state = retrieve_state(group)) < 0) { avahi_client_set_errno(client, state); goto fail; } avahi_entry_group_set_state(group, (AvahiEntryGroupState) state); dbus_message_unref(message); dbus_message_unref(reply); return group; fail: if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (group) avahi_entry_group_free(group); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return NULL; } static int entry_group_simple_method_call(AvahiEntryGroup *group, const char *method) { DBusMessage *message = NULL, *reply = NULL; DBusError error; int r = AVAHI_OK; AvahiClient *client; dbus_error_init(&error); assert(group); client = group->client; if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, group->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, method))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } int avahi_entry_group_free(AvahiEntryGroup *group) { AvahiClient *client = group->client; int r = AVAHI_OK; assert(group); if (group->path && avahi_client_is_connected(client)) r = entry_group_simple_method_call(group, "Free"); AVAHI_LLIST_REMOVE(AvahiEntryGroup, groups, client->groups, group); avahi_free(group->path); avahi_free(group); return r; } int avahi_entry_group_commit(AvahiEntryGroup *group) { int ret; assert(group); if (!group->path || !avahi_client_is_connected(group->client)) return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); if ((ret = entry_group_simple_method_call(group, "Commit")) < 0) return ret; group->state_valid = 0; return ret; } int avahi_entry_group_reset(AvahiEntryGroup *group) { int ret; assert(group); if (!group->path || !avahi_client_is_connected(group->client)) return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); if ((ret = entry_group_simple_method_call(group, "Reset")) < 0) return ret; group->state_valid = 0; return ret; } int avahi_entry_group_get_state (AvahiEntryGroup *group) { assert (group); if (group->state_valid) return group->state; return retrieve_state(group); } AvahiClient* avahi_entry_group_get_client (AvahiEntryGroup *group) { assert(group); return group->client; } int avahi_entry_group_is_empty (AvahiEntryGroup *group) { DBusMessage *message = NULL, *reply = NULL; DBusError error; int r = AVAHI_OK; int b; AvahiClient *client; assert(group); client = group->client; if (!group->path || !avahi_client_is_connected(group->client)) return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); dbus_error_init(&error); if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, group->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "IsEmpty"))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_BOOLEAN, &b, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return !!b; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } static int append_rdata(DBusMessage *message, const void *rdata, size_t size) { DBusMessageIter iter, sub; assert(message); dbus_message_iter_init_append(message, &iter); if (!(dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE_AS_STRING, &sub)) || !(dbus_message_iter_append_fixed_array(&sub, DBUS_TYPE_BYTE, &rdata, size)) || !(dbus_message_iter_close_container(&iter, &sub))) return -1; return 0; } static int append_string_list(DBusMessage *message, AvahiStringList *txt) { DBusMessageIter iter, sub; int r = -1; AvahiStringList *p; assert(message); dbus_message_iter_init_append(message, &iter); /* Reverse the string list, so that we can pass it in-order to the server */ txt = avahi_string_list_reverse(txt); if (!dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "ay", &sub)) goto fail; /* Assemble the AvahiStringList into an Array of Array of Bytes to send over dbus */ for (p = txt; p != NULL; p = p->next) { DBusMessageIter sub2; const uint8_t *data = p->text; if (!(dbus_message_iter_open_container(&sub, DBUS_TYPE_ARRAY, "y", &sub2)) || !(dbus_message_iter_append_fixed_array(&sub2, DBUS_TYPE_BYTE, &data, p->size)) || !(dbus_message_iter_close_container(&sub, &sub2))) goto fail; } if (!dbus_message_iter_close_container(&iter, &sub)) goto fail; r = 0; fail: /* Reverse the string list to the original state */ txt = avahi_string_list_reverse(txt); return r; } int avahi_entry_group_add_service_strlst( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *host, uint16_t port, AvahiStringList *txt) { DBusMessage *message = NULL, *reply = NULL; int r = AVAHI_OK; DBusError error; AvahiClient *client; int32_t i_interface, i_protocol; uint32_t u_flags; assert(group); assert(name); assert(type); client = group->client; if (!group->path || !avahi_client_is_connected(group->client)) return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); if (!domain) domain = ""; if (!host) host = ""; dbus_error_init(&error); if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, group->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "AddService"))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_STRING, &host, DBUS_TYPE_UINT16, &port, DBUS_TYPE_INVALID) || append_string_list(message, txt) < 0) { r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } int avahi_entry_group_add_service( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *host, uint16_t port, ...) { va_list va; int r; AvahiStringList *txt; assert(group); va_start(va, port); txt = avahi_string_list_new_va(va); r = avahi_entry_group_add_service_strlst(group, interface, protocol, flags, name, type, domain, host, port, txt); avahi_string_list_free(txt); va_end(va); return r; } int avahi_entry_group_add_service_subtype( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, const char *subtype) { DBusMessage *message = NULL, *reply = NULL; int r = AVAHI_OK; DBusError error; AvahiClient *client; int32_t i_interface, i_protocol; uint32_t u_flags; assert(group); assert(name); assert(type); assert(subtype); client = group->client; if (!group->path || !avahi_client_is_connected(group->client)) return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); if (!domain) domain = ""; dbus_error_init(&error); if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, group->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "AddServiceSubtype"))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_STRING, &subtype, DBUS_TYPE_INVALID)) { r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } int avahi_entry_group_update_service_txt( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, ...) { va_list va; int r; AvahiStringList *txt; va_start(va, domain); txt = avahi_string_list_new_va(va); r = avahi_entry_group_update_service_txt_strlst(group, interface, protocol, flags, name, type, domain, txt); avahi_string_list_free(txt); va_end(va); return r; } int avahi_entry_group_update_service_txt_strlst( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const char *type, const char *domain, AvahiStringList *txt) { DBusMessage *message = NULL, *reply = NULL; int r = AVAHI_OK; DBusError error; AvahiClient *client; int32_t i_interface, i_protocol; uint32_t u_flags; assert(group); assert(name); assert(type); client = group->client; if (!group->path || !avahi_client_is_connected(group->client)) return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); if (!domain) domain = ""; dbus_error_init(&error); if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, group->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "UpdateServiceTxt"))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_INVALID) || append_string_list(message, txt) < 0) { r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } /** Add a host/address pair */ int avahi_entry_group_add_address( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, const AvahiAddress *a) { DBusMessage *message = NULL, *reply = NULL; int r = AVAHI_OK; DBusError error; AvahiClient *client; int32_t i_interface, i_protocol; uint32_t u_flags; char s_address[AVAHI_ADDRESS_STR_MAX]; char *p_address = s_address; assert(name); client = group->client; if (!group->path || !avahi_client_is_connected(group->client)) return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); dbus_error_init(&error); if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, group->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "AddAddress"))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!avahi_address_snprint (s_address, sizeof (s_address), a)) { r = avahi_client_set_errno(client, AVAHI_ERR_INVALID_ADDRESS); goto fail; } if (!dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &p_address, DBUS_TYPE_INVALID)) { r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } /** Add an arbitrary record */ int avahi_entry_group_add_record( AvahiEntryGroup *group, AvahiIfIndex interface, AvahiProtocol protocol, AvahiPublishFlags flags, const char *name, uint16_t clazz, uint16_t type, uint32_t ttl, const void *rdata, size_t size) { DBusMessage *message = NULL, *reply = NULL; int r = AVAHI_OK; DBusError error; AvahiClient *client; int32_t i_interface, i_protocol; uint32_t u_flags; assert(name); client = group->client; if (!group->path || !avahi_client_is_connected(group->client)) return avahi_client_set_errno(group->client, AVAHI_ERR_BAD_STATE); dbus_error_init(&error); if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, group->path, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "AddRecord"))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_STRING, &name, DBUS_TYPE_UINT16, &clazz, DBUS_TYPE_UINT16, &type, DBUS_TYPE_UINT32, &ttl, DBUS_TYPE_INVALID) || append_rdata(message, rdata, size) < 0) { r = avahi_client_set_errno(group->client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } avahi-0.7/avahi-client/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016601 xustar0030 mtime=1499681699.087371026 30 atime=1499681796.829178214 30 ctime=1499681850.175986274 avahi-0.7/avahi-client/Makefile.am0000644000175000017500000000477413130651643020224 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' if HAVE_DBUS avahi_clientincludedir=$(includedir)/avahi-client avahi_clientinclude_HEADERS = client.h lookup.h publish.h noinst_HEADERS = internal.h if ENABLE_TESTS noinst_PROGRAMS = \ client-test \ srv-test \ xdg-config-test \ rr-test \ check-nss-test endif lib_LTLIBRARIES = libavahi-client.la libavahi_client_la_SOURCES = \ client.c client.h \ entrygroup.c \ browser.c \ resolver.c \ publish.h lookup.h \ xdg-config.c xdg-config.h \ check-nss.c \ ../avahi-common/dbus.c ../avahi-common/dbus.h \ ../avahi-common/dbus-watch-glue.c ../avahi-common/dbus-watch-glue.h libavahi_client_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS) -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"$(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS)\" libavahi_client_la_LIBADD = $(AM_LDADD) $(DBUS_LIBS) ../avahi-common/libavahi-common.la libavahi_client_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_CLIENT_VERSION_INFO) client_test_SOURCES = client-test.c client_test_CFLAGS = $(AM_CFLAGS) client_test_LDADD = $(AM_LDADD) libavahi-client.la ../avahi-common/libavahi-common.la srv_test_SOURCES = srv-test.c srv_test_CFLAGS = $(AM_CFLAGS) srv_test_LDADD = $(AM_LDADD) libavahi-client.la ../avahi-common/libavahi-common.la rr_test_SOURCES = rr-test.c rr_test_CFLAGS = $(AM_CFLAGS) rr_test_LDADD = $(AM_LDADD) libavahi-client.la ../avahi-common/libavahi-common.la xdg_config_test_SOURCES = xdg-config-test.c xdg-config.c xdg-config.h xdg_config_test_CFLAGS = $(AM_CFLAGS) xdg_config_test_LDADD = $(AM_LDADD) check_nss_test_SOURCES = check-nss.c check-nss-test.c client.h check_nss_test_CFLAGS = $(AM_CFLAGS) check_nss_test_LDADD = $(AM_LDADD) if HAVE_DLOPEN check_nss_test_LDADD += -ldl libavahi_client_la_LIBADD += -ldl endif endif avahi-0.7/avahi-client/PaxHeaders.10109/client.c0000644000000000000000000000013213130651643016167 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.179986184 avahi-0.7/avahi-client/client.c0000644000175000017500000007335013130651643017606 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include "client.h" #include "internal.h" #define AVAHI_CLIENT_DBUS_API_SUPPORTED ((uint32_t) 0x0201) static int init_server(AvahiClient *client, int *ret_error); int avahi_client_set_errno (AvahiClient *client, int error) { assert(client); return client->error = error; } int avahi_client_set_dbus_error(AvahiClient *client, DBusError *error) { assert(client); assert(error); return avahi_client_set_errno(client, avahi_error_dbus_to_number(error->name)); } static void client_set_state(AvahiClient *client, AvahiClientState state) { assert(client); if (client->state == state) return; client->state = state; switch (client->state) { case AVAHI_CLIENT_FAILURE: if (client->bus) { #ifdef HAVE_DBUS_CONNECTION_CLOSE dbus_connection_close(client->bus); #else dbus_connection_disconnect(client->bus); #endif dbus_connection_unref(client->bus); client->bus = NULL; } /* Fall through */ case AVAHI_CLIENT_S_COLLISION: case AVAHI_CLIENT_S_REGISTERING: /* Clear cached strings */ avahi_free(client->host_name); avahi_free(client->host_name_fqdn); avahi_free(client->domain_name); client->host_name = NULL; client->host_name_fqdn = NULL; client->domain_name = NULL; break; case AVAHI_CLIENT_S_RUNNING: case AVAHI_CLIENT_CONNECTING: break; } if (client->callback) client->callback (client, state, client->userdata); } static DBusHandlerResult filter_func(DBusConnection *bus, DBusMessage *message, void *userdata) { AvahiClient *client = userdata; DBusError error; assert(bus); assert(message); dbus_error_init(&error); /* fprintf(stderr, "dbus: interface=%s, path=%s, member=%s\n", */ /* dbus_message_get_interface (message), */ /* dbus_message_get_path (message), */ /* dbus_message_get_member (message)); */ if (dbus_message_is_signal(message, DBUS_INTERFACE_LOCAL, "Disconnected")) { /* The DBUS server died or kicked us */ avahi_client_set_errno(client, AVAHI_ERR_DISCONNECTED); goto fail; } else if (dbus_message_is_signal(message, DBUS_INTERFACE_DBUS, "NameAcquired")) { /* Ignore this message */ } else if (dbus_message_is_signal(message, DBUS_INTERFACE_DBUS, "NameOwnerChanged")) { char *name, *old, *new; if (!dbus_message_get_args( message, &error, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &old, DBUS_TYPE_STRING, &new, DBUS_TYPE_INVALID) || dbus_error_is_set(&error)) { fprintf(stderr, "WARNING: Failed to parse NameOwnerChanged signal: %s\n", error.message); avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (strcmp(name, AVAHI_DBUS_NAME) == 0) { if (old[0] && avahi_client_is_connected(client)) { /* Regardless if the server lost its name or * if the name was transfered: our services are no longer * available, so we disconnect ourselves */ avahi_client_set_errno(client, AVAHI_ERR_DISCONNECTED); goto fail; } else if (client->state == AVAHI_CLIENT_CONNECTING && (!old || *old == 0)) { int ret; /* Server appeared */ if ((ret = init_server(client, NULL)) < 0) { avahi_client_set_errno(client, ret); goto fail; } } } } else if (!avahi_client_is_connected(client)) { /* Ignore messages we get in unconnected state */ } else if (dbus_message_is_signal (message, AVAHI_DBUS_INTERFACE_SERVER, "StateChanged")) { int32_t state; char *e = NULL; int c; if (!dbus_message_get_args( message, &error, DBUS_TYPE_INT32, &state, DBUS_TYPE_STRING, &e, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "WARNING: Failed to parse Server.StateChanged signal: %s\n", error.message); avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if ((c = avahi_error_dbus_to_number(e)) != AVAHI_OK) avahi_client_set_errno(client, c); client_set_state(client, (AvahiClientState) state); } else if (dbus_message_is_signal (message, AVAHI_DBUS_INTERFACE_ENTRY_GROUP, "StateChanged")) { const char *path; AvahiEntryGroup *g; path = dbus_message_get_path(message); for (g = client->groups; g; g = g->groups_next) if (strcmp(g->path, path) == 0) break; if (g) { int32_t state; char *e; int c; if (!dbus_message_get_args( message, &error, DBUS_TYPE_INT32, &state, DBUS_TYPE_STRING, &e, DBUS_TYPE_INVALID) || dbus_error_is_set(&error)) { fprintf(stderr, "WARNING: Failed to parse EntryGroup.StateChanged signal: %s\n", error.message); avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if ((c = avahi_error_dbus_to_number(e)) != AVAHI_OK) avahi_client_set_errno(client, c); avahi_entry_group_set_state(g, state); } } else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, "ItemNew")) return avahi_domain_browser_event(client, AVAHI_BROWSER_NEW, message); else if (dbus_message_is_signal (message, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, "ItemRemove")) return avahi_domain_browser_event(client, AVAHI_BROWSER_REMOVE, message); else if (dbus_message_is_signal (message, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, "CacheExhausted")) return avahi_domain_browser_event(client, AVAHI_BROWSER_CACHE_EXHAUSTED, message); else if (dbus_message_is_signal (message, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, "AllForNow")) return avahi_domain_browser_event(client, AVAHI_BROWSER_ALL_FOR_NOW, message); else if (dbus_message_is_signal (message, AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER, "Failure")) return avahi_domain_browser_event(client, AVAHI_BROWSER_FAILURE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, "ItemNew")) return avahi_service_type_browser_event (client, AVAHI_BROWSER_NEW, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, "ItemRemove")) return avahi_service_type_browser_event (client, AVAHI_BROWSER_REMOVE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, "CacheExhausted")) return avahi_service_type_browser_event (client, AVAHI_BROWSER_CACHE_EXHAUSTED, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, "AllForNow")) return avahi_service_type_browser_event (client, AVAHI_BROWSER_ALL_FOR_NOW, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER, "Failure")) return avahi_service_type_browser_event (client, AVAHI_BROWSER_FAILURE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, "ItemNew")) return avahi_service_browser_event (client, AVAHI_BROWSER_NEW, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, "ItemRemove")) return avahi_service_browser_event (client, AVAHI_BROWSER_REMOVE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, "CacheExhausted")) return avahi_service_browser_event (client, AVAHI_BROWSER_CACHE_EXHAUSTED, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, "AllForNow")) return avahi_service_browser_event (client, AVAHI_BROWSER_ALL_FOR_NOW, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_BROWSER, "Failure")) return avahi_service_browser_event (client, AVAHI_BROWSER_FAILURE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER, "Found")) return avahi_service_resolver_event (client, AVAHI_RESOLVER_FOUND, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER, "Failure")) return avahi_service_resolver_event (client, AVAHI_RESOLVER_FAILURE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_HOST_NAME_RESOLVER, "Found")) return avahi_host_name_resolver_event (client, AVAHI_RESOLVER_FOUND, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_HOST_NAME_RESOLVER, "Failure")) return avahi_host_name_resolver_event (client, AVAHI_RESOLVER_FAILURE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_ADDRESS_RESOLVER, "Found")) return avahi_address_resolver_event (client, AVAHI_RESOLVER_FOUND, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_ADDRESS_RESOLVER, "Failure")) return avahi_address_resolver_event (client, AVAHI_RESOLVER_FAILURE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "ItemNew")) return avahi_record_browser_event (client, AVAHI_BROWSER_NEW, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "ItemRemove")) return avahi_record_browser_event (client, AVAHI_BROWSER_REMOVE, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "CacheExhausted")) return avahi_record_browser_event (client, AVAHI_BROWSER_CACHE_EXHAUSTED, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "AllForNow")) return avahi_record_browser_event (client, AVAHI_BROWSER_ALL_FOR_NOW, message); else if (dbus_message_is_signal(message, AVAHI_DBUS_INTERFACE_RECORD_BROWSER, "Failure")) return avahi_record_browser_event (client, AVAHI_BROWSER_FAILURE, message); else { fprintf(stderr, "WARNING: Unhandled message: interface=%s, path=%s, member=%s\n", dbus_message_get_interface(message), dbus_message_get_path(message), dbus_message_get_member(message)); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } return DBUS_HANDLER_RESULT_HANDLED; fail: if (dbus_error_is_set(&error)) { avahi_client_set_errno(client, avahi_error_dbus_to_number(error.name)); dbus_error_free(&error); } client_set_state(client, AVAHI_CLIENT_FAILURE); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } static int get_server_state(AvahiClient *client, int *ret_error) { DBusMessage *message = NULL, *reply = NULL; DBusError error; int32_t state; int e = AVAHI_ERR_NO_MEMORY; assert(client); dbus_error_init(&error); if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "GetState"))) goto fail; reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error); if (!reply || dbus_error_is_set (&error)) goto fail; if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INT32, &state, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) goto fail; client_set_state(client, (AvahiClientState) state); dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { e = avahi_error_dbus_to_number (error.name); dbus_error_free(&error); } if (ret_error) *ret_error = e; if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return e; } static int check_version(AvahiClient *client, int *ret_error) { DBusMessage *message = NULL, *reply = NULL; DBusError error; uint32_t version; int e = AVAHI_ERR_NO_MEMORY; assert(client); dbus_error_init(&error); if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "GetAPIVersion"))) goto fail; reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error); if (!reply || dbus_error_is_set (&error)) { char *version_str; if (!dbus_error_is_set(&error) || strcmp(error.name, DBUS_ERROR_UNKNOWN_METHOD)) goto fail; /* If the method GetAPIVersion is not known, we look if * GetVersionString matches "avahi 0.6" which is the only * version we support which doesn't have GetAPIVersion() .*/ dbus_message_unref(message); if (reply) dbus_message_unref(reply); dbus_error_free(&error); if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "GetVersionString"))) goto fail; reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error); if (!reply || dbus_error_is_set (&error)) goto fail; if (!dbus_message_get_args (reply, &error, DBUS_TYPE_STRING, &version_str, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) goto fail; version = strcmp(version_str, "avahi 0.6") == 0 ? 0x0201 : 0x0000; } else { if (!dbus_message_get_args (reply, &error, DBUS_TYPE_UINT32, &version, DBUS_TYPE_INVALID) || dbus_error_is_set(&error)) goto fail; } /*fprintf(stderr, "API Version 0x%04x\n", version);*/ if ((version & 0xFF00) != (AVAHI_CLIENT_DBUS_API_SUPPORTED & 0xFF00) || (version & 0x00FF) < (AVAHI_CLIENT_DBUS_API_SUPPORTED & 0x00FF)) { e = AVAHI_ERR_VERSION_MISMATCH; goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { e = avahi_error_dbus_to_number (error.name); dbus_error_free(&error); } if (ret_error) *ret_error = e; if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return e; } static int init_server(AvahiClient *client, int *ret_error) { int r; if ((r = check_version(client, ret_error)) < 0) return r; if ((r = get_server_state(client, ret_error)) < 0) return r; return AVAHI_OK; } /* This function acts like dbus_bus_get but creates a private * connection instead. */ static DBusConnection* avahi_dbus_bus_get(DBusError *error) { DBusConnection *c; #ifdef HAVE_DBUS_BUS_GET_PRIVATE if (!(c = dbus_bus_get_private(DBUS_BUS_SYSTEM, error))) return NULL; dbus_connection_set_exit_on_disconnect(c, FALSE); #else const char *a; if (!(a = getenv("DBUS_SYSTEM_BUS_ADDRESS")) || !*a) a = DBUS_SYSTEM_BUS_DEFAULT_ADDRESS; if (!(c = dbus_connection_open_private(a, error))) return NULL; dbus_connection_set_exit_on_disconnect(c, FALSE); if (!dbus_bus_register(c, error)) { #ifdef HAVE_DBUS_CONNECTION_CLOSE dbus_connection_close(c); #else dbus_connection_disconnect(c); #endif dbus_connection_unref(c); return NULL; } #endif return c; } AvahiClient *avahi_client_new(const AvahiPoll *poll_api, AvahiClientFlags flags, AvahiClientCallback callback, void *userdata, int *ret_error) { AvahiClient *client = NULL; DBusError error; DBusMessage *message = NULL, *reply = NULL; avahi_init_i18n(); dbus_error_init(&error); if (!(client = avahi_new(AvahiClient, 1))) { if (ret_error) *ret_error = AVAHI_ERR_NO_MEMORY; goto fail; } client->poll_api = poll_api; client->error = AVAHI_OK; client->callback = callback; client->userdata = userdata; client->state = (AvahiClientState) -1; client->flags = flags; client->host_name = NULL; client->host_name_fqdn = NULL; client->domain_name = NULL; client->version_string = NULL; client->local_service_cookie_valid = 0; AVAHI_LLIST_HEAD_INIT(AvahiEntryGroup, client->groups); AVAHI_LLIST_HEAD_INIT(AvahiDomainBrowser, client->domain_browsers); AVAHI_LLIST_HEAD_INIT(AvahiServiceBrowser, client->service_browsers); AVAHI_LLIST_HEAD_INIT(AvahiServiceTypeBrowser, client->service_type_browsers); AVAHI_LLIST_HEAD_INIT(AvahiServiceResolver, client->service_resolvers); AVAHI_LLIST_HEAD_INIT(AvahiHostNameResolver, client->host_name_resolvers); AVAHI_LLIST_HEAD_INIT(AvahiAddressResolver, client->address_resolvers); AVAHI_LLIST_HEAD_INIT(AvahiRecordBrowser, client->record_browsers); if (!(client->bus = avahi_dbus_bus_get(&error)) || dbus_error_is_set(&error)) { if (ret_error) *ret_error = AVAHI_ERR_DBUS_ERROR; goto fail; } if (avahi_dbus_connection_glue(client->bus, poll_api) < 0) { if (ret_error) *ret_error = AVAHI_ERR_NO_MEMORY; /* Not optimal */ goto fail; } if (!dbus_connection_add_filter(client->bus, filter_func, client, NULL)) { if (ret_error) *ret_error = AVAHI_ERR_NO_MEMORY; goto fail; } dbus_bus_add_match( client->bus, "type='signal', " "interface='" AVAHI_DBUS_INTERFACE_SERVER "', " "sender='" AVAHI_DBUS_NAME "', " "path='" AVAHI_DBUS_PATH_SERVER "'", &error); if (dbus_error_is_set(&error)) goto fail; dbus_bus_add_match ( client->bus, "type='signal', " "interface='" DBUS_INTERFACE_DBUS "', " "sender='" DBUS_SERVICE_DBUS "', " "path='" DBUS_PATH_DBUS "'", &error); if (dbus_error_is_set(&error)) goto fail; dbus_bus_add_match( client->bus, "type='signal', " "interface='" DBUS_INTERFACE_LOCAL "'", &error); if (dbus_error_is_set(&error)) goto fail; if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, "org.freedesktop.DBus.Peer", "Ping"))) goto fail; reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error); if (!reply || dbus_error_is_set (&error)) { /* We free the error so its not set, that way the fail target * will return the NO_DAEMON error rather than a DBUS error */ dbus_error_free(&error); if (!(flags & AVAHI_CLIENT_NO_FAIL)) { if (ret_error) *ret_error = AVAHI_ERR_NO_DAEMON; goto fail; } /* The user doesn't want this call to fail if the daemon is not * available, so let's return succesfully */ client_set_state(client, AVAHI_CLIENT_CONNECTING); } else { if (init_server(client, ret_error) < 0) goto fail; } dbus_message_unref(message); if (reply) dbus_message_unref(reply); return client; fail: if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); if (client) avahi_client_free(client); if (dbus_error_is_set(&error)) { if (ret_error) { if (strcmp(error.name, DBUS_ERROR_FILE_NOT_FOUND) == 0) /* DBUS returns this error when the DBUS daemon is not running */ *ret_error = AVAHI_ERR_NO_DAEMON; else *ret_error = avahi_error_dbus_to_number(error.name); } dbus_error_free(&error); } return NULL; } void avahi_client_free(AvahiClient *client) { assert(client); if (client->bus) /* Disconnect in advance, so that the free() functions won't * issue needless server calls */ #ifdef HAVE_DBUS_CONNECTION_CLOSE dbus_connection_close(client->bus); #else dbus_connection_disconnect(client->bus); #endif while (client->groups) avahi_entry_group_free(client->groups); while (client->domain_browsers) avahi_domain_browser_free(client->domain_browsers); while (client->service_browsers) avahi_service_browser_free(client->service_browsers); while (client->service_type_browsers) avahi_service_type_browser_free(client->service_type_browsers); while (client->service_resolvers) avahi_service_resolver_free(client->service_resolvers); while (client->host_name_resolvers) avahi_host_name_resolver_free(client->host_name_resolvers); while (client->address_resolvers) avahi_address_resolver_free(client->address_resolvers); while (client->record_browsers) avahi_record_browser_free(client->record_browsers); if (client->bus) dbus_connection_unref(client->bus); avahi_free(client->version_string); avahi_free(client->host_name); avahi_free(client->host_name_fqdn); avahi_free(client->domain_name); avahi_free(client); } static char* avahi_client_get_string_reply_and_block (AvahiClient *client, const char *method, const char *param) { DBusMessage *message = NULL, *reply = NULL; DBusError error; char *ret, *n; assert(client); assert(method); dbus_error_init (&error); if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, method))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (param) { if (!dbus_message_append_args (message, DBUS_TYPE_STRING, ¶m, DBUS_TYPE_INVALID)) { avahi_client_set_errno (client, AVAHI_ERR_NO_MEMORY); goto fail; } } reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error); if (!reply || dbus_error_is_set (&error)) goto fail; if (!dbus_message_get_args (reply, &error, DBUS_TYPE_STRING, &ret, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) goto fail; if (!(n = avahi_strdup(ret))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return n; fail: if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } return NULL; } const char* avahi_client_get_version_string(AvahiClient *client) { assert(client); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); return NULL; } if (!client->version_string) client->version_string = avahi_client_get_string_reply_and_block(client, "GetVersionString", NULL); return client->version_string; } const char* avahi_client_get_domain_name(AvahiClient *client) { assert(client); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); return NULL; } if (!client->domain_name) client->domain_name = avahi_client_get_string_reply_and_block(client, "GetDomainName", NULL); return client->domain_name; } const char* avahi_client_get_host_name(AvahiClient *client) { assert(client); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); return NULL; } if (!client->host_name) client->host_name = avahi_client_get_string_reply_and_block(client, "GetHostName", NULL); return client->host_name; } const char* avahi_client_get_host_name_fqdn (AvahiClient *client) { assert(client); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); return NULL; } if (!client->host_name_fqdn) client->host_name_fqdn = avahi_client_get_string_reply_and_block(client, "GetHostNameFqdn", NULL); return client->host_name_fqdn; } AvahiClientState avahi_client_get_state(AvahiClient *client) { assert(client); return client->state; } int avahi_client_errno(AvahiClient *client) { assert(client); return client->error; } /* Just for internal use */ int avahi_client_simple_method_call(AvahiClient *client, const char *path, const char *interface, const char *method) { DBusMessage *message = NULL, *reply = NULL; DBusError error; int r = AVAHI_OK; dbus_error_init(&error); assert(client); assert(path); assert(interface); assert(method); if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, path, interface, method))) { r = avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { r = avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return AVAHI_OK; fail: if (dbus_error_is_set(&error)) { r = avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return r; } uint32_t avahi_client_get_local_service_cookie(AvahiClient *client) { DBusMessage *message = NULL, *reply = NULL; DBusError error; assert(client); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); return AVAHI_SERVICE_COOKIE_INVALID; } if (client->local_service_cookie_valid) return client->local_service_cookie; dbus_error_init (&error); if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "GetLocalServiceCookie"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } reply = dbus_connection_send_with_reply_and_block (client->bus, message, -1, &error); if (!reply || dbus_error_is_set (&error)) goto fail; if (!dbus_message_get_args (reply, &error, DBUS_TYPE_UINT32, &client->local_service_cookie, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) goto fail; dbus_message_unref(message); dbus_message_unref(reply); client->local_service_cookie_valid = 1; return client->local_service_cookie; fail: if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } return AVAHI_SERVICE_COOKIE_INVALID; } int avahi_client_is_connected(AvahiClient *client) { assert(client); return client->bus && dbus_connection_get_is_connected(client->bus) && (client->state == AVAHI_CLIENT_S_RUNNING || client->state == AVAHI_CLIENT_S_REGISTERING || client->state == AVAHI_CLIENT_S_COLLISION); } int avahi_client_set_host_name(AvahiClient* client, const char *name) { DBusMessage *message = NULL, *reply = NULL; DBusError error; assert(client); if (!avahi_client_is_connected(client)) return avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); dbus_error_init (&error); if (!(message = dbus_message_new_method_call (AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "SetHostName"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!dbus_message_append_args (message, DBUS_TYPE_STRING, &name, DBUS_TYPE_INVALID)) { avahi_client_set_errno (client, AVAHI_ERR_NO_MEMORY); goto fail; } reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error); if (!reply || dbus_error_is_set (&error)) goto fail; if (!dbus_message_get_args(reply, &error, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) goto fail; dbus_message_unref(message); dbus_message_unref(reply); avahi_free(client->host_name); client->host_name = NULL; avahi_free(client->host_name_fqdn); client->host_name_fqdn = NULL; return 0; fail: if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } return client->error; } avahi-0.7/avahi-client/PaxHeaders.10109/xdg-config.c0000644000000000000000000000013213130651643016736 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.183986095 avahi-0.7/avahi-client/xdg-config.c0000644000175000017500000000342013130651643020344 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "xdg-config.h" #ifndef PATH_MAX #define PATH_MAX 4096 #endif FILE *avahi_xdg_config_open(const char *filename) { FILE *f; const char *e, *d; char fn[PATH_MAX], *p = NULL, buf[2048], *s = NULL; assert(filename); if ((e = getenv("XDG_CONFIG_HOME")) && *e) snprintf(p = fn, sizeof(fn), "%s/%s", e, filename); else if ((e = getenv("HOME")) && *e) snprintf(p = fn, sizeof(fn), "%s/.config/%s", e, filename); if (p) { if ((f = fopen(p, "r"))) return f; else if (errno != ENOENT) return NULL; } if (!(d = getenv("XDG_CONFIG_DIRS")) || !*d) d = "/etc/xdg"; snprintf(buf, sizeof(buf), "%s", d); for (e = strtok_r(buf, ":", &s); e; e = strtok_r(NULL, ":", &s)) { snprintf(fn, sizeof(fn), "%s/%s", e, filename); if ((f = fopen(fn, "r"))) return f; } return NULL; } avahi-0.7/avahi-client/PaxHeaders.10109/resolver.c0000644000000000000000000000013213130651643016552 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.183986095 avahi-0.7/avahi-client/resolver.c0000644000175000017500000005310213130651643020162 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include "client.h" #include "internal.h" /* AvahiServiceResolver implementation */ DBusHandlerResult avahi_service_resolver_event (AvahiClient *client, AvahiResolverEvent event, DBusMessage *message) { AvahiServiceResolver *r = NULL; DBusError error; const char *path; AvahiStringList *strlst = NULL; assert(client); assert(message); dbus_error_init (&error); if (!(path = dbus_message_get_path(message))) goto fail; for (r = client->service_resolvers; r; r = r->service_resolvers_next) if (strcmp (r->path, path) == 0) break; if (!r) goto fail; switch (event) { case AVAHI_RESOLVER_FOUND: { int j; int32_t interface, protocol, aprotocol; uint32_t flags; char *name, *type, *domain, *host, *address; uint16_t port; DBusMessageIter iter, sub; AvahiAddress a; if (!dbus_message_get_args( message, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_STRING, &host, DBUS_TYPE_INT32, &aprotocol, DBUS_TYPE_STRING, &address, DBUS_TYPE_UINT16, &port, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse resolver event.\n"); goto fail; } dbus_message_iter_init(message, &iter); for (j = 0; j < 9; j++) dbus_message_iter_next(&iter); if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_ARRAY || dbus_message_iter_get_element_type(&iter) != DBUS_TYPE_ARRAY) { fprintf(stderr, "Error parsing service resolving message\n"); goto fail; } strlst = NULL; dbus_message_iter_recurse(&iter, &sub); for (;;) { DBusMessageIter sub2; int at; const uint8_t *k; int n; if ((at = dbus_message_iter_get_arg_type(&sub)) == DBUS_TYPE_INVALID) break; assert(at == DBUS_TYPE_ARRAY); if (dbus_message_iter_get_element_type(&sub) != DBUS_TYPE_BYTE) { fprintf(stderr, "Error parsing service resolving message\n"); goto fail; } dbus_message_iter_recurse(&sub, &sub2); k = NULL; n = 0; dbus_message_iter_get_fixed_array(&sub2, &k, &n); if (k && n > 0) strlst = avahi_string_list_add_arbitrary(strlst, k, n); dbus_message_iter_next(&sub); } dbus_message_iter_next(&iter); if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_UINT32) { fprintf(stderr, "Failed to parse resolver event.\n"); goto fail; } dbus_message_iter_get_basic(&iter, &flags); assert(address); if (address[0] == 0) address = NULL; else avahi_address_parse(address, (AvahiProtocol) aprotocol, &a); r->callback(r, (AvahiIfIndex) interface, (AvahiProtocol) protocol, AVAHI_RESOLVER_FOUND, name, type, domain, host, address ? &a : NULL, port, strlst, (AvahiLookupResultFlags) flags, r->userdata); avahi_string_list_free(strlst); break; } case AVAHI_RESOLVER_FAILURE: { char *etxt; if (!dbus_message_get_args( message, &error, DBUS_TYPE_STRING, &etxt, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse resolver event.\n"); goto fail; } avahi_client_set_errno(r->client, avahi_error_dbus_to_number(etxt)); r->callback(r, r->interface, r->protocol, event, r->name, r->type, r->domain, NULL, NULL, 0, NULL, 0, r->userdata); break; } } return DBUS_HANDLER_RESULT_HANDLED; fail: dbus_error_free (&error); avahi_string_list_free(strlst); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } AvahiServiceResolver * avahi_service_resolver_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, AvahiProtocol aprotocol, AvahiLookupFlags flags, AvahiServiceResolverCallback callback, void *userdata) { DBusError error; AvahiServiceResolver *r = NULL; DBusMessage *message = NULL, *reply = NULL; int32_t i_interface, i_protocol, i_aprotocol; uint32_t u_flags; char *path; assert(client); assert(type); if (!domain) domain = ""; if (!name) name = ""; dbus_error_init (&error); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); goto fail; } if (!(r = avahi_new(AvahiServiceResolver, 1))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } r->client = client; r->callback = callback; r->userdata = userdata; r->path = NULL; r->name = r->type = r->domain = NULL; r->interface = interface; r->protocol = protocol; AVAHI_LLIST_PREPEND(AvahiServiceResolver, service_resolvers, client->service_resolvers, r); if (name && name[0]) if (!(r->name = avahi_strdup(name))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(r->type = avahi_strdup(type))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (domain && domain[0]) if (!(r->domain = avahi_strdup(domain))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "ServiceResolverNew"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; i_aprotocol = (int32_t) aprotocol; u_flags = (uint32_t) flags; if (!(dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_STRING, &type, DBUS_TYPE_STRING, &domain, DBUS_TYPE_INT32, &i_aprotocol, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set(&error)) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args (reply, &error, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID) || dbus_error_is_set(&error) || !path) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!(r->path = avahi_strdup(path))) { /* FIXME: We don't remove the object on the server side */ avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return r; fail: if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (r) avahi_service_resolver_free(r); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return NULL; } AvahiClient* avahi_service_resolver_get_client (AvahiServiceResolver *r) { assert (r); return r->client; } int avahi_service_resolver_free(AvahiServiceResolver *r) { AvahiClient *client; int ret = AVAHI_OK; assert(r); client = r->client; if (r->path && avahi_client_is_connected(client)) ret = avahi_client_simple_method_call(client, r->path, AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER, "Free"); AVAHI_LLIST_REMOVE(AvahiServiceResolver, service_resolvers, client->service_resolvers, r); avahi_free(r->path); avahi_free(r->name); avahi_free(r->type); avahi_free(r->domain); avahi_free(r); return ret; } /* AvahiHostNameResolver implementation */ DBusHandlerResult avahi_host_name_resolver_event (AvahiClient *client, AvahiResolverEvent event, DBusMessage *message) { AvahiHostNameResolver *r = NULL; DBusError error; const char *path; assert(client); assert(message); dbus_error_init (&error); if (!(path = dbus_message_get_path(message))) goto fail; for (r = client->host_name_resolvers; r; r = r->host_name_resolvers_next) if (strcmp (r->path, path) == 0) break; if (!r) goto fail; switch (event) { case AVAHI_RESOLVER_FOUND: { int32_t interface, protocol, aprotocol; uint32_t flags; char *name, *address; AvahiAddress a; if (!dbus_message_get_args( message, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_INT32, &aprotocol, DBUS_TYPE_STRING, &address, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse resolver event.\n"); goto fail; } assert(address); if (!avahi_address_parse(address, (AvahiProtocol) aprotocol, &a)) { fprintf(stderr, "Failed to parse address\n"); goto fail; } r->callback(r, (AvahiIfIndex) interface, (AvahiProtocol) protocol, AVAHI_RESOLVER_FOUND, name, &a, (AvahiLookupResultFlags) flags, r->userdata); break; } case AVAHI_RESOLVER_FAILURE: { char *etxt; if (!dbus_message_get_args( message, &error, DBUS_TYPE_STRING, &etxt, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse resolver event.\n"); goto fail; } avahi_client_set_errno(r->client, avahi_error_dbus_to_number(etxt)); r->callback(r, r->interface, r->protocol, event, r->host_name, NULL, 0, r->userdata); break; } } return DBUS_HANDLER_RESULT_HANDLED; fail: dbus_error_free (&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } AvahiHostNameResolver * avahi_host_name_resolver_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, AvahiProtocol aprotocol, AvahiLookupFlags flags, AvahiHostNameResolverCallback callback, void *userdata) { DBusError error; AvahiHostNameResolver *r = NULL; DBusMessage *message = NULL, *reply = NULL; int32_t i_interface, i_protocol, i_aprotocol; uint32_t u_flags; char *path; assert(client); assert(name); dbus_error_init (&error); if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); goto fail; } if (!(r = avahi_new(AvahiHostNameResolver, 1))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } r->client = client; r->callback = callback; r->userdata = userdata; r->path = NULL; r->interface = interface; r->protocol = protocol; r->host_name = NULL; AVAHI_LLIST_PREPEND(AvahiHostNameResolver, host_name_resolvers, client->host_name_resolvers, r); if (!(r->host_name = avahi_strdup(name))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "HostNameResolverNew"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; i_aprotocol = (int32_t) aprotocol; u_flags = (uint32_t) flags; if (!(dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &name, DBUS_TYPE_INT32, &i_aprotocol, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set(&error)) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args (reply, &error, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID) || dbus_error_is_set(&error) || !path) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!(r->path = avahi_strdup(path))) { /* FIXME: We don't remove the object on the server side */ avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return r; fail: if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (r) avahi_host_name_resolver_free(r); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return NULL; } int avahi_host_name_resolver_free(AvahiHostNameResolver *r) { int ret = AVAHI_OK; AvahiClient *client; assert(r); client = r->client; if (r->path && avahi_client_is_connected(client)) ret = avahi_client_simple_method_call(client, r->path, AVAHI_DBUS_INTERFACE_HOST_NAME_RESOLVER, "Free"); AVAHI_LLIST_REMOVE(AvahiHostNameResolver, host_name_resolvers, client->host_name_resolvers, r); avahi_free(r->path); avahi_free(r->host_name); avahi_free(r); return ret; } AvahiClient* avahi_host_name_resolver_get_client (AvahiHostNameResolver *r) { assert (r); return r->client; } /* AvahiAddressResolver implementation */ DBusHandlerResult avahi_address_resolver_event (AvahiClient *client, AvahiResolverEvent event, DBusMessage *message) { AvahiAddressResolver *r = NULL; DBusError error; const char *path; assert(client); assert(message); dbus_error_init (&error); if (!(path = dbus_message_get_path(message))) goto fail; for (r = client->address_resolvers; r; r = r->address_resolvers_next) if (strcmp (r->path, path) == 0) break; if (!r) goto fail; switch (event) { case AVAHI_RESOLVER_FOUND: { int32_t interface, protocol, aprotocol; uint32_t flags; char *name, *address; AvahiAddress a; if (!dbus_message_get_args( message, &error, DBUS_TYPE_INT32, &interface, DBUS_TYPE_INT32, &protocol, DBUS_TYPE_INT32, &aprotocol, DBUS_TYPE_STRING, &address, DBUS_TYPE_STRING, &name, DBUS_TYPE_UINT32, &flags, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse resolver event.\n"); goto fail; } assert(address); if (!avahi_address_parse(address, (AvahiProtocol) aprotocol, &a)) { fprintf(stderr, "Failed to parse address\n"); goto fail; } r->callback(r, (AvahiIfIndex) interface, (AvahiProtocol) protocol, AVAHI_RESOLVER_FOUND, &a, name, (AvahiLookupResultFlags) flags, r->userdata); break; } case AVAHI_RESOLVER_FAILURE: { char *etxt; if (!dbus_message_get_args( message, &error, DBUS_TYPE_STRING, &etxt, DBUS_TYPE_INVALID) || dbus_error_is_set (&error)) { fprintf(stderr, "Failed to parse resolver event.\n"); goto fail; } avahi_client_set_errno(r->client, avahi_error_dbus_to_number(etxt)); r->callback(r, r->interface, r->protocol, event, &r->address, NULL, 0, r->userdata); break; } } return DBUS_HANDLER_RESULT_HANDLED; fail: dbus_error_free (&error); return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } AvahiAddressResolver * avahi_address_resolver_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const AvahiAddress *a, AvahiLookupFlags flags, AvahiAddressResolverCallback callback, void *userdata) { DBusError error; AvahiAddressResolver *r = NULL; DBusMessage *message = NULL, *reply = NULL; int32_t i_interface, i_protocol; uint32_t u_flags; char *path; char addr[AVAHI_ADDRESS_STR_MAX], *address = addr; assert(client); assert(a); dbus_error_init (&error); if (!avahi_address_snprint (addr, sizeof(addr), a)) { avahi_client_set_errno(client, AVAHI_ERR_INVALID_ADDRESS); return NULL; } if (!avahi_client_is_connected(client)) { avahi_client_set_errno(client, AVAHI_ERR_BAD_STATE); goto fail; } if (!(r = avahi_new(AvahiAddressResolver, 1))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } r->client = client; r->callback = callback; r->userdata = userdata; r->path = NULL; r->interface = interface; r->protocol = protocol; r->address = *a; AVAHI_LLIST_PREPEND(AvahiAddressResolver, address_resolvers, client->address_resolvers, r); if (!(message = dbus_message_new_method_call(AVAHI_DBUS_NAME, AVAHI_DBUS_PATH_SERVER, AVAHI_DBUS_INTERFACE_SERVER, "AddressResolverNew"))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } i_interface = (int32_t) interface; i_protocol = (int32_t) protocol; u_flags = (uint32_t) flags; if (!(dbus_message_append_args( message, DBUS_TYPE_INT32, &i_interface, DBUS_TYPE_INT32, &i_protocol, DBUS_TYPE_STRING, &address, DBUS_TYPE_UINT32, &u_flags, DBUS_TYPE_INVALID))) { avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } if (!(reply = dbus_connection_send_with_reply_and_block(client->bus, message, -1, &error)) || dbus_error_is_set(&error)) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!dbus_message_get_args (reply, &error, DBUS_TYPE_OBJECT_PATH, &path, DBUS_TYPE_INVALID) || dbus_error_is_set(&error) || !path) { avahi_client_set_errno(client, AVAHI_ERR_DBUS_ERROR); goto fail; } if (!(r->path = avahi_strdup(path))) { /* FIXME: We don't remove the object on the server side */ avahi_client_set_errno(client, AVAHI_ERR_NO_MEMORY); goto fail; } dbus_message_unref(message); dbus_message_unref(reply); return r; fail: if (dbus_error_is_set(&error)) { avahi_client_set_dbus_error(client, &error); dbus_error_free(&error); } if (r) avahi_address_resolver_free(r); if (message) dbus_message_unref(message); if (reply) dbus_message_unref(reply); return NULL; } AvahiClient* avahi_address_resolver_get_client (AvahiAddressResolver *r) { assert (r); return r->client; } int avahi_address_resolver_free(AvahiAddressResolver *r) { AvahiClient *client; int ret = AVAHI_OK; assert(r); client = r->client; if (r->path && avahi_client_is_connected(client)) ret = avahi_client_simple_method_call(client, r->path, AVAHI_DBUS_INTERFACE_ADDRESS_RESOLVER, "Free"); AVAHI_LLIST_REMOVE(AvahiAddressResolver, address_resolvers, client->address_resolvers, r); avahi_free(r->path); avahi_free(r); return ret; } avahi-0.7/avahi-client/PaxHeaders.10109/lookup.h0000644000000000000000000000013213130651643016227 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.179986184 avahi-0.7/avahi-client/lookup.h0000644000175000017500000002555013130651643017645 0ustar00lathiatlathiat00000000000000#ifndef fooclientlookuphfoo #define fooclientlookuphfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include #include #include #include #include #include /** \file avahi-client/lookup.h Lookup Client API */ /** \example client-browse-services.c Example how to browse for DNS-SD * services using the client interface to avahi-daemon. */ AVAHI_C_DECL_BEGIN /** @{ \name Domain Browser */ /** A domain browser object */ typedef struct AvahiDomainBrowser AvahiDomainBrowser; /** The function prototype for the callback of an AvahiDomainBrowser */ typedef void (*AvahiDomainBrowserCallback) ( AvahiDomainBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AvahiLookupResultFlags flags, void *userdata); /** Browse for domains on the local network */ AvahiDomainBrowser* avahi_domain_browser_new ( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiDomainBrowserType btype, AvahiLookupFlags flags, AvahiDomainBrowserCallback callback, void *userdata); /** Get the parent client of an AvahiDomainBrowser object */ AvahiClient* avahi_domain_browser_get_client (AvahiDomainBrowser *); /** Cleans up and frees an AvahiDomainBrowser object */ int avahi_domain_browser_free (AvahiDomainBrowser *); /** @} */ /** @{ \name Service Browser */ /** A service browser object */ typedef struct AvahiServiceBrowser AvahiServiceBrowser; /** The function prototype for the callback of an AvahiServiceBrowser */ typedef void (*AvahiServiceBrowserCallback) ( AvahiServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AvahiLookupResultFlags flags, void *userdata); /** Browse for services of a type on the network. In most cases you * probably want to pass AVAHI_IF_UNSPEC and AVAHI_PROTO_UNSPED in * interface, resp. protocol to browse on all local networks. The * specified callback will be called whenever a new service appears * or is removed from the network. Please note that events may be * collapsed to minimize traffic (i.e. a REMOVED followed by a NEW for * the same service data is dropped because redundant). If you want to * subscribe to service data changes, you should use * avahi_service_resolver_new() and keep it open, in which case you * will be notified via AVAHI_RESOLVE_FOUND everytime the service data * changes. */ AvahiServiceBrowser* avahi_service_browser_new ( AvahiClient *client, AvahiIfIndex interface, /**< In most cases pass AVAHI_IF_UNSPEC here */ AvahiProtocol protocol, /**< In most cases pass AVAHI_PROTO_UNSPEC here */ const char *type, /**< A service type such as "_http._tcp" */ const char *domain, /**< A domain to browse in. In most cases you want to pass NULL here for the default domain (usually ".local") */ AvahiLookupFlags flags, AvahiServiceBrowserCallback callback, void *userdata); /** Get the parent client of an AvahiServiceBrowser object */ AvahiClient* avahi_service_browser_get_client (AvahiServiceBrowser *); /** Cleans up and frees an AvahiServiceBrowser object */ int avahi_service_browser_free (AvahiServiceBrowser *); /** @} */ /** \cond fulldocs */ /** A service type browser object */ typedef struct AvahiServiceTypeBrowser AvahiServiceTypeBrowser; /** The function prototype for the callback of an AvahiServiceTypeBrowser */ typedef void (*AvahiServiceTypeBrowserCallback) ( AvahiServiceTypeBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *type, const char *domain, AvahiLookupResultFlags flags, void *userdata); /** Browse for service types on the local network */ AvahiServiceTypeBrowser* avahi_service_type_browser_new ( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiLookupFlags flags, AvahiServiceTypeBrowserCallback callback, void *userdata); /** Get the parent client of an AvahiServiceTypeBrowser object */ AvahiClient* avahi_service_type_browser_get_client (AvahiServiceTypeBrowser *); /** Cleans up and frees an AvahiServiceTypeBrowser object */ int avahi_service_type_browser_free (AvahiServiceTypeBrowser *); /** \endcond */ /** @{ \name Service Resolver */ /** A service resolver object */ typedef struct AvahiServiceResolver AvahiServiceResolver; /** The function prototype for the callback of an AvahiServiceResolver */ typedef void (*AvahiServiceResolverCallback) ( AvahiServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, void *userdata); /** Create a new service resolver object. Please make sure to pass all * the service data you received via avahi_service_browser_new()'s * callback function, especially interface and protocol. The protocol * argument specifies the protocol (IPv4 or IPv6) to use as transport * for the queries which are sent out by this resolver. The * aprotocol argument specifies the adress family (IPv4 or IPv6) of * the address of the service we are looking for. Generally, on * "protocol" you should only pass what was supplied to you as * parameter to your AvahiServiceBrowserCallback. In "aprotocol" you * should pass what your application code can deal with when * connecting to the service. Or, more technically speaking: protocol * specifies if the mDNS queries should be sent as UDP/IPv4 * resp. UDP/IPv6 packets. aprotocol specifies whether the query is for a A * resp. AAAA resource record. */ AvahiServiceResolver * avahi_service_resolver_new( AvahiClient *client, AvahiIfIndex interface, /**< Pass the interface argument you received in AvahiServiceBrowserCallback here. */ AvahiProtocol protocol, /**< Pass the protocol argument you received in AvahiServiceBrowserCallback here. */ const char *name, /**< Pass the name argument you received in AvahiServiceBrowserCallback here. */ const char *type, /**< Pass the type argument you received in AvahiServiceBrowserCallback here. */ const char *domain, /**< Pass the domain argument you received in AvahiServiceBrowserCallback here. */ AvahiProtocol aprotocol, /**< The desired address family of the service address to resolve. AVAHI_PROTO_UNSPEC if your application can deal with both IPv4 and IPv6 */ AvahiLookupFlags flags, AvahiServiceResolverCallback callback, void *userdata); /** Get the parent client of an AvahiServiceResolver object */ AvahiClient* avahi_service_resolver_get_client (AvahiServiceResolver *); /** Free a service resolver object */ int avahi_service_resolver_free(AvahiServiceResolver *r); /** @} */ /** \cond fulldocs */ /** A service resolver object */ typedef struct AvahiHostNameResolver AvahiHostNameResolver; /** The function prototype for the callback of an AvahiHostNameResolver */ typedef void (*AvahiHostNameResolverCallback) ( AvahiHostNameResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const AvahiAddress *a, AvahiLookupResultFlags flags, void *userdata); /** Create a new hostname resolver object */ AvahiHostNameResolver * avahi_host_name_resolver_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, AvahiProtocol aprotocol, AvahiLookupFlags flags, AvahiHostNameResolverCallback callback, void *userdata); /** Get the parent client of an AvahiHostNameResolver object */ AvahiClient* avahi_host_name_resolver_get_client (AvahiHostNameResolver *); /** Free a hostname resolver object */ int avahi_host_name_resolver_free(AvahiHostNameResolver *r); /** An address resolver object */ typedef struct AvahiAddressResolver AvahiAddressResolver; /** The function prototype for the callback of an AvahiAddressResolver */ typedef void (*AvahiAddressResolverCallback) ( AvahiAddressResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *a, const char *name, AvahiLookupResultFlags flags, void *userdata); /** Create a new address resolver object from an AvahiAddress object */ AvahiAddressResolver* avahi_address_resolver_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const AvahiAddress *a, AvahiLookupFlags flags, AvahiAddressResolverCallback callback, void *userdata); /** Get the parent client of an AvahiAddressResolver object */ AvahiClient* avahi_address_resolver_get_client (AvahiAddressResolver *); /** Free a AvahiAddressResolver resolver object */ int avahi_address_resolver_free(AvahiAddressResolver *r); /** \endcond */ /** @{ \name Record Browser */ /** A record browser object */ typedef struct AvahiRecordBrowser AvahiRecordBrowser; /** The function prototype for the callback of an AvahiRecordBrowser */ typedef void (*AvahiRecordBrowserCallback) ( AvahiRecordBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, uint16_t clazz, uint16_t type, const void *rdata, size_t size, AvahiLookupResultFlags flags, void *userdata); /** Browse for records of a type on the local network */ AvahiRecordBrowser* avahi_record_browser_new( AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, uint16_t clazz, uint16_t type, AvahiLookupFlags flags, AvahiRecordBrowserCallback callback, void *userdata); /** Get the parent client of an AvahiRecordBrowser object */ AvahiClient* avahi_record_browser_get_client(AvahiRecordBrowser *); /** Cleans up and frees an AvahiRecordBrowser object */ int avahi_record_browser_free(AvahiRecordBrowser *); /** @} */ AVAHI_C_DECL_END #endif avahi-0.7/avahi-client/PaxHeaders.10109/check-nss-test.c0000644000000000000000000000013213130651643017544 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.187986003 avahi-0.7/avahi-client/check-nss-test.c0000644000175000017500000000176113130651643021160 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { printf("NSS Support available: %s\n", avahi_nss_support() ? "yes" : "no"); return 0; } avahi-0.7/avahi-client/PaxHeaders.10109/srv-test.c0000644000000000000000000000013213130651643016500 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.187986003 avahi-0.7/avahi-client/srv-test.c0000644000175000017500000000445413130651643020116 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include static void callback( AVAHI_GCC_UNUSED AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, AVAHI_GCC_UNUSED const AvahiAddress *a, AVAHI_GCC_UNUSED uint16_t port, AVAHI_GCC_UNUSED AvahiStringList *txt, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void *userdata) { fprintf(stderr, "%i name=%s type=%s domain=%s host=%s\n", event, name, type, domain, host_name); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { AvahiSimplePoll *simple_poll; const AvahiPoll *poll_api; AvahiClient *client; AvahiServiceResolver *r; simple_poll = avahi_simple_poll_new(); assert(simple_poll); poll_api = avahi_simple_poll_get(simple_poll); assert(poll_api); client = avahi_client_new(poll_api, 0, NULL, NULL, NULL); assert(client); r = avahi_service_resolver_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, NULL, "_domain._udp", "0pointer.de", AVAHI_PROTO_UNSPEC, AVAHI_LOOKUP_NO_TXT, callback, simple_poll); assert(r); avahi_simple_poll_loop(simple_poll); avahi_client_free(client); avahi_simple_poll_free(simple_poll); return 0; } avahi-0.7/avahi-client/PaxHeaders.10109/xdg-config.h0000644000000000000000000000013213130651643016743 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.183986095 avahi-0.7/avahi-client/xdg-config.h0000644000175000017500000000155013130651643020353 0ustar00lathiatlathiat00000000000000#ifndef fooxdgconfighfoo #define fooxdgconfighfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include FILE *avahi_xdg_config_open(const char *filename); #endif avahi-0.7/avahi-client/PaxHeaders.10109/client.h0000644000000000000000000000013213130651643016174 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.175986274 avahi-0.7/avahi-client/client.h0000644000175000017500000001177713130651643017620 0ustar00lathiatlathiat00000000000000#ifndef fooclienthfoo #define fooclienthfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include #include #include #include #include #include /** \file client.h Definitions and functions for the client API over D-Bus */ AVAHI_C_DECL_BEGIN /** A connection context */ typedef struct AvahiClient AvahiClient; /** States of a client object, a superset of AvahiServerState */ typedef enum { AVAHI_CLIENT_S_REGISTERING = AVAHI_SERVER_REGISTERING, /**< Server state: REGISTERING */ AVAHI_CLIENT_S_RUNNING = AVAHI_SERVER_RUNNING, /**< Server state: RUNNING */ AVAHI_CLIENT_S_COLLISION = AVAHI_SERVER_COLLISION, /**< Server state: COLLISION */ AVAHI_CLIENT_FAILURE = 100, /**< Some kind of error happened on the client side */ AVAHI_CLIENT_CONNECTING = 101 /**< We're still connecting. This state is only entered when AVAHI_CLIENT_NO_FAIL has been passed to avahi_client_new() and the daemon is not yet available. */ } AvahiClientState; typedef enum { AVAHI_CLIENT_IGNORE_USER_CONFIG = 1, /**< Don't read user configuration */ AVAHI_CLIENT_NO_FAIL = 2 /**< Don't fail if the daemon is not available when avahi_client_new() is called, instead enter AVAHI_CLIENT_CONNECTING state and wait for the daemon to appear */ } AvahiClientFlags; /** The function prototype for the callback of an AvahiClient */ typedef void (*AvahiClientCallback) ( AvahiClient *s, AvahiClientState state /**< The new state of the client */, void* userdata /**< The user data that was passed to avahi_client_new() */); /** @{ \name Construction and destruction */ /** Creates a new client instance */ AvahiClient* avahi_client_new ( const AvahiPoll *poll_api /**< The abstract event loop API to use */, AvahiClientFlags flags /**< Some flags to modify the behaviour of the client library */, AvahiClientCallback callback /**< A callback that is called whenever the state of the client changes. This may be NULL. Please note that this function is called for the first time from within the avahi_client_new() context! Thus, in the callback you should not make use of global variables that are initialized only after your call to avahi_client_new(). A common mistake is to store the AvahiClient pointer returned by avahi_client_new() in a global variable and assume that this global variable already contains the valid pointer when the callback is called for the first time. A work-around for this is to always use the AvahiClient pointer passed to the callback function instead of the global pointer. */, void *userdata /**< Some arbitrary user data pointer that will be passed to the callback function */, int *error /**< If creation of the client fails, this integer will contain the error cause. May be NULL if you aren't interested in the reason why avahi_client_new() failed. */); /** Free a client instance. This will automatically free all * associated browser, resolve and entry group objects. All pointers * to such objects become invalid! */ void avahi_client_free(AvahiClient *client); /** @} */ /** @{ \name Properties */ /** Get the version of the server */ const char* avahi_client_get_version_string (AvahiClient*); /** Get host name */ const char* avahi_client_get_host_name (AvahiClient*); /** Set host name. \since 0.6.13 */ int avahi_client_set_host_name(AvahiClient*, const char *name); /** Get domain name */ const char* avahi_client_get_domain_name (AvahiClient*); /** Get FQDN domain name */ const char* avahi_client_get_host_name_fqdn (AvahiClient*); /** Get state */ AvahiClientState avahi_client_get_state(AvahiClient *client); /** @{ \name Error Handling */ /** Get the last error number. See avahi_strerror() for converting this error code into a human readable string. */ int avahi_client_errno (AvahiClient*); /** @} */ /** \cond fulldocs */ /** Return the local service cookie. returns AVAHI_SERVICE_COOKIE_INVALID on failure. */ uint32_t avahi_client_get_local_service_cookie(AvahiClient *client); /** \endcond */ /** @{ \name Libc NSS Support */ /** Return 1 if gethostbyname() supports mDNS lookups, 0 otherwise. \since 0.6.5 */ int avahi_nss_support(void); /** @} */ AVAHI_C_DECL_END #endif avahi-0.7/avahi-client/PaxHeaders.10109/rr-test.c0000644000000000000000000000013213130651643016311 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.187986003 avahi-0.7/avahi-client/rr-test.c0000644000175000017500000000553713130651643017732 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include static void hexdump(const void* p, size_t size) { const uint8_t *c = p; assert(p); printf("Dumping %lu bytes from %p:\n", (unsigned long) size, p); while (size > 0) { unsigned i; for (i = 0; i < 16; i++) { if (i < size) printf("%02x ", c[i]); else printf(" "); } for (i = 0; i < 16; i++) { if (i < size) printf("%c", c[i] >= 32 && c[i] < 127 ? c[i] : '.'); else printf(" "); } printf("\n"); c += 16; if (size <= 16) break; size -= 16; } } static void callback( AVAHI_GCC_UNUSED AvahiRecordBrowser *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, uint16_t clazz, uint16_t type, const void *rdata, size_t rdata_size, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void *userdata) { fprintf(stderr, "%i name=%s class=%u type=%u\n", event, name, clazz, type); if (rdata) hexdump(rdata, rdata_size); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { AvahiSimplePoll *simple_poll; const AvahiPoll *poll_api; AvahiClient *client; AvahiRecordBrowser *r; simple_poll = avahi_simple_poll_new(); assert(simple_poll); poll_api = avahi_simple_poll_get(simple_poll); assert(poll_api); client = avahi_client_new(poll_api, 0, NULL, NULL, NULL); assert(client); r = avahi_record_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "ecstasy.local", AVAHI_DNS_CLASS_IN, AVAHI_DNS_TYPE_HINFO, 0, callback, simple_poll); assert(r); avahi_simple_poll_loop(simple_poll); avahi_client_free(client); avahi_simple_poll_free(simple_poll); return 0; } avahi-0.7/PaxHeaders.10109/avahi-qt3.pc.in0000644000000000000000000000013213130651643014727 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.019989754 avahi-0.7/avahi-qt3.pc.in0000644000175000017500000000043413130651643016337 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: avahi-qt3 Description: Avahi Multicast DNS Responder (QT3 Support) Version: @PACKAGE_VERSION@ Requires.private: qt-mt >= 3.0.0 Libs: -L${libdir} -lavahi-qt3 Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/avahi-core.pc.in0000644000000000000000000000013213130651643015150 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681850.019989754 avahi-0.7/avahi-core.pc.in0000644000175000017500000000042113130651643016554 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: avahi-core Description: Avahi Multicast DNS Responder (Embeddable Stack) Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lavahi-common -lavahi-core Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/avahi-ui-sharp0000644000000000000000000000013213130652073014740 xustar0030 mtime=1499681851.243962444 30 atime=1499681851.283961552 30 ctime=1499681851.243962444 avahi-0.7/avahi-ui-sharp/0000755000175000017500000000000013130652073016424 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-ui-sharp/PaxHeaders.10109/avahi-ui-sharp-docs.source0000644000000000000000000000013213130651643022005 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/avahi-ui-sharp-docs.source0000644000175000017500000000020413130651643023410 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-ui-sharp/PaxHeaders.10109/gencfg.sh0000644000000000000000000000013213130651643016604 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.243962444 avahi-0.7/avahi-ui-sharp/gencfg.sh0000755000175000017500000000013313130651643020213 0ustar00lathiatlathiat00000000000000#!/bin/sh . $1 common_dlname=$dlname exec sed -e "s,@COMMON_DLNAME\@,${common_dlname},g" avahi-0.7/avahi-ui-sharp/PaxHeaders.10109/avahi-ui-sharp.dll.config.in0000644000000000000000000000013213130651643022203 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.243962444 avahi-0.7/avahi-ui-sharp/avahi-ui-sharp.dll.config.in0000644000175000017500000000021613130651643023611 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-ui-sharp/PaxHeaders.10109/bssh.cs0000644000000000000000000000013213130651643016305 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.243962444 avahi-0.7/avahi-ui-sharp/bssh.cs0000644000175000017500000000261213130651643017715 0ustar00lathiatlathiat00000000000000using System; using System.Diagnostics; using Gtk; using Avahi.UI; public class EntryPoint { public static void Main () { Application.Init (); ServiceDialog dialog = new ServiceDialog ("Choose SSH Server", null, Stock.Cancel, ResponseType.Cancel, Stock.Connect, ResponseType.Accept); dialog.BrowseServiceTypes = new string[] { "_ssh._tcp" }; dialog.ResolveServiceEnabled = true; if (dialog.Run () == (int) ResponseType.Accept) { Console.WriteLine ("Connecting to {0}:{1}", dialog.Address, dialog.Port); string user = Environment.UserName; foreach (byte[] txtBytes in dialog.TxtData) { string txt = System.Text.Encoding.UTF8.GetString (txtBytes); string[] splitTxt = txt.Split(new char[] { '=' }, 2); if (splitTxt.Length != 2) continue; if (splitTxt[0] == "u") { user = splitTxt[1]; } string args = String.Format ("gnome-terminal -t {0} -x ssh -p {1} -l {2} {3}", dialog.HostName, dialog.Port, user, dialog.Address.ToString ()); Console.WriteLine ("Launching: " + args); Process.Start (args); } } } } avahi-0.7/avahi-ui-sharp/PaxHeaders.10109/en0000644000000000000000000000013213130652073015342 xustar0030 mtime=1499681851.239962533 30 atime=1499681851.283961552 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/en/0000755000175000017500000000000013130652073017026 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-ui-sharp/en/PaxHeaders.10109/Avahi.UI0000644000000000000000000000013213130652073016706 xustar0030 mtime=1499681851.239962533 30 atime=1499681851.283961552 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/en/Avahi.UI/0000755000175000017500000000000013130652073020372 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-ui-sharp/en/Avahi.UI/PaxHeaders.10109/ServiceDialog.xml0000644000000000000000000000013213130651643022227 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/en/Avahi.UI/ServiceDialog.xml0000644000175000017500000001342013130651643023636 0ustar00lathiatlathiat00000000000000 avahi-ui-sharp 0.0.0.0 Gtk.Dialog Constructor System.ParamArray To be added. To be added. To be added. To be added. To be added. Property System.Net.IPAddress To be added. To be added. To be added. Property Avahi.Protocol To be added. To be added. To be added. Property System.String[] To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Property System.UInt16 To be added. To be added. To be added. Property System.Boolean To be added. To be added. To be added. Property System.Boolean To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Property System.Byte[][] To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-ui-sharp/en/PaxHeaders.10109/index.xml0000644000000000000000000000013213130651643017252 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/en/index.xml0000644000175000017500000000050113130651643020655 0ustar00lathiatlathiat00000000000000 To be added. To be added. avahi-ui-sharp avahi-0.7/avahi-ui-sharp/en/PaxHeaders.10109/Avahi.UI.xml0000644000000000000000000000013213130651643017507 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/en/Avahi.UI.xml0000644000175000017500000000020413130651643021112 0ustar00lathiatlathiat00000000000000 To be added. To be added. avahi-0.7/avahi-ui-sharp/PaxHeaders.10109/ServiceDialog.cs0000644000000000000000000000013213130651643020066 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/ServiceDialog.cs0000644000175000017500000002023213130651643021474 0ustar00lathiatlathiat00000000000000using System; using System.Net; using System.Collections; using System.Runtime.InteropServices; using Gtk; using Mono.Unix; using Mono.Unix.Native; namespace Avahi.UI { public class ServiceDialog : Dialog { [DllImport ("avahi-ui")] private static extern IntPtr aui_service_dialog_new (string title, IntPtr parent, IntPtr dummy); [DllImport ("avahi-ui")] private static extern void aui_service_dialog_set_browse_service_typesv (IntPtr dialog, IntPtr[] types); [DllImport ("avahi-ui")] private static extern IntPtr aui_service_dialog_get_browse_service_types (IntPtr dialog); [DllImport ("avahi-ui")] private static extern IntPtr aui_service_dialog_get_domain (IntPtr dialog); [DllImport ("avahi-ui")] private static extern void aui_service_dialog_set_domain (IntPtr dialog, IntPtr domain); [DllImport ("avahi-ui")] private static extern IntPtr aui_service_dialog_get_service_type (IntPtr dialog); [DllImport ("avahi-ui")] private static extern void aui_service_dialog_set_service_type (IntPtr dialog, IntPtr type); [DllImport ("avahi-ui")] private static extern IntPtr aui_service_dialog_get_service_name (IntPtr dialog); [DllImport ("avahi-ui")] private static extern void aui_service_dialog_set_service_name (IntPtr dialog, IntPtr type); [DllImport ("avahi-ui")] private static extern IntPtr aui_service_dialog_get_address (IntPtr dialog); [DllImport ("avahi-ui")] private static extern UInt16 aui_service_dialog_get_port (IntPtr dialog); [DllImport ("avahi-ui")] private static extern IntPtr aui_service_dialog_get_host_name (IntPtr dialog); [DllImport ("avahi-ui")] private static extern IntPtr aui_service_dialog_get_txt_data (IntPtr dialog); [DllImport ("avahi-ui")] private static extern bool aui_service_dialog_get_resolve_service (IntPtr dialog); [DllImport ("avahi-ui")] private static extern void aui_service_dialog_set_resolve_service (IntPtr dialog, bool val); [DllImport ("avahi-ui")] private static extern bool aui_service_dialog_get_resolve_host_name (IntPtr dialog); [DllImport ("avahi-ui")] private static extern void aui_service_dialog_set_resolve_host_name (IntPtr dialog, bool val); [DllImport ("avahi-ui")] private static extern Protocol aui_service_dialog_get_address_family (IntPtr dialog); [DllImport ("avahi-ui")] private static extern void aui_service_dialog_set_address_family (IntPtr dialog, Protocol proto); [DllImport ("avahi-common")] private static extern IntPtr avahi_address_snprint (IntPtr buf, int size, IntPtr address); [DllImport ("avahi-common")] private static extern IntPtr avahi_string_list_get_next (IntPtr list); [DllImport ("avahi-common")] private static extern IntPtr avahi_string_list_get_text (IntPtr list); [DllImport ("avahi-common")] private static extern int avahi_string_list_get_size (IntPtr list); public string[] BrowseServiceTypes { get { IntPtr arr = aui_service_dialog_get_browse_service_types (Raw); ArrayList values = new ArrayList (); for (int i = 0;;i++) { IntPtr ptr = Marshal.ReadIntPtr (arr, i * Marshal.SizeOf (typeof (IntPtr))); if (ptr == IntPtr.Zero) break; values.Add (GLib.Marshaller.Utf8PtrToString (ptr)); } return (string[]) values.ToArray (typeof (string)); } set { IntPtr[] types; if (value == null) { types = new IntPtr[] { IntPtr.Zero }; } else { types = new IntPtr[value.Length + 1]; for (int i = 0; i < value.Length; i++) { types[i] = GLib.Marshaller.StringToPtrGStrdup (value[i]); } types[value.Length] = IntPtr.Zero; } aui_service_dialog_set_browse_service_typesv (Raw, types); for (int i = 0;;i++) { if (types[i] != IntPtr.Zero) break; GLib.Marshaller.Free (types[i]); } } } public string ServiceType { get { return GLib.Marshaller.Utf8PtrToString (aui_service_dialog_get_service_type (Raw)); } set { IntPtr type = GLib.Marshaller.StringToPtrGStrdup (value); aui_service_dialog_set_service_type (Raw, type); GLib.Marshaller.Free (type); } } public string ServiceName { get { return GLib.Marshaller.Utf8PtrToString (aui_service_dialog_get_service_name (Raw)); } set { IntPtr name = GLib.Marshaller.StringToPtrGStrdup (value); aui_service_dialog_set_service_name (Raw, name); GLib.Marshaller.Free (name); } } public IPAddress Address { get { return PtrToAddress (aui_service_dialog_get_address (Raw)); } } public UInt16 Port { get { return aui_service_dialog_get_port (Raw); } } public string HostName { get { return GLib.Marshaller.Utf8PtrToString (aui_service_dialog_get_host_name (Raw)); } } public string Domain { get { return GLib.Marshaller.Utf8PtrToString (aui_service_dialog_get_domain (Raw)); } set { IntPtr domain = GLib.Marshaller.StringToPtrGStrdup (value); aui_service_dialog_set_domain (Raw, domain); GLib.Marshaller.Free (domain); } } public byte[][] TxtData { get { ArrayList txtlist = new ArrayList (); IntPtr txt = aui_service_dialog_get_txt_data (Raw); for (IntPtr l = txt; l != IntPtr.Zero; l = avahi_string_list_get_next (l)) { IntPtr buf = avahi_string_list_get_text (l); int len = avahi_string_list_get_size (l); byte[] txtbuf = new byte[len]; Marshal.Copy (buf, txtbuf, 0, len); txtlist.Add (txtbuf); } return (byte[][]) txtlist.ToArray (typeof (byte[])); } } public bool ResolveServiceEnabled { get { return aui_service_dialog_get_resolve_service (Raw); } set { aui_service_dialog_set_resolve_service (Raw, value); } } public bool ResolveHostNameEnabled { get { return aui_service_dialog_get_resolve_host_name (Raw); } set { aui_service_dialog_set_resolve_host_name (Raw, value); } } public Protocol AddressFamily { get { return aui_service_dialog_get_address_family (Raw); } set { aui_service_dialog_set_address_family (Raw, value); } } public ServiceDialog (string title, Window parent, params object[] buttonData) { Raw = aui_service_dialog_new (title, parent == null ? IntPtr.Zero : parent.Handle, IntPtr.Zero); for (int i = 0; i < buttonData.Length - 1; i += 2) { AddButton ((string) buttonData[i], (int) buttonData[i + 1]); } } private static IPAddress PtrToAddress (IntPtr ptr) { IPAddress address = null; if (ptr != IntPtr.Zero) { IntPtr buf = Stdlib.malloc (256); IntPtr addrPtr = avahi_address_snprint (buf, 256, ptr); address = IPAddress.Parse (GLib.Marshaller.Utf8PtrToString (addrPtr)); Stdlib.free (addrPtr); } return address; } } } avahi-0.7/avahi-ui-sharp/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011017052 xustar0030 mtime=1499681801.685069586 30 atime=1499681806.828954543 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/Makefile.in0000644000175000017500000005413013130652011020464 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = avahi-ui-sharp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(monodocdir)" DATA = $(monodoc_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ASSEMBLY = avahi-ui-sharp.dll CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config bssh.exe AVAHISOURCES = \ $(srcdir)/ServiceDialog.cs EXTRA_DIST = \ $(AVAHISOURCES) \ $(srcdir)/avahi-ui-sharp-docs.source \ $(srcdir)/en/*.xml \ $(srcdir)/en/*/*.xml \ $(srcdir)/gencfg.sh \ $(srcdir)/$(ASSEMBLY).config.in \ $(srcdir)/bssh.cs @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@monodocdir = $(MONODOC_DIR) @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@monodoc_DATA = avahi-ui-sharp-docs.zip avahi-ui-sharp-docs.tree avahi-ui-sharp-docs.source all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-ui-sharp/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-ui-sharp/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-monodocDATA: $(monodoc_DATA) @$(NORMAL_INSTALL) @list='$(monodoc_DATA)'; test -n "$(monodocdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(monodocdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(monodocdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(monodocdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(monodocdir)" || exit $$?; \ done uninstall-monodocDATA: @$(NORMAL_UNINSTALL) @list='$(monodoc_DATA)'; test -n "$(monodocdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(monodocdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(monodocdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @HAVE_DBUS_FALSE@install-data-hook: @HAVE_GTK_FALSE@install-data-hook: @HAVE_MONO_FALSE@install-data-hook: @HAVE_DBUS_FALSE@uninstall-hook: @HAVE_GTK_FALSE@uninstall-hook: @HAVE_MONO_FALSE@uninstall-hook: clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-monodocDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-monodocDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) uninstall-hook .MAKE: install-am install-data-am install-strip uninstall-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-hook install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-monodocDATA install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-hook uninstall-monodocDATA .PRECIOUS: Makefile $(ASSEMBLY): $(AVAHISOURCES) $(AM_V_GEN)mcs -keyfile:$(top_srcdir)/avahi-sharp/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -pkg:gtk-sharp-2.0 -r:$(top_builddir)/avahi-sharp/avahi-sharp.dll -r:Mono.Posix $(ASSEMBLY).config: $(ASSEMBLY).config.in $(AM_V_GEN)$(srcdir)/gencfg.sh $(top_builddir)/avahi-common/libavahi-common.la < $< > $@ bssh.exe: $(srcdir)/bssh.cs $(ASSEMBLY) $(AM_V_GEN)mcs -out:$@ $(srcdir)/bssh.cs -r:./avahi-ui-sharp.dll -r:../avahi-sharp/avahi-sharp.dll -pkg:gtk-sharp-2.0 -r:Mono.Posix @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONO_TRUE@all: $(ASSEMBLY) $(ASSEMBLY).config bssh.exe @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@update-docs: $(ASSEMBLY) @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@ $(AM_V_GEN)$(MONODOCER) -assembly:$(ASSEMBLY) -path:en @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@avahi-ui-sharp-docs.zip: avahi-ui-sharp-docs.tree @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@avahi-ui-sharp-docs.tree: $(srcdir)/en/*/* @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@ $(AM_V_GEN)$(MDASSEMBLER) --out avahi-ui-sharp-docs --ecma $(srcdir)/en @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONO_TRUE@install-data-hook: $(ASSEMBLY) @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONO_TRUE@ $(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONO_TRUE@uninstall-hook: $(ASSEMBLY) @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_MONO_TRUE@ $(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-ui-sharp/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017053 xustar0030 mtime=1499681699.127370127 30 atime=1499681796.821178394 30 ctime=1499681851.239962533 avahi-0.7/avahi-ui-sharp/Makefile.am0000644000175000017500000000452413130651643020467 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. ASSEMBLY = avahi-ui-sharp.dll CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config bssh.exe AVAHISOURCES = \ $(srcdir)/ServiceDialog.cs EXTRA_DIST = \ $(AVAHISOURCES) \ $(srcdir)/avahi-ui-sharp-docs.source \ $(srcdir)/en/*.xml \ $(srcdir)/en/*/*.xml \ $(srcdir)/gencfg.sh \ $(srcdir)/$(ASSEMBLY).config.in \ $(srcdir)/bssh.cs $(ASSEMBLY): $(AVAHISOURCES) $(AM_V_GEN)mcs -keyfile:$(top_srcdir)/avahi-sharp/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -pkg:gtk-sharp-2.0 -r:$(top_builddir)/avahi-sharp/avahi-sharp.dll -r:Mono.Posix $(ASSEMBLY).config: $(ASSEMBLY).config.in $(AM_V_GEN)$(srcdir)/gencfg.sh $(top_builddir)/avahi-common/libavahi-common.la < $< > $@ bssh.exe: $(srcdir)/bssh.cs $(ASSEMBLY) $(AM_V_GEN)mcs -out:$@ $(srcdir)/bssh.cs -r:./avahi-ui-sharp.dll -r:../avahi-sharp/avahi-sharp.dll -pkg:gtk-sharp-2.0 -r:Mono.Posix if HAVE_MONO if HAVE_DBUS if HAVE_GTK all: $(ASSEMBLY) $(ASSEMBLY).config bssh.exe if HAVE_MONODOC update-docs: $(ASSEMBLY) $(AM_V_GEN)$(MONODOCER) -assembly:$(ASSEMBLY) -path:en avahi-ui-sharp-docs.zip: avahi-ui-sharp-docs.tree avahi-ui-sharp-docs.tree: $(srcdir)/en/*/* $(AM_V_GEN)$(MDASSEMBLER) --out avahi-ui-sharp-docs --ecma $(srcdir)/en monodocdir = $(MONODOC_DIR) monodoc_DATA = avahi-ui-sharp-docs.zip avahi-ui-sharp-docs.tree avahi-ui-sharp-docs.source endif install-data-hook: $(ASSEMBLY) $(GACUTIL) /i $(ASSEMBLY) /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) uninstall-hook: $(ASSEMBLY) $(GACUTIL) /u avahi-ui-sharp /package avahi-ui-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) endif endif endif avahi-0.7/PaxHeaders.10109/config.rpath0000644000000000000000000000013213130652004014476 xustar0030 mtime=1499681796.609183138 30 atime=1499681796.609183138 30 ctime=1499681850.003990109 avahi-0.7/config.rpath0000755000175000017500000004421613130652004016117 0ustar00lathiatlathiat00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2016 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; nagfor*) wl='-Wl,-Wl,,' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; xl* | bgxl* | bgf* | mpixl*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) wl= ;; *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; newsos6) ;; *nto* | *qnx*) ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) wl='-Qoption ld ' ;; *) wl='-Wl,' ;; esac ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; haiku*) ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) case "$host_cpu" in powerpc) ;; m68k) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then : else ld_shlibs=no fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd2.[01]*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) case "$host_cpu" in powerpc*) library_names_spec='$libname$shrext' ;; m68k) library_names_spec='$libname.a' ;; esac ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd[23].*) library_names_spec='$libname$shrext$versuffix' ;; freebsd* | dragonfly*) library_names_spec='$libname$shrext' ;; gnu*) library_names_spec='$libname$shrext' ;; haiku*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; *nto* | *qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; tpf*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_QT3_TRUE@am__append_1 = \ @HAVE_QT3_TRUE@ $(srcdir)/avahi-qt/qt-watch.h @HAVE_QT3_FALSE@@HAVE_QT4_TRUE@am__append_2 = \ @HAVE_QT3_FALSE@@HAVE_QT4_TRUE@ $(srcdir)/avahi-qt/qt-watch.h @HAVE_GLIB_TRUE@am__append_3 = \ @HAVE_GLIB_TRUE@ $(srcdir)/avahi-glib/glib-watch.h \ @HAVE_GLIB_TRUE@ $(srcdir)/avahi-glib/glib-malloc.h @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@am__append_4 = \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@ $(srcdir)/avahi-gobject/ga-client.h \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@ $(srcdir)/avahi-gobject/ga-entry-group.h \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@ $(srcdir)/avahi-gobject/ga-enums.h \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@ $(srcdir)/avahi-gobject/ga-error.h \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@ $(srcdir)/avahi-gobject/ga-record-browser.h \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@ $(srcdir)/avahi-gobject/ga-service-browser.h \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@ $(srcdir)/avahi-gobject/ga-service-resolver.h @HAVE_DBUS_TRUE@am__append_5 = \ @HAVE_DBUS_TRUE@ $(srcdir)/avahi-client/client.h \ @HAVE_DBUS_TRUE@ $(srcdir)/avahi-client/lookup.h \ @HAVE_DBUS_TRUE@ $(srcdir)/avahi-client/publish.h @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@am__append_6 = \ @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@ $(srcdir)/avahi-ui/avahi-ui.h @ENABLE_CORE_DOCS_TRUE@am__append_7 = \ @ENABLE_CORE_DOCS_TRUE@ $(srcdir)/avahi-core/core.h \ @ENABLE_CORE_DOCS_TRUE@ $(srcdir)/avahi-core/lookup.h \ @ENABLE_CORE_DOCS_TRUE@ $(srcdir)/avahi-core/publish.h \ @ENABLE_CORE_DOCS_TRUE@ $(srcdir)/avahi-core/rr.h \ @ENABLE_CORE_DOCS_TRUE@ $(srcdir)/avahi-core/log.h @HAVE_GTK_TRUE@am__append_8 = \ @HAVE_GTK_TRUE@ $(srcdir)/avahi-ui/avahi-ui.h @HAVE_DBUS_TRUE@am__append_9 = avahi-client.pc @HAVE_DBUS_TRUE@am__append_10 = avahi-client.pc @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am__append_11 = avahi-compat-howl.pc @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am__append_12 = avahi-compat-howl.pc @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@am__append_13 = avahi-compat-libdns_sd.pc @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@am__append_14 = avahi-compat-libdns_sd.pc @HAVE_DBUS_TRUE@@HAVE_MONO_TRUE@am__append_15 = avahi-sharp.pc avahi-ui-sharp.pc @HAVE_DBUS_TRUE@@HAVE_MONO_TRUE@am__append_16 = avahi-sharp.pc avahi-ui-sharp.pc @HAVE_GLIB_TRUE@am__append_17 = avahi-glib.pc @HAVE_GLIB_TRUE@am__append_18 = avahi-glib.pc @HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@am__append_19 = avahi-gobject.pc @HAVE_GLIB_TRUE@@HAVE_GOBJECT_TRUE@am__append_20 = avahi-gobject.pc @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@am__append_21 = avahi-ui.pc @HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@am__append_22 = avahi-ui.pc @HAVE_DBUS_TRUE@@HAVE_GTK3_TRUE@am__append_23 = avahi-ui-gtk3.pc @HAVE_DBUS_TRUE@@HAVE_GTK3_TRUE@am__append_24 = avahi-ui-gtk3.pc @HAVE_QT3_TRUE@am__append_25 = avahi-qt3.pc @HAVE_QT3_TRUE@am__append_26 = avahi-qt3.pc @HAVE_QT4_TRUE@am__append_27 = avahi-qt4.pc @HAVE_QT4_TRUE@am__append_28 = avahi-qt4.pc subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgconfigdir)" DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/common/doxygen.mk \ $(srcdir)/config.h.in ABOUT-NLS ChangeLog README compile \ config.guess config.rpath config.sub install-sh ltmain.sh \ missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I common @DX_COND_doc_TRUE@@DX_COND_html_TRUE@DX_CLEAN_HTML = @DX_DOCDIR@/html @DX_COND_chm_TRUE@@DX_COND_doc_TRUE@DX_CLEAN_CHM = @DX_DOCDIR@/chm @DX_COND_chi_TRUE@@DX_COND_chm_TRUE@@DX_COND_doc_TRUE@DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi @DX_COND_doc_TRUE@@DX_COND_man_TRUE@DX_CLEAN_MAN = @DX_DOCDIR@/man @DX_COND_doc_TRUE@@DX_COND_rtf_TRUE@DX_CLEAN_RTF = @DX_DOCDIR@/rtf @DX_COND_doc_TRUE@@DX_COND_xml_TRUE@DX_CLEAN_XML = @DX_DOCDIR@/xml @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@DX_PS_GOAL = doxygen-ps @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@DX_PDF_GOAL = doxygen-pdf @DX_COND_doc_TRUE@@DX_COND_latex_TRUE@DX_CLEAN_LATEX = @DX_DOCDIR@/latex @DX_COND_doc_TRUE@DX_CLEANFILES = \ @DX_COND_doc_TRUE@ @DX_DOCDIR@/@PACKAGE@.tag \ @DX_COND_doc_TRUE@ -r \ @DX_COND_doc_TRUE@ $(DX_CLEAN_HTML) \ @DX_COND_doc_TRUE@ $(DX_CLEAN_CHM) \ @DX_COND_doc_TRUE@ $(DX_CLEAN_CHI) \ @DX_COND_doc_TRUE@ $(DX_CLEAN_MAN) \ @DX_COND_doc_TRUE@ $(DX_CLEAN_RTF) \ @DX_COND_doc_TRUE@ $(DX_CLEAN_XML) \ @DX_COND_doc_TRUE@ $(DX_CLEAN_PS) \ @DX_COND_doc_TRUE@ $(DX_CLEAN_PDF) \ @DX_COND_doc_TRUE@ $(DX_CLEAN_LATEX) EXTRA_DIST = \ autogen.sh \ bootstrap.sh \ LICENSE \ $(DX_CONFIG) \ docs/INSTALL \ docs/TODO \ docs/NEWS \ docs/README \ docs/DBUS-API \ docs/AUTHORS \ docs/HACKING \ docs/API-CHANGES-0.6 \ docs/COMPAT-LAYERS \ docs/MALLOC \ docs/overview.dia \ docs/server-states.dia \ docs/avahi-poll.dia \ avahi-core.pc.in \ avahi-client.pc.in \ avahi-glib.pc.in \ avahi-gobject.pc.in \ avahi-qt3.pc.in \ avahi-qt4.pc.in \ avahi-sharp.pc.in \ avahi-ui-sharp.pc.in \ avahi-compat-libdns_sd.pc.in \ avahi-compat-howl.pc.in \ avahi-ui.pc.in \ avahi-ui-gtk3.pc.in \ doxygen_to_devhelp.xsl \ common/introspection.m4 SUBDIRS = \ common \ avahi-common \ avahi-core \ avahi-qt \ avahi-client \ avahi-glib \ avahi-gobject \ avahi-discover-standalone \ avahi-daemon \ avahi-sharp \ initscript \ avahi-dnsconfd \ avahi-utils \ avahi-python \ examples \ man \ tests \ service-type-database \ avahi-compat-libdns_sd \ avahi-compat-howl \ avahi-autoipd \ avahi-ui \ avahi-ui-sharp \ po DX_INPUT = $(srcdir)/avahi-common/address.h \ $(srcdir)/avahi-common/malloc.h \ $(srcdir)/avahi-common/strlst.h \ $(srcdir)/avahi-common/alternative.h \ $(srcdir)/avahi-common/defs.h $(srcdir)/avahi-common/error.h \ $(srcdir)/avahi-common/domain.h $(srcdir)/avahi-common/watch.h \ $(srcdir)/avahi-common/simple-watch.h \ $(srcdir)/avahi-common/thread-watch.h $(am__append_1) \ $(am__append_2) $(am__append_3) $(am__append_4) \ $(am__append_5) $(am__append_6) $(am__append_7) \ $(am__append_8) DX_EXAMPLE_PATH = $(srcdir)/examples DX_EXAMPLE_PATTERNS = *.c pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = avahi-core.pc $(am__append_9) $(am__append_11) \ $(am__append_13) $(am__append_15) $(am__append_17) \ $(am__append_19) $(am__append_21) $(am__append_23) \ $(am__append_25) $(am__append_27) CLEANFILES = avahi-core.pc $(am__append_10) $(am__append_12) \ $(am__append_14) $(am__append_16) $(am__append_18) \ $(am__append_20) $(am__append_22) $(am__append_24) \ $(am__append_26) $(am__append_28) avahi.devhelp MOSTLYCLEANFILES = $(DX_CLEANFILES) DISTCHECK_CONFIGURE_FLAGS = \ --disable-monodoc \ --enable-introspection \ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) DISTCLEANFILES = \ po/.intltool-merge-cache all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/common/doxygen.mk $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(srcdir)/common/doxygen.mk $(am__empty): $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-pkgconfigDATA .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-libtool distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am html html-am info \ info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-pkgconfigDATA \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-pkgconfigDATA .PRECIOUS: Makefile @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ cd @DX_DOCDIR@/latex; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(DX_LATEX) refman.tex; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(MAKEINDEX_PATH) refman.idx; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(DX_LATEX) refman.tex; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ countdown=5; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ refman.log > /dev/null 2>&1 \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ && test $$countdown -gt 0; do \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(DX_LATEX) refman.tex; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ countdown=`expr $$countdown - 1`; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ done; \ @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ cd @DX_DOCDIR@/latex; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ $(DX_PDFLATEX) refman.tex; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ $(DX_MAKEINDEX) refman.idx; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ $(DX_PDFLATEX) refman.tex; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ countdown=5; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ refman.log > /dev/null 2>&1 \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ && test $$countdown -gt 0; do \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ $(DX_PDFLATEX) refman.tex; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ countdown=`expr $$countdown - 1`; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ done; \ @DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ mv refman.pdf ../@PACKAGE@.pdf @DX_COND_doc_TRUE@.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL) @DX_COND_doc_TRUE@.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) @DX_COND_doc_TRUE@doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag @DX_COND_doc_TRUE@doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) @DX_COND_doc_TRUE@@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS) $(DX_INPUT) $(DX_EXAMPLE_PATH)/$(DX_EXAMPLE_PATTERNS) @DX_COND_doc_TRUE@ rm -rf @DX_DOCDIR@ @DX_COND_doc_TRUE@ INPUT='$(DX_INPUT)' EXAMPLE_PATH='$(DX_EXAMPLE_PATH)' EXAMPLE_PATTERNS='$(DX_EXAMPLE_PATTERNS)' \ @DX_COND_doc_TRUE@ $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) %.pc: %.pc.in $(AM_V_GEN)sed -e 's,@prefix\@,$(prefix),g' \ -e 's,@libdir\@,$(libdir),g' \ -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' \ -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ avahi.devhelp: doxygen-run xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml homepage: $(MAKE) -C man scp avahi-daemon/*.xml avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\ man/*.xml man/xmltoman.dtd man/xmltoman.xsl \ tango:www/avahi.org/tree/download/ scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/ rm -rf doxygen $(MAKE) doxygen-run ssh tango rm -rf www/avahi.org/tree/download/doxygen scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/PaxHeaders.10109/test-driver0000644000000000000000000000013213130652011014362 xustar0030 mtime=1499681801.369076653 30 atime=1499681801.369076653 30 ctime=1499681850.103987881 avahi-0.7/test-driver0000755000175000017500000001104013130652011015770 0ustar00lathiatlathiat00000000000000#! /bin/sh # test-driver - basic testsuite driver script. scriptversion=2013-07-13.22; # UTC # Copyright (C) 2011-2014 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . # Make unconditional expansion of undefined variables an error. This # helps a lot in preventing typo-related bugs. set -u usage_error () { echo "$0: $*" >&2 print_usage >&2 exit 2 } print_usage () { cat <$log_file 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then tweaked_estatus=1 else tweaked_estatus=$estatus fi case $tweaked_estatus:$expect_failure in 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; 0:*) col=$grn res=PASS recheck=no gcopy=no;; 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; *:*) col=$red res=FAIL recheck=yes gcopy=yes;; esac # Report the test outcome and exit status in the logs, so that one can # know whether the test passed or failed simply by looking at the '.log' # file, without the need of also peaking into the corresponding '.trs' # file (automake bug#11814). echo "$res $test_name (exit status: $estatus)" >>$log_file # Report outcome to console. echo "${col}${res}${std}: $test_name" # Register the test result, and other relevant metadata. echo ":test-result: $res" > $trs_file echo ":global-test-result: $res" >> $trs_file echo ":recheck: $recheck" >> $trs_file echo ":copy-in-global-log: $gcopy" >> $trs_file # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: avahi-0.7/PaxHeaders.10109/avahi-sharp.pc.in0000644000000000000000000000013213130651643015335 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.023989663 avahi-0.7/avahi-sharp.pc.in0000644000175000017500000000032213130651643016741 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=@prefix@ libdir=@libdir@ Name: avahi-sharp Description: Mono bindings for the Avahi mDNS/DNS-SD stack Version: @PACKAGE_VERSION@ Libs: -r:${libdir}/mono/avahi-sharp/avahi-sharp.dll avahi-0.7/PaxHeaders.10109/avahi-utils0000644000000000000000000000013213130652072014347 xustar0030 mtime=1499681850.763973153 30 atime=1499681851.283961552 30 ctime=1499681850.763973153 avahi-0.7/avahi-utils/0000755000175000017500000000000013130652072016033 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-utils/PaxHeaders.10109/stdb.c0000644000000000000000000000013213130651643015527 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.759973243 avahi-0.7/avahi-utils/stdb.c0000644000175000017500000001053313130651643017140 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #ifdef HAVE_GDBM #include #endif #ifdef HAVE_DBM #include #include #endif #include #include #include #include #include #include "stdb.h" #ifdef HAVE_GDBM static GDBM_FILE gdbm_file = NULL; #endif #ifdef HAVE_DBM static DBM *dbm_file = NULL; #endif static char *buffer = NULL; static char *enum_key = NULL; static int init(void) { #ifdef HAVE_GDBM if (gdbm_file) return 0; if (!(gdbm_file = gdbm_open((char*) DATABASE_FILE, 0, GDBM_READER, 0, NULL))) return -1; #endif #ifdef HAVE_DBM if (dbm_file) return 0; if (!(dbm_file = dbm_open((char*) DATABASE_FILE, O_RDONLY, 0))) return -1; #endif return 0; } const char* stdb_lookup(const char *name) { datum key, data; const char *loc; if (init() < 0) goto fail; data.dptr = NULL; data.dsize = 0; if ((loc = setlocale(LC_MESSAGES, NULL))) { char k[256]; snprintf(k, sizeof(k), "%s[%s]", name, loc); key.dptr = k; key.dsize = strlen(k); #ifdef HAVE_GDBM data = gdbm_fetch(gdbm_file, key); #endif #ifdef HAVE_DBM data = dbm_fetch(dbm_file, key); #endif if (!data.dptr) { char l[32], *e; snprintf(l, sizeof(l), "%s", loc); if ((e = strchr(l, '@'))) { *e = 0; snprintf(k, sizeof(k), "%s[%s]", name, l); key.dptr = k; key.dsize = strlen(k); #ifdef HAVE_GDBM data = gdbm_fetch(gdbm_file, key); #endif #ifdef HAVE_DBM data = dbm_fetch(dbm_file, key); #endif } if (!data.dptr) { if ((e = strchr(l, '_'))) { *e = 0; snprintf(k, sizeof(k), "%s[%s]", name, l); key.dptr = k; key.dsize = strlen(k); #ifdef HAVE_GDBM data = gdbm_fetch(gdbm_file, key); #endif #ifdef HAVE_DBM data = dbm_fetch(dbm_file, key); #endif } } } } if (!data.dptr) { key.dptr = (char*) name; key.dsize = strlen(name); #ifdef HAVE_GDBM data = gdbm_fetch(gdbm_file, key); #endif #ifdef HAVE_DBM data = dbm_fetch(dbm_file, key); #endif } if (!data.dptr) goto fail; avahi_free(buffer); buffer = avahi_strndup(data.dptr, data.dsize); free(data.dptr); return buffer; fail: return name; } void stdb_shutdown(void) { #ifdef HAVE_GDBM if (gdbm_file) gdbm_close(gdbm_file); gdbm_file = NULL; #endif #ifdef HAVE_DBM if (dbm_file) dbm_close(dbm_file); dbm_file = NULL; #endif avahi_free(buffer); avahi_free(enum_key); buffer = enum_key = NULL; } char *stdb_getent(void) { datum key; if (init() < 0) return NULL; for (;;) { if (!enum_key) { #ifdef HAVE_GDBM key = gdbm_firstkey(gdbm_file); #endif #ifdef HAVE_DBM key = dbm_firstkey(dbm_file); #endif } else { key.dptr = enum_key; key.dsize = strlen(enum_key); #ifdef HAVE_GDBM key = gdbm_nextkey(gdbm_file, key); #endif #ifdef HAVE_DBM key = dbm_nextkey(dbm_file); #endif } avahi_free(enum_key); enum_key = NULL; if (!key.dptr) return NULL; enum_key = avahi_strndup(key.dptr, key.dsize); free(key.dptr); if (!strchr(enum_key, '[')) return enum_key; } } void stdb_setent(void) { avahi_free(enum_key); enum_key = NULL; } avahi-0.7/avahi-utils/PaxHeaders.10109/sigint.c0000644000000000000000000000013213130651643016070 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.759973243 avahi-0.7/avahi-utils/sigint.c0000644000175000017500000000662613130651643017511 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "sigint.h" static AvahiSimplePoll *simple_poll = NULL; static struct sigaction old_sigint_sa, old_sigterm_sa; static int pipe_fds[2] = { -1, -1 }; static AvahiWatch *watch = NULL; static int set_nonblock(int fd) { int n; assert(fd >= 0); if ((n = fcntl(fd, F_GETFL)) < 0) return -1; if (n & O_NONBLOCK) return 0; return fcntl(fd, F_SETFL, n|O_NONBLOCK); } static void handler(int s) { write(pipe_fds[1], &s, sizeof(s)); } static void close_pipe_fds(void) { if (pipe_fds[0] >= 0) close(pipe_fds[0]); if (pipe_fds[1] >= 0) close(pipe_fds[1]); pipe_fds[0] = pipe_fds[1] = -1; } static void watch_callback(AvahiWatch *w, int fd, AvahiWatchEvent event, AVAHI_GCC_UNUSED void *userdata) { int s; ssize_t l; assert(w); assert(fd == pipe_fds[0]); assert(event == AVAHI_WATCH_IN); l = read(fd, &s, sizeof(s)); assert(l == sizeof(s)); fprintf(stderr, "Got %s, quitting.\n", s == SIGINT ? "SIGINT" : "SIGTERM"); avahi_simple_poll_quit(simple_poll); } int sigint_install(AvahiSimplePoll *spoll) { struct sigaction sa; const AvahiPoll *p; assert(spoll); assert(!simple_poll); assert(pipe_fds[0] == -1 && pipe_fds[1] == -1); if (pipe(pipe_fds) < 0) { fprintf(stderr, "pipe() failed: %s\n", strerror(errno)); return -1; } set_nonblock(pipe_fds[0]); set_nonblock(pipe_fds[1]); memset(&sa, 0, sizeof(sa)); sa.sa_handler = handler; sa.sa_flags = SA_RESTART; if (sigaction(SIGINT, &sa, &old_sigint_sa) < 0) { fprintf(stderr, "sigaction() failed: %s\n", strerror(errno)); close_pipe_fds(); return -1; } if (sigaction(SIGTERM, &sa, &old_sigterm_sa) < 0) { sigaction(SIGINT, &old_sigint_sa, NULL); fprintf(stderr, "sigaction() failed: %s\n", strerror(errno)); close_pipe_fds(); return -1; } p = avahi_simple_poll_get(spoll); watch = p->watch_new(p, pipe_fds[0], AVAHI_WATCH_IN, watch_callback, NULL); assert(watch); simple_poll = spoll; return 0; } void sigint_uninstall(void) { if (!simple_poll) return; sigaction(SIGTERM, &old_sigterm_sa, NULL); sigaction(SIGINT, &old_sigint_sa, NULL); close_pipe_fds(); if (watch) { const AvahiPoll *p; assert(simple_poll); p = avahi_simple_poll_get(simple_poll); p->watch_free(watch); watch = NULL; } simple_poll = NULL; } avahi-0.7/avahi-utils/PaxHeaders.10109/avahi-set-host-name.c0000644000000000000000000000013213130651643020345 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.763973153 avahi-0.7/avahi-utils/avahi-set-host-name.c0000644000175000017500000001347013130651643021761 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sigint.h" typedef enum { COMMAND_UNSPEC, COMMAND_HELP, COMMAND_VERSION } Command; typedef struct Config { int verbose; Command command; } Config; static AvahiSimplePoll *simple_poll = NULL; static AvahiClient *client = NULL; static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata) { switch (state) { case AVAHI_CLIENT_FAILURE: fprintf(stderr, _("Client failure, exiting: %s\n"), avahi_strerror(avahi_client_errno(c))); avahi_simple_poll_quit(simple_poll); break; case AVAHI_CLIENT_S_REGISTERING: case AVAHI_CLIENT_S_RUNNING: case AVAHI_CLIENT_S_COLLISION: case AVAHI_CLIENT_CONNECTING: ; } } static void help(FILE *f, const char *argv0) { fprintf(f, _("%s [options] \n\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n"), argv0); } static int parse_command_line(Config *c, int argc, char *argv[]) { int o; static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, { "verbose", no_argument, NULL, 'v' }, { NULL, 0, NULL, 0 } }; assert(c); c->command = COMMAND_UNSPEC; c->verbose = 0; while ((o = getopt_long(argc, argv, "hVv", long_options, NULL)) >= 0) { switch(o) { case 'h': c->command = COMMAND_HELP; break; case 'V': c->command = COMMAND_VERSION; break; case 'v': c->verbose = 1; break; default: return -1; } } if (c->command == COMMAND_UNSPEC) { if (optind != argc-1) { fprintf(stderr, _("Invalid number of arguments, expecting exactly one.\n")); return -1; } } return 0; } int main(int argc, char *argv[]) { int ret = 1, error; Config config; const char *argv0; avahi_init_i18n(); setlocale(LC_ALL, ""); if ((argv0 = strrchr(argv[0], '/'))) argv0++; else argv0 = argv[0]; if (parse_command_line(&config, argc, argv) < 0) goto fail; switch (config.command) { case COMMAND_HELP: help(stdout, argv0); ret = 0; break; case COMMAND_VERSION: printf("%s "PACKAGE_VERSION"\n", argv0); ret = 0; break; case COMMAND_UNSPEC: if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, _("Failed to create simple poll object.\n")); goto fail; } if (sigint_install(simple_poll) < 0) goto fail; if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error))) { fprintf(stderr, _("Failed to create client object: %s\n"), avahi_strerror(error)); goto fail; } if (config.verbose) { const char *version, *hn; if (!(version = avahi_client_get_version_string(client))) { fprintf(stderr, _("Failed to query version string: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } if (!(hn = avahi_client_get_host_name_fqdn(client))) { fprintf(stderr, _("Failed to query host name: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } fprintf(stderr, _("Server version: %s; Host name: %s\n"), version, hn); } if (avahi_client_set_host_name(client, argv[optind]) < 0) { fprintf(stderr, _("Failed to create host name resolver: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } if (config.verbose) { const char *hn; if (!(hn = avahi_client_get_host_name_fqdn(client))) { fprintf(stderr, _("Failed to query host name: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } fprintf(stderr, _("Host name successfully changed to %s\n"), hn); } ret = 0; break; } fail: if (client) avahi_client_free(client); sigint_uninstall(); if (simple_poll) avahi_simple_poll_free(simple_poll); return ret; } avahi-0.7/avahi-utils/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016462 xustar0030 mtime=1499681801.753068065 30 atime=1499681806.756956152 30 ctime=1499681850.759973243 avahi-0.7/avahi-utils/Makefile.in0000644000175000017500000014113513130652011020076 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_DBUS_TRUE@bin_PROGRAMS = avahi-browse$(EXEEXT) \ @HAVE_DBUS_TRUE@ avahi-resolve$(EXEEXT) avahi-publish$(EXEEXT) \ @HAVE_DBUS_TRUE@ avahi-set-host-name$(EXEEXT) @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@am__append_1 = stdb.h stdb.c @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@am__append_2 = -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@am__append_3 = -lgdbm @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@am__append_4 = stdb.h stdb.c @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@am__append_5 = -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" subdir = avahi-utils ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am__avahi_browse_SOURCES_DIST = avahi-browse.c sigint.c sigint.h \ stdb.h stdb.c @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@am__objects_1 = \ @HAVE_DBUS_TRUE@@HAVE_GDBM_TRUE@ avahi_browse-stdb.$(OBJEXT) @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@am__objects_2 = \ @HAVE_DBM_TRUE@@HAVE_DBUS_TRUE@ avahi_browse-stdb.$(OBJEXT) @HAVE_DBUS_TRUE@am_avahi_browse_OBJECTS = \ @HAVE_DBUS_TRUE@ avahi_browse-avahi-browse.$(OBJEXT) \ @HAVE_DBUS_TRUE@ avahi_browse-sigint.$(OBJEXT) $(am__objects_1) \ @HAVE_DBUS_TRUE@ $(am__objects_2) avahi_browse_OBJECTS = $(am_avahi_browse_OBJECTS) am__DEPENDENCIES_1 = @HAVE_DBUS_TRUE@avahi_browse_DEPENDENCIES = \ @HAVE_DBUS_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@ $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = avahi_browse_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(avahi_browse_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__avahi_publish_SOURCES_DIST = avahi-publish.c sigint.c sigint.h @HAVE_DBUS_TRUE@am_avahi_publish_OBJECTS = \ @HAVE_DBUS_TRUE@ avahi_publish-avahi-publish.$(OBJEXT) \ @HAVE_DBUS_TRUE@ avahi_publish-sigint.$(OBJEXT) avahi_publish_OBJECTS = $(am_avahi_publish_OBJECTS) @HAVE_DBUS_TRUE@avahi_publish_DEPENDENCIES = \ @HAVE_DBUS_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la avahi_publish_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(avahi_publish_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__avahi_resolve_SOURCES_DIST = avahi-resolve.c sigint.c sigint.h @HAVE_DBUS_TRUE@am_avahi_resolve_OBJECTS = \ @HAVE_DBUS_TRUE@ avahi_resolve-avahi-resolve.$(OBJEXT) \ @HAVE_DBUS_TRUE@ avahi_resolve-sigint.$(OBJEXT) avahi_resolve_OBJECTS = $(am_avahi_resolve_OBJECTS) @HAVE_DBUS_TRUE@avahi_resolve_DEPENDENCIES = \ @HAVE_DBUS_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la avahi_resolve_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(avahi_resolve_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__avahi_set_host_name_SOURCES_DIST = avahi-set-host-name.c sigint.c \ sigint.h @HAVE_DBUS_TRUE@am_avahi_set_host_name_OBJECTS = avahi_set_host_name-avahi-set-host-name.$(OBJEXT) \ @HAVE_DBUS_TRUE@ avahi_set_host_name-sigint.$(OBJEXT) avahi_set_host_name_OBJECTS = $(am_avahi_set_host_name_OBJECTS) @HAVE_DBUS_TRUE@avahi_set_host_name_DEPENDENCIES = \ @HAVE_DBUS_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la avahi_set_host_name_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(avahi_set_host_name_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(avahi_browse_SOURCES) $(avahi_publish_SOURCES) \ $(avahi_resolve_SOURCES) $(avahi_set_host_name_SOURCES) DIST_SOURCES = $(am__avahi_browse_SOURCES_DIST) \ $(am__avahi_publish_SOURCES_DIST) \ $(am__avahi_resolve_SOURCES_DIST) \ $(am__avahi_set_host_name_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' pkglibdatadir = $(libdir)/avahi @HAVE_DBUS_TRUE@avahi_browse_SOURCES = avahi-browse.c sigint.c \ @HAVE_DBUS_TRUE@ sigint.h $(am__append_1) $(am__append_4) @HAVE_DBUS_TRUE@avahi_browse_CFLAGS = $(AM_CFLAGS) $(am__append_2) \ @HAVE_DBUS_TRUE@ $(am__append_5) @HAVE_DBUS_TRUE@avahi_browse_LDADD = $(AM_LDADD) \ @HAVE_DBUS_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@ $(am__append_3) @HAVE_DBUS_TRUE@avahi_resolve_SOURCES = avahi-resolve.c sigint.c sigint.h @HAVE_DBUS_TRUE@avahi_resolve_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@avahi_resolve_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la @HAVE_DBUS_TRUE@avahi_publish_SOURCES = avahi-publish.c sigint.c sigint.h @HAVE_DBUS_TRUE@avahi_publish_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@avahi_publish_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la @HAVE_DBUS_TRUE@avahi_set_host_name_SOURCES = avahi-set-host-name.c sigint.c sigint.h @HAVE_DBUS_TRUE@avahi_set_host_name_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@avahi_set_host_name_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-utils/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-utils/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list avahi-browse$(EXEEXT): $(avahi_browse_OBJECTS) $(avahi_browse_DEPENDENCIES) $(EXTRA_avahi_browse_DEPENDENCIES) @rm -f avahi-browse$(EXEEXT) $(AM_V_CCLD)$(avahi_browse_LINK) $(avahi_browse_OBJECTS) $(avahi_browse_LDADD) $(LIBS) avahi-publish$(EXEEXT): $(avahi_publish_OBJECTS) $(avahi_publish_DEPENDENCIES) $(EXTRA_avahi_publish_DEPENDENCIES) @rm -f avahi-publish$(EXEEXT) $(AM_V_CCLD)$(avahi_publish_LINK) $(avahi_publish_OBJECTS) $(avahi_publish_LDADD) $(LIBS) avahi-resolve$(EXEEXT): $(avahi_resolve_OBJECTS) $(avahi_resolve_DEPENDENCIES) $(EXTRA_avahi_resolve_DEPENDENCIES) @rm -f avahi-resolve$(EXEEXT) $(AM_V_CCLD)$(avahi_resolve_LINK) $(avahi_resolve_OBJECTS) $(avahi_resolve_LDADD) $(LIBS) avahi-set-host-name$(EXEEXT): $(avahi_set_host_name_OBJECTS) $(avahi_set_host_name_DEPENDENCIES) $(EXTRA_avahi_set_host_name_DEPENDENCIES) @rm -f avahi-set-host-name$(EXEEXT) $(AM_V_CCLD)$(avahi_set_host_name_LINK) $(avahi_set_host_name_OBJECTS) $(avahi_set_host_name_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_browse-avahi-browse.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_browse-sigint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_browse-stdb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_publish-avahi-publish.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_publish-sigint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_resolve-avahi-resolve.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_resolve-sigint.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_set_host_name-avahi-set-host-name.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_set_host_name-sigint.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< avahi_browse-avahi-browse.o: avahi-browse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -MT avahi_browse-avahi-browse.o -MD -MP -MF $(DEPDIR)/avahi_browse-avahi-browse.Tpo -c -o avahi_browse-avahi-browse.o `test -f 'avahi-browse.c' || echo '$(srcdir)/'`avahi-browse.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_browse-avahi-browse.Tpo $(DEPDIR)/avahi_browse-avahi-browse.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-browse.c' object='avahi_browse-avahi-browse.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -c -o avahi_browse-avahi-browse.o `test -f 'avahi-browse.c' || echo '$(srcdir)/'`avahi-browse.c avahi_browse-avahi-browse.obj: avahi-browse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -MT avahi_browse-avahi-browse.obj -MD -MP -MF $(DEPDIR)/avahi_browse-avahi-browse.Tpo -c -o avahi_browse-avahi-browse.obj `if test -f 'avahi-browse.c'; then $(CYGPATH_W) 'avahi-browse.c'; else $(CYGPATH_W) '$(srcdir)/avahi-browse.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_browse-avahi-browse.Tpo $(DEPDIR)/avahi_browse-avahi-browse.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-browse.c' object='avahi_browse-avahi-browse.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -c -o avahi_browse-avahi-browse.obj `if test -f 'avahi-browse.c'; then $(CYGPATH_W) 'avahi-browse.c'; else $(CYGPATH_W) '$(srcdir)/avahi-browse.c'; fi` avahi_browse-sigint.o: sigint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -MT avahi_browse-sigint.o -MD -MP -MF $(DEPDIR)/avahi_browse-sigint.Tpo -c -o avahi_browse-sigint.o `test -f 'sigint.c' || echo '$(srcdir)/'`sigint.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_browse-sigint.Tpo $(DEPDIR)/avahi_browse-sigint.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sigint.c' object='avahi_browse-sigint.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -c -o avahi_browse-sigint.o `test -f 'sigint.c' || echo '$(srcdir)/'`sigint.c avahi_browse-sigint.obj: sigint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -MT avahi_browse-sigint.obj -MD -MP -MF $(DEPDIR)/avahi_browse-sigint.Tpo -c -o avahi_browse-sigint.obj `if test -f 'sigint.c'; then $(CYGPATH_W) 'sigint.c'; else $(CYGPATH_W) '$(srcdir)/sigint.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_browse-sigint.Tpo $(DEPDIR)/avahi_browse-sigint.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sigint.c' object='avahi_browse-sigint.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -c -o avahi_browse-sigint.obj `if test -f 'sigint.c'; then $(CYGPATH_W) 'sigint.c'; else $(CYGPATH_W) '$(srcdir)/sigint.c'; fi` avahi_browse-stdb.o: stdb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -MT avahi_browse-stdb.o -MD -MP -MF $(DEPDIR)/avahi_browse-stdb.Tpo -c -o avahi_browse-stdb.o `test -f 'stdb.c' || echo '$(srcdir)/'`stdb.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_browse-stdb.Tpo $(DEPDIR)/avahi_browse-stdb.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdb.c' object='avahi_browse-stdb.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -c -o avahi_browse-stdb.o `test -f 'stdb.c' || echo '$(srcdir)/'`stdb.c avahi_browse-stdb.obj: stdb.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -MT avahi_browse-stdb.obj -MD -MP -MF $(DEPDIR)/avahi_browse-stdb.Tpo -c -o avahi_browse-stdb.obj `if test -f 'stdb.c'; then $(CYGPATH_W) 'stdb.c'; else $(CYGPATH_W) '$(srcdir)/stdb.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_browse-stdb.Tpo $(DEPDIR)/avahi_browse-stdb.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdb.c' object='avahi_browse-stdb.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_browse_CFLAGS) $(CFLAGS) -c -o avahi_browse-stdb.obj `if test -f 'stdb.c'; then $(CYGPATH_W) 'stdb.c'; else $(CYGPATH_W) '$(srcdir)/stdb.c'; fi` avahi_publish-avahi-publish.o: avahi-publish.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_publish_CFLAGS) $(CFLAGS) -MT avahi_publish-avahi-publish.o -MD -MP -MF $(DEPDIR)/avahi_publish-avahi-publish.Tpo -c -o avahi_publish-avahi-publish.o `test -f 'avahi-publish.c' || echo '$(srcdir)/'`avahi-publish.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_publish-avahi-publish.Tpo $(DEPDIR)/avahi_publish-avahi-publish.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-publish.c' object='avahi_publish-avahi-publish.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_publish_CFLAGS) $(CFLAGS) -c -o avahi_publish-avahi-publish.o `test -f 'avahi-publish.c' || echo '$(srcdir)/'`avahi-publish.c avahi_publish-avahi-publish.obj: avahi-publish.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_publish_CFLAGS) $(CFLAGS) -MT avahi_publish-avahi-publish.obj -MD -MP -MF $(DEPDIR)/avahi_publish-avahi-publish.Tpo -c -o avahi_publish-avahi-publish.obj `if test -f 'avahi-publish.c'; then $(CYGPATH_W) 'avahi-publish.c'; else $(CYGPATH_W) '$(srcdir)/avahi-publish.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_publish-avahi-publish.Tpo $(DEPDIR)/avahi_publish-avahi-publish.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-publish.c' object='avahi_publish-avahi-publish.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_publish_CFLAGS) $(CFLAGS) -c -o avahi_publish-avahi-publish.obj `if test -f 'avahi-publish.c'; then $(CYGPATH_W) 'avahi-publish.c'; else $(CYGPATH_W) '$(srcdir)/avahi-publish.c'; fi` avahi_publish-sigint.o: sigint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_publish_CFLAGS) $(CFLAGS) -MT avahi_publish-sigint.o -MD -MP -MF $(DEPDIR)/avahi_publish-sigint.Tpo -c -o avahi_publish-sigint.o `test -f 'sigint.c' || echo '$(srcdir)/'`sigint.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_publish-sigint.Tpo $(DEPDIR)/avahi_publish-sigint.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sigint.c' object='avahi_publish-sigint.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_publish_CFLAGS) $(CFLAGS) -c -o avahi_publish-sigint.o `test -f 'sigint.c' || echo '$(srcdir)/'`sigint.c avahi_publish-sigint.obj: sigint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_publish_CFLAGS) $(CFLAGS) -MT avahi_publish-sigint.obj -MD -MP -MF $(DEPDIR)/avahi_publish-sigint.Tpo -c -o avahi_publish-sigint.obj `if test -f 'sigint.c'; then $(CYGPATH_W) 'sigint.c'; else $(CYGPATH_W) '$(srcdir)/sigint.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_publish-sigint.Tpo $(DEPDIR)/avahi_publish-sigint.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sigint.c' object='avahi_publish-sigint.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_publish_CFLAGS) $(CFLAGS) -c -o avahi_publish-sigint.obj `if test -f 'sigint.c'; then $(CYGPATH_W) 'sigint.c'; else $(CYGPATH_W) '$(srcdir)/sigint.c'; fi` avahi_resolve-avahi-resolve.o: avahi-resolve.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_resolve_CFLAGS) $(CFLAGS) -MT avahi_resolve-avahi-resolve.o -MD -MP -MF $(DEPDIR)/avahi_resolve-avahi-resolve.Tpo -c -o avahi_resolve-avahi-resolve.o `test -f 'avahi-resolve.c' || echo '$(srcdir)/'`avahi-resolve.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_resolve-avahi-resolve.Tpo $(DEPDIR)/avahi_resolve-avahi-resolve.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-resolve.c' object='avahi_resolve-avahi-resolve.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_resolve_CFLAGS) $(CFLAGS) -c -o avahi_resolve-avahi-resolve.o `test -f 'avahi-resolve.c' || echo '$(srcdir)/'`avahi-resolve.c avahi_resolve-avahi-resolve.obj: avahi-resolve.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_resolve_CFLAGS) $(CFLAGS) -MT avahi_resolve-avahi-resolve.obj -MD -MP -MF $(DEPDIR)/avahi_resolve-avahi-resolve.Tpo -c -o avahi_resolve-avahi-resolve.obj `if test -f 'avahi-resolve.c'; then $(CYGPATH_W) 'avahi-resolve.c'; else $(CYGPATH_W) '$(srcdir)/avahi-resolve.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_resolve-avahi-resolve.Tpo $(DEPDIR)/avahi_resolve-avahi-resolve.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-resolve.c' object='avahi_resolve-avahi-resolve.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_resolve_CFLAGS) $(CFLAGS) -c -o avahi_resolve-avahi-resolve.obj `if test -f 'avahi-resolve.c'; then $(CYGPATH_W) 'avahi-resolve.c'; else $(CYGPATH_W) '$(srcdir)/avahi-resolve.c'; fi` avahi_resolve-sigint.o: sigint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_resolve_CFLAGS) $(CFLAGS) -MT avahi_resolve-sigint.o -MD -MP -MF $(DEPDIR)/avahi_resolve-sigint.Tpo -c -o avahi_resolve-sigint.o `test -f 'sigint.c' || echo '$(srcdir)/'`sigint.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_resolve-sigint.Tpo $(DEPDIR)/avahi_resolve-sigint.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sigint.c' object='avahi_resolve-sigint.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_resolve_CFLAGS) $(CFLAGS) -c -o avahi_resolve-sigint.o `test -f 'sigint.c' || echo '$(srcdir)/'`sigint.c avahi_resolve-sigint.obj: sigint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_resolve_CFLAGS) $(CFLAGS) -MT avahi_resolve-sigint.obj -MD -MP -MF $(DEPDIR)/avahi_resolve-sigint.Tpo -c -o avahi_resolve-sigint.obj `if test -f 'sigint.c'; then $(CYGPATH_W) 'sigint.c'; else $(CYGPATH_W) '$(srcdir)/sigint.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_resolve-sigint.Tpo $(DEPDIR)/avahi_resolve-sigint.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sigint.c' object='avahi_resolve-sigint.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_resolve_CFLAGS) $(CFLAGS) -c -o avahi_resolve-sigint.obj `if test -f 'sigint.c'; then $(CYGPATH_W) 'sigint.c'; else $(CYGPATH_W) '$(srcdir)/sigint.c'; fi` avahi_set_host_name-avahi-set-host-name.o: avahi-set-host-name.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_set_host_name_CFLAGS) $(CFLAGS) -MT avahi_set_host_name-avahi-set-host-name.o -MD -MP -MF $(DEPDIR)/avahi_set_host_name-avahi-set-host-name.Tpo -c -o avahi_set_host_name-avahi-set-host-name.o `test -f 'avahi-set-host-name.c' || echo '$(srcdir)/'`avahi-set-host-name.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_set_host_name-avahi-set-host-name.Tpo $(DEPDIR)/avahi_set_host_name-avahi-set-host-name.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-set-host-name.c' object='avahi_set_host_name-avahi-set-host-name.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_set_host_name_CFLAGS) $(CFLAGS) -c -o avahi_set_host_name-avahi-set-host-name.o `test -f 'avahi-set-host-name.c' || echo '$(srcdir)/'`avahi-set-host-name.c avahi_set_host_name-avahi-set-host-name.obj: avahi-set-host-name.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_set_host_name_CFLAGS) $(CFLAGS) -MT avahi_set_host_name-avahi-set-host-name.obj -MD -MP -MF $(DEPDIR)/avahi_set_host_name-avahi-set-host-name.Tpo -c -o avahi_set_host_name-avahi-set-host-name.obj `if test -f 'avahi-set-host-name.c'; then $(CYGPATH_W) 'avahi-set-host-name.c'; else $(CYGPATH_W) '$(srcdir)/avahi-set-host-name.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_set_host_name-avahi-set-host-name.Tpo $(DEPDIR)/avahi_set_host_name-avahi-set-host-name.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='avahi-set-host-name.c' object='avahi_set_host_name-avahi-set-host-name.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_set_host_name_CFLAGS) $(CFLAGS) -c -o avahi_set_host_name-avahi-set-host-name.obj `if test -f 'avahi-set-host-name.c'; then $(CYGPATH_W) 'avahi-set-host-name.c'; else $(CYGPATH_W) '$(srcdir)/avahi-set-host-name.c'; fi` avahi_set_host_name-sigint.o: sigint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_set_host_name_CFLAGS) $(CFLAGS) -MT avahi_set_host_name-sigint.o -MD -MP -MF $(DEPDIR)/avahi_set_host_name-sigint.Tpo -c -o avahi_set_host_name-sigint.o `test -f 'sigint.c' || echo '$(srcdir)/'`sigint.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_set_host_name-sigint.Tpo $(DEPDIR)/avahi_set_host_name-sigint.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sigint.c' object='avahi_set_host_name-sigint.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_set_host_name_CFLAGS) $(CFLAGS) -c -o avahi_set_host_name-sigint.o `test -f 'sigint.c' || echo '$(srcdir)/'`sigint.c avahi_set_host_name-sigint.obj: sigint.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_set_host_name_CFLAGS) $(CFLAGS) -MT avahi_set_host_name-sigint.obj -MD -MP -MF $(DEPDIR)/avahi_set_host_name-sigint.Tpo -c -o avahi_set_host_name-sigint.obj `if test -f 'sigint.c'; then $(CYGPATH_W) 'sigint.c'; else $(CYGPATH_W) '$(srcdir)/sigint.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_set_host_name-sigint.Tpo $(DEPDIR)/avahi_set_host_name-sigint.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sigint.c' object='avahi_set_host_name-sigint.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_set_host_name_CFLAGS) $(CFLAGS) -c -o avahi_set_host_name-sigint.obj `if test -f 'sigint.c'; then $(CYGPATH_W) 'sigint.c'; else $(CYGPATH_W) '$(srcdir)/sigint.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @HAVE_DBUS_FALSE@install-exec-local: clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-exec-local install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \ ctags ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-exec-local install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS .PRECIOUS: Makefile @HAVE_DBUS_TRUE@install-exec-local: @HAVE_DBUS_TRUE@ $(MKDIR_P) $(DESTDIR)/$(bindir) && \ @HAVE_DBUS_TRUE@ cd $(DESTDIR)/$(bindir) && \ @HAVE_DBUS_TRUE@ rm -f avahi-resolve-host-name avahi-resolve-address avahi-browse-domains avahi-publish-address avahi-publish-service && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-resolve avahi-resolve-host-name && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-resolve avahi-resolve-address && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-browse avahi-browse-domains && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-publish avahi-publish-address && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-publish avahi-publish-service # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-utils/PaxHeaders.10109/avahi-resolve.c0000644000000000000000000000013213130651643017340 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.763973153 avahi-0.7/avahi-utils/avahi-resolve.c0000644000175000017500000002337013130651643020754 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sigint.h" typedef enum { COMMAND_UNSPEC, COMMAND_HELP, COMMAND_VERSION, COMMAND_RESOLVE_HOST_NAME, COMMAND_RESOLVE_ADDRESS } Command; typedef struct Config { int verbose; Command command; AvahiProtocol proto; } Config; static AvahiSimplePoll *simple_poll = NULL; static AvahiClient *client = NULL; static int n_resolving = 0; static void host_name_resolver_callback( AvahiHostNameResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const AvahiAddress *a, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void *userdata) { assert(r); switch (event) { case AVAHI_RESOLVER_FOUND: { char address[AVAHI_ADDRESS_STR_MAX]; avahi_address_snprint(address, sizeof(address), a); printf("%s\t%s\n", name, address); break; } case AVAHI_RESOLVER_FAILURE: fprintf(stderr, _("Failed to resolve host name '%s': %s\n"), name, avahi_strerror(avahi_client_errno(client))); break; } avahi_host_name_resolver_free(r); assert(n_resolving > 0); n_resolving--; if (n_resolving <= 0) avahi_simple_poll_quit(simple_poll); } static void address_resolver_callback( AvahiAddressResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const AvahiAddress *a, const char *name, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void *userdata) { char address[AVAHI_ADDRESS_STR_MAX]; assert(r); avahi_address_snprint(address, sizeof(address), a); switch (event) { case AVAHI_RESOLVER_FOUND: printf("%s\t%s\n", address, name); break; case AVAHI_RESOLVER_FAILURE: fprintf(stderr, _("Failed to resolve address '%s': %s\n"), address, avahi_strerror(avahi_client_errno(client))); break; } avahi_address_resolver_free(r); assert(n_resolving > 0); n_resolving--; if (n_resolving <= 0) avahi_simple_poll_quit(simple_poll); } static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata) { switch (state) { case AVAHI_CLIENT_FAILURE: fprintf(stderr, _("Client failure, exiting: %s\n"), avahi_strerror(avahi_client_errno(c))); avahi_simple_poll_quit(simple_poll); break; case AVAHI_CLIENT_S_REGISTERING: case AVAHI_CLIENT_S_RUNNING: case AVAHI_CLIENT_S_COLLISION: case AVAHI_CLIENT_CONNECTING: ; } } static void help(FILE *f, const char *argv0) { fprintf(f, _("%s [options] %s \n" "%s [options] %s
    \n\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n"), argv0, strstr(argv0, "host-name") ? "[-n]" : "-n", argv0, strstr(argv0, "address") ? "[-a]" : "-a"); } static int parse_command_line(Config *c, const char *argv0, int argc, char *argv[]) { int o; static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, { "name", no_argument, NULL, 'n' }, { "address", no_argument, NULL, 'a' }, { "verbose", no_argument, NULL, 'v' }, { NULL, 0, NULL, 0 } }; assert(c); c->command = strstr(argv0, "address") ? COMMAND_RESOLVE_ADDRESS : (strstr(argv0, "host-name") ? COMMAND_RESOLVE_HOST_NAME : COMMAND_UNSPEC); c->proto = AVAHI_PROTO_UNSPEC; c->verbose = 0; while ((o = getopt_long(argc, argv, "hVnav46", long_options, NULL)) >= 0) { switch(o) { case 'h': c->command = COMMAND_HELP; break; case 'V': c->command = COMMAND_VERSION; break; case 'n': c->command = COMMAND_RESOLVE_HOST_NAME; break; case 'a': c->command = COMMAND_RESOLVE_ADDRESS; break; case 'v': c->verbose = 1; break; case '4': c->proto = AVAHI_PROTO_INET; break; case '6': c->proto = AVAHI_PROTO_INET6; break; default: return -1; } } if (c->command == COMMAND_RESOLVE_ADDRESS || c->command == COMMAND_RESOLVE_HOST_NAME) { if (optind >= argc) { fprintf(stderr, _("Too few arguments\n")); return -1; } } return 0; } int main(int argc, char *argv[]) { int ret = 1, error; Config config; const char *argv0; avahi_init_i18n(); setlocale(LC_ALL, ""); if ((argv0 = strrchr(argv[0], '/'))) argv0++; else argv0 = argv[0]; if (parse_command_line(&config, argv0, argc, argv) < 0) goto fail; switch (config.command) { case COMMAND_UNSPEC: ret = 1; fprintf(stderr, _("No command specified.\n")); break; case COMMAND_HELP: help(stdout, argv0); ret = 0; break; case COMMAND_VERSION: printf("%s "PACKAGE_VERSION"\n", argv0); ret = 0; break; case COMMAND_RESOLVE_HOST_NAME: case COMMAND_RESOLVE_ADDRESS: { int i; if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, _("Failed to create simple poll object.\n")); goto fail; } if (sigint_install(simple_poll) < 0) goto fail; if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error))) { fprintf(stderr, _("Failed to create client object: %s\n"), avahi_strerror(error)); goto fail; } if (config.verbose) { const char *version, *hn; if (!(version = avahi_client_get_version_string(client))) { fprintf(stderr, _("Failed to query version string: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } if (!(hn = avahi_client_get_host_name_fqdn(client))) { fprintf(stderr, _("Failed to query host name: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } fprintf(stderr, _("Server version: %s; Host name: %s\n"), version, hn); } n_resolving = 0; for (i = optind; i < argc; i++) { if (config.command == COMMAND_RESOLVE_HOST_NAME) { if (!(avahi_host_name_resolver_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, argv[i], config.proto, 0, host_name_resolver_callback, NULL))) { fprintf(stderr, _("Failed to create host name resolver: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } } else { AvahiAddress a; assert(config.command == COMMAND_RESOLVE_ADDRESS); if (!avahi_address_parse(argv[i], AVAHI_PROTO_UNSPEC, &a)) { fprintf(stderr, _("Failed to parse address '%s'\n"), argv[i]); goto fail; } if (!(avahi_address_resolver_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, &a, 0, address_resolver_callback, NULL))) { fprintf(stderr, _("Failed to create address resolver: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } } n_resolving++; } avahi_simple_poll_loop(simple_poll); ret = 0; break; } } fail: if (client) avahi_client_free(client); sigint_uninstall(); if (simple_poll) avahi_simple_poll_free(simple_poll); return ret; } avahi-0.7/avahi-utils/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016463 xustar0030 mtime=1499681699.127370127 30 atime=1499681796.825178304 30 ctime=1499681850.755973332 avahi-0.7/avahi-utils/Makefile.am0000644000175000017500000000476713130651643020110 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' pkglibdatadir=$(libdir)/avahi if HAVE_DBUS bin_PROGRAMS = avahi-browse avahi-resolve avahi-publish avahi-set-host-name avahi_browse_SOURCES = avahi-browse.c sigint.c sigint.h avahi_browse_CFLAGS = $(AM_CFLAGS) avahi_browse_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la if HAVE_GDBM avahi_browse_SOURCES += stdb.h stdb.c avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" avahi_browse_LDADD += -lgdbm endif if HAVE_DBM avahi_browse_SOURCES += stdb.h stdb.c avahi_browse_CFLAGS += -DDATABASE_FILE=\"$(pkglibdatadir)/service-types.db\" endif avahi_resolve_SOURCES = avahi-resolve.c sigint.c sigint.h avahi_resolve_CFLAGS = $(AM_CFLAGS) avahi_resolve_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la avahi_publish_SOURCES = avahi-publish.c sigint.c sigint.h avahi_publish_CFLAGS = $(AM_CFLAGS) avahi_publish_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la avahi_set_host_name_SOURCES = avahi-set-host-name.c sigint.c sigint.h avahi_set_host_name_CFLAGS = $(AM_CFLAGS) avahi_set_host_name_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la install-exec-local: $(MKDIR_P) $(DESTDIR)/$(bindir) && \ cd $(DESTDIR)/$(bindir) && \ rm -f avahi-resolve-host-name avahi-resolve-address avahi-browse-domains avahi-publish-address avahi-publish-service && \ $(LN_S) avahi-resolve avahi-resolve-host-name && \ $(LN_S) avahi-resolve avahi-resolve-address && \ $(LN_S) avahi-browse avahi-browse-domains && \ $(LN_S) avahi-publish avahi-publish-address && \ $(LN_S) avahi-publish avahi-publish-service endif avahi-0.7/avahi-utils/PaxHeaders.10109/sigint.h0000644000000000000000000000013213130651643016075 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.759973243 avahi-0.7/avahi-utils/sigint.h0000644000175000017500000000161013130651643017502 0ustar00lathiatlathiat00000000000000#ifndef foosigchfoo #define foosigchfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include int sigint_install(AvahiSimplePoll *spoll); void sigint_uninstall(void); #endif avahi-0.7/avahi-utils/PaxHeaders.10109/avahi-publish.c0000644000000000000000000000013213130651643017327 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.763973153 avahi-0.7/avahi-utils/avahi-publish.c0000644000175000017500000003203113130651643020735 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sigint.h" typedef enum { COMMAND_UNSPEC, COMMAND_HELP, COMMAND_VERSION, COMMAND_PUBLISH_SERVICE, COMMAND_PUBLISH_ADDRESS } Command; typedef struct Config { int verbose, no_fail, no_reverse; Command command; char *name, *stype, *domain, *host; uint16_t port; AvahiStringList *txt, *subtypes; AvahiAddress address; } Config; static AvahiSimplePoll *simple_poll = NULL; static AvahiClient *client = NULL; static AvahiEntryGroup *entry_group = NULL; static int register_stuff(Config *config); static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, void *userdata) { Config *config = userdata; assert(g); assert(config); switch (state) { case AVAHI_ENTRY_GROUP_ESTABLISHED: fprintf(stderr, _("Established under name '%s'\n"), config->name); break; case AVAHI_ENTRY_GROUP_FAILURE: fprintf(stderr, _("Failed to register: %s\n"), avahi_strerror(avahi_client_errno(client))); break; case AVAHI_ENTRY_GROUP_COLLISION: { char *n; if (config->command == COMMAND_PUBLISH_SERVICE) n = avahi_alternative_service_name(config->name); else { assert(config->command == COMMAND_PUBLISH_ADDRESS); n = avahi_alternative_host_name(config->name); } fprintf(stderr, _("Name collision, picking new name '%s'.\n"), n); avahi_free(config->name); config->name = n; register_stuff(config); break; } case AVAHI_ENTRY_GROUP_UNCOMMITED: case AVAHI_ENTRY_GROUP_REGISTERING: ; } } static int register_stuff(Config *config) { assert(config); if (!entry_group) { if (!(entry_group = avahi_entry_group_new(client, entry_group_callback, config))) { fprintf(stderr, _("Failed to create entry group: %s\n"), avahi_strerror(avahi_client_errno(client))); return -1; } } assert(avahi_entry_group_is_empty(entry_group)); if (config->command == COMMAND_PUBLISH_ADDRESS) { if (avahi_entry_group_add_address(entry_group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, config->no_reverse ? AVAHI_PUBLISH_NO_REVERSE : 0, config->name, &config->address) < 0) { fprintf(stderr, _("Failed to add address: %s\n"), avahi_strerror(avahi_client_errno(client))); return -1; } } else { AvahiStringList *i; assert(config->command == COMMAND_PUBLISH_SERVICE); if (avahi_entry_group_add_service_strlst(entry_group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, config->name, config->stype, config->domain, config->host, config->port, config->txt) < 0) { fprintf(stderr, _("Failed to add service: %s\n"), avahi_strerror(avahi_client_errno(client))); return -1; } for (i = config->subtypes; i; i = i->next) if (avahi_entry_group_add_service_subtype(entry_group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, config->name, config->stype, config->domain, (char*) i->text) < 0) { fprintf(stderr, _("Failed to add subtype '%s': %s\n"), i->text, avahi_strerror(avahi_client_errno(client))); return -1; } } avahi_entry_group_commit(entry_group); return 0; } static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata) { Config *config = userdata; client = c; switch (state) { case AVAHI_CLIENT_FAILURE: if (config->no_fail && avahi_client_errno(c) == AVAHI_ERR_DISCONNECTED) { int error; /* We have been disconnected, so let reconnect */ fprintf(stderr, _("Disconnected, reconnecting ...\n")); avahi_client_free(client); client = NULL; entry_group = NULL; if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), AVAHI_CLIENT_NO_FAIL, client_callback, config, &error))) { fprintf(stderr, _("Failed to create client object: %s\n"), avahi_strerror(error)); avahi_simple_poll_quit(simple_poll); } } else { fprintf(stderr, _("Client failure, exiting: %s\n"), avahi_strerror(avahi_client_errno(c))); avahi_simple_poll_quit(simple_poll); } break; case AVAHI_CLIENT_S_RUNNING: if (register_stuff(config) < 0) avahi_simple_poll_quit(simple_poll); break; case AVAHI_CLIENT_S_COLLISION: if (config->verbose) fprintf(stderr, _("Host name conflict\n")); /* Fall through */ case AVAHI_CLIENT_S_REGISTERING: if (entry_group) { avahi_entry_group_free(entry_group); entry_group = NULL; } break; case AVAHI_CLIENT_CONNECTING: if (config->verbose) fprintf(stderr, _("Waiting for daemon ...\n")); break; ; } } static void help(FILE *f, const char *argv0) { fprintf(f, _("%s [options] %s []\n" "%s [options] %s
    \n\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n"), argv0, strstr(argv0, "service") ? "[-s]" : "-s", argv0, strstr(argv0, "address") ? "[-a]" : "-a"); } static int parse_command_line(Config *c, const char *argv0, int argc, char *argv[]) { int o; enum { ARG_SUBTYPE = 256 }; static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, { "service", no_argument, NULL, 's' }, { "address", no_argument, NULL, 'a' }, { "verbose", no_argument, NULL, 'v' }, { "domain", required_argument, NULL, 'd' }, { "host", required_argument, NULL, 'H' }, { "subtype", required_argument, NULL, ARG_SUBTYPE}, { "no-reverse", no_argument, NULL, 'R' }, { "no-fail", no_argument, NULL, 'f' }, { NULL, 0, NULL, 0 } }; assert(c); c->command = strstr(argv0, "address") ? COMMAND_PUBLISH_ADDRESS : (strstr(argv0, "service") ? COMMAND_PUBLISH_SERVICE : COMMAND_UNSPEC); c->verbose = c->no_fail = c->no_reverse = 0; c->host = c->name = c->domain = c->stype = NULL; c->port = 0; c->txt = c->subtypes = NULL; while ((o = getopt_long(argc, argv, "hVsavRd:H:f", long_options, NULL)) >= 0) { switch(o) { case 'h': c->command = COMMAND_HELP; break; case 'V': c->command = COMMAND_VERSION; break; case 's': c->command = COMMAND_PUBLISH_SERVICE; break; case 'a': c->command = COMMAND_PUBLISH_ADDRESS; break; case 'v': c->verbose = 1; break; case 'R': c->no_reverse = 1; break; case 'd': avahi_free(c->domain); c->domain = avahi_strdup(optarg); break; case 'H': avahi_free(c->host); c->host = avahi_strdup(optarg); break; case 'f': c->no_fail = 1; break; case ARG_SUBTYPE: c->subtypes = avahi_string_list_add(c->subtypes, optarg); break; default: return -1; } } if (c->command == COMMAND_PUBLISH_ADDRESS) { if (optind+2 != argc) { fprintf(stderr, _("Bad number of arguments\n")); return -1; } avahi_free(c->name); c->name = avahi_strdup(argv[optind]); avahi_address_parse(argv[optind+1], AVAHI_PROTO_UNSPEC, &c->address); } else if (c->command == COMMAND_PUBLISH_SERVICE) { char *e; long int p; int i; if (optind+3 > argc) { fprintf(stderr, _("Bad number of arguments\n")); return -1; } c->name = avahi_strdup(argv[optind]); c->stype = avahi_strdup(argv[optind+1]); errno = 0; p = strtol(argv[optind+2], &e, 0); if (errno != 0 || *e || p < 0 || p > 0xFFFF) { fprintf(stderr, _("Failed to parse port number: %s\n"), argv[optind+2]); return -1; } c->port = p; for (i = optind+3; i < argc; i++) c->txt = avahi_string_list_add(c->txt, argv[i]); } return 0; } int main(int argc, char *argv[]) { int ret = 1, error; Config config; const char *argv0; avahi_init_i18n(); setlocale(LC_ALL, ""); if ((argv0 = strrchr(argv[0], '/'))) argv0++; else argv0 = argv[0]; if (parse_command_line(&config, argv0, argc, argv) < 0) goto fail; switch (config.command) { case COMMAND_UNSPEC: ret = 1; fprintf(stderr, _("No command specified.\n")); break; case COMMAND_HELP: help(stdout, argv0); ret = 0; break; case COMMAND_VERSION: printf("%s "PACKAGE_VERSION"\n", argv0); ret = 0; break; case COMMAND_PUBLISH_SERVICE: case COMMAND_PUBLISH_ADDRESS: if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, _("Failed to create simple poll object.\n")); goto fail; } if (sigint_install(simple_poll) < 0) goto fail; if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), config.no_fail ? AVAHI_CLIENT_NO_FAIL : 0, client_callback, &config, &error))) { fprintf(stderr, _("Failed to create client object: %s\n"), avahi_strerror(error)); goto fail; } if (avahi_client_get_state(client) != AVAHI_CLIENT_CONNECTING && config.verbose) { const char *version, *hn; if (!(version = avahi_client_get_version_string(client))) { fprintf(stderr, _("Failed to query version string: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } if (!(hn = avahi_client_get_host_name_fqdn(client))) { fprintf(stderr, _("Failed to query host name: %s\n"), avahi_strerror(avahi_client_errno(client))); goto fail; } fprintf(stderr, _("Server version: %s; Host name: %s\n"), version, hn); } avahi_simple_poll_loop(simple_poll); ret = 0; break; } fail: if (client) avahi_client_free(client); sigint_uninstall(); if (simple_poll) avahi_simple_poll_free(simple_poll); avahi_free(config.host); avahi_free(config.name); avahi_free(config.stype); avahi_free(config.domain); avahi_string_list_free(config.subtypes); avahi_string_list_free(config.txt); return ret; } avahi-0.7/avahi-utils/PaxHeaders.10109/stdb.h0000644000000000000000000000013213130651643015534 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.759973243 avahi-0.7/avahi-utils/stdb.h0000644000175000017500000000166513130651643017153 0ustar00lathiatlathiat00000000000000#ifndef foostdbhfoo #define foostdbhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include const char* stdb_lookup(const char *name); void stdb_shutdown(void); char *stdb_getent(void); void stdb_setent(void); #endif avahi-0.7/avahi-utils/PaxHeaders.10109/avahi-browse.c0000644000000000000000000000013213130651643017162 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.759973243 avahi-0.7/avahi-utils/avahi-browse.c0000644000175000017500000006115413130651643020600 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sigint.h" #if defined(HAVE_GDBM) || defined(HAVE_DBM) #include "stdb.h" #endif typedef enum { COMMAND_HELP, COMMAND_VERSION, COMMAND_BROWSE_SERVICES, COMMAND_BROWSE_ALL_SERVICES, COMMAND_BROWSE_DOMAINS #if defined(HAVE_GDBM) || defined(HAVE_DBM) , COMMAND_DUMP_STDB #endif } Command; typedef struct Config { int verbose; int terminate_on_all_for_now; int terminate_on_cache_exhausted; char *domain; char *stype; int ignore_local; Command command; int resolve; int no_fail; int parsable; #if defined(HAVE_GDBM) || defined(HAVE_DBM) int no_db_lookup; #endif } Config; typedef struct ServiceInfo ServiceInfo; struct ServiceInfo { AvahiIfIndex interface; AvahiProtocol protocol; char *name, *type, *domain; AvahiServiceResolver *resolver; Config *config; AVAHI_LLIST_FIELDS(ServiceInfo, info); }; static AvahiSimplePoll *simple_poll = NULL; static AvahiClient *client = NULL; static int n_all_for_now = 0, n_cache_exhausted = 0, n_resolving = 0; static AvahiStringList *browsed_types = NULL; static ServiceInfo *services = NULL; static int n_columns = 80; static int browsing = 0; static void check_terminate(Config *c) { assert(n_all_for_now >= 0); assert(n_cache_exhausted >= 0); assert(n_resolving >= 0); if (n_all_for_now <= 0 && n_resolving <= 0) { if (c->verbose && !c->parsable) { printf(_(": All for now\n")); n_all_for_now++; /* Make sure that this event is not repeated */ } if (c->terminate_on_all_for_now) avahi_simple_poll_quit(simple_poll); } if (n_cache_exhausted <= 0 && n_resolving <= 0) { if (c->verbose && !c->parsable) { printf(_(": Cache exhausted\n")); n_cache_exhausted++; /* Make sure that this event is not repeated */ } if (c->terminate_on_cache_exhausted) avahi_simple_poll_quit(simple_poll); } } static ServiceInfo *find_service(AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain) { ServiceInfo *i; for (i = services; i; i = i->info_next) if (i->interface == interface && i->protocol == protocol && strcasecmp(i->name, name) == 0 && avahi_domain_equal(i->type, type) && avahi_domain_equal(i->domain, domain)) return i; return NULL; } static char *make_printable(const char *from, char *to) { const char *f; char *t; for (f = from, t = to; *f; f++, t++) *t = isprint(*f) ? *f : '_'; *t = 0; return to; } static void print_service_line(Config *config, char c, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, int nl) { char ifname[IF_NAMESIZE]; #if defined(HAVE_GDBM) || defined(HAVE_DBM) if (!config->no_db_lookup) type = stdb_lookup(type); #endif if (config->parsable) { char sn[AVAHI_DOMAIN_NAME_MAX], *e = sn; size_t l = sizeof(sn); printf("%c;%s;%s;%s;%s;%s%s", c, interface != AVAHI_IF_UNSPEC ? if_indextoname(interface, ifname) : _("n/a"), protocol != AVAHI_PROTO_UNSPEC ? avahi_proto_to_string(protocol) : _("n/a"), avahi_escape_label(name, strlen(name), &e, &l), type, domain, nl ? "\n" : ""); } else { char label[AVAHI_LABEL_MAX]; make_printable(name, label); printf("%c %6s %4s %-*s %-20s %s\n", c, interface != AVAHI_IF_UNSPEC ? if_indextoname(interface, ifname) : _("n/a"), protocol != AVAHI_PROTO_UNSPEC ? avahi_proto_to_string(protocol) : _("n/a"), n_columns-35, label, type, domain); } fflush(stdout); } static void service_resolver_callback( AvahiServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { ServiceInfo *i = userdata; assert(r); assert(i); switch (event) { case AVAHI_RESOLVER_FOUND: { char address[AVAHI_ADDRESS_STR_MAX], *t; avahi_address_snprint(address, sizeof(address), a); t = avahi_string_list_to_string(txt); print_service_line(i->config, '=', interface, protocol, name, type, domain, 0); if (i->config->parsable) printf(";%s;%s;%u;%s\n", host_name, address, port, t); else printf(" hostname = [%s]\n" " address = [%s]\n" " port = [%u]\n" " txt = [%s]\n", host_name, address, port, t); avahi_free(t); break; } case AVAHI_RESOLVER_FAILURE: fprintf(stderr, _("Failed to resolve service '%s' of type '%s' in domain '%s': %s\n"), name, type, domain, avahi_strerror(avahi_client_errno(client))); break; } avahi_service_resolver_free(i->resolver); i->resolver = NULL; assert(n_resolving > 0); n_resolving--; check_terminate(i->config); fflush(stdout); } static ServiceInfo *add_service(Config *c, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain) { ServiceInfo *i; i = avahi_new(ServiceInfo, 1); if (c->resolve) { if (!(i->resolver = avahi_service_resolver_new(client, interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, 0, service_resolver_callback, i))) { avahi_free(i); fprintf(stderr, _("Failed to resolve service '%s' of type '%s' in domain '%s': %s\n"), name, type, domain, avahi_strerror(avahi_client_errno(client))); return NULL; } n_resolving++; } else i->resolver = NULL; i->interface = interface; i->protocol = protocol; i->name = avahi_strdup(name); i->type = avahi_strdup(type); i->domain = avahi_strdup(domain); i->config = c; AVAHI_LLIST_PREPEND(ServiceInfo, info, services, i); return i; } static void remove_service(Config *c, ServiceInfo *i) { assert(c); assert(i); AVAHI_LLIST_REMOVE(ServiceInfo, info, services, i); if (i->resolver) avahi_service_resolver_free(i->resolver); avahi_free(i->name); avahi_free(i->type); avahi_free(i->domain); avahi_free(i); } static void service_browser_callback( AvahiServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AvahiLookupResultFlags flags, void *userdata) { Config *c = userdata; assert(b); assert(c); switch (event) { case AVAHI_BROWSER_NEW: { if (c->ignore_local && (flags & AVAHI_LOOKUP_RESULT_LOCAL)) break; if (find_service(interface, protocol, name, type, domain)) return; add_service(c, interface, protocol, name, type, domain); print_service_line(c, '+', interface, protocol, name, type, domain, 1); break; } case AVAHI_BROWSER_REMOVE: { ServiceInfo *info; if (!(info = find_service(interface, protocol, name, type, domain))) return; remove_service(c, info); print_service_line(c, '-', interface, protocol, name, type, domain, 1); break; } case AVAHI_BROWSER_FAILURE: fprintf(stderr, _("service_browser failed: %s\n"), avahi_strerror(avahi_client_errno(client))); avahi_simple_poll_quit(simple_poll); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: n_cache_exhausted --; check_terminate(c); break; case AVAHI_BROWSER_ALL_FOR_NOW: n_all_for_now --; check_terminate(c); break; } } static void browse_service_type(Config *c, const char *stype, const char *domain) { AvahiServiceBrowser *b; AvahiStringList *i; assert(c); assert(client); assert(stype); for (i = browsed_types; i; i = i->next) if (avahi_domain_equal(stype, (char*) i->text)) return; if (!(b = avahi_service_browser_new( client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, stype, domain, 0, service_browser_callback, c))) { fprintf(stderr, _("avahi_service_browser_new() failed: %s\n"), avahi_strerror(avahi_client_errno(client))); avahi_simple_poll_quit(simple_poll); } browsed_types = avahi_string_list_add(browsed_types, stype); n_all_for_now++; n_cache_exhausted++; } static void service_type_browser_callback( AvahiServiceTypeBrowser *b, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { Config *c = userdata; assert(b); assert(c); switch (event) { case AVAHI_BROWSER_NEW: browse_service_type(c, type, domain); break; case AVAHI_BROWSER_REMOVE: /* We're dirty and never remove the browser again */ break; case AVAHI_BROWSER_FAILURE: fprintf(stderr, _("service_type_browser failed: %s\n"), avahi_strerror(avahi_client_errno(client))); avahi_simple_poll_quit(simple_poll); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: n_cache_exhausted --; check_terminate(c); break; case AVAHI_BROWSER_ALL_FOR_NOW: n_all_for_now --; check_terminate(c); break; } } static void browse_all(Config *c) { AvahiServiceTypeBrowser *b; assert(c); if (!(b = avahi_service_type_browser_new( client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, c->domain, 0, service_type_browser_callback, c))) { fprintf(stderr, _("avahi_service_type_browser_new() failed: %s\n"), avahi_strerror(avahi_client_errno(client))); avahi_simple_poll_quit(simple_poll); } n_cache_exhausted++; n_all_for_now++; } static void domain_browser_callback( AvahiDomainBrowser *b, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { Config *c = userdata; assert(b); assert(c); switch (event) { case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE: { char ifname[IF_NAMESIZE]; if (c->parsable) printf("%c;%s;%s;%s\n", event == AVAHI_BROWSER_NEW ? '+' : '-', interface != AVAHI_IF_UNSPEC ? if_indextoname(interface, ifname) : "", protocol != AVAHI_PROTO_UNSPEC ? avahi_proto_to_string(protocol) : "", domain); else printf("%c %4s %4s %s\n", event == AVAHI_BROWSER_NEW ? '+' : '-', interface != AVAHI_IF_UNSPEC ? if_indextoname(interface, ifname) : "n/a", protocol != AVAHI_PROTO_UNSPEC ? avahi_proto_to_string(protocol) : "n/a", domain); break; } case AVAHI_BROWSER_FAILURE: fprintf(stderr, ("domain_browser failed: %s\n"), avahi_strerror(avahi_client_errno(client))); avahi_simple_poll_quit(simple_poll); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: n_cache_exhausted --; check_terminate(c); break; case AVAHI_BROWSER_ALL_FOR_NOW: n_all_for_now --; check_terminate(c); break; } } static void browse_domains(Config *c) { AvahiDomainBrowser *b; assert(c); if (!(b = avahi_domain_browser_new( client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, c->domain, AVAHI_DOMAIN_BROWSER_BROWSE, 0, domain_browser_callback, c))) { fprintf(stderr, _("avahi_domain_browser_new() failed: %s\n"), avahi_strerror(avahi_client_errno(client))); avahi_simple_poll_quit(simple_poll); } n_cache_exhausted++; n_all_for_now++; } static int start(Config *config) { assert(!browsing); if (config->verbose && !config->parsable) { const char *version, *hn; if (!(version = avahi_client_get_version_string(client))) { fprintf(stderr, _("Failed to query version string: %s\n"), avahi_strerror(avahi_client_errno(client))); return -1; } if (!(hn = avahi_client_get_host_name_fqdn(client))) { fprintf(stderr, _("Failed to query host name: %s\n"), avahi_strerror(avahi_client_errno(client))); return -1; } fprintf(stderr, _("Server version: %s; Host name: %s\n"), version, hn); if (config->command == COMMAND_BROWSE_DOMAINS) { /* Translators: This is a column heading with abbreviations for * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain */ fprintf(stderr, _("E Ifce Prot Domain\n")); } else { /* Translators: This is a column heading with abbreviations for * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain */ fprintf(stderr, _("E Ifce Prot %-*s %-20s Domain\n"), n_columns-35, _("Name"), _("Type")); } } if (config->command == COMMAND_BROWSE_SERVICES) browse_service_type(config, config->stype, config->domain); else if (config->command == COMMAND_BROWSE_ALL_SERVICES) browse_all(config); else { assert(config->command == COMMAND_BROWSE_DOMAINS); browse_domains(config); } browsing = 1; return 0; } static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata) { Config *config = userdata; /* This function might be called when avahi_client_new() has not * returned yet.*/ client = c; switch (state) { case AVAHI_CLIENT_FAILURE: if (config->no_fail && avahi_client_errno(c) == AVAHI_ERR_DISCONNECTED) { int error; /* We have been disconnected, so let reconnect */ fprintf(stderr, _("Disconnected, reconnecting ...\n")); avahi_client_free(client); client = NULL; avahi_string_list_free(browsed_types); browsed_types = NULL; while (services) remove_service(config, services); browsing = 0; if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), AVAHI_CLIENT_NO_FAIL, client_callback, config, &error))) { fprintf(stderr, _("Failed to create client object: %s\n"), avahi_strerror(error)); avahi_simple_poll_quit(simple_poll); } } else { fprintf(stderr, _("Client failure, exiting: %s\n"), avahi_strerror(avahi_client_errno(c))); avahi_simple_poll_quit(simple_poll); } break; case AVAHI_CLIENT_S_REGISTERING: case AVAHI_CLIENT_S_RUNNING: case AVAHI_CLIENT_S_COLLISION: if (!browsing) if (start(config) < 0) avahi_simple_poll_quit(simple_poll); break; case AVAHI_CLIENT_CONNECTING: if (config->verbose && !config->parsable) fprintf(stderr, _("Waiting for daemon ...\n")); break; } } static void help(FILE *f, const char *argv0) { if (strstr(argv0, "domain")) fprintf(f, "%s [options] \n\n", argv0); else fprintf(f, "%s [options] \n" "%s [options] -a\n" "%s [options] -D\n" #if defined(HAVE_GDBM) || defined(HAVE_DBM) "%s [options] -b\n" #endif "\n", #if defined(HAVE_GDBM) || defined(HAVE_DBM) argv0, #endif argv0, argv0, argv0); fprintf(f, "%s%s", _(" -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n"), #if defined(HAVE_GDBM) || defined(HAVE_DBM) _(" -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n") #else "" #endif ); } static int parse_command_line(Config *c, const char *argv0, int argc, char *argv[]) { int o; static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, { "browse-domains", no_argument, NULL, 'D' }, { "domain", required_argument, NULL, 'd' }, { "all", no_argument, NULL, 'a' }, { "verbose", no_argument, NULL, 'v' }, { "terminate", no_argument, NULL, 't' }, { "cache", no_argument, NULL, 'c' }, { "ignore-local", no_argument, NULL, 'l' }, { "resolve", no_argument, NULL, 'r' }, { "no-fail", no_argument, NULL, 'f' }, { "parsable", no_argument, NULL, 'p' }, #if defined(HAVE_GDBM) || defined(HAVE_DBM) { "no-db-lookup", no_argument, NULL, 'k' }, { "dump-db", no_argument, NULL, 'b' }, #endif { NULL, 0, NULL, 0 } }; assert(c); c->command = strstr(argv0, "domain") ? COMMAND_BROWSE_DOMAINS : COMMAND_BROWSE_SERVICES; c->verbose = c->terminate_on_cache_exhausted = c->terminate_on_all_for_now = c->ignore_local = c->resolve = c->no_fail = c->parsable = 0; c->domain = c->stype = NULL; #if defined(HAVE_GDBM) || defined(HAVE_DBM) c->no_db_lookup = 0; #endif while ((o = getopt_long(argc, argv, "hVd:avtclrDfp" #if defined(HAVE_GDBM) || defined(HAVE_DBM) "kb" #endif , long_options, NULL)) >= 0) { switch(o) { case 'h': c->command = COMMAND_HELP; break; case 'V': c->command = COMMAND_VERSION; break; case 'a': c->command = COMMAND_BROWSE_ALL_SERVICES; break; case 'D': c->command = COMMAND_BROWSE_DOMAINS; break; case 'd': avahi_free(c->domain); c->domain = avahi_strdup(optarg); break; case 'v': c->verbose = 1; break; case 't': c->terminate_on_all_for_now = 1; break; case 'c': c->terminate_on_cache_exhausted = 1; break; case 'l': c->ignore_local = 1; break; case 'r': c->resolve = 1; break; case 'f': c->no_fail = 1; break; case 'p': c->parsable = 1; break; #if defined(HAVE_GDBM) || defined(HAVE_DBM) case 'k': c->no_db_lookup = 1; break; case 'b': c->command = COMMAND_DUMP_STDB; break; #endif default: return -1; } } if (c->command == COMMAND_BROWSE_SERVICES) { if (optind >= argc) { fprintf(stderr, _("Too few arguments\n")); return -1; } c->stype = avahi_strdup(argv[optind]); optind++; } if (optind < argc) { fprintf(stderr, _("Too many arguments\n")); return -1; } return 0; } int main(int argc, char *argv[]) { int ret = 1, error; Config config; const char *argv0; char *ec; avahi_init_i18n(); setlocale(LC_ALL, ""); if ((argv0 = strrchr(argv[0], '/'))) argv0++; else argv0 = argv[0]; if ((ec = getenv("COLUMNS"))) n_columns = atoi(ec); if (n_columns < 40) n_columns = 40; if (parse_command_line(&config, argv0, argc, argv) < 0) goto fail; switch (config.command) { case COMMAND_HELP: help(stdout, argv0); ret = 0; break; case COMMAND_VERSION: printf("%s "PACKAGE_VERSION"\n", argv0); ret = 0; break; case COMMAND_BROWSE_SERVICES: case COMMAND_BROWSE_ALL_SERVICES: case COMMAND_BROWSE_DOMAINS: if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, _("Failed to create simple poll object.\n")); goto fail; } if (sigint_install(simple_poll) < 0) goto fail; if (!(client = avahi_client_new(avahi_simple_poll_get(simple_poll), config.no_fail ? AVAHI_CLIENT_NO_FAIL : 0, client_callback, &config, &error))) { fprintf(stderr, _("Failed to create client object: %s\n"), avahi_strerror(error)); goto fail; } avahi_simple_poll_loop(simple_poll); ret = 0; break; #if defined(HAVE_GDBM) || defined(HAVE_DBM) case COMMAND_DUMP_STDB: { char *t; stdb_setent(); while ((t = stdb_getent())) { if (config.no_db_lookup) printf("%s\n", t); else printf("%s\n", stdb_lookup(t)); } ret = 0; break; } #endif } fail: while (services) remove_service(&config, services); if (client) avahi_client_free(client); sigint_uninstall(); if (simple_poll) avahi_simple_poll_free(simple_poll); avahi_free(config.domain); avahi_free(config.stype); avahi_string_list_free(browsed_types); #if defined(HAVE_GDBM) || defined(HAVE_DBM) stdb_shutdown(); #endif return ret; } avahi-0.7/PaxHeaders.10109/service-type-database0000644000000000000000000000013213130652073016303 xustar0030 mtime=1499681851.115965299 30 atime=1499681851.283961552 30 ctime=1499681851.115965299 avahi-0.7/service-type-database/0000755000175000017500000000000013130652073017767 5ustar00lathiatlathiat00000000000000avahi-0.7/service-type-database/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643020416 xustar0030 mtime=1499681699.147369677 30 atime=1499681796.793179021 30 ctime=1499681851.115965299 avahi-0.7/service-type-database/Makefile.am0000644000175000017500000000340313130651643022025 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. EXTRA_DIST=build-db.in service-types pkglibdatadir=$(libdir)/avahi pkglibdata_DATA= if HAVE_PYTHON if HAVE_GDBM noinst_SCRIPTS=build-db pkglibdata_DATA+=service-types.db build-db: build-db.in $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ -e 's,@DBM\@,gdbm,g' $< > $@ && \ chmod +x $@ service-types.db: service-types build-db $(AM_V_GEN)$(PYTHON) build-db $< $@.coming && \ mv $@.coming $@ CLEANFILES = service-types.db build-db endif if HAVE_DBM noinst_SCRIPTS=build-db pkglibdata_DATA+=service-types.db.pag service-types.db.dir build-db: build-db.in $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ -e 's,@DBM\@,dbm,g' $< > $@ && \ chmod +x $@ service-types.db.pag: service-types.db $(AM_V_GEN)mv service-types.db.coming.pag service-types.db.pag service-types.db.dir: service-types.db $(AM_V_GEN)mv service-types.db.coming.dir service-types.db.dir service-types.db: service-types build-db $(AM_V_GEN)$(PYTHON) build-db $< $@.coming && \ if test -f "$@.coming"; then mv $@.coming $@; fi CLEANFILES = service-types.db* build-db endif endif avahi-0.7/service-type-database/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652012020416 xustar0030 mtime=1499681802.017062157 30 atime=1499681806.816954809 30 ctime=1499681851.115965299 avahi-0.7/service-type-database/Makefile.in0000644000175000017500000005263613130652012022041 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@am__append_1 = service-types.db @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@am__append_2 = service-types.db.pag service-types.db.dir subdir = service-type-database ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SCRIPTS = $(noinst_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkglibdatadir)" DATA = $(pkglibdata_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = build-db.in service-types pkglibdatadir = $(libdir)/avahi pkglibdata_DATA = $(am__append_1) $(am__append_2) @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@noinst_SCRIPTS = build-db @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@noinst_SCRIPTS = build-db @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@CLEANFILES = service-types.db* build-db @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@CLEANFILES = service-types.db build-db all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign service-type-database/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign service-type-database/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-pkglibdataDATA: $(pkglibdata_DATA) @$(NORMAL_INSTALL) @list='$(pkglibdata_DATA)'; test -n "$(pkglibdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkglibdatadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkglibdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkglibdatadir)" || exit $$?; \ done uninstall-pkglibdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkglibdata_DATA)'; test -n "$(pkglibdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkglibdatadir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(SCRIPTS) $(DATA) installdirs: for dir in "$(DESTDIR)$(pkglibdatadir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkglibdataDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkglibdataDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkglibdataDATA install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am \ uninstall-pkglibdataDATA .PRECIOUS: Makefile @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@build-db: build-db.in @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@DBM\@,gdbm,g' $< > $@ && \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ chmod +x $@ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@service-types.db: service-types build-db @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)$(PYTHON) build-db $< $@.coming && \ @HAVE_GDBM_TRUE@@HAVE_PYTHON_TRUE@ mv $@.coming $@ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@build-db: build-db.in @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)sed -e 's,@PYTHON\@,$(PYTHON),g' \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ -e 's,@DBM\@,dbm,g' $< > $@ && \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ chmod +x $@ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@service-types.db.pag: service-types.db @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)mv service-types.db.coming.pag service-types.db.pag @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@service-types.db.dir: service-types.db @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)mv service-types.db.coming.dir service-types.db.dir @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@service-types.db: service-types build-db @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ $(AM_V_GEN)$(PYTHON) build-db $< $@.coming && \ @HAVE_DBM_TRUE@@HAVE_PYTHON_TRUE@ if test -f "$@.coming"; then mv $@.coming $@; fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/service-type-database/PaxHeaders.10109/service-types0000644000000000000000000000013213130651643021107 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.115965299 avahi-0.7/service-type-database/service-types0000644000175000017500000001212213130651643022514 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # Feel free to add more service types or translatons to this database. # Please refrain from copying bulk service type data from any publicly # available database unless its license is known and compatible with # our project! The database available on # # http://www.dns-sd.org/ServiceTypes.html # # is not a source that complies with the criterion! ### This list is NOT intended to be used as developer ### documentation. If you're looking for the correct service type to ### use for your application please refer to the URL mentioned above. # Devices _workstation._tcp:Workstation _workstation._tcp[de]:Arbeitsplatzrechner _workstation._tcp[it]:Macchine # Web _http._tcp:Web Site _http._tcp[de]:Web-Angebot _http._tcp[it]:Sito Web _https._tcp:Secure Web Site _https._tcp[de]:Sicheres Web-Angebot _https._tcp[it]:Sito Web sicuro _rss._tcp:Web Syndication RSS # Network _domain._udp:DNS Server _domain._udp[de]: DNS-Dienst _ntp._udp:NTP Time Server _smb._tcp:Microsoft Windows Network _smb._tcp[it]:Rete Microsoft Windows _airport._tcp:Apple AirPort # File and data access _ftp._tcp:FTP File Transfer _ftp._tcp[de]:FTP-Dateifreigabe _tftp._udp:TFTP Trivial File Transfer _webdav._tcp:WebDAV File Share _webdav._tcp[it]:WebDAV Condivisione File _webdavs._tcp:Secure WebDAV File Share _webdavs._tcp[it]:WebDAV Condivisione File Sicuro _afpovertcp._tcp:Apple File Sharing _nfs._tcp:Network File System _sftp-ssh._tcp:SFTP File Transfer _apt._tcp:APT Package Repository _apt._tcp[it]:APT - Repository dei Pacchetti _odisk._tcp:DVD or CD Sharing _adisk._tcp:Apple TimeMachine # Remote machine access _ssh._tcp:SSH Remote Terminal _ssh._tcp[de]:SSH-Fernzugriff _ssh._tcp[it]:SSH Terminale remoto _rfb._tcp:VNC Remote Access _rfb._tcp[it]:Controllo remoto VNC _telnet._tcp:Telnet Remote Terminal _telnet._tcp[it]:Telnet Terminale Remoto _timbuktu._tcp:Timbuktu Remote Desktop Control _net-assistant._udp:Apple Net Assistant _udisks-ssh._tcp:Remote Disk Management # Mail _imap._tcp:IMAP Mail Access _imap._tcp[it]:Posta - IMAP _pop3._tcp:POP3 Mail Access _pop3._tcp[it]:Posta - POP3 # Printing _printer._tcp:UNIX Printer _printer._tcp[it]:Stampante UNIX _pdl-datastream._tcp:PDL Printer _pdl-datastream._tcp[it]:Stampante PDL _ipp._tcp:Internet Printer _ipps._tcp:Secure Internet Printer # Multimedia _daap._tcp:iTunes Audio Access _daap._tcp[de]:iTunes Audio-Zugriff _daap._tcp[it]:Accesso Audio iTunes _dacp._tcp:iTunes Remote Control _realplayfavs._tcp:RealPlayer Shared Favorites _realplayfavs._tcp[it]:RealPlayer - Preferiti Condivisi _raop._tcp:AirTunes Remote Audio _rtsp._tcp:RTSP Realtime Streaming Server _rtp._udp:RTP Realtime Streaming Server _dpap._tcp:Digital Photo Sharing _dpap._tcp[it]:Condivisione Foto _pulse-server._tcp:PulseAudio Sound Server _pulse-sink._tcp:PulseAudio Sound Sink _pulse-source._tcp:PulseAudio Sound Source _mpd._tcp:Music Player Daemon _remote-jukebox._tcp:Remote Jukebox # DAAP share provided by iTunes on behalf of an iPod Touch _touch-able._tcp:iPod Touch Music Library _vlc-http._tcp:VLC Streaming # Communication, presence, working together _presence._tcp:iChat Presence _sip._udp:SIP Telephony _sip._udp[de]:SIP-Telefonie _sip._udp[it]:Telefonia-SIP _h323._tcp:H.323 Telephony _h323._tcp[de]:H.323-Telefonie _h323._tcp[it]:Telefonia-H.323 _presence_olpc._tcp:OLPC Presence _iax._udp:Asterisk Exchange _skype._tcp:Skype VoIP _see._tcp:SubEthaEdit Collaborative Text Editor _lobby._tcp:Gobby Collaborative Editor Session _mumble._tcp:Mumble Server # Databases _postgresql._tcp:PostgreSQL Server # Development _svn._tcp:Subversion Revision Control _svn._tcp[it]:Subversion - Versionatore _distcc._tcp:Distributed Compiler _distcc._tcp[de]:Verteilter Compiler _distcc._tcp[it]:Compilatore Distribuito _bzr._tcp:Bazaar # Vendor specific _MacOSXDupSuppress._tcp:MacOS X Duplicate Machine Suppression _ksysguard._tcp:KDE System Guard _omni-bookmark._tcp:OmniWeb Bookmark Sharing _acrobatSRV._tcp:Adobe Acrobat _adobe-vc._tcp:Adobe Version Cue _home-sharing._tcp:Apple Home Sharing # Other _pgpkey-hkp._tcp:GnuPG/PGP HKP Key Server _ldap._tcp:LDAP Directory Server _tp._tcp:Thousand Parsec Server _tps._tcp:Thousand Parsec Server (Secure) _tp-http._tcp:Thousand Parsec Server (HTTP Tunnel) _tp-https._tcp:Thousand Parsec Server (Secure HTTP Tunnel) _shifter._tcp:Window Shifter _xpra._tcp:Xpra Session Server _libvirt._tcp:Virtual Machine Manager avahi-0.7/service-type-database/PaxHeaders.10109/build-db.in0000644000000000000000000000013213130651643020374 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.115965299 avahi-0.7/service-type-database/build-db.in0000755000175000017500000000217213130651643022010 0ustar00lathiatlathiat00000000000000#!@PYTHON@ # -*-python-*- # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. import @DBM@, sys if len(sys.argv) > 1: infn = sys.argv[1] else: infn = "service-types" if len(sys.argv) > 2: outfn = sys.argv[2] else: outfn = infn + ".db" db = @DBM@.open(outfn, "n") for ln in file(infn, "r"): ln = ln.strip(" \r\n\t") if ln == "" or ln.startswith("#"): continue t, n = ln.split(":", 1) db[t.strip()] = n.strip() db.close() avahi-0.7/PaxHeaders.10109/avahi-common0000644000000000000000000000013213130652072014477 xustar0030 mtime=1499681850.187986003 30 atime=1499681851.283961552 30 ctime=1499681850.187986003 avahi-0.7/avahi-common/0000755000175000017500000000000013130652072016163 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-common/PaxHeaders.10109/utf8.h0000644000000000000000000000013213130651643015616 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.075988506 avahi-0.7/avahi-common/utf8.h0000644000175000017500000000164413130651643017232 0ustar00lathiatlathiat00000000000000#ifndef fooutf8hfoo #define fooutf8hfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include AVAHI_C_DECL_BEGIN const char *avahi_utf8_valid(const char *str); AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/error.h0000644000000000000000000000013213130651643016061 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.063988773 avahi-0.7/avahi-common/error.h0000644000175000017500000001211513130651643017470 0ustar00lathiatlathiat00000000000000#ifndef fooerrorhfoo #define fooerrorhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file error.h Error codes and auxiliary functions */ #include AVAHI_C_DECL_BEGIN /** Error codes used by avahi */ enum { AVAHI_OK = 0, /**< OK */ AVAHI_ERR_FAILURE = -1, /**< Generic error code */ AVAHI_ERR_BAD_STATE = -2, /**< Object was in a bad state */ AVAHI_ERR_INVALID_HOST_NAME = -3, /**< Invalid host name */ AVAHI_ERR_INVALID_DOMAIN_NAME = -4, /**< Invalid domain name */ AVAHI_ERR_NO_NETWORK = -5, /**< No suitable network protocol available */ AVAHI_ERR_INVALID_TTL = -6, /**< Invalid DNS TTL */ AVAHI_ERR_IS_PATTERN = -7, /**< RR key is pattern */ AVAHI_ERR_COLLISION = -8, /**< Name collision */ AVAHI_ERR_INVALID_RECORD = -9, /**< Invalid RR */ AVAHI_ERR_INVALID_SERVICE_NAME = -10, /**< Invalid service name */ AVAHI_ERR_INVALID_SERVICE_TYPE = -11, /**< Invalid service type */ AVAHI_ERR_INVALID_PORT = -12, /**< Invalid port number */ AVAHI_ERR_INVALID_KEY = -13, /**< Invalid key */ AVAHI_ERR_INVALID_ADDRESS = -14, /**< Invalid address */ AVAHI_ERR_TIMEOUT = -15, /**< Timeout reached */ AVAHI_ERR_TOO_MANY_CLIENTS = -16, /**< Too many clients */ AVAHI_ERR_TOO_MANY_OBJECTS = -17, /**< Too many objects */ AVAHI_ERR_TOO_MANY_ENTRIES = -18, /**< Too many entries */ AVAHI_ERR_OS = -19, /**< OS error */ AVAHI_ERR_ACCESS_DENIED = -20, /**< Access denied */ AVAHI_ERR_INVALID_OPERATION = -21, /**< Invalid operation */ AVAHI_ERR_DBUS_ERROR = -22, /**< An unexpected D-Bus error occurred */ AVAHI_ERR_DISCONNECTED = -23, /**< Daemon connection failed */ AVAHI_ERR_NO_MEMORY = -24, /**< Memory exhausted */ AVAHI_ERR_INVALID_OBJECT = -25, /**< The object passed to this function was invalid */ AVAHI_ERR_NO_DAEMON = -26, /**< Daemon not running */ AVAHI_ERR_INVALID_INTERFACE = -27, /**< Invalid interface */ AVAHI_ERR_INVALID_PROTOCOL = -28, /**< Invalid protocol */ AVAHI_ERR_INVALID_FLAGS = -29, /**< Invalid flags */ AVAHI_ERR_NOT_FOUND = -30, /**< Not found */ AVAHI_ERR_INVALID_CONFIG = -31, /**< Configuration error */ AVAHI_ERR_VERSION_MISMATCH = -32, /**< Verson mismatch */ AVAHI_ERR_INVALID_SERVICE_SUBTYPE = -33, /**< Invalid service subtype */ AVAHI_ERR_INVALID_PACKET = -34, /**< Invalid packet */ AVAHI_ERR_INVALID_DNS_ERROR = -35, /**< Invlaid DNS return code */ AVAHI_ERR_DNS_FORMERR = -36, /**< DNS Error: Form error */ AVAHI_ERR_DNS_SERVFAIL = -37, /**< DNS Error: Server Failure */ AVAHI_ERR_DNS_NXDOMAIN = -38, /**< DNS Error: No such domain */ AVAHI_ERR_DNS_NOTIMP = -39, /**< DNS Error: Not implemented */ AVAHI_ERR_DNS_REFUSED = -40, /**< DNS Error: Operation refused */ AVAHI_ERR_DNS_YXDOMAIN = -41, AVAHI_ERR_DNS_YXRRSET = -42, AVAHI_ERR_DNS_NXRRSET = -43, AVAHI_ERR_DNS_NOTAUTH = -44, /**< DNS Error: Not authorized */ AVAHI_ERR_DNS_NOTZONE = -45, AVAHI_ERR_INVALID_RDATA = -46, /**< Invalid RDATA */ AVAHI_ERR_INVALID_DNS_CLASS = -47, /**< Invalid DNS class */ AVAHI_ERR_INVALID_DNS_TYPE = -48, /**< Invalid DNS type */ AVAHI_ERR_NOT_SUPPORTED = -49, /**< Not supported */ AVAHI_ERR_NOT_PERMITTED = -50, /**< Operation not permitted */ AVAHI_ERR_INVALID_ARGUMENT = -51, /**< Invalid argument */ AVAHI_ERR_IS_EMPTY = -52, /**< Is empty */ AVAHI_ERR_NO_CHANGE = -53, /**< The requested operation is invalid because it is redundant */ /**** **** IF YOU ADD A NEW ERROR CODE HERE, PLEASE DON'T FORGET TO ADD **** IT TO THE STRING ARRAY IN avahi_strerror() IN error.c AND **** TO THE ARRAY IN dbus.c AND FINALLY TO dbus.h! **** **** Also remember to update the MAX value below. ****/ AVAHI_ERR_MAX = -54 }; /** Return a human readable error string for the specified error code */ const char *avahi_strerror(int error); AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/llist.h0000644000000000000000000000013213130651643016057 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.063988773 avahi-0.7/avahi-common/llist.h0000644000175000017500000000604213130651643017470 0ustar00lathiatlathiat00000000000000#ifndef foollistfoo #define foollistfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file llist.h A simple macro based linked list implementation */ #include #include AVAHI_C_DECL_BEGIN /** The head of the linked list. Use this in the structure that shall * contain the head of the linked list */ #define AVAHI_LLIST_HEAD(t,name) t *name /** The pointers in the linked list's items. Use this in the item structure */ #define AVAHI_LLIST_FIELDS(t,name) t *name##_next, *name##_prev /** Initialize the list's head */ #define AVAHI_LLIST_HEAD_INIT(t,head) do { (head) = NULL; } while(0) /** Initialize a list item */ #define AVAHI_LLIST_INIT(t,name,item) do { \ t *_item = (item); \ assert(_item); \ _item->name##_prev = _item->name##_next = NULL; \ } while(0) /** Prepend an item to the list */ #define AVAHI_LLIST_PREPEND(t,name,head,item) do { \ t **_head = &(head), *_item = (item); \ assert(_item); \ if ((_item->name##_next = *_head)) \ _item->name##_next->name##_prev = _item; \ _item->name##_prev = NULL; \ *_head = _item; \ } while (0) /** Remove an item from the list */ #define AVAHI_LLIST_REMOVE(t,name,head,item) do { \ t **_head = &(head), *_item = (item); \ assert(_item); \ if (_item->name##_next) \ _item->name##_next->name##_prev = _item->name##_prev; \ if (_item->name##_prev) \ _item->name##_prev->name##_next = _item->name##_next; \ else {\ assert(*_head == _item); \ *_head = _item->name##_next; \ } \ _item->name##_next = _item->name##_prev = NULL; \ } while(0) AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/domain-test.c0000644000000000000000000000013213130651643017147 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.079988416 avahi-0.7/avahi-common/domain-test.c0000644000175000017500000001047313130651643020563 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "domain.h" #include "malloc.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { char *s; char t[256], r[256]; const char *p; size_t size; char name[64], type[AVAHI_DOMAIN_NAME_MAX], domain[AVAHI_DOMAIN_NAME_MAX]; printf("%s\n", s = avahi_normalize_name_strdup("foo.foo\\046.")); avahi_free(s); printf("%s\n", s = avahi_normalize_name_strdup("foo.foo\\.foo.")); avahi_free(s); printf("%s\n", s = avahi_normalize_name_strdup("fo\\\\o\\..f oo.")); avahi_free(s); printf("%i\n", avahi_domain_equal("\\065aa bbb\\.\\046cc.cc\\\\.dee.fff.", "Aaa BBB\\.\\.cc.cc\\\\.dee.fff")); printf("%i\n", avahi_domain_equal("A", "a")); printf("%i\n", avahi_domain_equal("a", "aaa")); printf("%u = %u\n", avahi_domain_hash("ccc\\065aa.aa\\.b\\\\."), avahi_domain_hash("cccAaa.aa\\.b\\\\")); avahi_service_name_join(t, sizeof(t), "foo.foo.foo \\.", "_http._tcp", "test.local"); printf("<%s>\n", t); avahi_service_name_split(t, name, sizeof(name), type, sizeof(type), domain, sizeof(domain)); printf("name: <%s>; type: <%s>; domain <%s>\n", name, type, domain); avahi_service_name_join(t, sizeof(t), NULL, "_http._tcp", "one.two\\. .local"); printf("<%s>\n", t); avahi_service_name_split(t, NULL, 0, type, sizeof(type), domain, sizeof(domain)); printf("name: <>; type: <%s>; domain <%s>\n", type, domain); p = "--:---\\\\\\123\\065_äöü\\064\\.\\\\sjöödfhh.sdfjhskjdf"; printf("unescaped: <%s>, rest: %s\n", avahi_unescape_label(&p, t, sizeof(t)), p); size = sizeof(r); s = r; printf("escaped: <%s>\n", avahi_escape_label(t, strlen(t), &s, &size)); p = r; printf("unescaped: <%s>\n", avahi_unescape_label(&p, t, sizeof(t))); assert(avahi_is_valid_service_type_generic("_foo._bar._waldo")); assert(!avahi_is_valid_service_type_strict("_foo._bar._waldo")); assert(!avahi_is_valid_service_subtype("_foo._bar._waldo")); assert(avahi_is_valid_service_type_generic("_foo._tcp")); assert(avahi_is_valid_service_type_strict("_foo._tcp")); assert(!avahi_is_valid_service_subtype("_foo._tcp")); assert(!avahi_is_valid_service_type_generic("_foo._bar.waldo")); assert(!avahi_is_valid_service_type_strict("_foo._bar.waldo")); assert(!avahi_is_valid_service_subtype("_foo._bar.waldo")); assert(!avahi_is_valid_service_type_generic("")); assert(!avahi_is_valid_service_type_strict("")); assert(!avahi_is_valid_service_subtype("")); assert(avahi_is_valid_service_type_generic("_foo._sub._bar._tcp")); assert(!avahi_is_valid_service_type_strict("_foo._sub._bar._tcp")); assert(avahi_is_valid_service_subtype("_foo._sub._bar._tcp")); printf("%s\n", avahi_get_type_from_subtype("_foo._sub._bar._tcp")); assert(!avahi_is_valid_host_name("sf.ooo.")); assert(avahi_is_valid_host_name("sfooo.")); assert(avahi_is_valid_host_name("sfooo")); assert(avahi_is_valid_domain_name(".")); assert(avahi_is_valid_domain_name("")); assert(avahi_normalize_name(".", t, sizeof(t))); assert(avahi_normalize_name("", t, sizeof(t))); assert(!avahi_is_valid_fqdn(".")); assert(!avahi_is_valid_fqdn("")); assert(!avahi_is_valid_fqdn("foo")); assert(avahi_is_valid_fqdn("foo.bar")); assert(avahi_is_valid_fqdn("foo.bar.")); assert(avahi_is_valid_fqdn("gnurz.foo.bar.")); assert(!avahi_is_valid_fqdn("192.168.50.1")); assert(!avahi_is_valid_fqdn("::1")); assert(!avahi_is_valid_fqdn(".192.168.50.1.")); return 0; } avahi-0.7/avahi-common/PaxHeaders.10109/defs.h0000644000000000000000000000013213130651643015651 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.059988862 avahi-0.7/avahi-common/defs.h0000644000175000017500000004156513130651643017273 0ustar00lathiatlathiat00000000000000#ifndef foodefshfoo #define foodefshfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file defs.h Some common definitions */ #include /** \mainpage * * \section choose_api Choosing an API * * Avahi provides three programming APIs for integration of * mDNS/DNS-SD features into your C progams: * * \li avahi-core: an API for embedding a complete mDNS/DNS-SD stack * into your software. This is intended for developers of embedded * appliances only. We dissuade from using this API in normal desktop * applications since it is not a good idea to run multiple mDNS * stacks simultaneously on the same host. * \li the D-Bus API: an extensive D-Bus interface for browsing and * registering mDNS/DNS-SD services using avahi-daemon. We recommend * using this API for software written in any language other than * C (e.g. Python). * \li avahi-client: a simplifying C wrapper around the D-Bus API. We * recommend using this API in C or C++ progams. The D-Bus internals * are hidden completely. * \li avahi-gobject: an object-oriented C wrapper based on * GLib's GObject. We recommd using this API for GNOME/Gtk programs. * * All three APIs are very similar, however avahi-core is the most powerful. * * In addition to the three APIs described above Avahi supports two * compatibility libraries: * * \li avahi-compat-libdns_sd: the original Bonjour API as documented * in the header file "dns_sd.h" by Apple Computer, Inc. * * \li avahi-compat-howl: the HOWL API as released with HOWL 0.9.8 by * Porchdog Software. * * Please note that these compatibility layers are incomplete and * generally a waste of resources. We strongly encourage everyone to * use our native APIs for newly written programs and to port older * programs to avahi-client! * * The native APIs (avahi-client and avahi-core) can be integrated * into external event loops. We provide adapters for the following * event loop implementations: * * \li avahi-glib: The GLIB main loop as used by GTk+/GNOME * * \li avahi-qt: The Qt main loop as used by Qt/KDE * * Finally, we provide a high-level Gtk+ GUI dialog called * avahi-ui for user-friendly browsing for services. * * The doxygen-generated API documentation covers avahi-client * (including its auxiliary APIs), the event loop adapters and * avahi-ui. For the other APIs please consult the original * documentation (for the compatibility APIs) or the header files. * * Please note that the doxygen-generated API documentation of the * native Avahi API is not complete. A few definitions that are part * of the Avahi API have been removed from this documentation, either * because they are only relevant in a very few low-level applications * or because they are considered obsolete. Please consult the C header * files for all definitions that are part of the Avahi API. Please * note that these hidden definitions are considered part of the Avahi * API and will stay available in the API in the future. * * \section error_reporting Error Reporting * * Some notes on the Avahi error handling: * * - Error codes are negative integers and defined as AVAHI_ERR_xx * - If a function returns some kind of non-negative integer value on * success, a failure is indicated by returning the error code * directly. * - If a function returns a pointer of some kind on success, a * failure is indicated by returning NULL * - The last error number may be retrieved by calling * avahi_client_errno() * - Just like the libc errno variable the Avahi errno is NOT reset to * AVAHI_OK if a function call succeeds. * - You may convert a numeric error code into a human readable string * using avahi_strerror() * - The constructor function avahi_client_new() returns the error * code in a call-by-reference argument * * \section event_loop Event Loop Abstraction * * Avahi uses a simple event loop abstraction layer. A table AvahiPoll * which contains function pointers for user defined timeout and I/O * condition event source implementations needs to be passed to * avahi_client_new(). An adapter for this abstraction layer is * available for the GLib main loop in the object AvahiGLibPoll. A * simple stand-alone implementation is available under the name * AvahiSimplePoll. An adpater for the Qt main loop is available from * avahi_qt_poll_get(). * * \section good_publish How to Register Services * * - Subscribe to server state changes. Pass a callback function * pointer to avahi_client_new(). It will be called * whenever the server state changes. * - Only register your services when the server is in state * AVAHI_SERVER_RUNNING. If you register your services in other server * states they might not be accessible since the local host name might not necessarily * be established. * - Remove your services when the server enters * AVAHI_SERVER_COLLISION or AVAHI_SERVER_REGISTERING state. Your * services may not be reachable anymore since the local host name is * no longer established or is currently in the process of being * established. * - When registering services, use the following algorithm: * - Create a new entry group (i.e. avahi_entry_group_new()) * - Add your service(s)/additional RRs/subtypes (e.g. avahi_entry_group_add_service()) * - Commit the entry group (i.e. avahi_entry_group_commit()) * - Subscribe to entry group state changes. * - If the entry group enters AVAHI_ENTRY_GROUP_COLLISION state the * services of the entry group are automatically removed from the * server. You may immediately add your services back to the entry * group (but with new names, perhaps using * avahi_alternative_service_name()) and commit again. Please do not * free the entry group and create a new one. This would inhibit some * traffic limiting algorithms in mDNS. * - When you need to modify your services (i.e. change the TXT data * or the port number), use the AVAHI_PUBLISH_UPDATE flag. Please do * not free the entry group and create a new one. This would inhibit * some traffic limiting algorithms in mDNS. When changing just the * TXT data avahi_entry_group_update_txt() is a shortcut for * AVAHI_PUBLISH_UPDATE. Please note that you cannot use * AVAHI_PUBLISH_UPDATE when changing the service name! Renaming a * DNS-SD service is identical to deleting and creating a new one, and * that's exactly what you should do in that case. First call * avahi_entry_group_reset() to remove it and then read it normally. * * \section good_browse How to Browse for Services * * - For normal applications you need to call avahi_service_browser_new() * for the service type you want to browse for. Use * avahi_service_resolver_new() to acquire service data for a service * name. * - You can use avahi_domain_browser_new() to get a list of announced * browsing domains. Please note that not all domains whith services * on the LAN are mandatorily announced. * - There is no need to subscribe to server state changes. * * \section daemon_dies How to Write a Client That Can Deal with Daemon Restarts * * With Avahi it is possible to write client applications that can * deal with Avahi daemon restarts. To accomplish that make sure to * pass AVAHI_CLIENT_NO_FAIL to avahi_client_new()'s flags * parameter. That way avahi_client_new() will succeed even when the * daemon is not running. In that case the object will enter * AVAHI_CLIENT_CONNECTING state. As soon as the daemon becomes * available the object will enter one of the AVAHI_CLIENT_S_xxx * states. Make sure to not create browsers or entry groups before the * client object has entered one of those states. As usual you will be * informed about state changes with the callback function supplied to * avahi_client_new(). If the client is forced to disconnect from the * server it will enter AVAHI_CLIENT_FAILURE state with * avahi_client_errno() == AVAHI_ERR_DISCONNECTED. Free the * AvahiClient object in that case (and all its associated objects * such as entry groups and browser objects prior to that) and * reconnect to the server anew - again with passing * AVAHI_CLIENT_NO_FAIL to avahi_client_new(). * * We encourage implementing this in all software where service * discovery is not an integral part of application. e.g. use it in * all kinds of background daemons, but not necessarily in software * like iChat compatible IM software. * * For now AVAHI_CLIENT_NO_FAIL cannot deal with D-Bus daemon restarts. * * \section domains How to Deal Properly with Browsing Domains * * Due to the introduction of wide-area DNS-SD the correct handling of * domains becomes more important for Avahi enabled applications. All * applications that offer the user a list of services discovered with * Avahi should offer some kind of editable drop down box where the * user can either enter his own domain or select one of those offered * by AvahiDomainBrowser. The default domain to browse should be the * one returned by avahi_client_get_domain_name(). The list of domains * returned by AvahiDomainBrowser is assembled by the browsing domains * configured in the daemon's configuration file, the domains * announced inside the default domain, the domains set with the * environment variable $AVAHI_BROWSE_DOMAINS (colon-seperated) on the * client side and the domains set in the XDG configuration file * ~/.config/avahi/browse-domains on the client side (seperated by * newlines). File managers offering some kind of "Network * Neighborhood" folder should show the entries of the default domain * right inside that and offer subfolders for the browsing domains * returned by AvahiDomainBrowser. */ AVAHI_C_DECL_BEGIN /** @{ \name States */ /** States of a server object */ typedef enum { AVAHI_SERVER_INVALID, /**< Invalid state (initial) */ AVAHI_SERVER_REGISTERING, /**< Host RRs are being registered */ AVAHI_SERVER_RUNNING, /**< All host RRs have been established */ AVAHI_SERVER_COLLISION, /**< There is a collision with a host RR. All host RRs have been withdrawn, the user should set a new host name via avahi_server_set_host_name() */ AVAHI_SERVER_FAILURE /**< Some fatal failure happened, the server is unable to proceed */ } AvahiServerState; /** States of an entry group object */ typedef enum { AVAHI_ENTRY_GROUP_UNCOMMITED, /**< The group has not yet been commited, the user must still call avahi_entry_group_commit() */ AVAHI_ENTRY_GROUP_REGISTERING, /**< The entries of the group are currently being registered */ AVAHI_ENTRY_GROUP_ESTABLISHED, /**< The entries have successfully been established */ AVAHI_ENTRY_GROUP_COLLISION, /**< A name collision for one of the entries in the group has been detected, the entries have been withdrawn */ AVAHI_ENTRY_GROUP_FAILURE /**< Some kind of failure happened, the entries have been withdrawn */ } AvahiEntryGroupState; /** @} */ /** @{ \name Flags */ /** Some flags for publishing functions */ typedef enum { AVAHI_PUBLISH_UNIQUE = 1, /**< For raw records: The RRset is intended to be unique */ AVAHI_PUBLISH_NO_PROBE = 2, /**< For raw records: Though the RRset is intended to be unique no probes shall be sent */ AVAHI_PUBLISH_NO_ANNOUNCE = 4, /**< For raw records: Do not announce this RR to other hosts */ AVAHI_PUBLISH_ALLOW_MULTIPLE = 8, /**< For raw records: Allow multiple local records of this type, even if they are intended to be unique */ /** \cond fulldocs */ AVAHI_PUBLISH_NO_REVERSE = 16, /**< For address records: don't create a reverse (PTR) entry */ AVAHI_PUBLISH_NO_COOKIE = 32, /**< For service records: do not implicitly add the local service cookie to TXT data */ /** \endcond */ AVAHI_PUBLISH_UPDATE = 64, /**< Update existing records instead of adding new ones */ /** \cond fulldocs */ AVAHI_PUBLISH_USE_WIDE_AREA = 128, /**< Register the record using wide area DNS (i.e. unicast DNS update) */ AVAHI_PUBLISH_USE_MULTICAST = 256 /**< Register the record using multicast DNS */ /** \endcond */ } AvahiPublishFlags; /** Some flags for lookup functions */ typedef enum { /** \cond fulldocs */ AVAHI_LOOKUP_USE_WIDE_AREA = 1, /**< Force lookup via wide area DNS */ AVAHI_LOOKUP_USE_MULTICAST = 2, /**< Force lookup via multicast DNS */ /** \endcond */ AVAHI_LOOKUP_NO_TXT = 4, /**< When doing service resolving, don't lookup TXT record */ AVAHI_LOOKUP_NO_ADDRESS = 8 /**< When doing service resolving, don't lookup A/AAAA record */ } AvahiLookupFlags; /** Some flags for lookup callback functions */ typedef enum { AVAHI_LOOKUP_RESULT_CACHED = 1, /**< This response originates from the cache */ AVAHI_LOOKUP_RESULT_WIDE_AREA = 2, /**< This response originates from wide area DNS */ AVAHI_LOOKUP_RESULT_MULTICAST = 4, /**< This response originates from multicast DNS */ AVAHI_LOOKUP_RESULT_LOCAL = 8, /**< This record/service resides on and was announced by the local host. Only available in service and record browsers and only on AVAHI_BROWSER_NEW. */ AVAHI_LOOKUP_RESULT_OUR_OWN = 16, /**< This service belongs to the same local client as the browser object. Only available in avahi-client, and only for service browsers and only on AVAHI_BROWSER_NEW. */ AVAHI_LOOKUP_RESULT_STATIC = 32 /**< The returned data has been defined statically by some configuration option */ } AvahiLookupResultFlags; /** @} */ /** @{ \name Events */ /** Type of callback event when browsing */ typedef enum { AVAHI_BROWSER_NEW, /**< The object is new on the network */ AVAHI_BROWSER_REMOVE, /**< The object has been removed from the network */ AVAHI_BROWSER_CACHE_EXHAUSTED, /**< One-time event, to notify the user that all entries from the caches have been sent */ AVAHI_BROWSER_ALL_FOR_NOW, /**< One-time event, to notify the user that more records will probably not show up in the near future, i.e. all cache entries have been read and all static servers been queried */ AVAHI_BROWSER_FAILURE /**< Browsing failed due to some reason which can be retrieved using avahi_server_errno()/avahi_client_errno() */ } AvahiBrowserEvent; /** Type of callback event when resolving */ typedef enum { AVAHI_RESOLVER_FOUND, /**< RR found, resolving successful */ AVAHI_RESOLVER_FAILURE /**< Resolving failed due to some reason which can be retrieved using avahi_server_errno()/avahi_client_errno() */ } AvahiResolverEvent; /** @} */ /** @{ \name Other definitions */ /** The type of domain to browse for */ typedef enum { AVAHI_DOMAIN_BROWSER_BROWSE, /**< Browse for a list of available browsing domains */ AVAHI_DOMAIN_BROWSER_BROWSE_DEFAULT, /**< Browse for the default browsing domain */ AVAHI_DOMAIN_BROWSER_REGISTER, /**< Browse for a list of available registering domains */ AVAHI_DOMAIN_BROWSER_REGISTER_DEFAULT, /**< Browse for the default registering domain */ AVAHI_DOMAIN_BROWSER_BROWSE_LEGACY, /**< Legacy browse domain - see DNS-SD spec for more information */ AVAHI_DOMAIN_BROWSER_MAX } AvahiDomainBrowserType; /** @} */ /** \cond fulldocs */ /** For every service a special TXT item is implicitly added, which * contains a random cookie which is private to the local daemon. This * can be used by clients to determine if two services on two * different subnets are effectively the same. */ #define AVAHI_SERVICE_COOKIE "org.freedesktop.Avahi.cookie" /** In invalid cookie as special value */ #define AVAHI_SERVICE_COOKIE_INVALID (0) /** \endcond fulldocs */ /** @{ \name DNS RR definitions */ /** DNS record types, see RFC 1035 */ enum { AVAHI_DNS_TYPE_A = 0x01, AVAHI_DNS_TYPE_NS = 0x02, AVAHI_DNS_TYPE_CNAME = 0x05, AVAHI_DNS_TYPE_SOA = 0x06, AVAHI_DNS_TYPE_PTR = 0x0C, AVAHI_DNS_TYPE_HINFO = 0x0D, AVAHI_DNS_TYPE_MX = 0x0F, AVAHI_DNS_TYPE_TXT = 0x10, AVAHI_DNS_TYPE_AAAA = 0x1C, AVAHI_DNS_TYPE_SRV = 0x21 }; /** DNS record classes, see RFC 1035 */ enum { AVAHI_DNS_CLASS_IN = 0x01 /**< Probably the only class we will ever use */ }; /** @} */ /** The default TTL for RRs which contain a host name of some kind. */ #define AVAHI_DEFAULT_TTL_HOST_NAME (120) /** The default TTL for all other records. */ #define AVAHI_DEFAULT_TTL (75*60) AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/alternative.h0000644000000000000000000000013213130651643017246 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.059988862 avahi-0.7/avahi-common/alternative.h0000644000175000017500000000310713130651643020656 0ustar00lathiatlathiat00000000000000#ifndef fooalternativehfoo #define fooalternativehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file alternative.h Functions to find alternative names for hosts and services in the case of name collision */ #include AVAHI_C_DECL_BEGIN /** Find an alternative for the specified host name. If called with an * original host name, "-2" is appended, afterwards the number is * increased on each call. (i.e. "foo" becomes "foo-2" becomes "foo-3" * and so on.) avahi_free() the result. */ char *avahi_alternative_host_name(const char *s); /** Find an alternative for the specified service name. If called with * an original service name, " #2" is appended. Afterwards the number * is increased on each call (i.e. "foo" becomes "foo #2" becomes "foo * #3" and so on.) avahi_free() the result. */ char *avahi_alternative_service_name(const char *s); AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/error.c0000644000000000000000000000013213130651643016054 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.071988592 avahi-0.7/avahi-common/error.c0000644000175000017500000000561613130651643017473 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include "error.h" #include "i18n.h" const char *avahi_strerror(int error) { const char * const msg[- AVAHI_ERR_MAX] = { N_("OK"), N_("Operation failed"), N_("Bad state"), N_("Invalid host name"), N_("Invalid domain name"), N_("No suitable network protocol available"), N_("Invalid DNS TTL"), N_("Resource record key is pattern"), N_("Local name collision"), N_("Invalid record"), N_("Invalid service name"), N_("Invalid service type"), N_("Invalid port number"), N_("Invalid record key"), N_("Invalid address"), N_("Timeout reached"), N_("Too many clients"), N_("Too many objects"), N_("Too many entries"), N_("OS Error"), N_("Access denied"), N_("Invalid operation"), N_("An unexpected D-Bus error occurred"), N_("Daemon connection failed"), N_("Memory exhausted"), N_("The object passed in was not valid"), N_("Daemon not running"), N_("Invalid interface index"), N_("Invalid protocol specification"), N_("Invalid flags"), N_("Not found"), N_("Invalid configuration"), N_("Version mismatch"), N_("Invalid service subtype"), N_("Invalid packet"), N_("Invalid DNS return code"), N_("DNS failure: FORMERR"), N_("DNS failure: SERVFAIL"), N_("DNS failure: NXDOMAIN"), N_("DNS failure: NOTIMP"), N_("DNS failure: REFUSED"), N_("DNS failure: YXDOMAIN"), N_("DNS failure: YXRRSET"), N_("DNS failure: NXRRSET"), N_("DNS failure: NOTAUTH"), N_("DNS failure: NOTZONE"), N_("Invalid RDATA"), N_("Invalid DNS type"), N_("Invalid DNS class"), N_("Not supported"), N_("Not permitted"), N_("Invalid argument"), N_("Is empty"), N_("The requested operation is invalid because redundant") }; avahi_init_i18n(); if (-error < 0 || -error >= -AVAHI_ERR_MAX) return _("Invalid Error Code"); return _(msg[-error]); } avahi-0.7/avahi-common/PaxHeaders.10109/timeval.h0000644000000000000000000000013213130651643016371 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.063988773 avahi-0.7/avahi-common/timeval.h0000644000175000017500000000371213130651643020003 0ustar00lathiatlathiat00000000000000#ifndef footimevalhfoo #define footimevalhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file timeval.h Functions to facilitate timeval handling */ #include #include #include AVAHI_C_DECL_BEGIN /** A numeric data type for storing microsecond values. (signed 64bit integer) */ typedef int64_t AvahiUsec; /** Compare two timeval structures and return a negative value when a < b, 0 when a == b and a positive value otherwise */ int avahi_timeval_compare(const struct timeval *a, const struct timeval *b); /** Calculate the difference between two timeval structures as microsecond value */ AvahiUsec avahi_timeval_diff(const struct timeval *a, const struct timeval *b); /** Add a number of microseconds to the specified timeval structure and return it. *a is modified. */ struct timeval* avahi_timeval_add(struct timeval *a, AvahiUsec usec); /** Return the difference between the current time and *a. Positive if *a was earlier */ AvahiUsec avahi_age(const struct timeval *a); /** Fill *tv with the current time plus "ms" milliseconds plus an * extra jitter of "j" milliseconds. Pass 0 for j if you don't want * the jitter */ struct timeval *avahi_elapse_time(struct timeval *tv, unsigned ms, unsigned j); AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/domain.c0000644000000000000000000000013213130651643016172 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.071988592 avahi-0.7/avahi-common/domain.c0000644000175000017500000003152113130651643017603 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include "domain.h" #include "malloc.h" #include "error.h" #include "address.h" #include "utf8.h" /* Read the first label from string *name, unescape "\" and write it to dest */ char *avahi_unescape_label(const char **name, char *dest, size_t size) { unsigned i = 0; char *d; assert(dest); assert(size > 0); assert(name); d = dest; for (;;) { if (i >= size) return NULL; if (**name == '.') { (*name)++; break; } if (**name == 0) break; if (**name == '\\') { /* Escaped character */ (*name) ++; if (**name == 0) /* Ending NUL */ return NULL; else if (**name == '\\' || **name == '.') { /* Escaped backslash or dot */ *(d++) = *((*name) ++); i++; } else if (isdigit(**name)) { int n; /* Escaped literal ASCII character */ if (!isdigit(*(*name+1)) || !isdigit(*(*name+2))) return NULL; n = ((uint8_t) (**name - '0') * 100) + ((uint8_t) (*(*name+1) - '0') * 10) + ((uint8_t) (*(*name +2) - '0')); if (n > 255 || n == 0) return NULL; *(d++) = (char) n; i++; (*name) += 3; } else return NULL; } else { /* Normal character */ *(d++) = *((*name) ++); i++; } } assert(i < size); *d = 0; if (!avahi_utf8_valid(dest)) return NULL; return dest; } /* Escape "\" and ".", append \0 */ char *avahi_escape_label(const char* src, size_t src_length, char **ret_name, size_t *ret_size) { char *r; assert(src); assert(ret_name); assert(*ret_name); assert(ret_size); assert(*ret_size > 0); r = *ret_name; while (src_length > 0) { if (*src == '.' || *src == '\\') { /* Dot or backslash */ if (*ret_size < 3) return NULL; *((*ret_name) ++) = '\\'; *((*ret_name) ++) = *src; (*ret_size) -= 2; } else if ( *src == '_' || *src == '-' || (*src >= '0' && *src <= '9') || (*src >= 'a' && *src <= 'z') || (*src >= 'A' && *src <= 'Z')) { /* Proper character */ if (*ret_size < 2) return NULL; *((*ret_name)++) = *src; (*ret_size) --; } else { /* Everything else */ if (*ret_size < 5) return NULL; *((*ret_name) ++) = '\\'; *((*ret_name) ++) = '0' + (char) ((uint8_t) *src / 100); *((*ret_name) ++) = '0' + (char) (((uint8_t) *src / 10) % 10); *((*ret_name) ++) = '0' + (char) ((uint8_t) *src % 10); (*ret_size) -= 4; } src_length --; src++; } **ret_name = 0; return r; } char *avahi_normalize_name(const char *s, char *ret_s, size_t size) { int empty = 1; char *r; assert(s); assert(ret_s); assert(size > 0); r = ret_s; *ret_s = 0; while (*s) { char label[AVAHI_LABEL_MAX]; if (!(avahi_unescape_label(&s, label, sizeof(label)))) return NULL; if (label[0] == 0) { if (*s == 0 && empty) return ret_s; return NULL; } if (!empty) { if (size < 1) return NULL; *(r++) = '.'; size--; } else empty = 0; avahi_escape_label(label, strlen(label), &r, &size); } return ret_s; } char *avahi_normalize_name_strdup(const char *s) { char t[AVAHI_DOMAIN_NAME_MAX]; assert(s); if (!(avahi_normalize_name(s, t, sizeof(t)))) return NULL; return avahi_strdup(t); } int avahi_domain_equal(const char *a, const char *b) { assert(a); assert(b); if (a == b) return 1; for (;;) { char ca[AVAHI_LABEL_MAX], cb[AVAHI_LABEL_MAX], *r; r = avahi_unescape_label(&a, ca, sizeof(ca)); assert(r); r = avahi_unescape_label(&b, cb, sizeof(cb)); assert(r); if (strcasecmp(ca, cb)) return 0; if (!*a && !*b) return 1; } return 1; } int avahi_is_valid_service_type_generic(const char *t) { assert(t); if (strlen(t) >= AVAHI_DOMAIN_NAME_MAX || !*t) return 0; do { char label[AVAHI_LABEL_MAX]; if (!(avahi_unescape_label(&t, label, sizeof(label)))) return 0; if (strlen(label) <= 2 || label[0] != '_') return 0; } while (*t); return 1; } int avahi_is_valid_service_type_strict(const char *t) { char label[AVAHI_LABEL_MAX]; assert(t); if (strlen(t) >= AVAHI_DOMAIN_NAME_MAX || !*t) return 0; /* Application name */ if (!(avahi_unescape_label(&t, label, sizeof(label)))) return 0; if (strlen(label) <= 2 || label[0] != '_') return 0; if (!*t) return 0; /* _tcp or _udp boilerplate */ if (!(avahi_unescape_label(&t, label, sizeof(label)))) return 0; if (strcasecmp(label, "_tcp") && strcasecmp(label, "_udp")) return 0; if (*t) return 0; return 1; } const char *avahi_get_type_from_subtype(const char *t) { char label[AVAHI_LABEL_MAX]; const char *ret; assert(t); if (strlen(t) >= AVAHI_DOMAIN_NAME_MAX || !*t) return NULL; /* Subtype name */ if (!(avahi_unescape_label(&t, label, sizeof(label)))) return NULL; if (strlen(label) <= 2 || label[0] != '_') return NULL; if (!*t) return NULL; /* String "_sub" */ if (!(avahi_unescape_label(&t, label, sizeof(label)))) return NULL; if (strcasecmp(label, "_sub")) return NULL; if (!*t) return NULL; ret = t; /* Application name */ if (!(avahi_unescape_label(&t, label, sizeof(label)))) return NULL; if (strlen(label) <= 2 || label[0] != '_') return NULL; if (!*t) return NULL; /* _tcp or _udp boilerplate */ if (!(avahi_unescape_label(&t, label, sizeof(label)))) return NULL; if (strcasecmp(label, "_tcp") && strcasecmp(label, "_udp")) return NULL; if (*t) return NULL; return ret; } int avahi_is_valid_service_subtype(const char *t) { assert(t); return !!avahi_get_type_from_subtype(t); } int avahi_is_valid_domain_name(const char *t) { int is_first = 1; assert(t); if (strlen(t) >= AVAHI_DOMAIN_NAME_MAX) return 0; do { char label[AVAHI_LABEL_MAX]; if (!(avahi_unescape_label(&t, label, sizeof(label)))) return 0; /* Explicitly allow the root domain name */ if (is_first && label[0] == 0 && *t == 0) return 1; is_first = 0; if (label[0] == 0) return 0; } while (*t); return 1; } int avahi_is_valid_service_name(const char *t) { assert(t); if (strlen(t) >= AVAHI_LABEL_MAX || !*t) return 0; return 1; } int avahi_is_valid_host_name(const char *t) { char label[AVAHI_LABEL_MAX]; assert(t); if (strlen(t) >= AVAHI_DOMAIN_NAME_MAX || !*t) return 0; if (!(avahi_unescape_label(&t, label, sizeof(label)))) return 0; if (strlen(label) < 1) return 0; if (*t) return 0; return 1; } unsigned avahi_domain_hash(const char *s) { unsigned hash = 0; while (*s) { char c[AVAHI_LABEL_MAX], *p, *r; r = avahi_unescape_label(&s, c, sizeof(c)); assert(r); for (p = c; *p; p++) hash = 31 * hash + tolower(*p); } return hash; } int avahi_service_name_join(char *p, size_t size, const char *name, const char *type, const char *domain) { char escaped_name[AVAHI_LABEL_MAX*4]; char normalized_type[AVAHI_DOMAIN_NAME_MAX]; char normalized_domain[AVAHI_DOMAIN_NAME_MAX]; assert(p); /* Validity checks */ if ((name && !avahi_is_valid_service_name(name))) return AVAHI_ERR_INVALID_SERVICE_NAME; if (!avahi_is_valid_service_type_generic(type)) return AVAHI_ERR_INVALID_SERVICE_TYPE; if (!avahi_is_valid_domain_name(domain)) return AVAHI_ERR_INVALID_DOMAIN_NAME; /* Preparation */ if (name) { size_t l = sizeof(escaped_name); char *e = escaped_name, *r; r = avahi_escape_label(name, strlen(name), &e, &l); assert(r); } if (!(avahi_normalize_name(type, normalized_type, sizeof(normalized_type)))) return AVAHI_ERR_INVALID_SERVICE_TYPE; if (!(avahi_normalize_name(domain, normalized_domain, sizeof(normalized_domain)))) return AVAHI_ERR_INVALID_DOMAIN_NAME; /* Concatenation */ snprintf(p, size, "%s%s%s.%s", name ? escaped_name : "", name ? "." : "", normalized_type, normalized_domain); return AVAHI_OK; } #ifndef HAVE_STRLCPY static size_t strlcpy(char *dest, const char *src, size_t n) { assert(dest); assert(src); if (n > 0) { strncpy(dest, src, n-1); dest[n-1] = 0; } return strlen(src); } #endif int avahi_service_name_split(const char *p, char *name, size_t name_size, char *type, size_t type_size, char *domain, size_t domain_size) { enum { NAME, TYPE, DOMAIN } state; int type_empty = 1, domain_empty = 1; assert(p); assert(type); assert(type_size > 0); assert(domain); assert(domain_size > 0); if (name) { assert(name_size > 0); *name = 0; state = NAME; } else state = TYPE; *type = *domain = 0; while (*p) { char buf[64]; if (!(avahi_unescape_label(&p, buf, sizeof(buf)))) return -1; switch (state) { case NAME: strlcpy(name, buf, name_size); state = TYPE; break; case TYPE: if (buf[0] == '_') { if (!type_empty) { if (!type_size) return AVAHI_ERR_NO_MEMORY; *(type++) = '.'; type_size --; } else type_empty = 0; if (!(avahi_escape_label(buf, strlen(buf), &type, &type_size))) return AVAHI_ERR_NO_MEMORY; break; } state = DOMAIN; /* fall through */ case DOMAIN: if (!domain_empty) { if (!domain_size) return AVAHI_ERR_NO_MEMORY; *(domain++) = '.'; domain_size --; } else domain_empty = 0; if (!(avahi_escape_label(buf, strlen(buf), &domain, &domain_size))) return AVAHI_ERR_NO_MEMORY; break; } } return 0; } int avahi_is_valid_fqdn(const char *t) { char label[AVAHI_LABEL_MAX]; char normalized[AVAHI_DOMAIN_NAME_MAX]; const char *k = t; AvahiAddress a; assert(t); if (strlen(t) >= AVAHI_DOMAIN_NAME_MAX) return 0; if (!avahi_is_valid_domain_name(t)) return 0; /* Check if there are at least two labels*/ if (!(avahi_unescape_label(&k, label, sizeof(label)))) return 0; if (label[0] == 0 || !k) return 0; if (!(avahi_unescape_label(&k, label, sizeof(label)))) return 0; if (label[0] == 0 || !k) return 0; /* Make sure that the name is not an IP address */ if (!(avahi_normalize_name(t, normalized, sizeof(normalized)))) return 0; if (avahi_address_parse(normalized, AVAHI_PROTO_UNSPEC, &a)) return 0; return 1; } avahi-0.7/avahi-common/PaxHeaders.10109/alternative-test.c0000644000000000000000000000013213130651643020216 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.079988416 avahi-0.7/avahi-common/alternative-test.c0000644000175000017500000000432213130651643021626 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include "alternative.h" #include "malloc.h" #include "domain.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { const char* const test_strings[] = { "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXüüüüüüü", "gurke", "-", " #", "1", "#0", " #0", " #1", "#-1", " #-1", "-0", "--0", "-1", "--1", "-2", "gurke1", "gurke0", "gurke-2", "gurke #0", "gurke #1", "gurke #", "gurke#1", "gurke-", "gurke---", "gurke #", "gurke ###", NULL }; char *r = NULL; int i, j, k; for (k = 0; test_strings[k]; k++) { printf(">>>>>%s<<<<\n", test_strings[k]); for (j = 0; j < 2; j++) { for (i = 0; i <= 100; i++) { char *n; n = i == 0 ? avahi_strdup(test_strings[k]) : (j ? avahi_alternative_service_name(r) : avahi_alternative_host_name(r)); avahi_free(r); r = n; if (j) assert(avahi_is_valid_service_name(n)); else assert(avahi_is_valid_host_name(n)); printf("%s\n", r); } } } avahi_free(r); return 0; } avahi-0.7/avahi-common/PaxHeaders.10109/strlst-test.c0000644000000000000000000000013213130651643017233 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.079988416 avahi-0.7/avahi-common/strlst-test.c0000644000175000017500000000653213130651643020650 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "strlst.h" #include "malloc.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { char *t, *v; uint8_t data[1024]; AvahiStringList *a = NULL, *b, *p; size_t size, n; int r; a = avahi_string_list_new("prefix", "a", "b", NULL); a = avahi_string_list_add(a, "start"); a = avahi_string_list_add(a, "foo=99"); a = avahi_string_list_add(a, "bar"); a = avahi_string_list_add(a, ""); a = avahi_string_list_add(a, ""); a = avahi_string_list_add(a, "quux"); a = avahi_string_list_add(a, ""); a = avahi_string_list_add_arbitrary(a, (const uint8_t*) "null\0null", 9); a = avahi_string_list_add_printf(a, "seven=%i %c", 7, 'x'); a = avahi_string_list_add_pair(a, "blubb", "blaa"); a = avahi_string_list_add_pair(a, "uxknurz", NULL); a = avahi_string_list_add_pair_arbitrary(a, "uxknurz2", (const uint8_t*) "blafasel\0oerks", 14); a = avahi_string_list_add(a, "end"); t = avahi_string_list_to_string(a); printf("--%s--\n", t); avahi_free(t); n = avahi_string_list_serialize(a, NULL, 0); size = avahi_string_list_serialize(a, data, sizeof(data)); assert(size == n); printf("%zu\n", size); for (t = (char*) data, n = 0; n < size; n++, t++) { if (*t <= 32) printf("(%u)", *t); else printf("%c", *t); } printf("\n"); assert(avahi_string_list_parse(data, size, &b) == 0); printf("equal: %i\n", avahi_string_list_equal(a, b)); t = avahi_string_list_to_string(b); printf("--%s--\n", t); avahi_free(t); avahi_string_list_free(b); b = avahi_string_list_copy(a); assert(avahi_string_list_equal(a, b)); t = avahi_string_list_to_string(b); printf("--%s--\n", t); avahi_free(t); p = avahi_string_list_find(a, "seven"); assert(p); r = avahi_string_list_get_pair(p, &t, &v, NULL); assert(r >= 0); assert(t); assert(v); printf("<%s>=<%s>\n", t, v); avahi_free(t); avahi_free(v); p = avahi_string_list_find(a, "quux"); assert(p); r = avahi_string_list_get_pair(p, &t, &v, NULL); assert(r >= 0); assert(t); assert(!v); printf("<%s>=<%s>\n", t, v); avahi_free(t); avahi_free(v); avahi_string_list_free(a); avahi_string_list_free(b); n = avahi_string_list_serialize(NULL, NULL, 0); size = avahi_string_list_serialize(NULL, data, sizeof(data)); assert(size == 1); assert(size == n); assert(avahi_string_list_parse(data, size, &a) == 0); assert(!a); return 0; } avahi-0.7/avahi-common/PaxHeaders.10109/strlst.h0000644000000000000000000000013213130651643016263 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.055988952 avahi-0.7/avahi-common/strlst.h0000644000175000017500000001567113130651643017704 0ustar00lathiatlathiat00000000000000#ifndef footxtlisthfoo #define footxtlisthfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file strlst.h Implementation of a data type to store lists of strings */ #include #include #include #include #include AVAHI_C_DECL_BEGIN /** Linked list of strings that can contain any number of binary * characters, including NUL bytes. An empty list is created by * assigning a NULL to a pointer to AvahiStringList. The string list * is stored in reverse order, so that appending to the string list is * effectively a prepending to the linked list. This object is used * primarily for storing DNS TXT record data. */ typedef struct AvahiStringList { struct AvahiStringList *next; /**< Pointer to the next linked list element */ size_t size; /**< Size of text[] */ uint8_t text[1]; /**< Character data */ } AvahiStringList; /** @{ \name Construction and destruction */ /** Create a new string list by taking a variable list of NUL * terminated strings. The strings are copied using g_strdup(). The * argument list must be terminated by a NULL pointer. */ AvahiStringList *avahi_string_list_new(const char *txt, ...) AVAHI_GCC_SENTINEL; /** \cond fulldocs */ /** Same as avahi_string_list_new() but pass a va_list structure */ AvahiStringList *avahi_string_list_new_va(va_list va); /** \endcond */ /** Create a new string list from a string array. The strings are * copied using g_strdup(). length should contain the length of the * array, or -1 if the array is NULL terminated*/ AvahiStringList *avahi_string_list_new_from_array(const char **array, int length); /** Free a string list */ void avahi_string_list_free(AvahiStringList *l); /** @} */ /** @{ \name Adding strings */ /** Append a NUL terminated string to the specified string list. The * passed string is copied using g_strdup(). Returns the new list * start. */ AvahiStringList *avahi_string_list_add(AvahiStringList *l, const char *text); /** Append a new NUL terminated formatted string to the specified string list */ AvahiStringList *avahi_string_list_add_printf(AvahiStringList *l, const char *format, ...) AVAHI_GCC_PRINTF_ATTR23; /** \cond fulldocs */ /** Append a new NUL terminated formatted string to the specified string list */ AvahiStringList *avahi_string_list_add_vprintf(AvahiStringList *l, const char *format, va_list va); /** \endcond */ /** Append an arbitrary length byte string to the list. Returns the * new list start. */ AvahiStringList *avahi_string_list_add_arbitrary(AvahiStringList *l, const uint8_t *text, size_t size); /** Append a new entry to the string list. The string is not filled with data. The caller should fill in string data afterwards by writing it to l->text, where l is the pointer returned by this function. This function exists solely to optimize a few operations where otherwise superfluous string copying would be necessary. */ AvahiStringList*avahi_string_list_add_anonymous(AvahiStringList *l, size_t size); /** Same as avahi_string_list_add(), but takes a variable number of * NUL terminated strings. The argument list must be terminated by a * NULL pointer. Returns the new list start. */ AvahiStringList *avahi_string_list_add_many(AvahiStringList *r, ...) AVAHI_GCC_SENTINEL; /** \cond fulldocs */ /** Same as avahi_string_list_add_many(), but use a va_list * structure. Returns the new list start. */ AvahiStringList *avahi_string_list_add_many_va(AvahiStringList *r, va_list va); /** \endcond */ /** @} */ /** @{ \name String list operations */ /** Convert the string list object to a single character string, * seperated by spaces and enclosed in "". avahi_free() the result! This * function doesn't work well with strings that contain NUL bytes. */ char* avahi_string_list_to_string(AvahiStringList *l); /** \cond fulldocs */ /** Serialize the string list object in a way that is compatible with * the storing of DNS TXT records. Strings longer than 255 bytes are truncated. */ size_t avahi_string_list_serialize(AvahiStringList *l, void * data, size_t size); /** Inverse of avahi_string_list_serialize() */ int avahi_string_list_parse(const void *data, size_t size, AvahiStringList **ret); /** \endcond */ /** Compare to string lists */ int avahi_string_list_equal(const AvahiStringList *a, const AvahiStringList *b); /** Copy a string list */ AvahiStringList *avahi_string_list_copy(const AvahiStringList *l); /** Reverse the string list. */ AvahiStringList* avahi_string_list_reverse(AvahiStringList *l); /** Return the number of elements in the string list */ unsigned avahi_string_list_length(const AvahiStringList *l); /** @} */ /** @{ \name Accessing items */ /** Returns the next item in the string list */ AvahiStringList *avahi_string_list_get_next(AvahiStringList *l); /** Returns the text for the current item */ uint8_t *avahi_string_list_get_text(AvahiStringList *l); /** Returns the size of the current text */ size_t avahi_string_list_get_size(AvahiStringList *l); /** @} */ /** @{ \name DNS-SD TXT pair handling */ /** Find the string list entry for the given DNS-SD TXT key */ AvahiStringList *avahi_string_list_find(AvahiStringList *l, const char *key); /** Return the DNS-SD TXT key and value for the specified string list * item. If size is not NULL it will be filled with the length of * value. (for strings containing NUL bytes). If the entry doesn't * contain a value *value will be set to NULL. You need to * avahi_free() the strings returned in *key and *value. */ int avahi_string_list_get_pair(AvahiStringList *l, char **key, char **value, size_t *size); /** Add a new DNS-SD TXT key value pair to the string list. value may * be NULL in case you want to specify a key without a value */ AvahiStringList *avahi_string_list_add_pair(AvahiStringList *l, const char *key, const char *value); /** Same as avahi_string_list_add_pair() but allow strings containing NUL bytes in *value. */ AvahiStringList *avahi_string_list_add_pair_arbitrary(AvahiStringList *l, const char *key, const uint8_t *value, size_t size); /** @} */ /** \cond fulldocs */ /** Try to find a magic service cookie in the specified DNS-SD string * list. Or return AVAHI_SERVICE_COOKIE_INVALID if none is found. */ uint32_t avahi_string_list_get_service_cookie(AvahiStringList *l); /** \endcond */ AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/timeval.c0000644000000000000000000000013213130651643016364 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.071988592 avahi-0.7/avahi-common/timeval.c0000644000175000017500000000557413130651643020006 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "timeval.h" int avahi_timeval_compare(const struct timeval *a, const struct timeval *b) { assert(a); assert(b); if (a->tv_sec < b->tv_sec) return -1; if (a->tv_sec > b->tv_sec) return 1; if (a->tv_usec < b->tv_usec) return -1; if (a->tv_usec > b->tv_usec) return 1; return 0; } AvahiUsec avahi_timeval_diff(const struct timeval *a, const struct timeval *b) { assert(a); assert(b); if (avahi_timeval_compare(a, b) < 0) return - avahi_timeval_diff(b, a); return ((AvahiUsec) a->tv_sec - b->tv_sec)*1000000 + a->tv_usec - b->tv_usec; } struct timeval* avahi_timeval_add(struct timeval *a, AvahiUsec usec) { AvahiUsec u; assert(a); u = usec + a->tv_usec; if (u < 0) { a->tv_usec = (long) (1000000 + (u % 1000000)); a->tv_sec += (long) (-1 + (u / 1000000)); } else { a->tv_usec = (long) (u % 1000000); a->tv_sec += (long) (u / 1000000); } return a; } AvahiUsec avahi_age(const struct timeval *a) { struct timeval now; assert(a); gettimeofday(&now, NULL); return avahi_timeval_diff(&now, a); } struct timeval *avahi_elapse_time(struct timeval *tv, unsigned msec, unsigned jitter) { assert(tv); gettimeofday(tv, NULL); if (msec) avahi_timeval_add(tv, (AvahiUsec) msec*1000); if (jitter) { static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; static int last_rand; static time_t timestamp = 0; time_t now; int r; now = time(NULL); pthread_mutex_lock(&mutex); if (now >= timestamp + 10) { timestamp = now; last_rand = rand(); } r = last_rand; pthread_mutex_unlock(&mutex); /* We use the same jitter for 10 seconds. That way our * time events elapse in bursts which has the advantage that * packet data can be aggregated better */ avahi_timeval_add(tv, (AvahiUsec) (jitter*1000.0*r/(RAND_MAX+1.0))); } return tv; } avahi-0.7/avahi-common/PaxHeaders.10109/utf8-test.c0000644000000000000000000000013213130651643016566 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.079988416 avahi-0.7/avahi-common/utf8-test.c0000644000175000017500000000206613130651643020201 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "utf8.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { assert(avahi_utf8_valid("hallo")); assert(!avahi_utf8_valid("üxknürz")); assert(avahi_utf8_valid("üxknürz")); return 0; } avahi-0.7/avahi-common/PaxHeaders.10109/watch.h0000644000000000000000000000013213130651643016036 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.063988773 avahi-0.7/avahi-common/watch.h0000644000175000017500000000724713130651643017457 0ustar00lathiatlathiat00000000000000#ifndef foowatchhfoo #define foowatchhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file watch.h Simplistic main loop abstraction */ #include #include #include AVAHI_C_DECL_BEGIN /** An I/O watch object */ typedef struct AvahiWatch AvahiWatch; /** A timeout watch object */ typedef struct AvahiTimeout AvahiTimeout; /** An event polling abstraction object */ typedef struct AvahiPoll AvahiPoll; /** Type of watch events */ typedef enum { AVAHI_WATCH_IN = POLLIN, /**< Input event */ AVAHI_WATCH_OUT = POLLOUT, /**< Output event */ AVAHI_WATCH_ERR = POLLERR, /**< Error event */ AVAHI_WATCH_HUP = POLLHUP /**< Hangup event */ } AvahiWatchEvent; /** Called whenever an I/O event happens on an I/O watch */ typedef void (*AvahiWatchCallback)(AvahiWatch *w, int fd, AvahiWatchEvent event, void *userdata); /** Called when the timeout is reached */ typedef void (*AvahiTimeoutCallback)(AvahiTimeout *t, void *userdata); /** Defines an abstracted event polling API. This may be used to connect Avahi to other main loops. This is loosely based on Unix poll(2). A consumer will call watch_new() for all file descriptors it wants to listen for events on. In addition he can call timeout_new() to define time based events .*/ struct AvahiPoll { /** Some abstract user data usable by the provider of the API */ void* userdata; /** Create a new watch for the specified file descriptor and for * the specified events. The API will call the callback function * whenever any of the events happens. */ AvahiWatch* (*watch_new)(const AvahiPoll *api, int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void *userdata); /** Update the events to wait for. It is safe to call this function from an AvahiWatchCallback */ void (*watch_update)(AvahiWatch *w, AvahiWatchEvent event); /** Return the events that happened. It is safe to call this function from an AvahiWatchCallback */ AvahiWatchEvent (*watch_get_events)(AvahiWatch *w); /** Free a watch. It is safe to call this function from an AvahiWatchCallback */ void (*watch_free)(AvahiWatch *w); /** Set a wakeup time for the polling loop. The API will call the callback function when the absolute time *tv is reached. If tv is NULL, the timeout is disabled. After the timeout expired the callback function will be called and the timeout is disabled. You can reenable it by calling timeout_update() */ AvahiTimeout* (*timeout_new)(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata); /** Update the absolute expiration time for a timeout, If tv is * NULL, the timeout is disabled. It is safe to call this function from an AvahiTimeoutCallback */ void (*timeout_update)(AvahiTimeout *, const struct timeval *tv); /** Free a timeout. It is safe to call this function from an AvahiTimeoutCallback */ void (*timeout_free)(AvahiTimeout *t); }; AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/gccmacro.h0000644000000000000000000000013213130651643016506 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.063988773 avahi-0.7/avahi-common/gccmacro.h0000644000175000017500000000426213130651643020121 0ustar00lathiatlathiat00000000000000#ifndef foogccmacrohfoo #define foogccmacrohfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file gccmacro.h Defines some macros for GCC extensions */ #include AVAHI_C_DECL_BEGIN #if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 3) #define AVAHI_GCC_ALLOC_SIZE(x) __attribute__ ((__alloc_size__(x))) #define AVAHI_GCC_ALLOC_SIZE2(x,y) __attribute__ ((__alloc_size__(x,y))) #else /** Macro for usage of GCC's alloc_size attribute */ #define AVAHI_GCC_ALLOC_SIZE(x) #define AVAHI_GCC_ALLOC_SIZE2(x,y) #endif #if defined(__GNUC__) && (__GNUC__ >= 4) #define AVAHI_GCC_SENTINEL __attribute__ ((sentinel)) #else /** Macro for usage of GCC's sentinel compilation warnings */ #define AVAHI_GCC_SENTINEL #endif #ifdef __GNUC__ #define AVAHI_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b))) #else /** Macro for usage of GCC's printf compilation warnings */ #define AVAHI_GCC_PRINTF_ATTR(a,b) #endif /** Same as AVAHI_GCC_PRINTF_ATTR but hard coded to arguments 1 and 2 */ #define AVAHI_GCC_PRINTF_ATTR12 AVAHI_GCC_PRINTF_ATTR(1,2) /** Same as AVAHI_GCC_PRINTF_ATTR but hard coded to arguments 2 and 3 */ #define AVAHI_GCC_PRINTF_ATTR23 AVAHI_GCC_PRINTF_ATTR(2,3) #ifdef __GNUC__ #define AVAHI_GCC_NORETURN __attribute__((noreturn)) #else /** Macro for no-return functions */ #define AVAHI_GCC_NORETURN #endif #ifdef __GNUC__ #define AVAHI_GCC_UNUSED __attribute__ ((unused)) #else /** Macro for not used parameter */ #define AVAHI_GCC_UNUSED #endif AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/rlist.c0000644000000000000000000000013213130651643016060 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.075988506 avahi-0.7/avahi-common/rlist.c0000644000175000017500000000300113130651643017461 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include "rlist.h" #include "malloc.h" AvahiRList* avahi_rlist_prepend(AvahiRList *r, void *data) { AvahiRList *n; if (!(n = avahi_new(AvahiRList, 1))) return NULL; n->data = data; AVAHI_LLIST_PREPEND(AvahiRList, rlist, r, n); return r; } AvahiRList* avahi_rlist_remove(AvahiRList *r, void *data) { AvahiRList *n; for (n = r; n; n = n->rlist_next) if (n->data == data) { AVAHI_LLIST_REMOVE(AvahiRList, rlist, r, n); avahi_free(n); break; } return r; } AvahiRList* avahi_rlist_remove_by_link(AvahiRList *r, AvahiRList *n) { assert(n); AVAHI_LLIST_REMOVE(AvahiRList, rlist, r, n); avahi_free(n); return r; } avahi-0.7/avahi-common/PaxHeaders.10109/strlst.c0000644000000000000000000000013213130651643016256 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.071988592 avahi-0.7/avahi-common/strlst.c0000644000175000017500000002467213130651643017700 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "strlst.h" #include "malloc.h" #include "defs.h" AvahiStringList*avahi_string_list_add_anonymous(AvahiStringList *l, size_t size) { AvahiStringList *n; if (!(n = avahi_malloc(sizeof(AvahiStringList) + size))) return NULL; n->next = l; n->size = size; /* NUL terminate strings, just to make sure */ n->text[size] = 0; return n; } AvahiStringList *avahi_string_list_add_arbitrary(AvahiStringList *l, const uint8_t*text, size_t size) { AvahiStringList *n; assert(size == 0 || text); if (!(n = avahi_string_list_add_anonymous(l, size))) return NULL; if (size > 0) memcpy(n->text, text, size); return n; } AvahiStringList *avahi_string_list_add(AvahiStringList *l, const char *text) { assert(text); return avahi_string_list_add_arbitrary(l, (const uint8_t*) text, strlen(text)); } int avahi_string_list_parse(const void* data, size_t size, AvahiStringList **ret) { const uint8_t *c; AvahiStringList *r = NULL; assert(data); assert(ret); c = data; while (size > 0) { size_t k; k = *(c++); size--; if (k > size) goto fail; /* Overflow */ if (k > 0) { /* Ignore empty strings */ AvahiStringList *n; if (!(n = avahi_string_list_add_arbitrary(r, c, k))) goto fail; /* OOM */ r = n; } c += k; size -= k; } *ret = r; return 0; fail: avahi_string_list_free(r); return -1; } void avahi_string_list_free(AvahiStringList *l) { AvahiStringList *n; while (l) { n = l->next; avahi_free(l); l = n; } } AvahiStringList* avahi_string_list_reverse(AvahiStringList *l) { AvahiStringList *r = NULL, *n; while (l) { n = l->next; l->next = r; r = l; l = n; } return r; } char* avahi_string_list_to_string(AvahiStringList *l) { AvahiStringList *n; size_t s = 0; char *t, *e; for (n = l; n; n = n->next) { if (n != l) s ++; s += n->size+2; } if (!(t = e = avahi_new(char, s+1))) return NULL; l = avahi_string_list_reverse(l); for (n = l; n; n = n->next) { if (n != l) *(e++) = ' '; *(e++) = '"'; strncpy(e, (char*) n->text, n->size); e[n->size] = 0; e = strchr(e, 0); *(e++) = '"'; assert(e); } l = avahi_string_list_reverse(l); *e = 0; return t; } size_t avahi_string_list_serialize(AvahiStringList *l, void *data, size_t size) { size_t used = 0; if (data) { AvahiStringList *n; uint8_t *c; l = avahi_string_list_reverse(l); c = data; for (n = l; size > 1 && n; n = n->next) { size_t k; if ((k = n->size) == 0) /* Skip empty strings */ continue; if (k > 255) /* Truncate strings at 255 characters */ k = 255; if (k > size-1) /* Make sure this string fits in */ k = size-1; *(c++) = (uint8_t) k; memcpy(c, n->text, k); c += k; used += 1 + k; size -= 1 + k; } l = avahi_string_list_reverse(l); if (used == 0 && size > 0) { /* Empty lists are treated specially. To comply with * section 6.1 of the DNS-SD spec, we return a single * empty string (i.e. a NUL byte)*/ *(uint8_t*) data = 0; used = 1; } } else { AvahiStringList *n; for (n = l; n; n = n->next) { size_t k; if ((k = n->size) == 0) continue; if (k > 255) k = 255; used += 1+k; } if (used == 0) used = 1; } return used; } int avahi_string_list_equal(const AvahiStringList *a, const AvahiStringList *b) { for (;;) { if (!a && !b) return 1; if (!a || !b) return 0; if (a->size != b->size) return 0; if (a->size != 0 && memcmp(a->text, b->text, a->size) != 0) return 0; a = a->next; b = b->next; } } AvahiStringList *avahi_string_list_add_many(AvahiStringList *r, ...) { va_list va; va_start(va, r); r = avahi_string_list_add_many_va(r, va); va_end(va); return r; } AvahiStringList *avahi_string_list_add_many_va(AvahiStringList *r, va_list va) { const char *txt; while ((txt = va_arg(va, const char*))) r = avahi_string_list_add(r, txt); return r; } AvahiStringList *avahi_string_list_new(const char *txt, ...) { va_list va; AvahiStringList *r = NULL; if (txt) { r = avahi_string_list_add(r, txt); va_start(va, txt); r = avahi_string_list_add_many_va(r, va); va_end(va); } return r; } AvahiStringList *avahi_string_list_new_va(va_list va) { return avahi_string_list_add_many_va(NULL, va); } AvahiStringList *avahi_string_list_copy(const AvahiStringList *l) { AvahiStringList *r = NULL; for (; l; l = l->next) if (!(r = avahi_string_list_add_arbitrary(r, l->text, l->size))) { avahi_string_list_free(r); return NULL; } return avahi_string_list_reverse(r); } AvahiStringList *avahi_string_list_new_from_array(const char *array[], int length) { AvahiStringList *r = NULL; int i; assert(array); for (i = 0; length >= 0 ? i < length : !!array[i]; i++) r = avahi_string_list_add(r, array[i]); return r; } unsigned avahi_string_list_length(const AvahiStringList *l) { unsigned n = 0; for (; l; l = l->next) n++; return n; } AvahiStringList *avahi_string_list_add_vprintf(AvahiStringList *l, const char *format, va_list va) { size_t len = 80; AvahiStringList *r; assert(format); if (!(r = avahi_malloc(sizeof(AvahiStringList) + len))) return NULL; for (;;) { int n; AvahiStringList *nr; va_list va2; va_copy(va2, va); n = vsnprintf((char*) r->text, len, format, va2); va_end(va2); if (n >= 0 && n < (int) len) break; if (n >= 0) len = n+1; else len *= 2; if (!(nr = avahi_realloc(r, sizeof(AvahiStringList) + len))) { avahi_free(r); return NULL; } r = nr; } r->next = l; r->size = strlen((char*) r->text); return r; } AvahiStringList *avahi_string_list_add_printf(AvahiStringList *l, const char *format, ...) { va_list va; assert(format); va_start(va, format); l = avahi_string_list_add_vprintf(l, format, va); va_end(va); return l; } AvahiStringList *avahi_string_list_find(AvahiStringList *l, const char *key) { size_t n; assert(key); n = strlen(key); for (; l; l = l->next) { if (strcasecmp((char*) l->text, key) == 0) return l; if (strncasecmp((char*) l->text, key, n) == 0 && l->text[n] == '=') return l; } return NULL; } AvahiStringList *avahi_string_list_add_pair(AvahiStringList *l, const char *key, const char *value) { assert(key); if (value) return avahi_string_list_add_printf(l, "%s=%s", key, value); else return avahi_string_list_add(l, key); } AvahiStringList *avahi_string_list_add_pair_arbitrary(AvahiStringList *l, const char *key, const uint8_t *value, size_t size) { size_t n; assert(key); if (!value) return avahi_string_list_add(l, key); n = strlen(key); if (!(l = avahi_string_list_add_anonymous(l, n + 1 + size))) return NULL; memcpy(l->text, key, n); l->text[n] = '='; memcpy(l->text + n + 1, value, size); return l; } int avahi_string_list_get_pair(AvahiStringList *l, char **key, char **value, size_t *size) { char *e; assert(l); if (!(e = memchr(l->text, '=', l->size))) { if (key) if (!(*key = avahi_strdup((char*) l->text))) return -1; if (value) *value = NULL; if (size) *size = 0; } else { size_t n; if (key) if (!(*key = avahi_strndup((char*) l->text, e - (char *) l->text))) return -1; e++; /* Advance after '=' */ n = l->size - (e - (char*) l->text); if (value) { if (!(*value = avahi_memdup(e, n+1))) { if (key) avahi_free(*key); return -1; } (*value)[n] = 0; } if (size) *size = n; } return 0; } AvahiStringList *avahi_string_list_get_next(AvahiStringList *l) { assert(l); return l->next; } uint8_t *avahi_string_list_get_text(AvahiStringList *l) { assert(l); return l->text; } size_t avahi_string_list_get_size(AvahiStringList *l) { assert(l); return l->size; } uint32_t avahi_string_list_get_service_cookie(AvahiStringList *l) { AvahiStringList *f; char *value = NULL, *end = NULL; uint32_t ret; if (!(f = avahi_string_list_find(l, AVAHI_SERVICE_COOKIE))) return AVAHI_SERVICE_COOKIE_INVALID; if (avahi_string_list_get_pair(f, NULL, &value, NULL) < 0 || !value) return AVAHI_SERVICE_COOKIE_INVALID; ret = (uint32_t) strtoll(value, &end, 0); if (*value && end && *end != 0) { avahi_free(value); return AVAHI_SERVICE_COOKIE_INVALID; } avahi_free(value); return ret; } avahi-0.7/avahi-common/PaxHeaders.10109/watch-test.c0000644000000000000000000000013213130651643017006 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.079988416 avahi-0.7/avahi-common/watch-test.c0000644000175000017500000000554013130651643020421 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "watch.h" #include "timeval.h" #include "gccmacro.h" static const AvahiPoll *api = NULL; #ifndef USE_THREAD #include "simple-watch.h" static AvahiSimplePoll *simple_poll = NULL; #else #include "thread-watch.h" static AvahiThreadedPoll *threaded_poll = NULL; #endif static void callback(AvahiWatch *w, int fd, AvahiWatchEvent event, AVAHI_GCC_UNUSED void *userdata) { if (event & AVAHI_WATCH_IN) { ssize_t r; char c; if ((r = read(fd, &c, 1)) <= 0) { fprintf(stderr, "read() failed: %s\n", r < 0 ? strerror(errno) : "EOF"); api->watch_free(w); return; } printf("Read: %c\n", c >= 32 && c < 127 ? c : '.'); } } static void wakeup(AvahiTimeout *t, AVAHI_GCC_UNUSED void *userdata) { static int i = 0; struct timeval tv; printf("Wakeup #%i\n", i++); if (i > 10) { #ifndef USE_THREAD avahi_simple_poll_quit(simple_poll); #else avahi_threaded_poll_quit(threaded_poll); #endif } else { avahi_elapse_time(&tv, 1000, 0); api->timeout_update(t, &tv); } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { struct timeval tv; #ifndef USE_THREAD simple_poll = avahi_simple_poll_new(); assert(simple_poll); api = avahi_simple_poll_get(simple_poll); assert(api); #else threaded_poll = avahi_threaded_poll_new(); assert(threaded_poll); api = avahi_threaded_poll_get(threaded_poll); assert(api); #endif api->watch_new(api, 0, AVAHI_WATCH_IN, callback, NULL); avahi_elapse_time(&tv, 1000, 0); api->timeout_new(api, &tv, wakeup, NULL); #ifndef USE_THREAD /* Our main loop */ avahi_simple_poll_loop(simple_poll); avahi_simple_poll_free(simple_poll); #else avahi_threaded_poll_start(threaded_poll); fprintf(stderr, "Now doing some stupid stuff ...\n"); sleep(20); fprintf(stderr, "... stupid stuff is done.\n"); avahi_threaded_poll_free(threaded_poll); #endif return 0; } avahi-0.7/avahi-common/PaxHeaders.10109/cdecl.h0000644000000000000000000000013213130651643016002 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.059988862 avahi-0.7/avahi-common/cdecl.h0000644000175000017500000000240713130651643017414 0ustar00lathiatlathiat00000000000000#ifndef foocdeclhfoo #define foocdeclhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file cdecl.h C++ compatibility */ #ifdef __cplusplus /** If using C++ this macro enables C mode, otherwise does nothing */ #define AVAHI_C_DECL_BEGIN extern "C" { /** If using C++ this macro switches back to C++ mode, otherwise does nothing */ #define AVAHI_C_DECL_END } #else /** If using C++ this macro enables C mode, otherwise does nothing */ #define AVAHI_C_DECL_BEGIN /** If using C++ this macro switches back to C++ mode, otherwise does nothing */ #define AVAHI_C_DECL_END #endif #endif avahi-0.7/avahi-common/PaxHeaders.10109/malloc.h0000644000000000000000000000013213130651643016177 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.059988862 avahi-0.7/avahi-common/malloc.h0000644000175000017500000000621213130651643017607 0ustar00lathiatlathiat00000000000000#ifndef foomallochfoo #define foomallochfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file malloc.h Memory allocation */ #include #include #include #include #include #include AVAHI_C_DECL_BEGIN /** Allocate some memory, just like the libc malloc() */ void *avahi_malloc(size_t size) AVAHI_GCC_ALLOC_SIZE(1); /** Similar to avahi_malloc() but set the memory to zero */ void *avahi_malloc0(size_t size) AVAHI_GCC_ALLOC_SIZE(1); /** Free some memory */ void avahi_free(void *p); /** Similar to libc's realloc() */ void *avahi_realloc(void *p, size_t size) AVAHI_GCC_ALLOC_SIZE(2); /** Internal helper for avahi_new() */ static inline void* AVAHI_GCC_ALLOC_SIZE2(1,2) avahi_new_internal(unsigned n, size_t k) { assert(n < INT_MAX/k); return avahi_malloc(n*k); } /** Allocate n new structures of the specified type. */ #define avahi_new(type, n) ((type*) avahi_new_internal((n), sizeof(type))) /** Internal helper for avahi_new0() */ static inline void* AVAHI_GCC_ALLOC_SIZE2(1,2) avahi_new0_internal(unsigned n, size_t k) { assert(n < INT_MAX/k); return avahi_malloc0(n*k); } /** Same as avahi_new() but set the memory to zero */ #define avahi_new0(type, n) ((type*) avahi_new0_internal((n), sizeof(type))) /** Just like libc's strdup() */ char *avahi_strdup(const char *s); /** Just like libc's strndup() */ char *avahi_strndup(const char *s, size_t l); /** Duplicate the given memory block into a new one allocated with avahi_malloc() */ void *avahi_memdup(const void *s, size_t l) AVAHI_GCC_ALLOC_SIZE(2); /** Wraps allocator functions */ typedef struct AvahiAllocator { void* (*malloc)(size_t size) AVAHI_GCC_ALLOC_SIZE(1); void (*free)(void *p); void* (*realloc)(void *p, size_t size) AVAHI_GCC_ALLOC_SIZE(2); void* (*calloc)(size_t nmemb, size_t size) AVAHI_GCC_ALLOC_SIZE2(1,2); /**< May be NULL */ } AvahiAllocator; /** Change the allocator. May be NULL to return to default (libc) * allocators. The structure is not copied! */ void avahi_set_allocator(const AvahiAllocator *a); /** Like sprintf() but store the result in a freshly allocated buffer. Free this with avahi_free() */ char *avahi_strdup_printf(const char *fmt, ... ) AVAHI_GCC_PRINTF_ATTR12; /** \cond fulldocs */ /** Same as avahi_strdup_printf() but take a va_list instead of varargs */ char *avahi_strdup_vprintf(const char *fmt, va_list ap); /** \endcond */ AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/i18n.c0000644000000000000000000000013213130651643015502 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.075988506 avahi-0.7/avahi-common/i18n.c0000644000175000017500000000220413130651643017107 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include "i18n.h" void avahi_init_i18n(void) { /* Not really thread safe, but this doesn't matter much since * bindtextdomain is supposed to be idempotent anyway. */ static int done = 0; if (!done) { bindtextdomain(GETTEXT_PACKAGE, AVAHI_LOCALEDIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); done = 1; } } avahi-0.7/avahi-common/PaxHeaders.10109/timeval-test.c0000644000000000000000000000013213130651643017341 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.079988416 avahi-0.7/avahi-common/timeval-test.c0000644000175000017500000000223313130651643020750 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include "gccmacro.h" #include "timeval.h" int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { struct timeval a = { 5, 5 }, b; b = a; printf("%li.%li\n", a.tv_sec, a.tv_usec); avahi_timeval_add(&a, -50); printf("%li.%li\n", a.tv_sec, a.tv_usec); printf("%lli\n", (long long) avahi_timeval_diff(&a, &b)); return 0; } avahi-0.7/avahi-common/PaxHeaders.10109/simple-watch.h0000644000000000000000000000013213130651643017325 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.063988773 avahi-0.7/avahi-common/simple-watch.h0000644000175000017500000000665213130651643020745 0ustar00lathiatlathiat00000000000000#ifndef foosimplewatchhfoo #define foosimplewatchhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file simple-watch.h Simple poll() based main loop implementation */ #include #include #include AVAHI_C_DECL_BEGIN /** A main loop object. Main loops of this type aren't very flexible * since they only support a single wakeup type. Nevertheless it * should suffice for small test and example applications. */ typedef struct AvahiSimplePoll AvahiSimplePoll; /** Create a new main loop object */ AvahiSimplePoll *avahi_simple_poll_new(void); /** Free a main loop object */ void avahi_simple_poll_free(AvahiSimplePoll *s); /** Return the abstracted poll API object for this main loop * object. The is will return the same pointer each time it is * called. */ const AvahiPoll* avahi_simple_poll_get(AvahiSimplePoll *s); /** Run a single main loop iteration of this main loop. If sleep_time is < 0 this will block until any of the registered events happens, then it will execute the attached callback function. If sleep_time is 0 the routine just checks if any event is pending. If yes the attached callback function is called, otherwise the function returns immediately. If sleep_time > 0 the function will block for at most the specified time in msecs. Returns -1 on error, 0 on success and 1 if a quit request has been scheduled. Usually this function should be called in a loop until it returns a non-zero value*/ int avahi_simple_poll_iterate(AvahiSimplePoll *s, int sleep_time); /** Request that the main loop quits. If this is called the next call to avahi_simple_poll_iterate() will return 1 */ void avahi_simple_poll_quit(AvahiSimplePoll *s); /** Prototype for a poll() type function */ typedef int (*AvahiPollFunc)(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata); /** Replace the internally used poll() function. By default the system's poll() will be used */ void avahi_simple_poll_set_func(AvahiSimplePoll *s, AvahiPollFunc func, void *userdata); /** The first stage of avahi_simple_poll_iterate(), use this function only if you know what you do */ int avahi_simple_poll_prepare(AvahiSimplePoll *s, int timeout); /** The second stage of avahi_simple_poll_iterate(), use this function only if you know what you do */ int avahi_simple_poll_run(AvahiSimplePoll *s); /** The third and final stage of avahi_simple_poll_iterate(), use this function only if you know what you do */ int avahi_simple_poll_dispatch(AvahiSimplePoll *s); /** Call avahi_simple_poll_iterate() in a loop and return if it returns non-zero */ int avahi_simple_poll_loop(AvahiSimplePoll *s); /** Wakeup the main loop. (for threaded environments) */ void avahi_simple_poll_wakeup(AvahiSimplePoll *s); AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/dbus-watch-glue.c0000644000000000000000000000013213130651643017716 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.187986003 avahi-0.7/avahi-common/dbus-watch-glue.c0000644000175000017500000002236613130651643021336 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "malloc.h" #include "timeval.h" #include "dbus-watch-glue.h" static AvahiWatchEvent translate_dbus_to_avahi(unsigned int f) { AvahiWatchEvent e = 0; if (f & DBUS_WATCH_READABLE) e |= AVAHI_WATCH_IN; if (f & DBUS_WATCH_WRITABLE) e |= AVAHI_WATCH_OUT; if (f & DBUS_WATCH_ERROR) e |= AVAHI_WATCH_ERR; if (f & DBUS_WATCH_HANGUP) e |= AVAHI_WATCH_HUP; return e; } static unsigned int translate_avahi_to_dbus(AvahiWatchEvent e) { unsigned int f = 0; if (e & AVAHI_WATCH_IN) f |= DBUS_WATCH_READABLE; if (e & AVAHI_WATCH_OUT) f |= DBUS_WATCH_WRITABLE; if (e & AVAHI_WATCH_ERR) f |= DBUS_WATCH_ERROR; if (e & AVAHI_WATCH_HUP) f |= DBUS_WATCH_HANGUP; return f; } typedef struct { DBusConnection *connection; const AvahiPoll *poll_api; AvahiTimeout *dispatch_timeout; int ref; } ConnectionData; static ConnectionData *connection_data_ref(ConnectionData *d) { assert(d); assert(d->ref >= 1); d->ref++; return d; } static void connection_data_unref(ConnectionData *d) { assert(d); assert(d->ref >= 1); if (--d->ref <= 0) { d->poll_api->timeout_free(d->dispatch_timeout); avahi_free(d); } } static void request_dispatch(ConnectionData *d, int enable) { static const struct timeval tv = { 0, 0 }; assert(d); if (enable) { assert(dbus_connection_get_dispatch_status(d->connection) == DBUS_DISPATCH_DATA_REMAINS); d->poll_api->timeout_update(d->dispatch_timeout, &tv); } else d->poll_api->timeout_update(d->dispatch_timeout, NULL); } static void dispatch_timeout_callback(AvahiTimeout *t, void *userdata) { ConnectionData *d = userdata; assert(t); assert(d); connection_data_ref(d); dbus_connection_ref(d->connection); if (dbus_connection_dispatch(d->connection) == DBUS_DISPATCH_DATA_REMAINS) /* If there's still data, request that this handler is called again */ request_dispatch(d, 1); else request_dispatch(d, 0); dbus_connection_unref(d->connection); connection_data_unref(d); } static void watch_callback(AvahiWatch *avahi_watch, AVAHI_GCC_UNUSED int fd, AvahiWatchEvent events, void *userdata) { DBusWatch *dbus_watch = userdata; assert(avahi_watch); assert(dbus_watch); dbus_watch_handle(dbus_watch, translate_avahi_to_dbus(events)); /* Ignore the return value */ } static dbus_bool_t update_watch(const AvahiPoll *poll_api, DBusWatch *dbus_watch) { AvahiWatch *avahi_watch; dbus_bool_t b; assert(dbus_watch); avahi_watch = dbus_watch_get_data(dbus_watch); b = dbus_watch_get_enabled(dbus_watch); if (b && !avahi_watch) { if (!(avahi_watch = poll_api->watch_new( poll_api, #if (DBUS_VERSION_MAJOR == 1 && DBUS_VERSION_MINOR == 1 && DBUS_VERSION_MICRO >= 1) || (DBUS_VERSION_MAJOR == 1 && DBUS_VERSION_MINOR > 1) || (DBUS_VERSION_MAJOR > 1) dbus_watch_get_unix_fd(dbus_watch), #else dbus_watch_get_fd(dbus_watch), #endif translate_dbus_to_avahi(dbus_watch_get_flags(dbus_watch)), watch_callback, dbus_watch))) return FALSE; dbus_watch_set_data(dbus_watch, avahi_watch, NULL); } else if (!b && avahi_watch) { poll_api->watch_free(avahi_watch); dbus_watch_set_data(dbus_watch, NULL, NULL); } else if (avahi_watch) { /* Update flags */ poll_api->watch_update(avahi_watch, dbus_watch_get_flags(dbus_watch)); } return TRUE; } static dbus_bool_t add_watch(DBusWatch *dbus_watch, void *userdata) { ConnectionData *d = userdata; assert(dbus_watch); assert(d); return update_watch(d->poll_api, dbus_watch); } static void remove_watch(DBusWatch *dbus_watch, void *userdata) { ConnectionData *d = userdata; AvahiWatch *avahi_watch; assert(dbus_watch); assert(d); if ((avahi_watch = dbus_watch_get_data(dbus_watch))) { d->poll_api->watch_free(avahi_watch); dbus_watch_set_data(dbus_watch, NULL, NULL); } } static void watch_toggled(DBusWatch *dbus_watch, void *userdata) { ConnectionData *d = userdata; assert(dbus_watch); assert(d); update_watch(d->poll_api, dbus_watch); } typedef struct TimeoutData { const AvahiPoll *poll_api; AvahiTimeout *avahi_timeout; DBusTimeout *dbus_timeout; int ref; } TimeoutData; static TimeoutData* timeout_data_ref(TimeoutData *t) { assert(t); assert(t->ref >= 1); t->ref++; return t; } static void timeout_data_unref(TimeoutData *t) { assert(t); assert(t->ref >= 1); if (--t->ref <= 0) { if (t->avahi_timeout) t->poll_api->timeout_free(t->avahi_timeout); avahi_free(t); } } static void update_timeout(TimeoutData *timeout) { assert(timeout); assert(timeout->ref >= 1); if (dbus_timeout_get_enabled(timeout->dbus_timeout)) { struct timeval tv; avahi_elapse_time(&tv, dbus_timeout_get_interval(timeout->dbus_timeout), 0); timeout->poll_api->timeout_update(timeout-> avahi_timeout, &tv); } else timeout->poll_api->timeout_update(timeout->avahi_timeout, NULL); } static void timeout_callback(AvahiTimeout *avahi_timeout, void *userdata) { TimeoutData *timeout = userdata; assert(avahi_timeout); assert(timeout); timeout_data_ref(timeout); dbus_timeout_handle(timeout->dbus_timeout); /* Ignore the return value */ if (timeout->avahi_timeout) update_timeout(timeout); timeout_data_unref(timeout); } static dbus_bool_t add_timeout(DBusTimeout *dbus_timeout, void *userdata) { TimeoutData *timeout; ConnectionData *d = userdata; struct timeval tv; dbus_bool_t b; assert(dbus_timeout); assert(d); if (!(timeout = avahi_new(TimeoutData, 1))) return FALSE; timeout->dbus_timeout = dbus_timeout; timeout->poll_api = d->poll_api; timeout->ref = 1; if ((b = dbus_timeout_get_enabled(dbus_timeout))) avahi_elapse_time(&tv, dbus_timeout_get_interval(dbus_timeout), 0); if (!(timeout->avahi_timeout = d->poll_api->timeout_new( d->poll_api, b ? &tv : NULL, timeout_callback, timeout))) { avahi_free(timeout); return FALSE; } dbus_timeout_set_data(dbus_timeout, timeout, (DBusFreeFunction) timeout_data_unref); return TRUE; } static void remove_timeout(DBusTimeout *dbus_timeout, void *userdata) { ConnectionData *d = userdata; TimeoutData *timeout; assert(dbus_timeout); assert(d); timeout = dbus_timeout_get_data(dbus_timeout); assert(timeout); d->poll_api->timeout_free(timeout->avahi_timeout); timeout->avahi_timeout = NULL; } static void timeout_toggled(DBusTimeout *dbus_timeout, AVAHI_GCC_UNUSED void *userdata) { TimeoutData *timeout; assert(dbus_timeout); timeout = dbus_timeout_get_data(dbus_timeout); assert(timeout); update_timeout(timeout); } static void dispatch_status(AVAHI_GCC_UNUSED DBusConnection *connection, DBusDispatchStatus new_status, void *userdata) { ConnectionData *d = userdata; if (new_status == DBUS_DISPATCH_DATA_REMAINS) request_dispatch(d, 1); } int avahi_dbus_connection_glue(DBusConnection *c, const AvahiPoll *poll_api) { ConnectionData *d = NULL; assert(c); assert(poll_api); if (!(d = avahi_new(ConnectionData, 1))) goto fail; d->poll_api = poll_api; d->connection = c; d->ref = 1; if (!(d->dispatch_timeout = poll_api->timeout_new(poll_api, NULL, dispatch_timeout_callback, d))) goto fail; if (!(dbus_connection_set_watch_functions(c, add_watch, remove_watch, watch_toggled, connection_data_ref(d), (DBusFreeFunction)connection_data_unref))) goto fail; if (!(dbus_connection_set_timeout_functions(c, add_timeout, remove_timeout, timeout_toggled, connection_data_ref(d), (DBusFreeFunction)connection_data_unref))) goto fail; dbus_connection_set_dispatch_status_function(c, dispatch_status, connection_data_ref(d), (DBusFreeFunction)connection_data_unref); if (dbus_connection_get_dispatch_status(c) == DBUS_DISPATCH_DATA_REMAINS) request_dispatch(d, 1); connection_data_unref(d); return 0; fail: if (d) { d->poll_api->timeout_free(d->dispatch_timeout); avahi_free(d); } return -1; } avahi-0.7/avahi-common/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016613 xustar0030 mtime=1499681699.091370937 30 atime=1499681796.813178573 30 ctime=1499681850.055988952 avahi-0.7/avahi-common/Makefile.am0000644000175000017500000000617413130651643020232 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' avahi_commonincludedir=$(includedir)/avahi-common avahi_commoninclude_HEADERS = \ strlst.h \ address.h \ alternative.h \ domain.h \ cdecl.h \ defs.h \ malloc.h \ watch.h \ timeval.h \ simple-watch.h \ thread-watch.h \ gccmacro.h \ error.h \ llist.h \ rlist.h if ENABLE_TESTS noinst_PROGRAMS = \ strlst-test \ domain-test \ alternative-test \ timeval-test \ watch-test \ watch-test-thread \ utf8-test endif lib_LTLIBRARIES = \ libavahi-common.la libavahi_common_la_SOURCES = \ malloc.c malloc.h \ address.c address.h \ alternative.c alternative.h \ error.c error.h \ strlst.c strlst.h \ domain.c domain.h \ timeval.c timeval.h \ simple-watch.c simple-watch.h \ thread-watch.c thread-watch.h \ watch.h gccmacro.h \ rlist.h rlist.c \ utf8.c utf8.h \ i18n.c i18n.h libavahi_common_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -DAVAHI_LOCALEDIR=\"$(avahilocaledir)\" libavahi_common_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(INTLLIBS) libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_COMMON_VERSION_INFO) strlst_test_SOURCES = \ strlst.c strlst.h \ malloc.c malloc.h \ strlst-test.c strlst_test_CFLAGS = $(AM_CFLAGS) alternative_test_SOURCES = \ alternative.c alternative.h \ malloc.c malloc.h \ domain.c domain.h \ address.c address.h \ alternative-test.c \ utf8.c utf8.h alternative_test_CFLAGS = $(AM_CFLAGS) domain_test_SOURCES = \ domain.c domain.h \ malloc.c malloc.h \ address.c address.h \ domain-test.c \ utf8.c utf8.h domain_test_CFLAGS = $(AM_CFLAGS) watch_test_SOURCES = \ timeval.c timeval.h \ simple-watch.c simple-watch.h \ watch.h \ malloc.c malloc.h \ watch-test.c watch_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) watch_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) watch_test_thread_SOURCES = $(watch_test_SOURCES) thread-watch.c thread-watch.h watch_test_thread_CFLAGS = $(watch_test_CFLAGS) -DUSE_THREAD watch_test_thread_LDADD = $(watch_test_LDADD) timeval_test_SOURCES = \ timeval.c timeval.h \ timeval-test.c timeval_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) timeval_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) utf8_test_SOURCES = \ utf8-test.c \ utf8.c utf8.h utf8_test_CFLAGS = $(AM_CFLAGS) utf8_test_LDADD = $(AM_LDADD) if HAVE_DBUS noinst_HEADERS = \ dbus.h \ dbus-watch-glue.h endif avahi-0.7/avahi-common/PaxHeaders.10109/i18n.h0000644000000000000000000000013213130651643015507 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.075988506 avahi-0.7/avahi-common/i18n.h0000644000175000017500000000273613130651643017126 0ustar00lathiatlathiat00000000000000#ifndef fooi18nhfoo #define fooi18nhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #if !defined(GETTEXT_PACKAGE) #error "Something is very wrong here, config.h needs to be included first" #endif #ifdef ENABLE_NLS #include #define _(String) dgettext(GETTEXT_PACKAGE, String) #ifdef gettext_noop #define N_(String) gettext_noop(String) #else #define N_(String) (String) #endif #else /* NLS is disabled */ #define _(String) (String) #define N_(String) (String) #define textdomain(String) (String) #define gettext(String) (String) #define dgettext(Domain,String) (String) #define dcgettext(Domain,String,Type) (String) #define bindtextdomain(Domain,Directory) (Domain) #define bind_textdomain_codeset(Domain,Codeset) (Codeset) #endif /* ENABLE_NLS */ void avahi_init_i18n(void); #endif avahi-0.7/avahi-common/PaxHeaders.10109/alternative.c0000644000000000000000000000013213130651643017241 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.071988592 avahi-0.7/avahi-common/alternative.c0000644000175000017500000000717113130651643020656 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "alternative.h" #include "malloc.h" #include "domain.h" #include "utf8.h" static void drop_incomplete_utf8(char *c) { char *e; e = strchr(c, 0) - 1; while (e >= c) { if (avahi_utf8_valid(c)) break; assert(*e & 128); *e = 0; e--; } } char *avahi_alternative_host_name(const char *s) { const char *e; char *r; assert(s); if (!avahi_is_valid_host_name(s)) return NULL; if ((e = strrchr(s, '-'))) { const char *p; e++; for (p = e; *p; p++) if (!isdigit(*p)) { e = NULL; break; } if (e && (*e == '0' || *e == 0)) e = NULL; } if (e) { char *c, *m; size_t l; int n; n = atoi(e)+1; if (!(m = avahi_strdup_printf("%i", n))) return NULL; l = e-s-1; if (l >= AVAHI_LABEL_MAX-1-strlen(m)-1) l = AVAHI_LABEL_MAX-1-strlen(m)-1; if (!(c = avahi_strndup(s, l))) { avahi_free(m); return NULL; } drop_incomplete_utf8(c); r = avahi_strdup_printf("%s-%s", c, m); avahi_free(c); avahi_free(m); } else { char *c; if (!(c = avahi_strndup(s, AVAHI_LABEL_MAX-1-2))) return NULL; drop_incomplete_utf8(c); r = avahi_strdup_printf("%s-2", c); avahi_free(c); } assert(avahi_is_valid_host_name(r)); return r; } char *avahi_alternative_service_name(const char *s) { const char *e; char *r; assert(s); if (!avahi_is_valid_service_name(s)) return NULL; if ((e = strstr(s, " #"))) { const char *n, *p; e += 2; while ((n = strstr(e, " #"))) e = n + 2; for (p = e; *p; p++) if (!isdigit(*p)) { e = NULL; break; } if (e && (*e == '0' || *e == 0)) e = NULL; } if (e) { char *c, *m; size_t l; int n; n = atoi(e)+1; if (!(m = avahi_strdup_printf("%i", n))) return NULL; l = e-s-2; if (l >= AVAHI_LABEL_MAX-1-strlen(m)-2) l = AVAHI_LABEL_MAX-1-strlen(m)-2; if (!(c = avahi_strndup(s, l))) { avahi_free(m); return NULL; } drop_incomplete_utf8(c); r = avahi_strdup_printf("%s #%s", c, m); avahi_free(c); avahi_free(m); } else { char *c; if (!(c = avahi_strndup(s, AVAHI_LABEL_MAX-1-3))) return NULL; drop_incomplete_utf8(c); r = avahi_strdup_printf("%s #2", c); avahi_free(c); } assert(avahi_is_valid_service_name(r)); return r; } avahi-0.7/avahi-common/PaxHeaders.10109/rlist.h0000644000000000000000000000013213130651643016065 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.067988683 avahi-0.7/avahi-common/rlist.h0000644000175000017500000000301113130651643017467 0ustar00lathiatlathiat00000000000000#ifndef foorlistfoo #define foorlistfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file rlist.h A simple linked list implementation */ #include "llist.h" AVAHI_C_DECL_BEGIN /** A doubly linked list type */ typedef struct AvahiRList AvahiRList; /** A doubly linked list type */ struct AvahiRList { AVAHI_LLIST_FIELDS(AvahiRList, rlist); void *data; }; /** Prepend a new item to the beginning of the list and return the new beginning */ AvahiRList* avahi_rlist_prepend(AvahiRList *r, void *data); /** Remove the first occurence of the specified item from the list and return the new beginning */ AvahiRList* avahi_rlist_remove(AvahiRList *r, void *data); /** Remove the specified item from the list and return the new beginning */ AvahiRList* avahi_rlist_remove_by_link(AvahiRList *r, AvahiRList *n); AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/domain.h0000644000000000000000000000013213130651643016177 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.059988862 avahi-0.7/avahi-common/domain.h0000644000175000017500000001116513130651643017612 0ustar00lathiatlathiat00000000000000#ifndef foodomainhfoo #define foodomainhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file domain.h Domain name handling functions */ #include #include #include AVAHI_C_DECL_BEGIN /** The maximum length of a a fully escaped domain name C string. This * is calculated like this: RFC1034 mandates maximum length of FQDNs * is 255. The maximum label length is 63. To minimize the number of * (non-escaped) dots, we comprise our maximum-length domain name of * four labels á 63 characters plus three inner dots. Escaping the * four labels quadruples their length at maximum. An escaped domain * name has the therefore the maximum length of 63*4*4+3=1011. A * trailing NUL and perhaps two unnecessary dots leading and trailing * the string brings us to 1014. */ #define AVAHI_DOMAIN_NAME_MAX 1014 /** Maximum size of an unescaped label */ #define AVAHI_LABEL_MAX 64 /** @{ \name Normalization */ /** Normalize a domain name into canonical form. This drops trailing * dots and removes useless backslash escapes. */ char *avahi_normalize_name(const char *s, char *ret_s, size_t size); /** Normalize a domain name into canonical form. This drops trailing * dots and removes useless backslash escapes. avahi_free() the * result! */ char *avahi_normalize_name_strdup(const char *s); /** @} */ /** @{ \name Comparison */ /** Return 1 when the specified domain names are equal, 0 otherwise */ int avahi_domain_equal(const char *a, const char *b); /** Return some kind of hash value for the domain, useful for using domains as hash table keys. */ unsigned avahi_domain_hash(const char *name); /** @} */ /** @{ \name Escaping */ /** Read the first label from the textual domain name *name, unescape * it and write it to dest, *name is changed to point to the next label*/ char *avahi_unescape_label(const char **name, char *dest, size_t size); /** Escape the domain name in *src and write it to *ret_name */ char *avahi_escape_label(const char* src, size_t src_length, char **ret_name, size_t *ret_size); /** @} */ /** @{ \name Validity Checks */ /** Return 1 when the specified string contains a valid generic DNS-SD * service type (i.e. a series of words starting with "_"), 0 * otherwise */ int avahi_is_valid_service_type_generic(const char *t); /** Return 1 when the specified string contains a valid strict DNS-SD * service type (i.e. consisting of only two words, the latter being * either _udp or _tcp), 0 otherwise */ int avahi_is_valid_service_type_strict(const char *t); /** Return 1 when the specified string contains a valid DNS-SD service * subtype, 0 otherwise */ int avahi_is_valid_service_subtype(const char *t); /** Return 1 when the specified string contains a valid domain name, 0 otherwise */ int avahi_is_valid_domain_name(const char *t); /** Return 1 when the specified string contains a valid DNS-SD service name, 0 otherwise */ int avahi_is_valid_service_name(const char *t); /** Return 1 when the specified string contains a valid non-FQDN host name (i.e. without dots), 0 otherwise */ int avahi_is_valid_host_name(const char *t); /** Return 1 when the specified string contains a valid FQDN host name (i.e. with more than one label and non-numerical), 0 otherwise. \since 0.6.9 */ int avahi_is_valid_fqdn(const char *t); /** @} */ /** @{ \name DNS-SD service name handling */ /** Construct a valid complete DNS-SD service name from a name, a type and a domain */ int avahi_service_name_join(char *p, size_t size, const char *name, const char *type, const char *domain); /** Split a full service name into name, type and domain */ int avahi_service_name_split(const char *p, char *name, size_t name_size, char *type, size_t type_size, char *domain, size_t domain_size); /** @} */ /** @{ \name DNS-SD Subtype handling */ /** Return a pointer to the type section of a subtype i.e. _foo._sub._bar._tcp => _bar._tcp */ const char *avahi_get_type_from_subtype(const char *t); /** @} */ AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/address.c0000644000000000000000000000013213130651643016350 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.071988592 avahi-0.7/avahi-common/address.c0000644000175000017500000001134613130651643017764 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include "address.h" #include "malloc.h" static size_t address_get_size(const AvahiAddress *a) { assert(a); if (a->proto == AVAHI_PROTO_INET) return 4; else if (a->proto == AVAHI_PROTO_INET6) return 16; return 0; } int avahi_address_cmp(const AvahiAddress *a, const AvahiAddress *b) { assert(a); assert(b); if (a->proto != b->proto) return -1; return memcmp(a->data.data, b->data.data, address_get_size(a)); } char *avahi_address_snprint(char *s, size_t length, const AvahiAddress *a) { assert(s); assert(length); assert(a); if (!(inet_ntop(avahi_proto_to_af(a->proto), a->data.data, s, length))) return NULL; return s; } char* avahi_reverse_lookup_name(const AvahiAddress *a, char *ret_s, size_t length) { assert(ret_s); assert(length > 0); assert(a); if (a->proto == AVAHI_PROTO_INET) { uint32_t n = ntohl(a->data.ipv4.address); snprintf( ret_s, length, "%u.%u.%u.%u.in-addr.arpa", n & 0xFF, (n >> 8) & 0xFF, (n >> 16) & 0xFF, n >> 24); } else { assert(a->proto == AVAHI_PROTO_INET6); snprintf( ret_s, length, "%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.%x.ip6.arpa", a->data.ipv6.address[15] & 0xF, a->data.ipv6.address[15] >> 4, a->data.ipv6.address[14] & 0xF, a->data.ipv6.address[14] >> 4, a->data.ipv6.address[13] & 0xF, a->data.ipv6.address[13] >> 4, a->data.ipv6.address[12] & 0xF, a->data.ipv6.address[12] >> 4, a->data.ipv6.address[11] & 0xF, a->data.ipv6.address[11] >> 4, a->data.ipv6.address[10] & 0xF, a->data.ipv6.address[10] >> 4, a->data.ipv6.address[ 9] & 0xF, a->data.ipv6.address[ 9] >> 4, a->data.ipv6.address[ 8] & 0xF, a->data.ipv6.address[ 8] >> 4, a->data.ipv6.address[ 7] & 0xF, a->data.ipv6.address[ 7] >> 4, a->data.ipv6.address[ 6] & 0xF, a->data.ipv6.address[ 6] >> 4, a->data.ipv6.address[ 5] & 0xF, a->data.ipv6.address[ 5] >> 4, a->data.ipv6.address[ 4] & 0xF, a->data.ipv6.address[ 4] >> 4, a->data.ipv6.address[ 3] & 0xF, a->data.ipv6.address[ 3] >> 4, a->data.ipv6.address[ 2] & 0xF, a->data.ipv6.address[ 2] >> 4, a->data.ipv6.address[ 1] & 0xF, a->data.ipv6.address[ 1] >> 4, a->data.ipv6.address[ 0] & 0xF, a->data.ipv6.address[ 0] >> 4); } return ret_s; } AvahiAddress *avahi_address_parse(const char *s, AvahiProtocol proto, AvahiAddress *ret_addr) { assert(ret_addr); assert(s); if (proto == AVAHI_PROTO_UNSPEC) { if (inet_pton(AF_INET, s, ret_addr->data.data) <= 0) { if (inet_pton(AF_INET6, s, ret_addr->data.data) <= 0) return NULL; else ret_addr->proto = AVAHI_PROTO_INET6; } else ret_addr->proto = AVAHI_PROTO_INET; } else { if (inet_pton(avahi_proto_to_af(proto), s, ret_addr->data.data) <= 0) return NULL; ret_addr->proto = proto; } return ret_addr; } int avahi_proto_to_af(AvahiProtocol proto) { if (proto == AVAHI_PROTO_INET) return AF_INET; if (proto == AVAHI_PROTO_INET6) return AF_INET6; assert(proto == AVAHI_PROTO_UNSPEC); return AF_UNSPEC; } AvahiProtocol avahi_af_to_proto(int af) { if (af == AF_INET) return AVAHI_PROTO_INET; if (af == AF_INET6) return AVAHI_PROTO_INET6; assert(af == AF_UNSPEC); return AVAHI_PROTO_UNSPEC; } const char* avahi_proto_to_string(AvahiProtocol proto) { if (proto == AVAHI_PROTO_INET) return "IPv4"; if (proto == AVAHI_PROTO_INET6) return "IPv6"; assert(proto == AVAHI_PROTO_UNSPEC); return "UNSPEC"; } avahi-0.7/avahi-common/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016612 xustar0030 mtime=1499681801.189080677 30 atime=1499681806.592959821 30 ctime=1499681850.067988683 avahi-0.7/avahi-common/Makefile.in0000644000175000017500000031410213130652011020222 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_TESTS_TRUE@noinst_PROGRAMS = strlst-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ domain-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ alternative-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ timeval-test$(EXEEXT) watch-test$(EXEEXT) \ @ENABLE_TESTS_TRUE@ watch-test-thread$(EXEEXT) \ @ENABLE_TESTS_TRUE@ utf8-test$(EXEEXT) subdir = avahi-common ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(avahi_commoninclude_HEADERS) \ $(am__noinst_HEADERS_DIST) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(avahi_commonincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = libavahi_common_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am_libavahi_common_la_OBJECTS = libavahi_common_la-malloc.lo \ libavahi_common_la-address.lo \ libavahi_common_la-alternative.lo libavahi_common_la-error.lo \ libavahi_common_la-strlst.lo libavahi_common_la-domain.lo \ libavahi_common_la-timeval.lo \ libavahi_common_la-simple-watch.lo \ libavahi_common_la-thread-watch.lo libavahi_common_la-rlist.lo \ libavahi_common_la-utf8.lo libavahi_common_la-i18n.lo libavahi_common_la_OBJECTS = $(am_libavahi_common_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libavahi_common_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libavahi_common_la_CFLAGS) $(CFLAGS) \ $(libavahi_common_la_LDFLAGS) $(LDFLAGS) -o $@ PROGRAMS = $(noinst_PROGRAMS) am_alternative_test_OBJECTS = alternative_test-alternative.$(OBJEXT) \ alternative_test-malloc.$(OBJEXT) \ alternative_test-domain.$(OBJEXT) \ alternative_test-address.$(OBJEXT) \ alternative_test-alternative-test.$(OBJEXT) \ alternative_test-utf8.$(OBJEXT) alternative_test_OBJECTS = $(am_alternative_test_OBJECTS) alternative_test_LDADD = $(LDADD) alternative_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(alternative_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ am_domain_test_OBJECTS = domain_test-domain.$(OBJEXT) \ domain_test-malloc.$(OBJEXT) domain_test-address.$(OBJEXT) \ domain_test-domain-test.$(OBJEXT) domain_test-utf8.$(OBJEXT) domain_test_OBJECTS = $(am_domain_test_OBJECTS) domain_test_LDADD = $(LDADD) domain_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(domain_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_strlst_test_OBJECTS = strlst_test-strlst.$(OBJEXT) \ strlst_test-malloc.$(OBJEXT) strlst_test-strlst-test.$(OBJEXT) strlst_test_OBJECTS = $(am_strlst_test_OBJECTS) strlst_test_LDADD = $(LDADD) strlst_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(strlst_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_timeval_test_OBJECTS = timeval_test-timeval.$(OBJEXT) \ timeval_test-timeval-test.$(OBJEXT) timeval_test_OBJECTS = $(am_timeval_test_OBJECTS) timeval_test_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) timeval_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(timeval_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_utf8_test_OBJECTS = utf8_test-utf8-test.$(OBJEXT) \ utf8_test-utf8.$(OBJEXT) utf8_test_OBJECTS = $(am_utf8_test_OBJECTS) utf8_test_DEPENDENCIES = utf8_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(utf8_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am_watch_test_OBJECTS = watch_test-timeval.$(OBJEXT) \ watch_test-simple-watch.$(OBJEXT) watch_test-malloc.$(OBJEXT) \ watch_test-watch-test.$(OBJEXT) watch_test_OBJECTS = $(am_watch_test_OBJECTS) watch_test_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) watch_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(watch_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__objects_1 = watch_test_thread-timeval.$(OBJEXT) \ watch_test_thread-simple-watch.$(OBJEXT) \ watch_test_thread-malloc.$(OBJEXT) \ watch_test_thread-watch-test.$(OBJEXT) am_watch_test_thread_OBJECTS = $(am__objects_1) \ watch_test_thread-thread-watch.$(OBJEXT) watch_test_thread_OBJECTS = $(am_watch_test_thread_OBJECTS) am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) watch_test_thread_DEPENDENCIES = $(am__DEPENDENCIES_2) watch_test_thread_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(watch_test_thread_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libavahi_common_la_SOURCES) $(alternative_test_SOURCES) \ $(domain_test_SOURCES) $(strlst_test_SOURCES) \ $(timeval_test_SOURCES) $(utf8_test_SOURCES) \ $(watch_test_SOURCES) $(watch_test_thread_SOURCES) DIST_SOURCES = $(libavahi_common_la_SOURCES) \ $(alternative_test_SOURCES) $(domain_test_SOURCES) \ $(strlst_test_SOURCES) $(timeval_test_SOURCES) \ $(utf8_test_SOURCES) $(watch_test_SOURCES) \ $(watch_test_thread_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__noinst_HEADERS_DIST = dbus.h dbus-watch-glue.h HEADERS = $(avahi_commoninclude_HEADERS) $(noinst_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' avahi_commonincludedir = $(includedir)/avahi-common avahi_commoninclude_HEADERS = \ strlst.h \ address.h \ alternative.h \ domain.h \ cdecl.h \ defs.h \ malloc.h \ watch.h \ timeval.h \ simple-watch.h \ thread-watch.h \ gccmacro.h \ error.h \ llist.h \ rlist.h lib_LTLIBRARIES = \ libavahi-common.la libavahi_common_la_SOURCES = \ malloc.c malloc.h \ address.c address.h \ alternative.c alternative.h \ error.c error.h \ strlst.c strlst.h \ domain.c domain.h \ timeval.c timeval.h \ simple-watch.c simple-watch.h \ thread-watch.c thread-watch.h \ watch.h gccmacro.h \ rlist.h rlist.c \ utf8.c utf8.h \ i18n.c i18n.h libavahi_common_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -DAVAHI_LOCALEDIR=\"$(avahilocaledir)\" libavahi_common_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(INTLLIBS) libavahi_common_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_COMMON_VERSION_INFO) strlst_test_SOURCES = \ strlst.c strlst.h \ malloc.c malloc.h \ strlst-test.c strlst_test_CFLAGS = $(AM_CFLAGS) alternative_test_SOURCES = \ alternative.c alternative.h \ malloc.c malloc.h \ domain.c domain.h \ address.c address.h \ alternative-test.c \ utf8.c utf8.h alternative_test_CFLAGS = $(AM_CFLAGS) domain_test_SOURCES = \ domain.c domain.h \ malloc.c malloc.h \ address.c address.h \ domain-test.c \ utf8.c utf8.h domain_test_CFLAGS = $(AM_CFLAGS) watch_test_SOURCES = \ timeval.c timeval.h \ simple-watch.c simple-watch.h \ watch.h \ malloc.c malloc.h \ watch-test.c watch_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) watch_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) watch_test_thread_SOURCES = $(watch_test_SOURCES) thread-watch.c thread-watch.h watch_test_thread_CFLAGS = $(watch_test_CFLAGS) -DUSE_THREAD watch_test_thread_LDADD = $(watch_test_LDADD) timeval_test_SOURCES = \ timeval.c timeval.h \ timeval-test.c timeval_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) timeval_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) utf8_test_SOURCES = \ utf8-test.c \ utf8.c utf8.h utf8_test_CFLAGS = $(AM_CFLAGS) utf8_test_LDADD = $(AM_LDADD) @HAVE_DBUS_TRUE@noinst_HEADERS = \ @HAVE_DBUS_TRUE@ dbus.h \ @HAVE_DBUS_TRUE@ dbus-watch-glue.h all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-common/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-common/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libavahi-common.la: $(libavahi_common_la_OBJECTS) $(libavahi_common_la_DEPENDENCIES) $(EXTRA_libavahi_common_la_DEPENDENCIES) $(AM_V_CCLD)$(libavahi_common_la_LINK) -rpath $(libdir) $(libavahi_common_la_OBJECTS) $(libavahi_common_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list alternative-test$(EXEEXT): $(alternative_test_OBJECTS) $(alternative_test_DEPENDENCIES) $(EXTRA_alternative_test_DEPENDENCIES) @rm -f alternative-test$(EXEEXT) $(AM_V_CCLD)$(alternative_test_LINK) $(alternative_test_OBJECTS) $(alternative_test_LDADD) $(LIBS) domain-test$(EXEEXT): $(domain_test_OBJECTS) $(domain_test_DEPENDENCIES) $(EXTRA_domain_test_DEPENDENCIES) @rm -f domain-test$(EXEEXT) $(AM_V_CCLD)$(domain_test_LINK) $(domain_test_OBJECTS) $(domain_test_LDADD) $(LIBS) strlst-test$(EXEEXT): $(strlst_test_OBJECTS) $(strlst_test_DEPENDENCIES) $(EXTRA_strlst_test_DEPENDENCIES) @rm -f strlst-test$(EXEEXT) $(AM_V_CCLD)$(strlst_test_LINK) $(strlst_test_OBJECTS) $(strlst_test_LDADD) $(LIBS) timeval-test$(EXEEXT): $(timeval_test_OBJECTS) $(timeval_test_DEPENDENCIES) $(EXTRA_timeval_test_DEPENDENCIES) @rm -f timeval-test$(EXEEXT) $(AM_V_CCLD)$(timeval_test_LINK) $(timeval_test_OBJECTS) $(timeval_test_LDADD) $(LIBS) utf8-test$(EXEEXT): $(utf8_test_OBJECTS) $(utf8_test_DEPENDENCIES) $(EXTRA_utf8_test_DEPENDENCIES) @rm -f utf8-test$(EXEEXT) $(AM_V_CCLD)$(utf8_test_LINK) $(utf8_test_OBJECTS) $(utf8_test_LDADD) $(LIBS) watch-test$(EXEEXT): $(watch_test_OBJECTS) $(watch_test_DEPENDENCIES) $(EXTRA_watch_test_DEPENDENCIES) @rm -f watch-test$(EXEEXT) $(AM_V_CCLD)$(watch_test_LINK) $(watch_test_OBJECTS) $(watch_test_LDADD) $(LIBS) watch-test-thread$(EXEEXT): $(watch_test_thread_OBJECTS) $(watch_test_thread_DEPENDENCIES) $(EXTRA_watch_test_thread_DEPENDENCIES) @rm -f watch-test-thread$(EXEEXT) $(AM_V_CCLD)$(watch_test_thread_LINK) $(watch_test_thread_OBJECTS) $(watch_test_thread_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alternative_test-address.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alternative_test-alternative-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alternative_test-alternative.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alternative_test-domain.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alternative_test-malloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alternative_test-utf8.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/domain_test-address.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/domain_test-domain-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/domain_test-domain.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/domain_test-malloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/domain_test-utf8.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-address.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-alternative.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-domain.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-error.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-i18n.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-malloc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-rlist.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-simple-watch.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-strlst.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-thread-watch.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-timeval.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_common_la-utf8.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strlst_test-malloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strlst_test-strlst-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strlst_test-strlst.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeval_test-timeval-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeval_test-timeval.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utf8_test-utf8-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utf8_test-utf8.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test-malloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test-simple-watch.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test-timeval.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test-watch-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test_thread-malloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test_thread-simple-watch.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test_thread-thread-watch.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test_thread-timeval.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/watch_test_thread-watch-test.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libavahi_common_la-malloc.lo: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-malloc.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-malloc.Tpo -c -o libavahi_common_la-malloc.lo `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-malloc.Tpo $(DEPDIR)/libavahi_common_la-malloc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='libavahi_common_la-malloc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-malloc.lo `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c libavahi_common_la-address.lo: address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-address.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-address.Tpo -c -o libavahi_common_la-address.lo `test -f 'address.c' || echo '$(srcdir)/'`address.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-address.Tpo $(DEPDIR)/libavahi_common_la-address.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address.c' object='libavahi_common_la-address.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-address.lo `test -f 'address.c' || echo '$(srcdir)/'`address.c libavahi_common_la-alternative.lo: alternative.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-alternative.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-alternative.Tpo -c -o libavahi_common_la-alternative.lo `test -f 'alternative.c' || echo '$(srcdir)/'`alternative.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-alternative.Tpo $(DEPDIR)/libavahi_common_la-alternative.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='alternative.c' object='libavahi_common_la-alternative.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-alternative.lo `test -f 'alternative.c' || echo '$(srcdir)/'`alternative.c libavahi_common_la-error.lo: error.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-error.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-error.Tpo -c -o libavahi_common_la-error.lo `test -f 'error.c' || echo '$(srcdir)/'`error.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-error.Tpo $(DEPDIR)/libavahi_common_la-error.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='error.c' object='libavahi_common_la-error.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-error.lo `test -f 'error.c' || echo '$(srcdir)/'`error.c libavahi_common_la-strlst.lo: strlst.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-strlst.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-strlst.Tpo -c -o libavahi_common_la-strlst.lo `test -f 'strlst.c' || echo '$(srcdir)/'`strlst.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-strlst.Tpo $(DEPDIR)/libavahi_common_la-strlst.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strlst.c' object='libavahi_common_la-strlst.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-strlst.lo `test -f 'strlst.c' || echo '$(srcdir)/'`strlst.c libavahi_common_la-domain.lo: domain.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-domain.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-domain.Tpo -c -o libavahi_common_la-domain.lo `test -f 'domain.c' || echo '$(srcdir)/'`domain.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-domain.Tpo $(DEPDIR)/libavahi_common_la-domain.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain.c' object='libavahi_common_la-domain.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-domain.lo `test -f 'domain.c' || echo '$(srcdir)/'`domain.c libavahi_common_la-timeval.lo: timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-timeval.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-timeval.Tpo -c -o libavahi_common_la-timeval.lo `test -f 'timeval.c' || echo '$(srcdir)/'`timeval.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-timeval.Tpo $(DEPDIR)/libavahi_common_la-timeval.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval.c' object='libavahi_common_la-timeval.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-timeval.lo `test -f 'timeval.c' || echo '$(srcdir)/'`timeval.c libavahi_common_la-simple-watch.lo: simple-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-simple-watch.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-simple-watch.Tpo -c -o libavahi_common_la-simple-watch.lo `test -f 'simple-watch.c' || echo '$(srcdir)/'`simple-watch.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-simple-watch.Tpo $(DEPDIR)/libavahi_common_la-simple-watch.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='simple-watch.c' object='libavahi_common_la-simple-watch.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-simple-watch.lo `test -f 'simple-watch.c' || echo '$(srcdir)/'`simple-watch.c libavahi_common_la-thread-watch.lo: thread-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-thread-watch.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-thread-watch.Tpo -c -o libavahi_common_la-thread-watch.lo `test -f 'thread-watch.c' || echo '$(srcdir)/'`thread-watch.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-thread-watch.Tpo $(DEPDIR)/libavahi_common_la-thread-watch.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='thread-watch.c' object='libavahi_common_la-thread-watch.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-thread-watch.lo `test -f 'thread-watch.c' || echo '$(srcdir)/'`thread-watch.c libavahi_common_la-rlist.lo: rlist.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-rlist.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-rlist.Tpo -c -o libavahi_common_la-rlist.lo `test -f 'rlist.c' || echo '$(srcdir)/'`rlist.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-rlist.Tpo $(DEPDIR)/libavahi_common_la-rlist.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rlist.c' object='libavahi_common_la-rlist.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-rlist.lo `test -f 'rlist.c' || echo '$(srcdir)/'`rlist.c libavahi_common_la-utf8.lo: utf8.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-utf8.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-utf8.Tpo -c -o libavahi_common_la-utf8.lo `test -f 'utf8.c' || echo '$(srcdir)/'`utf8.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-utf8.Tpo $(DEPDIR)/libavahi_common_la-utf8.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8.c' object='libavahi_common_la-utf8.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-utf8.lo `test -f 'utf8.c' || echo '$(srcdir)/'`utf8.c libavahi_common_la-i18n.lo: i18n.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -MT libavahi_common_la-i18n.lo -MD -MP -MF $(DEPDIR)/libavahi_common_la-i18n.Tpo -c -o libavahi_common_la-i18n.lo `test -f 'i18n.c' || echo '$(srcdir)/'`i18n.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_common_la-i18n.Tpo $(DEPDIR)/libavahi_common_la-i18n.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='i18n.c' object='libavahi_common_la-i18n.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_common_la_CFLAGS) $(CFLAGS) -c -o libavahi_common_la-i18n.lo `test -f 'i18n.c' || echo '$(srcdir)/'`i18n.c alternative_test-alternative.o: alternative.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-alternative.o -MD -MP -MF $(DEPDIR)/alternative_test-alternative.Tpo -c -o alternative_test-alternative.o `test -f 'alternative.c' || echo '$(srcdir)/'`alternative.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-alternative.Tpo $(DEPDIR)/alternative_test-alternative.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='alternative.c' object='alternative_test-alternative.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-alternative.o `test -f 'alternative.c' || echo '$(srcdir)/'`alternative.c alternative_test-alternative.obj: alternative.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-alternative.obj -MD -MP -MF $(DEPDIR)/alternative_test-alternative.Tpo -c -o alternative_test-alternative.obj `if test -f 'alternative.c'; then $(CYGPATH_W) 'alternative.c'; else $(CYGPATH_W) '$(srcdir)/alternative.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-alternative.Tpo $(DEPDIR)/alternative_test-alternative.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='alternative.c' object='alternative_test-alternative.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-alternative.obj `if test -f 'alternative.c'; then $(CYGPATH_W) 'alternative.c'; else $(CYGPATH_W) '$(srcdir)/alternative.c'; fi` alternative_test-malloc.o: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-malloc.o -MD -MP -MF $(DEPDIR)/alternative_test-malloc.Tpo -c -o alternative_test-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-malloc.Tpo $(DEPDIR)/alternative_test-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='alternative_test-malloc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c alternative_test-malloc.obj: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-malloc.obj -MD -MP -MF $(DEPDIR)/alternative_test-malloc.Tpo -c -o alternative_test-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-malloc.Tpo $(DEPDIR)/alternative_test-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='alternative_test-malloc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` alternative_test-domain.o: domain.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-domain.o -MD -MP -MF $(DEPDIR)/alternative_test-domain.Tpo -c -o alternative_test-domain.o `test -f 'domain.c' || echo '$(srcdir)/'`domain.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-domain.Tpo $(DEPDIR)/alternative_test-domain.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain.c' object='alternative_test-domain.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-domain.o `test -f 'domain.c' || echo '$(srcdir)/'`domain.c alternative_test-domain.obj: domain.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-domain.obj -MD -MP -MF $(DEPDIR)/alternative_test-domain.Tpo -c -o alternative_test-domain.obj `if test -f 'domain.c'; then $(CYGPATH_W) 'domain.c'; else $(CYGPATH_W) '$(srcdir)/domain.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-domain.Tpo $(DEPDIR)/alternative_test-domain.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain.c' object='alternative_test-domain.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-domain.obj `if test -f 'domain.c'; then $(CYGPATH_W) 'domain.c'; else $(CYGPATH_W) '$(srcdir)/domain.c'; fi` alternative_test-address.o: address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-address.o -MD -MP -MF $(DEPDIR)/alternative_test-address.Tpo -c -o alternative_test-address.o `test -f 'address.c' || echo '$(srcdir)/'`address.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-address.Tpo $(DEPDIR)/alternative_test-address.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address.c' object='alternative_test-address.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-address.o `test -f 'address.c' || echo '$(srcdir)/'`address.c alternative_test-address.obj: address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-address.obj -MD -MP -MF $(DEPDIR)/alternative_test-address.Tpo -c -o alternative_test-address.obj `if test -f 'address.c'; then $(CYGPATH_W) 'address.c'; else $(CYGPATH_W) '$(srcdir)/address.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-address.Tpo $(DEPDIR)/alternative_test-address.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address.c' object='alternative_test-address.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-address.obj `if test -f 'address.c'; then $(CYGPATH_W) 'address.c'; else $(CYGPATH_W) '$(srcdir)/address.c'; fi` alternative_test-alternative-test.o: alternative-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-alternative-test.o -MD -MP -MF $(DEPDIR)/alternative_test-alternative-test.Tpo -c -o alternative_test-alternative-test.o `test -f 'alternative-test.c' || echo '$(srcdir)/'`alternative-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-alternative-test.Tpo $(DEPDIR)/alternative_test-alternative-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='alternative-test.c' object='alternative_test-alternative-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-alternative-test.o `test -f 'alternative-test.c' || echo '$(srcdir)/'`alternative-test.c alternative_test-alternative-test.obj: alternative-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-alternative-test.obj -MD -MP -MF $(DEPDIR)/alternative_test-alternative-test.Tpo -c -o alternative_test-alternative-test.obj `if test -f 'alternative-test.c'; then $(CYGPATH_W) 'alternative-test.c'; else $(CYGPATH_W) '$(srcdir)/alternative-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-alternative-test.Tpo $(DEPDIR)/alternative_test-alternative-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='alternative-test.c' object='alternative_test-alternative-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-alternative-test.obj `if test -f 'alternative-test.c'; then $(CYGPATH_W) 'alternative-test.c'; else $(CYGPATH_W) '$(srcdir)/alternative-test.c'; fi` alternative_test-utf8.o: utf8.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-utf8.o -MD -MP -MF $(DEPDIR)/alternative_test-utf8.Tpo -c -o alternative_test-utf8.o `test -f 'utf8.c' || echo '$(srcdir)/'`utf8.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-utf8.Tpo $(DEPDIR)/alternative_test-utf8.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8.c' object='alternative_test-utf8.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-utf8.o `test -f 'utf8.c' || echo '$(srcdir)/'`utf8.c alternative_test-utf8.obj: utf8.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -MT alternative_test-utf8.obj -MD -MP -MF $(DEPDIR)/alternative_test-utf8.Tpo -c -o alternative_test-utf8.obj `if test -f 'utf8.c'; then $(CYGPATH_W) 'utf8.c'; else $(CYGPATH_W) '$(srcdir)/utf8.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/alternative_test-utf8.Tpo $(DEPDIR)/alternative_test-utf8.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8.c' object='alternative_test-utf8.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(alternative_test_CFLAGS) $(CFLAGS) -c -o alternative_test-utf8.obj `if test -f 'utf8.c'; then $(CYGPATH_W) 'utf8.c'; else $(CYGPATH_W) '$(srcdir)/utf8.c'; fi` domain_test-domain.o: domain.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-domain.o -MD -MP -MF $(DEPDIR)/domain_test-domain.Tpo -c -o domain_test-domain.o `test -f 'domain.c' || echo '$(srcdir)/'`domain.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-domain.Tpo $(DEPDIR)/domain_test-domain.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain.c' object='domain_test-domain.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-domain.o `test -f 'domain.c' || echo '$(srcdir)/'`domain.c domain_test-domain.obj: domain.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-domain.obj -MD -MP -MF $(DEPDIR)/domain_test-domain.Tpo -c -o domain_test-domain.obj `if test -f 'domain.c'; then $(CYGPATH_W) 'domain.c'; else $(CYGPATH_W) '$(srcdir)/domain.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-domain.Tpo $(DEPDIR)/domain_test-domain.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain.c' object='domain_test-domain.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-domain.obj `if test -f 'domain.c'; then $(CYGPATH_W) 'domain.c'; else $(CYGPATH_W) '$(srcdir)/domain.c'; fi` domain_test-malloc.o: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-malloc.o -MD -MP -MF $(DEPDIR)/domain_test-malloc.Tpo -c -o domain_test-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-malloc.Tpo $(DEPDIR)/domain_test-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='domain_test-malloc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c domain_test-malloc.obj: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-malloc.obj -MD -MP -MF $(DEPDIR)/domain_test-malloc.Tpo -c -o domain_test-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-malloc.Tpo $(DEPDIR)/domain_test-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='domain_test-malloc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` domain_test-address.o: address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-address.o -MD -MP -MF $(DEPDIR)/domain_test-address.Tpo -c -o domain_test-address.o `test -f 'address.c' || echo '$(srcdir)/'`address.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-address.Tpo $(DEPDIR)/domain_test-address.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address.c' object='domain_test-address.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-address.o `test -f 'address.c' || echo '$(srcdir)/'`address.c domain_test-address.obj: address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-address.obj -MD -MP -MF $(DEPDIR)/domain_test-address.Tpo -c -o domain_test-address.obj `if test -f 'address.c'; then $(CYGPATH_W) 'address.c'; else $(CYGPATH_W) '$(srcdir)/address.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-address.Tpo $(DEPDIR)/domain_test-address.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address.c' object='domain_test-address.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-address.obj `if test -f 'address.c'; then $(CYGPATH_W) 'address.c'; else $(CYGPATH_W) '$(srcdir)/address.c'; fi` domain_test-domain-test.o: domain-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-domain-test.o -MD -MP -MF $(DEPDIR)/domain_test-domain-test.Tpo -c -o domain_test-domain-test.o `test -f 'domain-test.c' || echo '$(srcdir)/'`domain-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-domain-test.Tpo $(DEPDIR)/domain_test-domain-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain-test.c' object='domain_test-domain-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-domain-test.o `test -f 'domain-test.c' || echo '$(srcdir)/'`domain-test.c domain_test-domain-test.obj: domain-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-domain-test.obj -MD -MP -MF $(DEPDIR)/domain_test-domain-test.Tpo -c -o domain_test-domain-test.obj `if test -f 'domain-test.c'; then $(CYGPATH_W) 'domain-test.c'; else $(CYGPATH_W) '$(srcdir)/domain-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-domain-test.Tpo $(DEPDIR)/domain_test-domain-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='domain-test.c' object='domain_test-domain-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-domain-test.obj `if test -f 'domain-test.c'; then $(CYGPATH_W) 'domain-test.c'; else $(CYGPATH_W) '$(srcdir)/domain-test.c'; fi` domain_test-utf8.o: utf8.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-utf8.o -MD -MP -MF $(DEPDIR)/domain_test-utf8.Tpo -c -o domain_test-utf8.o `test -f 'utf8.c' || echo '$(srcdir)/'`utf8.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-utf8.Tpo $(DEPDIR)/domain_test-utf8.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8.c' object='domain_test-utf8.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-utf8.o `test -f 'utf8.c' || echo '$(srcdir)/'`utf8.c domain_test-utf8.obj: utf8.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -MT domain_test-utf8.obj -MD -MP -MF $(DEPDIR)/domain_test-utf8.Tpo -c -o domain_test-utf8.obj `if test -f 'utf8.c'; then $(CYGPATH_W) 'utf8.c'; else $(CYGPATH_W) '$(srcdir)/utf8.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/domain_test-utf8.Tpo $(DEPDIR)/domain_test-utf8.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8.c' object='domain_test-utf8.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(domain_test_CFLAGS) $(CFLAGS) -c -o domain_test-utf8.obj `if test -f 'utf8.c'; then $(CYGPATH_W) 'utf8.c'; else $(CYGPATH_W) '$(srcdir)/utf8.c'; fi` strlst_test-strlst.o: strlst.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -MT strlst_test-strlst.o -MD -MP -MF $(DEPDIR)/strlst_test-strlst.Tpo -c -o strlst_test-strlst.o `test -f 'strlst.c' || echo '$(srcdir)/'`strlst.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/strlst_test-strlst.Tpo $(DEPDIR)/strlst_test-strlst.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strlst.c' object='strlst_test-strlst.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -c -o strlst_test-strlst.o `test -f 'strlst.c' || echo '$(srcdir)/'`strlst.c strlst_test-strlst.obj: strlst.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -MT strlst_test-strlst.obj -MD -MP -MF $(DEPDIR)/strlst_test-strlst.Tpo -c -o strlst_test-strlst.obj `if test -f 'strlst.c'; then $(CYGPATH_W) 'strlst.c'; else $(CYGPATH_W) '$(srcdir)/strlst.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/strlst_test-strlst.Tpo $(DEPDIR)/strlst_test-strlst.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strlst.c' object='strlst_test-strlst.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -c -o strlst_test-strlst.obj `if test -f 'strlst.c'; then $(CYGPATH_W) 'strlst.c'; else $(CYGPATH_W) '$(srcdir)/strlst.c'; fi` strlst_test-malloc.o: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -MT strlst_test-malloc.o -MD -MP -MF $(DEPDIR)/strlst_test-malloc.Tpo -c -o strlst_test-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/strlst_test-malloc.Tpo $(DEPDIR)/strlst_test-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='strlst_test-malloc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -c -o strlst_test-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c strlst_test-malloc.obj: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -MT strlst_test-malloc.obj -MD -MP -MF $(DEPDIR)/strlst_test-malloc.Tpo -c -o strlst_test-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/strlst_test-malloc.Tpo $(DEPDIR)/strlst_test-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='strlst_test-malloc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -c -o strlst_test-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` strlst_test-strlst-test.o: strlst-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -MT strlst_test-strlst-test.o -MD -MP -MF $(DEPDIR)/strlst_test-strlst-test.Tpo -c -o strlst_test-strlst-test.o `test -f 'strlst-test.c' || echo '$(srcdir)/'`strlst-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/strlst_test-strlst-test.Tpo $(DEPDIR)/strlst_test-strlst-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strlst-test.c' object='strlst_test-strlst-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -c -o strlst_test-strlst-test.o `test -f 'strlst-test.c' || echo '$(srcdir)/'`strlst-test.c strlst_test-strlst-test.obj: strlst-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -MT strlst_test-strlst-test.obj -MD -MP -MF $(DEPDIR)/strlst_test-strlst-test.Tpo -c -o strlst_test-strlst-test.obj `if test -f 'strlst-test.c'; then $(CYGPATH_W) 'strlst-test.c'; else $(CYGPATH_W) '$(srcdir)/strlst-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/strlst_test-strlst-test.Tpo $(DEPDIR)/strlst_test-strlst-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strlst-test.c' object='strlst_test-strlst-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(strlst_test_CFLAGS) $(CFLAGS) -c -o strlst_test-strlst-test.obj `if test -f 'strlst-test.c'; then $(CYGPATH_W) 'strlst-test.c'; else $(CYGPATH_W) '$(srcdir)/strlst-test.c'; fi` timeval_test-timeval.o: timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeval_test_CFLAGS) $(CFLAGS) -MT timeval_test-timeval.o -MD -MP -MF $(DEPDIR)/timeval_test-timeval.Tpo -c -o timeval_test-timeval.o `test -f 'timeval.c' || echo '$(srcdir)/'`timeval.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeval_test-timeval.Tpo $(DEPDIR)/timeval_test-timeval.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval.c' object='timeval_test-timeval.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeval_test_CFLAGS) $(CFLAGS) -c -o timeval_test-timeval.o `test -f 'timeval.c' || echo '$(srcdir)/'`timeval.c timeval_test-timeval.obj: timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeval_test_CFLAGS) $(CFLAGS) -MT timeval_test-timeval.obj -MD -MP -MF $(DEPDIR)/timeval_test-timeval.Tpo -c -o timeval_test-timeval.obj `if test -f 'timeval.c'; then $(CYGPATH_W) 'timeval.c'; else $(CYGPATH_W) '$(srcdir)/timeval.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeval_test-timeval.Tpo $(DEPDIR)/timeval_test-timeval.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval.c' object='timeval_test-timeval.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeval_test_CFLAGS) $(CFLAGS) -c -o timeval_test-timeval.obj `if test -f 'timeval.c'; then $(CYGPATH_W) 'timeval.c'; else $(CYGPATH_W) '$(srcdir)/timeval.c'; fi` timeval_test-timeval-test.o: timeval-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeval_test_CFLAGS) $(CFLAGS) -MT timeval_test-timeval-test.o -MD -MP -MF $(DEPDIR)/timeval_test-timeval-test.Tpo -c -o timeval_test-timeval-test.o `test -f 'timeval-test.c' || echo '$(srcdir)/'`timeval-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeval_test-timeval-test.Tpo $(DEPDIR)/timeval_test-timeval-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval-test.c' object='timeval_test-timeval-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeval_test_CFLAGS) $(CFLAGS) -c -o timeval_test-timeval-test.o `test -f 'timeval-test.c' || echo '$(srcdir)/'`timeval-test.c timeval_test-timeval-test.obj: timeval-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeval_test_CFLAGS) $(CFLAGS) -MT timeval_test-timeval-test.obj -MD -MP -MF $(DEPDIR)/timeval_test-timeval-test.Tpo -c -o timeval_test-timeval-test.obj `if test -f 'timeval-test.c'; then $(CYGPATH_W) 'timeval-test.c'; else $(CYGPATH_W) '$(srcdir)/timeval-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/timeval_test-timeval-test.Tpo $(DEPDIR)/timeval_test-timeval-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval-test.c' object='timeval_test-timeval-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(timeval_test_CFLAGS) $(CFLAGS) -c -o timeval_test-timeval-test.obj `if test -f 'timeval-test.c'; then $(CYGPATH_W) 'timeval-test.c'; else $(CYGPATH_W) '$(srcdir)/timeval-test.c'; fi` utf8_test-utf8-test.o: utf8-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(utf8_test_CFLAGS) $(CFLAGS) -MT utf8_test-utf8-test.o -MD -MP -MF $(DEPDIR)/utf8_test-utf8-test.Tpo -c -o utf8_test-utf8-test.o `test -f 'utf8-test.c' || echo '$(srcdir)/'`utf8-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/utf8_test-utf8-test.Tpo $(DEPDIR)/utf8_test-utf8-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8-test.c' object='utf8_test-utf8-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(utf8_test_CFLAGS) $(CFLAGS) -c -o utf8_test-utf8-test.o `test -f 'utf8-test.c' || echo '$(srcdir)/'`utf8-test.c utf8_test-utf8-test.obj: utf8-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(utf8_test_CFLAGS) $(CFLAGS) -MT utf8_test-utf8-test.obj -MD -MP -MF $(DEPDIR)/utf8_test-utf8-test.Tpo -c -o utf8_test-utf8-test.obj `if test -f 'utf8-test.c'; then $(CYGPATH_W) 'utf8-test.c'; else $(CYGPATH_W) '$(srcdir)/utf8-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/utf8_test-utf8-test.Tpo $(DEPDIR)/utf8_test-utf8-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8-test.c' object='utf8_test-utf8-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(utf8_test_CFLAGS) $(CFLAGS) -c -o utf8_test-utf8-test.obj `if test -f 'utf8-test.c'; then $(CYGPATH_W) 'utf8-test.c'; else $(CYGPATH_W) '$(srcdir)/utf8-test.c'; fi` utf8_test-utf8.o: utf8.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(utf8_test_CFLAGS) $(CFLAGS) -MT utf8_test-utf8.o -MD -MP -MF $(DEPDIR)/utf8_test-utf8.Tpo -c -o utf8_test-utf8.o `test -f 'utf8.c' || echo '$(srcdir)/'`utf8.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/utf8_test-utf8.Tpo $(DEPDIR)/utf8_test-utf8.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8.c' object='utf8_test-utf8.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(utf8_test_CFLAGS) $(CFLAGS) -c -o utf8_test-utf8.o `test -f 'utf8.c' || echo '$(srcdir)/'`utf8.c utf8_test-utf8.obj: utf8.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(utf8_test_CFLAGS) $(CFLAGS) -MT utf8_test-utf8.obj -MD -MP -MF $(DEPDIR)/utf8_test-utf8.Tpo -c -o utf8_test-utf8.obj `if test -f 'utf8.c'; then $(CYGPATH_W) 'utf8.c'; else $(CYGPATH_W) '$(srcdir)/utf8.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/utf8_test-utf8.Tpo $(DEPDIR)/utf8_test-utf8.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utf8.c' object='utf8_test-utf8.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(utf8_test_CFLAGS) $(CFLAGS) -c -o utf8_test-utf8.obj `if test -f 'utf8.c'; then $(CYGPATH_W) 'utf8.c'; else $(CYGPATH_W) '$(srcdir)/utf8.c'; fi` watch_test-timeval.o: timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -MT watch_test-timeval.o -MD -MP -MF $(DEPDIR)/watch_test-timeval.Tpo -c -o watch_test-timeval.o `test -f 'timeval.c' || echo '$(srcdir)/'`timeval.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test-timeval.Tpo $(DEPDIR)/watch_test-timeval.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval.c' object='watch_test-timeval.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -c -o watch_test-timeval.o `test -f 'timeval.c' || echo '$(srcdir)/'`timeval.c watch_test-timeval.obj: timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -MT watch_test-timeval.obj -MD -MP -MF $(DEPDIR)/watch_test-timeval.Tpo -c -o watch_test-timeval.obj `if test -f 'timeval.c'; then $(CYGPATH_W) 'timeval.c'; else $(CYGPATH_W) '$(srcdir)/timeval.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test-timeval.Tpo $(DEPDIR)/watch_test-timeval.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval.c' object='watch_test-timeval.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -c -o watch_test-timeval.obj `if test -f 'timeval.c'; then $(CYGPATH_W) 'timeval.c'; else $(CYGPATH_W) '$(srcdir)/timeval.c'; fi` watch_test-simple-watch.o: simple-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -MT watch_test-simple-watch.o -MD -MP -MF $(DEPDIR)/watch_test-simple-watch.Tpo -c -o watch_test-simple-watch.o `test -f 'simple-watch.c' || echo '$(srcdir)/'`simple-watch.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test-simple-watch.Tpo $(DEPDIR)/watch_test-simple-watch.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='simple-watch.c' object='watch_test-simple-watch.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -c -o watch_test-simple-watch.o `test -f 'simple-watch.c' || echo '$(srcdir)/'`simple-watch.c watch_test-simple-watch.obj: simple-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -MT watch_test-simple-watch.obj -MD -MP -MF $(DEPDIR)/watch_test-simple-watch.Tpo -c -o watch_test-simple-watch.obj `if test -f 'simple-watch.c'; then $(CYGPATH_W) 'simple-watch.c'; else $(CYGPATH_W) '$(srcdir)/simple-watch.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test-simple-watch.Tpo $(DEPDIR)/watch_test-simple-watch.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='simple-watch.c' object='watch_test-simple-watch.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -c -o watch_test-simple-watch.obj `if test -f 'simple-watch.c'; then $(CYGPATH_W) 'simple-watch.c'; else $(CYGPATH_W) '$(srcdir)/simple-watch.c'; fi` watch_test-malloc.o: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -MT watch_test-malloc.o -MD -MP -MF $(DEPDIR)/watch_test-malloc.Tpo -c -o watch_test-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test-malloc.Tpo $(DEPDIR)/watch_test-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='watch_test-malloc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -c -o watch_test-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c watch_test-malloc.obj: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -MT watch_test-malloc.obj -MD -MP -MF $(DEPDIR)/watch_test-malloc.Tpo -c -o watch_test-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test-malloc.Tpo $(DEPDIR)/watch_test-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='watch_test-malloc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -c -o watch_test-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` watch_test-watch-test.o: watch-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -MT watch_test-watch-test.o -MD -MP -MF $(DEPDIR)/watch_test-watch-test.Tpo -c -o watch_test-watch-test.o `test -f 'watch-test.c' || echo '$(srcdir)/'`watch-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test-watch-test.Tpo $(DEPDIR)/watch_test-watch-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='watch-test.c' object='watch_test-watch-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -c -o watch_test-watch-test.o `test -f 'watch-test.c' || echo '$(srcdir)/'`watch-test.c watch_test-watch-test.obj: watch-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -MT watch_test-watch-test.obj -MD -MP -MF $(DEPDIR)/watch_test-watch-test.Tpo -c -o watch_test-watch-test.obj `if test -f 'watch-test.c'; then $(CYGPATH_W) 'watch-test.c'; else $(CYGPATH_W) '$(srcdir)/watch-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test-watch-test.Tpo $(DEPDIR)/watch_test-watch-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='watch-test.c' object='watch_test-watch-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_CFLAGS) $(CFLAGS) -c -o watch_test-watch-test.obj `if test -f 'watch-test.c'; then $(CYGPATH_W) 'watch-test.c'; else $(CYGPATH_W) '$(srcdir)/watch-test.c'; fi` watch_test_thread-timeval.o: timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-timeval.o -MD -MP -MF $(DEPDIR)/watch_test_thread-timeval.Tpo -c -o watch_test_thread-timeval.o `test -f 'timeval.c' || echo '$(srcdir)/'`timeval.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-timeval.Tpo $(DEPDIR)/watch_test_thread-timeval.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval.c' object='watch_test_thread-timeval.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-timeval.o `test -f 'timeval.c' || echo '$(srcdir)/'`timeval.c watch_test_thread-timeval.obj: timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-timeval.obj -MD -MP -MF $(DEPDIR)/watch_test_thread-timeval.Tpo -c -o watch_test_thread-timeval.obj `if test -f 'timeval.c'; then $(CYGPATH_W) 'timeval.c'; else $(CYGPATH_W) '$(srcdir)/timeval.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-timeval.Tpo $(DEPDIR)/watch_test_thread-timeval.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timeval.c' object='watch_test_thread-timeval.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-timeval.obj `if test -f 'timeval.c'; then $(CYGPATH_W) 'timeval.c'; else $(CYGPATH_W) '$(srcdir)/timeval.c'; fi` watch_test_thread-simple-watch.o: simple-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-simple-watch.o -MD -MP -MF $(DEPDIR)/watch_test_thread-simple-watch.Tpo -c -o watch_test_thread-simple-watch.o `test -f 'simple-watch.c' || echo '$(srcdir)/'`simple-watch.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-simple-watch.Tpo $(DEPDIR)/watch_test_thread-simple-watch.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='simple-watch.c' object='watch_test_thread-simple-watch.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-simple-watch.o `test -f 'simple-watch.c' || echo '$(srcdir)/'`simple-watch.c watch_test_thread-simple-watch.obj: simple-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-simple-watch.obj -MD -MP -MF $(DEPDIR)/watch_test_thread-simple-watch.Tpo -c -o watch_test_thread-simple-watch.obj `if test -f 'simple-watch.c'; then $(CYGPATH_W) 'simple-watch.c'; else $(CYGPATH_W) '$(srcdir)/simple-watch.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-simple-watch.Tpo $(DEPDIR)/watch_test_thread-simple-watch.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='simple-watch.c' object='watch_test_thread-simple-watch.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-simple-watch.obj `if test -f 'simple-watch.c'; then $(CYGPATH_W) 'simple-watch.c'; else $(CYGPATH_W) '$(srcdir)/simple-watch.c'; fi` watch_test_thread-malloc.o: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-malloc.o -MD -MP -MF $(DEPDIR)/watch_test_thread-malloc.Tpo -c -o watch_test_thread-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-malloc.Tpo $(DEPDIR)/watch_test_thread-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='watch_test_thread-malloc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c watch_test_thread-malloc.obj: malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-malloc.obj -MD -MP -MF $(DEPDIR)/watch_test_thread-malloc.Tpo -c -o watch_test_thread-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-malloc.Tpo $(DEPDIR)/watch_test_thread-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='watch_test_thread-malloc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi` watch_test_thread-watch-test.o: watch-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-watch-test.o -MD -MP -MF $(DEPDIR)/watch_test_thread-watch-test.Tpo -c -o watch_test_thread-watch-test.o `test -f 'watch-test.c' || echo '$(srcdir)/'`watch-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-watch-test.Tpo $(DEPDIR)/watch_test_thread-watch-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='watch-test.c' object='watch_test_thread-watch-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-watch-test.o `test -f 'watch-test.c' || echo '$(srcdir)/'`watch-test.c watch_test_thread-watch-test.obj: watch-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-watch-test.obj -MD -MP -MF $(DEPDIR)/watch_test_thread-watch-test.Tpo -c -o watch_test_thread-watch-test.obj `if test -f 'watch-test.c'; then $(CYGPATH_W) 'watch-test.c'; else $(CYGPATH_W) '$(srcdir)/watch-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-watch-test.Tpo $(DEPDIR)/watch_test_thread-watch-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='watch-test.c' object='watch_test_thread-watch-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-watch-test.obj `if test -f 'watch-test.c'; then $(CYGPATH_W) 'watch-test.c'; else $(CYGPATH_W) '$(srcdir)/watch-test.c'; fi` watch_test_thread-thread-watch.o: thread-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-thread-watch.o -MD -MP -MF $(DEPDIR)/watch_test_thread-thread-watch.Tpo -c -o watch_test_thread-thread-watch.o `test -f 'thread-watch.c' || echo '$(srcdir)/'`thread-watch.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-thread-watch.Tpo $(DEPDIR)/watch_test_thread-thread-watch.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='thread-watch.c' object='watch_test_thread-thread-watch.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-thread-watch.o `test -f 'thread-watch.c' || echo '$(srcdir)/'`thread-watch.c watch_test_thread-thread-watch.obj: thread-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -MT watch_test_thread-thread-watch.obj -MD -MP -MF $(DEPDIR)/watch_test_thread-thread-watch.Tpo -c -o watch_test_thread-thread-watch.obj `if test -f 'thread-watch.c'; then $(CYGPATH_W) 'thread-watch.c'; else $(CYGPATH_W) '$(srcdir)/thread-watch.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/watch_test_thread-thread-watch.Tpo $(DEPDIR)/watch_test_thread-thread-watch.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='thread-watch.c' object='watch_test_thread-thread-watch.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(watch_test_thread_CFLAGS) $(CFLAGS) -c -o watch_test_thread-thread-watch.obj `if test -f 'thread-watch.c'; then $(CYGPATH_W) 'thread-watch.c'; else $(CYGPATH_W) '$(srcdir)/thread-watch.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahi_commonincludeHEADERS: $(avahi_commoninclude_HEADERS) @$(NORMAL_INSTALL) @list='$(avahi_commoninclude_HEADERS)'; test -n "$(avahi_commonincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_commonincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_commonincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahi_commonincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahi_commonincludedir)" || exit $$?; \ done uninstall-avahi_commonincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahi_commoninclude_HEADERS)'; test -n "$(avahi_commonincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahi_commonincludedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahi_commonincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahi_commonincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahi_commonincludeHEADERS \ uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-avahi_commonincludeHEADERS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-avahi_commonincludeHEADERS uninstall-libLTLIBRARIES .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-common/PaxHeaders.10109/simple-watch.c0000644000000000000000000000013213130651643017320 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.075988506 avahi-0.7/avahi-common/simple-watch.c0000644000175000017500000003420013130651643020726 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include "llist.h" #include "malloc.h" #include "timeval.h" #include "simple-watch.h" struct AvahiWatch { AvahiSimplePoll *simple_poll; int dead; int idx; struct pollfd pollfd; AvahiWatchCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiWatch, watches); }; struct AvahiTimeout { AvahiSimplePoll *simple_poll; int dead; int enabled; struct timeval expiry; AvahiTimeoutCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiTimeout, timeouts); }; struct AvahiSimplePoll { AvahiPoll api; AvahiPollFunc poll_func; void *poll_func_userdata; struct pollfd* pollfds; int n_pollfds, max_pollfds, rebuild_pollfds; int watch_req_cleanup, timeout_req_cleanup; int quit; int events_valid; int n_watches; AVAHI_LLIST_HEAD(AvahiWatch, watches); AVAHI_LLIST_HEAD(AvahiTimeout, timeouts); int wakeup_pipe[2]; int wakeup_issued; int prepared_timeout; enum { STATE_INIT, STATE_PREPARING, STATE_PREPARED, STATE_RUNNING, STATE_RAN, STATE_DISPATCHING, STATE_DISPATCHED, STATE_QUIT, STATE_FAILURE } state; }; void avahi_simple_poll_wakeup(AvahiSimplePoll *s) { char c = 'W'; assert(s); write(s->wakeup_pipe[1], &c, sizeof(c)); s->wakeup_issued = 1; } static void clear_wakeup(AvahiSimplePoll *s) { char c[10]; /* Read ten at a time */ if (!s->wakeup_issued) return; s->wakeup_issued = 0; for(;;) if (read(s->wakeup_pipe[0], &c, sizeof(c)) != sizeof(c)) break; } static int set_nonblock(int fd) { int n; assert(fd >= 0); if ((n = fcntl(fd, F_GETFL)) < 0) return -1; if (n & O_NONBLOCK) return 0; return fcntl(fd, F_SETFL, n|O_NONBLOCK); } static AvahiWatch* watch_new(const AvahiPoll *api, int fd, AvahiWatchEvent event, AvahiWatchCallback callback, void *userdata) { AvahiWatch *w; AvahiSimplePoll *s; assert(api); assert(fd >= 0); assert(callback); s = api->userdata; assert(s); if (!(w = avahi_new(AvahiWatch, 1))) return NULL; /* If there is a background thread running the poll() for us, tell it to exit the poll() */ avahi_simple_poll_wakeup(s); w->simple_poll = s; w->dead = 0; w->pollfd.fd = fd; w->pollfd.events = event; w->pollfd.revents = 0; w->callback = callback; w->userdata = userdata; w->idx = -1; s->rebuild_pollfds = 1; AVAHI_LLIST_PREPEND(AvahiWatch, watches, s->watches, w); s->n_watches++; return w; } static void watch_update(AvahiWatch *w, AvahiWatchEvent events) { assert(w); assert(!w->dead); /* If there is a background thread running the poll() for us, tell it to exit the poll() */ avahi_simple_poll_wakeup(w->simple_poll); w->pollfd.events = events; if (w->idx != -1) { assert(w->simple_poll); w->simple_poll->pollfds[w->idx] = w->pollfd; } else w->simple_poll->rebuild_pollfds = 1; } static AvahiWatchEvent watch_get_events(AvahiWatch *w) { assert(w); assert(!w->dead); if (w->idx != -1 && w->simple_poll->events_valid) return w->simple_poll->pollfds[w->idx].revents; return 0; } static void remove_pollfd(AvahiWatch *w) { assert(w); if (w->idx == -1) return; w->simple_poll->rebuild_pollfds = 1; } static void watch_free(AvahiWatch *w) { assert(w); assert(!w->dead); /* If there is a background thread running the poll() for us, tell it to exit the poll() */ avahi_simple_poll_wakeup(w->simple_poll); remove_pollfd(w); w->dead = 1; w->simple_poll->n_watches --; w->simple_poll->watch_req_cleanup = 1; } static void destroy_watch(AvahiWatch *w) { assert(w); remove_pollfd(w); AVAHI_LLIST_REMOVE(AvahiWatch, watches, w->simple_poll->watches, w); if (!w->dead) w->simple_poll->n_watches --; avahi_free(w); } static void cleanup_watches(AvahiSimplePoll *s, int all) { AvahiWatch *w, *next; assert(s); for (w = s->watches; w; w = next) { next = w->watches_next; if (all || w->dead) destroy_watch(w); } s->timeout_req_cleanup = 0; } static AvahiTimeout* timeout_new(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata) { AvahiTimeout *t; AvahiSimplePoll *s; assert(api); assert(callback); s = api->userdata; assert(s); if (!(t = avahi_new(AvahiTimeout, 1))) return NULL; /* If there is a background thread running the poll() for us, tell it to exit the poll() */ avahi_simple_poll_wakeup(s); t->simple_poll = s; t->dead = 0; if ((t->enabled = !!tv)) t->expiry = *tv; t->callback = callback; t->userdata = userdata; AVAHI_LLIST_PREPEND(AvahiTimeout, timeouts, s->timeouts, t); return t; } static void timeout_update(AvahiTimeout *t, const struct timeval *tv) { assert(t); assert(!t->dead); /* If there is a background thread running the poll() for us, tell it to exit the poll() */ avahi_simple_poll_wakeup(t->simple_poll); if ((t->enabled = !!tv)) t->expiry = *tv; } static void timeout_free(AvahiTimeout *t) { assert(t); assert(!t->dead); /* If there is a background thread running the poll() for us, tell it to exit the poll() */ avahi_simple_poll_wakeup(t->simple_poll); t->dead = 1; t->simple_poll->timeout_req_cleanup = 1; } static void destroy_timeout(AvahiTimeout *t) { assert(t); AVAHI_LLIST_REMOVE(AvahiTimeout, timeouts, t->simple_poll->timeouts, t); avahi_free(t); } static void cleanup_timeouts(AvahiSimplePoll *s, int all) { AvahiTimeout *t, *next; assert(s); for (t = s->timeouts; t; t = next) { next = t->timeouts_next; if (all || t->dead) destroy_timeout(t); } s->timeout_req_cleanup = 0; } AvahiSimplePoll *avahi_simple_poll_new(void) { AvahiSimplePoll *s; if (!(s = avahi_new(AvahiSimplePoll, 1))) return NULL; if (pipe(s->wakeup_pipe) < 0) { avahi_free(s); return NULL; } set_nonblock(s->wakeup_pipe[0]); set_nonblock(s->wakeup_pipe[1]); s->api.userdata = s; s->api.watch_new = watch_new; s->api.watch_free = watch_free; s->api.watch_update = watch_update; s->api.watch_get_events = watch_get_events; s->api.timeout_new = timeout_new; s->api.timeout_free = timeout_free; s->api.timeout_update = timeout_update; s->pollfds = NULL; s->max_pollfds = s->n_pollfds = 0; s->rebuild_pollfds = 1; s->quit = 0; s->n_watches = 0; s->events_valid = 0; s->watch_req_cleanup = 0; s->timeout_req_cleanup = 0; s->prepared_timeout = 0; s->state = STATE_INIT; s->wakeup_issued = 0; avahi_simple_poll_set_func(s, NULL, NULL); AVAHI_LLIST_HEAD_INIT(AvahiWatch, s->watches); AVAHI_LLIST_HEAD_INIT(AvahiTimeout, s->timeouts); return s; } void avahi_simple_poll_free(AvahiSimplePoll *s) { assert(s); cleanup_timeouts(s, 1); cleanup_watches(s, 1); assert(s->n_watches == 0); avahi_free(s->pollfds); if (s->wakeup_pipe[0] >= 0) close(s->wakeup_pipe[0]); if (s->wakeup_pipe[1] >= 0) close(s->wakeup_pipe[1]); avahi_free(s); } static int rebuild(AvahiSimplePoll *s) { AvahiWatch *w; int idx; assert(s); if (s->n_watches+1 > s->max_pollfds) { struct pollfd *n; s->max_pollfds = s->n_watches + 10; if (!(n = avahi_realloc(s->pollfds, sizeof(struct pollfd) * s->max_pollfds))) return -1; s->pollfds = n; } s->pollfds[0].fd = s->wakeup_pipe[0]; s->pollfds[0].events = POLLIN; s->pollfds[0].revents = 0; idx = 1; for (w = s->watches; w; w = w->watches_next) { if(w->dead) continue; assert(w->idx < s->max_pollfds); s->pollfds[w->idx = idx++] = w->pollfd; } s->n_pollfds = idx; s->events_valid = 0; s->rebuild_pollfds = 0; return 0; } static AvahiTimeout* find_next_timeout(AvahiSimplePoll *s) { AvahiTimeout *t, *n = NULL; assert(s); for (t = s->timeouts; t; t = t->timeouts_next) { if (t->dead || !t->enabled) continue; if (!n || avahi_timeval_compare(&t->expiry, &n->expiry) < 0) n = t; } return n; } static void timeout_callback(AvahiTimeout *t) { assert(t); assert(!t->dead); assert(t->enabled); t->enabled = 0; t->callback(t, t->userdata); } int avahi_simple_poll_prepare(AvahiSimplePoll *s, int timeout) { AvahiTimeout *next_timeout; assert(s); assert(s->state == STATE_INIT || s->state == STATE_DISPATCHED || s->state == STATE_FAILURE); s->state = STATE_PREPARING; /* Clear pending wakeup requests */ clear_wakeup(s); /* Cleanup things first */ if (s->watch_req_cleanup) cleanup_watches(s, 0); if (s->timeout_req_cleanup) cleanup_timeouts(s, 0); /* Check whether a quit was requested */ if (s->quit) { s->state = STATE_QUIT; return 1; } /* Do we need to rebuild our array of pollfds? */ if (s->rebuild_pollfds) if (rebuild(s) < 0) { s->state = STATE_FAILURE; return -1; } /* Calculate the wakeup time */ if ((next_timeout = find_next_timeout(s))) { struct timeval now; int t; AvahiUsec usec; if (next_timeout->expiry.tv_sec == 0 && next_timeout->expiry.tv_usec == 0) { /* Just a shortcut so that we don't need to call gettimeofday() */ timeout = 0; goto finish; } gettimeofday(&now, NULL); usec = avahi_timeval_diff(&next_timeout->expiry, &now); if (usec <= 0) { /* Timeout elapsed */ timeout = 0; goto finish; } /* Calculate sleep time. We add 1ms because otherwise we'd * wake up too early most of the time */ t = (int) (usec / 1000) + 1; if (timeout < 0 || timeout > t) timeout = t; } finish: s->prepared_timeout = timeout; s->state = STATE_PREPARED; return 0; } int avahi_simple_poll_run(AvahiSimplePoll *s) { assert(s); assert(s->state == STATE_PREPARED || s->state == STATE_FAILURE); s->state = STATE_RUNNING; for (;;) { errno = 0; if (s->poll_func(s->pollfds, s->n_pollfds, s->prepared_timeout, s->poll_func_userdata) < 0) { if (errno == EINTR) continue; s->state = STATE_FAILURE; return -1; } break; } /* The poll events are now valid again */ s->events_valid = 1; /* Update state */ s->state = STATE_RAN; return 0; } int avahi_simple_poll_dispatch(AvahiSimplePoll *s) { AvahiTimeout *next_timeout; AvahiWatch *w; assert(s); assert(s->state == STATE_RAN); s->state = STATE_DISPATCHING; /* We execute only on callback in every iteration */ /* Check whether the wakeup time has been reached now */ if ((next_timeout = find_next_timeout(s))) { if (next_timeout->expiry.tv_sec == 0 && next_timeout->expiry.tv_usec == 0) { /* Just a shortcut so that we don't need to call gettimeofday() */ timeout_callback(next_timeout); goto finish; } if (avahi_age(&next_timeout->expiry) >= 0) { /* Timeout elapsed */ timeout_callback(next_timeout); goto finish; } } /* Look for some kind of I/O event */ for (w = s->watches; w; w = w->watches_next) { if (w->dead) continue; assert(w->idx >= 0); assert(w->idx < s->n_pollfds); if (s->pollfds[w->idx].revents != 0) { w->callback(w, w->pollfd.fd, s->pollfds[w->idx].revents, w->userdata); goto finish; } } finish: s->state = STATE_DISPATCHED; return 0; } int avahi_simple_poll_iterate(AvahiSimplePoll *s, int timeout) { int r; if ((r = avahi_simple_poll_prepare(s, timeout)) != 0) return r; if ((r = avahi_simple_poll_run(s)) != 0) return r; if ((r = avahi_simple_poll_dispatch(s)) != 0) return r; return 0; } void avahi_simple_poll_quit(AvahiSimplePoll *s) { assert(s); s->quit = 1; /* If there is a background thread running the poll() for us, tell it to exit the poll() */ avahi_simple_poll_wakeup(s); } const AvahiPoll* avahi_simple_poll_get(AvahiSimplePoll *s) { assert(s); return &s->api; } static int system_poll(struct pollfd *ufds, unsigned int nfds, int timeout, AVAHI_GCC_UNUSED void *userdata) { return poll(ufds, nfds, timeout); } void avahi_simple_poll_set_func(AvahiSimplePoll *s, AvahiPollFunc func, void *userdata) { assert(s); s->poll_func = func ? func : system_poll; s->poll_func_userdata = func ? userdata : NULL; /* If there is a background thread running the poll() for us, tell it to exit the poll() */ avahi_simple_poll_wakeup(s); } int avahi_simple_poll_loop(AvahiSimplePoll *s) { int r; assert(s); for (;;) if ((r = avahi_simple_poll_iterate(s, -1)) != 0) if (r >= 0 || errno != EINTR) return r; } avahi-0.7/avahi-common/PaxHeaders.10109/address.h0000644000000000000000000000013213130651643016355 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.059988862 avahi-0.7/avahi-common/address.h0000644000175000017500000000771613130651643017777 0ustar00lathiatlathiat00000000000000#ifndef fooaddresshfoo #define fooaddresshfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file address.h Definitions and functions to manipulate IP addresses. */ #include #include #include AVAHI_C_DECL_BEGIN /** Protocol family specification, takes the values AVAHI_PROTO_INET, AVAHI_PROTO_INET6, AVAHI_PROTO_UNSPEC */ typedef int AvahiProtocol; /** Numeric network interface index. Takes OS dependent values and the special constant AVAHI_IF_UNSPEC */ typedef int AvahiIfIndex; /** Values for AvahiProtocol */ enum { AVAHI_PROTO_INET = 0, /**< IPv4 */ AVAHI_PROTO_INET6 = 1, /**< IPv6 */ AVAHI_PROTO_UNSPEC = -1 /**< Unspecified/all protocol(s) */ }; /** Special values for AvahiIfIndex */ enum { AVAHI_IF_UNSPEC = -1 /**< Unspecified/all interface(s) */ }; /** Maximum size of an address in string form */ #define AVAHI_ADDRESS_STR_MAX 40 /* IPv6 Max = 4*8 + 7 + 1 for NUL */ /** Return TRUE if the specified interface index is valid */ #define AVAHI_IF_VALID(ifindex) (((ifindex) >= 0) || ((ifindex) == AVAHI_IF_UNSPEC)) /** Return TRUE if the specified protocol is valid */ #define AVAHI_PROTO_VALID(protocol) (((protocol) == AVAHI_PROTO_INET) || ((protocol) == AVAHI_PROTO_INET6) || ((protocol) == AVAHI_PROTO_UNSPEC)) /** An IPv4 address */ typedef struct AvahiIPv4Address { uint32_t address; /**< Address data in network byte order. */ } AvahiIPv4Address; /** An IPv6 address */ typedef struct AvahiIPv6Address { uint8_t address[16]; /**< Address data */ } AvahiIPv6Address; /** Protocol (address family) independent address structure */ typedef struct AvahiAddress { AvahiProtocol proto; /**< Address family */ union { AvahiIPv6Address ipv6; /**< Address when IPv6 */ AvahiIPv4Address ipv4; /**< Address when IPv4 */ uint8_t data[1]; /**< Type-independent data field */ } data; } AvahiAddress; /** @{ \name Comparison */ /** Compare two addresses. Returns 0 when equal, a negative value when a < b, a positive value when a > b. */ int avahi_address_cmp(const AvahiAddress *a, const AvahiAddress *b); /** @} */ /** @{ \name String conversion */ /** Convert the specified address *a to a human readable character string, use AVAHI_ADDRESS_STR_MAX to allocate an array of the right size */ char *avahi_address_snprint(char *ret_s, size_t length, const AvahiAddress *a); /** Convert the specified human readable character string to an * address structure. Set af to AVAHI_UNSPEC for automatic address * family detection. */ AvahiAddress *avahi_address_parse(const char *s, AvahiProtocol af, AvahiAddress *ret_addr); /** @} */ /** \cond fulldocs */ /** Generate the DNS reverse lookup name for an IPv4 or IPv6 address. */ char* avahi_reverse_lookup_name(const AvahiAddress *a, char *ret_s, size_t length); /** \endcond */ /** @{ \name Protocol/address family handling */ /** Map AVAHI_PROTO_xxx constants to Unix AF_xxx constants */ int avahi_proto_to_af(AvahiProtocol proto); /** Map Unix AF_xxx constants to AVAHI_PROTO_xxx constants */ AvahiProtocol avahi_af_to_proto(int af); /** Return a textual representation of the specified protocol number. i.e. "IPv4", "IPv6" or "UNSPEC" */ const char* avahi_proto_to_string(AvahiProtocol proto); /** @} */ AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/utf8.c0000644000000000000000000000013213130651643015611 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.075988506 avahi-0.7/avahi-common/utf8.c0000644000175000017500000000527113130651643017225 0ustar00lathiatlathiat00000000000000/* This file is based on the GLIB utf8 validation functions. The * original license text follows. */ /* gutf8.c - Operations on UTF-8 strings. * * Copyright (C) 1999 Tom Tromey * Copyright (C) 2000 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include #endif #include #include "utf8.h" #define UNICODE_VALID(Char) \ ((Char) < 0x110000 && \ (((Char) & 0xFFFFF800) != 0xD800) && \ ((Char) < 0xFDD0 || (Char) > 0xFDEF) && \ ((Char) & 0xFFFE) != 0xFFFE) #define CONTINUATION_CHAR \ do { \ if ((*(const unsigned char *)p & 0xc0) != 0x80) /* 10xxxxxx */ \ goto error; \ val <<= 6; \ val |= (*(const unsigned char *)p) & 0x3f; \ } while(0) const char * avahi_utf8_valid (const char *str) { unsigned val = 0; unsigned min = 0; const char *p; for (p = str; *p; p++) { if (*(const unsigned char *)p < 128) /* done */; else { if ((*(const unsigned char *)p & 0xe0) == 0xc0) /* 110xxxxx */ { if ( ((*(const unsigned char *)p & 0x1e) == 0)) goto error; p++; if ( ((*(const unsigned char *)p & 0xc0) != 0x80)) /* 10xxxxxx */ goto error; } else { if ((*(const unsigned char *)p & 0xf0) == 0xe0) /* 1110xxxx */ { min = (1 << 11); val = *(const unsigned char *)p & 0x0f; goto TWO_REMAINING; } else if ((*(const unsigned char *)p & 0xf8) == 0xf0) /* 11110xxx */ { min = (1 << 16); val = *(const unsigned char *)p & 0x07; } else goto error; p++; CONTINUATION_CHAR; TWO_REMAINING: p++; CONTINUATION_CHAR; p++; CONTINUATION_CHAR; if ( (val < min)) goto error; if ( (!UNICODE_VALID(val))) goto error; } continue; error: return NULL; } } return str; } avahi-0.7/avahi-common/PaxHeaders.10109/thread-watch.c0000644000000000000000000000013213130651643017276 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.075988506 avahi-0.7/avahi-common/thread-watch.c0000644000175000017500000001102013130651643020677 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include "llist.h" #include "malloc.h" #include "timeval.h" #include "simple-watch.h" #include "thread-watch.h" struct AvahiThreadedPoll { AvahiSimplePoll *simple_poll; pthread_t thread_id; pthread_mutex_t mutex; int thread_running; int retval; }; static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { pthread_mutex_t *mutex = userdata; int r; /* Before entering poll() we unlock the mutex, so that * avahi_simple_poll_quit() can succeed from another thread. */ pthread_mutex_unlock(mutex); r = poll(ufds, nfds, timeout); pthread_mutex_lock(mutex); return r; } static void* thread(void *userdata){ AvahiThreadedPoll *p = userdata; sigset_t mask; /* Make sure that signals are delivered to the main thread */ sigfillset(&mask); pthread_sigmask(SIG_BLOCK, &mask, NULL); pthread_mutex_lock(&p->mutex); p->retval = avahi_simple_poll_loop(p->simple_poll); pthread_mutex_unlock(&p->mutex); return NULL; } AvahiThreadedPoll *avahi_threaded_poll_new(void) { AvahiThreadedPoll *p; if (!(p = avahi_new(AvahiThreadedPoll, 1))) goto fail; /* OOM */ if (!(p->simple_poll = avahi_simple_poll_new())) goto fail; pthread_mutex_init(&p->mutex, NULL); avahi_simple_poll_set_func(p->simple_poll, poll_func, &p->mutex); p->thread_running = 0; return p; fail: if (p) { if (p->simple_poll) { avahi_simple_poll_free(p->simple_poll); pthread_mutex_destroy(&p->mutex); } avahi_free(p); } return NULL; } void avahi_threaded_poll_free(AvahiThreadedPoll *p) { assert(p); /* Make sure that this function is not called from the helper thread */ assert(!p->thread_running || !pthread_equal(pthread_self(), p->thread_id)); if (p->thread_running) avahi_threaded_poll_stop(p); if (p->simple_poll) avahi_simple_poll_free(p->simple_poll); pthread_mutex_destroy(&p->mutex); avahi_free(p); } const AvahiPoll* avahi_threaded_poll_get(AvahiThreadedPoll *p) { assert(p); return avahi_simple_poll_get(p->simple_poll); } int avahi_threaded_poll_start(AvahiThreadedPoll *p) { assert(p); assert(!p->thread_running); if (pthread_create(&p->thread_id, NULL, thread, p) < 0) return -1; p->thread_running = 1; return 0; } int avahi_threaded_poll_stop(AvahiThreadedPoll *p) { assert(p); if (!p->thread_running) return -1; /* Make sure that this function is not called from the helper thread */ assert(!pthread_equal(pthread_self(), p->thread_id)); pthread_mutex_lock(&p->mutex); avahi_simple_poll_quit(p->simple_poll); pthread_mutex_unlock(&p->mutex); pthread_join(p->thread_id, NULL); p->thread_running = 0; return p->retval; } void avahi_threaded_poll_quit(AvahiThreadedPoll *p) { assert(p); /* Make sure that this function is called from the helper thread */ assert(pthread_equal(pthread_self(), p->thread_id)); avahi_simple_poll_quit(p->simple_poll); } void avahi_threaded_poll_lock(AvahiThreadedPoll *p) { assert(p); /* Make sure that this function is not called from the helper thread */ assert(!p->thread_running || !pthread_equal(pthread_self(), p->thread_id)); pthread_mutex_lock(&p->mutex); } void avahi_threaded_poll_unlock(AvahiThreadedPoll *p) { assert(p); /* Make sure that this function is not called from the helper thread */ assert(!p->thread_running || !pthread_equal(pthread_self(), p->thread_id)); pthread_mutex_unlock(&p->mutex); } avahi-0.7/avahi-common/PaxHeaders.10109/dbus-watch-glue.h0000644000000000000000000000013213130651643017723 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.067988683 avahi-0.7/avahi-common/dbus-watch-glue.h0000644000175000017500000000172613130651643021340 0ustar00lathiatlathiat00000000000000#ifndef foodbuswatchgluehfoo #define foodbuswatchgluehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include AVAHI_C_DECL_BEGIN int avahi_dbus_connection_glue(DBusConnection *c, const AvahiPoll *poll_api); AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/dbus.c0000644000000000000000000000013213130651643015660 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.183986095 avahi-0.7/avahi-common/dbus.c0000644000175000017500000001025613130651643017273 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include static const char * const table[- AVAHI_ERR_MAX] = { AVAHI_DBUS_ERR_OK, AVAHI_DBUS_ERR_FAILURE, AVAHI_DBUS_ERR_BAD_STATE, AVAHI_DBUS_ERR_INVALID_HOST_NAME, AVAHI_DBUS_ERR_INVALID_DOMAIN_NAME, AVAHI_DBUS_ERR_NO_NETWORK, AVAHI_DBUS_ERR_INVALID_TTL, AVAHI_DBUS_ERR_IS_PATTERN, AVAHI_DBUS_ERR_COLLISION, AVAHI_DBUS_ERR_INVALID_RECORD, AVAHI_DBUS_ERR_INVALID_SERVICE_NAME, AVAHI_DBUS_ERR_INVALID_SERVICE_TYPE, AVAHI_DBUS_ERR_INVALID_PORT, AVAHI_DBUS_ERR_INVALID_KEY, AVAHI_DBUS_ERR_INVALID_ADDRESS, AVAHI_DBUS_ERR_TIMEOUT, AVAHI_DBUS_ERR_TOO_MANY_CLIENTS, AVAHI_DBUS_ERR_TOO_MANY_OBJECTS, AVAHI_DBUS_ERR_TOO_MANY_ENTRIES, AVAHI_DBUS_ERR_OS, AVAHI_DBUS_ERR_ACCESS_DENIED, AVAHI_DBUS_ERR_INVALID_OPERATION, AVAHI_DBUS_ERR_DBUS_ERROR, AVAHI_DBUS_ERR_DISCONNECTED, AVAHI_DBUS_ERR_NO_MEMORY, AVAHI_DBUS_ERR_INVALID_OBJECT, AVAHI_DBUS_ERR_NO_DAEMON, AVAHI_DBUS_ERR_INVALID_INTERFACE, AVAHI_DBUS_ERR_INVALID_PROTOCOL, AVAHI_DBUS_ERR_INVALID_FLAGS, AVAHI_DBUS_ERR_NOT_FOUND, AVAHI_DBUS_ERR_INVALID_CONFIG, AVAHI_DBUS_ERR_VERSION_MISMATCH, AVAHI_DBUS_ERR_INVALID_SERVICE_SUBTYPE, AVAHI_DBUS_ERR_INVALID_PACKET, AVAHI_DBUS_ERR_INVALID_DNS_ERROR, AVAHI_DBUS_ERR_DNS_FORMERR, AVAHI_DBUS_ERR_DNS_SERVFAIL, AVAHI_DBUS_ERR_DNS_NXDOMAIN, AVAHI_DBUS_ERR_DNS_NOTIMP, AVAHI_DBUS_ERR_DNS_REFUSED, AVAHI_DBUS_ERR_DNS_YXDOMAIN, AVAHI_DBUS_ERR_DNS_YXRRSET, AVAHI_DBUS_ERR_DNS_NXRRSET, AVAHI_DBUS_ERR_DNS_NOTAUTH, AVAHI_DBUS_ERR_DNS_NOTZONE, AVAHI_DBUS_ERR_INVALID_RDATA, AVAHI_DBUS_ERR_INVALID_DNS_CLASS, AVAHI_DBUS_ERR_INVALID_DNS_TYPE, AVAHI_DBUS_ERR_NOT_SUPPORTED, AVAHI_DBUS_ERR_NOT_PERMITTED, AVAHI_DBUS_ERR_INVALID_ARGUMENT, AVAHI_DBUS_ERR_IS_EMPTY, AVAHI_DBUS_ERR_NO_CHANGE }; struct error_map { const char *dbus_error; int avahi_error; }; static struct error_map error_map[] = { { DBUS_ERROR_FAILED, AVAHI_ERR_FAILURE }, { DBUS_ERROR_NO_MEMORY, AVAHI_ERR_NO_MEMORY }, { DBUS_ERROR_SERVICE_UNKNOWN, AVAHI_ERR_NO_DAEMON }, { DBUS_ERROR_BAD_ADDRESS, AVAHI_ERR_NO_DAEMON }, { DBUS_ERROR_NOT_SUPPORTED, AVAHI_ERR_NOT_SUPPORTED }, { DBUS_ERROR_LIMITS_EXCEEDED, AVAHI_ERR_TOO_MANY_OBJECTS }, { DBUS_ERROR_ACCESS_DENIED, AVAHI_ERR_ACCESS_DENIED }, { DBUS_ERROR_AUTH_FAILED, AVAHI_ERR_ACCESS_DENIED }, { DBUS_ERROR_NO_SERVER, AVAHI_ERR_NO_DAEMON }, { DBUS_ERROR_TIMEOUT, AVAHI_ERR_TIMEOUT }, { DBUS_ERROR_NO_NETWORK, AVAHI_ERR_NO_NETWORK }, { DBUS_ERROR_DISCONNECTED, AVAHI_ERR_DISCONNECTED }, { DBUS_ERROR_INVALID_ARGS, AVAHI_ERR_INVALID_ARGUMENT }, { DBUS_ERROR_TIMED_OUT, AVAHI_ERR_TIMEOUT }, { NULL, 0 } }; int avahi_error_dbus_to_number(const char *s) { int e; const struct error_map *m; assert(s); for (e = -1; e > AVAHI_ERR_MAX; e--) if (strcmp(s, table[-e]) == 0) return e; for (m = error_map; m->dbus_error; m++) if (strcmp(m->dbus_error, s) == 0) return m->avahi_error; return AVAHI_ERR_DBUS_ERROR; } const char *avahi_error_number_to_dbus(int error) { assert(error > AVAHI_ERR_MAX); assert(error < 1); return table[-error]; } avahi-0.7/avahi-common/PaxHeaders.10109/dbus.h0000644000000000000000000000013213130651643015665 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.067988683 avahi-0.7/avahi-common/dbus.h0000644000175000017500000001461313130651643017301 0ustar00lathiatlathiat00000000000000#ifndef foodbushfoo #define foodbushfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file dbus.h Some definitions for the D-Bus interface */ #include #include AVAHI_C_DECL_BEGIN #define AVAHI_DBUS_NAME "org.freedesktop.Avahi" #define AVAHI_DBUS_INTERFACE_SERVER AVAHI_DBUS_NAME".Server" #define AVAHI_DBUS_PATH_SERVER "/" #define AVAHI_DBUS_INTERFACE_ENTRY_GROUP AVAHI_DBUS_NAME".EntryGroup" #define AVAHI_DBUS_INTERFACE_DOMAIN_BROWSER AVAHI_DBUS_NAME".DomainBrowser" #define AVAHI_DBUS_INTERFACE_SERVICE_TYPE_BROWSER AVAHI_DBUS_NAME".ServiceTypeBrowser" #define AVAHI_DBUS_INTERFACE_SERVICE_BROWSER AVAHI_DBUS_NAME".ServiceBrowser" #define AVAHI_DBUS_INTERFACE_ADDRESS_RESOLVER AVAHI_DBUS_NAME".AddressResolver" #define AVAHI_DBUS_INTERFACE_HOST_NAME_RESOLVER AVAHI_DBUS_NAME".HostNameResolver" #define AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER AVAHI_DBUS_NAME".ServiceResolver" #define AVAHI_DBUS_INTERFACE_RECORD_BROWSER AVAHI_DBUS_NAME".RecordBrowser" /** The D-Bus API version identifier. The first byte specifies the API release, the second byte specifies the revision. If the revision number is increased the API has been extended but is downwards compatible. If the release changes compatibility is lost. Avahi 0.6 implements API version 0x0201; Avahi 0.6.1 implements API version 0x0202 */ #define AVAHI_DBUS_API_VERSION ((uint32_t) 0x0203) #define AVAHI_DBUS_ERR_OK "org.freedesktop.Avahi.Success" #define AVAHI_DBUS_ERR_FAILURE "org.freedesktop.Avahi.Failure" #define AVAHI_DBUS_ERR_BAD_STATE "org.freedesktop.Avahi.BadStateError" #define AVAHI_DBUS_ERR_INVALID_HOST_NAME "org.freedesktop.Avahi.InvalidHostNameError" #define AVAHI_DBUS_ERR_INVALID_DOMAIN_NAME "org.freedesktop.Avahi.InvalidDomainNameError" #define AVAHI_DBUS_ERR_NO_NETWORK "org.freedesktop.Avahi.NoNetworkError" #define AVAHI_DBUS_ERR_INVALID_TTL "org.freedesktop.Avahi.InvalidTTLError" #define AVAHI_DBUS_ERR_IS_PATTERN "org.freedesktop.Avahi.IsPatternError" #define AVAHI_DBUS_ERR_COLLISION "org.freedesktop.Avahi.CollisionError" #define AVAHI_DBUS_ERR_INVALID_RECORD "org.freedesktop.Avahi.InvalidRecordError" #define AVAHI_DBUS_ERR_INVALID_SERVICE_NAME "org.freedesktop.Avahi.InvalidServiceNameError" #define AVAHI_DBUS_ERR_INVALID_SERVICE_TYPE "org.freedesktop.Avahi.InvalidServiceTypeError" #define AVAHI_DBUS_ERR_INVALID_PORT "org.freedesktop.Avahi.InvalidPortError" #define AVAHI_DBUS_ERR_INVALID_KEY "org.freedesktop.Avahi.InvalidKeyError" #define AVAHI_DBUS_ERR_INVALID_ADDRESS "org.freedesktop.Avahi.InvalidAddressError" #define AVAHI_DBUS_ERR_TIMEOUT "org.freedesktop.Avahi.TimeoutError" #define AVAHI_DBUS_ERR_TOO_MANY_CLIENTS "org.freedesktop.Avahi.TooManyClientsError" #define AVAHI_DBUS_ERR_TOO_MANY_OBJECTS "org.freedesktop.Avahi.TooManyObjectsError" #define AVAHI_DBUS_ERR_TOO_MANY_ENTRIES "org.freedesktop.Avahi.TooManyEntriesError" #define AVAHI_DBUS_ERR_OS "org.freedesktop.Avahi.OSError" #define AVAHI_DBUS_ERR_ACCESS_DENIED DBUS_ERROR_ACCESS_DENIED #define AVAHI_DBUS_ERR_INVALID_OPERATION "org.freedesktop.Avahi.InvalidOperationError" #define AVAHI_DBUS_ERR_DBUS_ERROR "org.freedesktop.Avahi.DBusError" #define AVAHI_DBUS_ERR_DISCONNECTED "org.freedesktop.Avahi.DisconnectedError" #define AVAHI_DBUS_ERR_NO_MEMORY "org.freedesktop.Avahi.NoMemoryError" #define AVAHI_DBUS_ERR_INVALID_OBJECT "org.freedesktop.Avahi.InvalidObjectError" #define AVAHI_DBUS_ERR_NO_DAEMON "org.freedesktop.Avahi.NoDaemonError" #define AVAHI_DBUS_ERR_INVALID_INTERFACE "org.freedesktop.Avahi.InvalidInterfaceError" #define AVAHI_DBUS_ERR_INVALID_PROTOCOL "org.freedesktop.Avahi.InvalidInterfaceProtocolError" #define AVAHI_DBUS_ERR_INVALID_FLAGS "org.freedesktop.Avahi.InvalidFlagsError" #define AVAHI_DBUS_ERR_NOT_FOUND "org.freedesktop.Avahi.NotFoundError" #define AVAHI_DBUS_ERR_INVALID_CONFIG "org.freedesktop.Avahi.InvalidConfigurationError" #define AVAHI_DBUS_ERR_VERSION_MISMATCH "org.freedesktop.Avahi.VersionMismatchError" #define AVAHI_DBUS_ERR_INVALID_SERVICE_SUBTYPE "org.freedesktop.Avahi.InvalidServiceSubtypeError" #define AVAHI_DBUS_ERR_INVALID_PACKET "org.freedesktop.Avahi.InvalidPacketError" #define AVAHI_DBUS_ERR_INVALID_DNS_ERROR "org.freedesktop.Avahi.InvalidDNSErrorError" #define AVAHI_DBUS_ERR_DNS_FORMERR "org.freedesktop.Avahi.DNSFORMERR" #define AVAHI_DBUS_ERR_DNS_SERVFAIL "org.freedesktop.Avahi.DNSSERVFAIL" #define AVAHI_DBUS_ERR_DNS_NXDOMAIN "org.freedesktop.Avahi.DNSNXDOMAIN" #define AVAHI_DBUS_ERR_DNS_NOTIMP "org.freedesktop.Avahi.DNSNOTIMP" #define AVAHI_DBUS_ERR_DNS_REFUSED "org.freedesktop.Avahi.DNSREFUSED" #define AVAHI_DBUS_ERR_DNS_YXDOMAIN "org.freedesktop.Avahi.DNSYXDOMAIN" #define AVAHI_DBUS_ERR_DNS_YXRRSET "org.freedesktop.Avahi.DNSYXRRSET" #define AVAHI_DBUS_ERR_DNS_NXRRSET "org.freedesktop.Avahi.DNSNXRRSET" #define AVAHI_DBUS_ERR_DNS_NOTAUTH "org.freedesktop.Avahi.DNSNOTAUTH" #define AVAHI_DBUS_ERR_DNS_NOTZONE "org.freedesktop.Avahi.DNSNOTZONE" #define AVAHI_DBUS_ERR_INVALID_RDATA "org.freedesktop.Avahi.InvalidRDataError" #define AVAHI_DBUS_ERR_INVALID_DNS_CLASS "org.freedesktop.Avahi.InvalidDNSClassError" #define AVAHI_DBUS_ERR_INVALID_DNS_TYPE "org.freedesktop.Avahi.InvalidDNSTypeError" #define AVAHI_DBUS_ERR_NOT_SUPPORTED "org.freedesktop.Avahi.NotSupportedError" #define AVAHI_DBUS_ERR_NOT_PERMITTED "org.freedesktop.Avahi.NotPermittedError" #define AVAHI_DBUS_ERR_INVALID_ARGUMENT "org.freedesktop.Avahi.InvalidArgumentError" #define AVAHI_DBUS_ERR_IS_EMPTY "org.freedesktop.Avahi.IsEmptyError" #define AVAHI_DBUS_ERR_NO_CHANGE "org.freedesktop.Avahi.NoChangeError" /** Convert a DBus error string into an Avahi error number */ int avahi_error_dbus_to_number(const char *s); /** Convert an Avahi error number into a DBus error string. Result should not be freed */ const char * avahi_error_number_to_dbus(int error); AVAHI_C_DECL_END #endif avahi-0.7/avahi-common/PaxHeaders.10109/malloc.c0000644000000000000000000000013213130651643016172 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.067988683 avahi-0.7/avahi-common/malloc.c0000644000175000017500000001112513130651643017601 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "malloc.h" #ifndef va_copy #ifdef __va_copy #define va_copy(DEST,SRC) __va_copy((DEST),(SRC)) #else #define va_copy(DEST,SRC) memcpy(&(DEST), &(SRC), sizeof(va_list)) #endif #endif static const AvahiAllocator *allocator = NULL; static void oom(void) AVAHI_GCC_NORETURN; static void oom(void) { static const char msg[] = "Out of memory, aborting ...\n"; const char *n = msg; while (strlen(n) > 0) { ssize_t r; if ((r = write(2, n, strlen(n))) < 0) break; n += r; } abort(); } /* Default implementation for avahi_malloc() */ static void* xmalloc(size_t size) { void *p; if (size == 0) return NULL; if (!(p = malloc(size))) oom(); return p; } /* Default implementation for avahi_realloc() */ static void *xrealloc(void *p, size_t size) { if (size == 0) { free(p); return NULL; } if (!(p = realloc(p, size))) oom(); return p; } /* Default implementation for avahi_calloc() */ static void *xcalloc(size_t nmemb, size_t size) { void *p; if (size == 0 || nmemb == 0) return NULL; if (!(p = calloc(nmemb, size))) oom(); return p; } void *avahi_malloc(size_t size) { if (size <= 0) return NULL; if (!allocator) return xmalloc(size); assert(allocator->malloc); return allocator->malloc(size); } void *avahi_malloc0(size_t size) { void *p; if (size <= 0) return NULL; if (!allocator) return xcalloc(1, size); if (allocator->calloc) return allocator->calloc(1, size); assert(allocator->malloc); if ((p = allocator->malloc(size))) memset(p, 0, size); return p; } void avahi_free(void *p) { if (!p) return; if (!allocator) { free(p); return; } assert(allocator->free); allocator->free(p); } void *avahi_realloc(void *p, size_t size) { if (size == 0) { avahi_free(p); return NULL; } if (!allocator) return xrealloc(p, size); assert(allocator->realloc); return allocator->realloc(p, size); } char *avahi_strdup(const char *s) { char *r; size_t size; if (!s) return NULL; size = strlen(s); if (!(r = avahi_malloc(size+1))) return NULL; memcpy(r, s, size+1); return r; } char *avahi_strndup(const char *s, size_t max) { char *r; size_t size; const char *p; if (!s) return NULL; for (p = s, size = 0; size < max && *p; p++, size++); if (!(r = avahi_new(char, size+1))) return NULL; memcpy(r, s, size); r[size] = 0; return r; } /* Change the allocator */ void avahi_set_allocator(const AvahiAllocator *a) { allocator = a; } char *avahi_strdup_vprintf(const char *fmt, va_list ap) { size_t len = 80; char *buf; assert(fmt); if (!(buf = avahi_malloc(len))) return NULL; for (;;) { int n; char *nbuf; va_list ap2; va_copy (ap2, ap); n = vsnprintf(buf, len, fmt, ap2); va_end (ap2); if (n >= 0 && n < (int) len) return buf; if (n >= 0) len = n+1; else len *= 2; if (!(nbuf = avahi_realloc(buf, len))) { avahi_free(buf); return NULL; } buf = nbuf; } } char *avahi_strdup_printf(const char *fmt, ... ) { char *s; va_list ap; assert(fmt); va_start(ap, fmt); s = avahi_strdup_vprintf(fmt, ap); va_end(ap); return s; } void *avahi_memdup(const void *s, size_t l) { void *p; assert(s); if (!(p = avahi_malloc(l))) return NULL; memcpy(p, s, l); return p; } avahi-0.7/avahi-common/PaxHeaders.10109/thread-watch.h0000644000000000000000000000013213130651643017303 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.063988773 avahi-0.7/avahi-common/thread-watch.h0000644000175000017500000000626413130651643020722 0ustar00lathiatlathiat00000000000000#ifndef foothreadedwatchhfoo #define foothreadedwatchhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file thread-watch.h Threaded poll() based main loop implementation */ #include #include #include AVAHI_C_DECL_BEGIN /** A main loop object that runs an AvahiSimplePoll in its own thread. \since 0.6.4 */ typedef struct AvahiThreadedPoll AvahiThreadedPoll; /** Create a new event loop object. This will allocate the internal * AvahiSimplePoll, but will not start the helper thread. \since 0.6.4 */ AvahiThreadedPoll *avahi_threaded_poll_new(void); /** Free an event loop object. This will stop the associated event loop * thread (if it is running). \since 0.6.4 */ void avahi_threaded_poll_free(AvahiThreadedPoll *p); /** Return the abstracted poll API object for this event loop * object. The will return the same pointer each time it is * called. \since 0.6.4 */ const AvahiPoll* avahi_threaded_poll_get(AvahiThreadedPoll *p); /** Start the event loop helper thread. After the thread has started * you must make sure to access the event loop object * (AvahiThreadedPoll, AvahiPoll and all its associated objects) * synchronized, i.e. with proper locking. You may want to use * avahi_threaded_poll_lock()/avahi_threaded_poll_unlock() for this, * which will lock the the entire event loop. Please note that event * loop callback functions are called from the event loop helper thread * with that lock held, i.e. avahi_threaded_poll_lock() calls are not * required from event callbacks. \since 0.6.4 */ int avahi_threaded_poll_start(AvahiThreadedPoll *p); /** Request that the event loop quits and the associated thread stops. Call this from outside the helper thread if you want to shut it down. \since 0.6.4 */ int avahi_threaded_poll_stop(AvahiThreadedPoll *p); /** Request that the event loop quits and the associated thread stops. Call this from inside the helper thread if you want to shut it down. \since 0.6.4 */ void avahi_threaded_poll_quit(AvahiThreadedPoll *p); /** Lock the main loop object. Use this if you want to access the event * loop objects (such as creating a new event source) from anything * else but the event loop helper thread, i.e. from anything else but event * loop callbacks \since 0.6.4 */ void avahi_threaded_poll_lock(AvahiThreadedPoll *p); /** Unlock the event loop object, use this as counterpart to * avahi_threaded_poll_lock() \since 0.6.4 */ void avahi_threaded_poll_unlock(AvahiThreadedPoll *p); AVAHI_C_DECL_END #endif avahi-0.7/PaxHeaders.10109/avahi-compat-libdns_sd0000644000000000000000000000013213130652073016432 xustar0030 mtime=1499681851.135964853 30 atime=1499681851.283961552 30 ctime=1499681851.135964853 avahi-0.7/avahi-compat-libdns_sd/0000755000175000017500000000000013130652073020116 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/compat.c0000644000000000000000000000013213130651643020140 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681851.131964942 avahi-0.7/avahi-compat-libdns_sd/compat.c0000644000175000017500000011071713130651643021556 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "warn.h" #include "dns_sd.h" enum { COMMAND_POLL = 'p', COMMAND_QUIT = 'q', COMMAND_POLL_DONE = 'P', COMMAND_POLL_FAILED = 'F' }; struct type_info { char *type; AvahiStringList *subtypes; int n_subtypes; }; struct _DNSServiceRef_t { int n_ref; AvahiSimplePoll *simple_poll; int thread_fd, main_fd; pthread_t thread; int thread_running; pthread_mutex_t mutex; void *context; DNSServiceBrowseReply service_browser_callback; DNSServiceResolveReply service_resolver_callback; DNSServiceDomainEnumReply domain_browser_callback; DNSServiceRegisterReply service_register_callback; DNSServiceQueryRecordReply query_resolver_callback; AvahiClient *client; AvahiServiceBrowser *service_browser; AvahiServiceResolver *service_resolver; AvahiDomainBrowser *domain_browser; AvahiRecordBrowser *record_browser; struct type_info type_info; char *service_name, *service_name_chosen, *service_domain, *service_host; uint16_t service_port; AvahiIfIndex service_interface; AvahiStringList *service_txt; AvahiEntryGroup *entry_group; }; #define ASSERT_SUCCESS(r) { int __ret = (r); assert(__ret == 0); } static DNSServiceErrorType map_error(int error) { switch (error) { case AVAHI_OK : return kDNSServiceErr_NoError; case AVAHI_ERR_BAD_STATE : return kDNSServiceErr_BadState; case AVAHI_ERR_INVALID_HOST_NAME: case AVAHI_ERR_INVALID_DOMAIN_NAME: case AVAHI_ERR_INVALID_TTL: case AVAHI_ERR_IS_PATTERN: case AVAHI_ERR_INVALID_RECORD: case AVAHI_ERR_INVALID_SERVICE_NAME: case AVAHI_ERR_INVALID_SERVICE_TYPE: case AVAHI_ERR_INVALID_PORT: case AVAHI_ERR_INVALID_KEY: case AVAHI_ERR_INVALID_ADDRESS: case AVAHI_ERR_INVALID_SERVICE_SUBTYPE: return kDNSServiceErr_BadParam; case AVAHI_ERR_COLLISION: return kDNSServiceErr_NameConflict; case AVAHI_ERR_TOO_MANY_CLIENTS: case AVAHI_ERR_TOO_MANY_OBJECTS: case AVAHI_ERR_TOO_MANY_ENTRIES: case AVAHI_ERR_ACCESS_DENIED: return kDNSServiceErr_Refused; case AVAHI_ERR_INVALID_OPERATION: case AVAHI_ERR_INVALID_OBJECT: return kDNSServiceErr_Invalid; case AVAHI_ERR_NO_MEMORY: return kDNSServiceErr_NoMemory; case AVAHI_ERR_INVALID_INTERFACE: case AVAHI_ERR_INVALID_PROTOCOL: return kDNSServiceErr_BadInterfaceIndex; case AVAHI_ERR_INVALID_FLAGS: return kDNSServiceErr_BadFlags; case AVAHI_ERR_NOT_FOUND: return kDNSServiceErr_NoSuchName; case AVAHI_ERR_VERSION_MISMATCH: return kDNSServiceErr_Incompatible; case AVAHI_ERR_NO_NETWORK: case AVAHI_ERR_OS: case AVAHI_ERR_INVALID_CONFIG: case AVAHI_ERR_TIMEOUT: case AVAHI_ERR_DBUS_ERROR: case AVAHI_ERR_DISCONNECTED: case AVAHI_ERR_NO_DAEMON: break; } return kDNSServiceErr_Unknown; } static void type_info_init(struct type_info *i) { assert(i); i->type = NULL; i->subtypes = NULL; i->n_subtypes = 0; } static void type_info_free(struct type_info *i) { assert(i); avahi_free(i->type); avahi_string_list_free(i->subtypes); type_info_init(i); } static int type_info_parse(struct type_info *i, const char *t) { char *token = NULL; assert(i); assert(t); type_info_init(i); for (;;) { size_t l; if (*t == 0) break; l = strcspn(t, ","); if (l <= 0) goto fail; token = avahi_strndup(t, l); if (!token) goto fail; if (!i->type) { /* This is the first token, hence the main type */ if (!avahi_is_valid_service_type_strict(token)) goto fail; i->type = token; token = NULL; } else { char *fst; /* This is not the first token, hence a subtype */ if (!(fst = avahi_strdup_printf("%s._sub.%s", token, i->type))) goto fail; if (!avahi_is_valid_service_subtype(fst)) { avahi_free(fst); goto fail; } i->subtypes = avahi_string_list_add(i->subtypes, fst); avahi_free(fst); avahi_free(token); token = NULL; i->n_subtypes++; } t += l; if (*t == ',') t++; } if (i->type) return 0; fail: type_info_free(i); avahi_free(token); return -1; } static const char *add_trailing_dot(const char *s, char *buf, size_t buf_len) { if (!s) return NULL; if (*s == 0) return s; if (s[strlen(s)-1] == '.') return s; snprintf(buf, buf_len, "%s.", s); return buf; } static int read_command(int fd) { ssize_t r; char command; assert(fd >= 0); if ((r = read(fd, &command, 1)) != 1) { fprintf(stderr, __FILE__": read() failed: %s\n", r < 0 ? strerror(errno) : "EOF"); return -1; } return command; } static int write_command(int fd, char reply) { assert(fd >= 0); if (write(fd, &reply, 1) != 1) { fprintf(stderr, __FILE__": write() failed: %s\n", strerror(errno)); return -1; } return 0; } static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { DNSServiceRef sdref = userdata; int ret; assert(sdref); ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); /* fprintf(stderr, "pre-syscall\n"); */ ret = poll(ufds, nfds, timeout); /* fprintf(stderr, "post-syscall\n"); */ ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); return ret; } static void * thread_func(void *data) { DNSServiceRef sdref = data; sigset_t mask; sigfillset(&mask); pthread_sigmask(SIG_BLOCK, &mask, NULL); sdref->thread = pthread_self(); sdref->thread_running = 1; for (;;) { char command; if ((command = read_command(sdref->thread_fd)) < 0) break; /* fprintf(stderr, "Command: %c\n", command); */ switch (command) { case COMMAND_POLL: { int ret; ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); for (;;) { errno = 0; if ((ret = avahi_simple_poll_run(sdref->simple_poll)) < 0) { if (errno == EINTR) continue; fprintf(stderr, __FILE__": avahi_simple_poll_run() failed: %s\n", strerror(errno)); } break; } ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); if (write_command(sdref->thread_fd, ret < 0 ? COMMAND_POLL_FAILED : COMMAND_POLL_DONE) < 0) break; break; } case COMMAND_QUIT: return NULL; } } return NULL; } static DNSServiceRef sdref_new(void) { int fd[2] = { -1, -1 }; DNSServiceRef sdref = NULL; pthread_mutexattr_t mutex_attr; if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0) goto fail; if (!(sdref = avahi_new(struct _DNSServiceRef_t, 1))) goto fail; sdref->n_ref = 1; sdref->thread_fd = fd[0]; sdref->main_fd = fd[1]; sdref->client = NULL; sdref->service_browser = NULL; sdref->service_resolver = NULL; sdref->domain_browser = NULL; sdref->entry_group = NULL; sdref->service_name = sdref->service_name_chosen = sdref->service_domain = sdref->service_host = NULL; sdref->service_txt = NULL; type_info_init(&sdref->type_info); ASSERT_SUCCESS(pthread_mutexattr_init(&mutex_attr)); pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE); ASSERT_SUCCESS(pthread_mutex_init(&sdref->mutex, &mutex_attr)); sdref->thread_running = 0; if (!(sdref->simple_poll = avahi_simple_poll_new())) goto fail; avahi_simple_poll_set_func(sdref->simple_poll, poll_func, sdref); /* Start simple poll */ if (avahi_simple_poll_prepare(sdref->simple_poll, -1) < 0) goto fail; /* Queue an initial POLL command for the thread */ if (write_command(sdref->main_fd, COMMAND_POLL) < 0) goto fail; if (pthread_create(&sdref->thread, NULL, thread_func, sdref) != 0) goto fail; sdref->thread_running = 1; return sdref; fail: if (sdref) DNSServiceRefDeallocate(sdref); return NULL; } static void sdref_free(DNSServiceRef sdref) { assert(sdref); if (sdref->thread_running) { ASSERT_SUCCESS(write_command(sdref->main_fd, COMMAND_QUIT)); avahi_simple_poll_wakeup(sdref->simple_poll); ASSERT_SUCCESS(pthread_join(sdref->thread, NULL)); } if (sdref->client) avahi_client_free(sdref->client); if (sdref->simple_poll) avahi_simple_poll_free(sdref->simple_poll); if (sdref->thread_fd >= 0) close(sdref->thread_fd); if (sdref->main_fd >= 0) close(sdref->main_fd); ASSERT_SUCCESS(pthread_mutex_destroy(&sdref->mutex)); avahi_free(sdref->service_name); avahi_free(sdref->service_name_chosen); avahi_free(sdref->service_domain); avahi_free(sdref->service_host); type_info_free(&sdref->type_info); avahi_string_list_free(sdref->service_txt); avahi_free(sdref); } static void sdref_ref(DNSServiceRef sdref) { assert(sdref); assert(sdref->n_ref >= 1); sdref->n_ref++; } static void sdref_unref(DNSServiceRef sdref) { assert(sdref); assert(sdref->n_ref >= 1); if (--(sdref->n_ref) <= 0) sdref_free(sdref); } int DNSSD_API DNSServiceRefSockFD(DNSServiceRef sdref) { AVAHI_WARN_LINKAGE; if (!sdref || sdref->n_ref <= 0) return -1; return sdref->main_fd; } DNSServiceErrorType DNSSD_API DNSServiceProcessResult(DNSServiceRef sdref) { DNSServiceErrorType ret = kDNSServiceErr_Unknown; AVAHI_WARN_LINKAGE; if (!sdref || sdref->n_ref <= 0) return kDNSServiceErr_BadParam; sdref_ref(sdref); ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); /* Cleanup notification socket */ if (read_command(sdref->main_fd) != COMMAND_POLL_DONE) goto finish; if (avahi_simple_poll_dispatch(sdref->simple_poll) < 0) goto finish; if (sdref->n_ref > 1) /* Perhaps we should die */ /* Dispatch events */ if (avahi_simple_poll_prepare(sdref->simple_poll, -1) < 0) goto finish; if (sdref->n_ref > 1) /* Request the poll */ if (write_command(sdref->main_fd, COMMAND_POLL) < 0) goto finish; ret = kDNSServiceErr_NoError; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); sdref_unref(sdref); return ret; } void DNSSD_API DNSServiceRefDeallocate(DNSServiceRef sdref) { AVAHI_WARN_LINKAGE; if (sdref) sdref_unref(sdref); } static void service_browser_callback( AvahiServiceBrowser *b, AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { DNSServiceRef sdref = userdata; char type_fixed[AVAHI_DOMAIN_NAME_MAX], domain_fixed[AVAHI_DOMAIN_NAME_MAX]; assert(b); assert(sdref); assert(sdref->n_ref >= 1); type = add_trailing_dot(type, type_fixed, sizeof(type_fixed)); domain = add_trailing_dot(domain, domain_fixed, sizeof(domain_fixed)); switch (event) { case AVAHI_BROWSER_NEW: sdref->service_browser_callback(sdref, kDNSServiceFlagsAdd, interface, kDNSServiceErr_NoError, name, type, domain, sdref->context); break; case AVAHI_BROWSER_REMOVE: sdref->service_browser_callback(sdref, 0, interface, kDNSServiceErr_NoError, name, type, domain, sdref->context); break; case AVAHI_BROWSER_FAILURE: sdref->service_browser_callback(sdref, 0, interface, map_error(avahi_client_errno(sdref->client)), NULL, NULL, NULL, sdref->context); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; } } static void generic_client_callback(AvahiClient *s, AvahiClientState state, void* userdata) { DNSServiceRef sdref = userdata; int error = kDNSServiceErr_Unknown; assert(s); assert(sdref); assert(sdref->n_ref >= 1); switch (state) { case AVAHI_CLIENT_FAILURE: if (sdref->service_browser_callback) sdref->service_browser_callback(sdref, 0, 0, error, NULL, NULL, NULL, sdref->context); else if (sdref->service_resolver_callback) sdref->service_resolver_callback(sdref, 0, 0, error, NULL, NULL, 0, 0, NULL, sdref->context); else if (sdref->domain_browser_callback) sdref->domain_browser_callback(sdref, 0, 0, error, NULL, sdref->context); else if (sdref->query_resolver_callback) sdref->query_resolver_callback(sdref, 0, 0, error, NULL, 0, 0, 0, NULL, 0, sdref->context); break; case AVAHI_CLIENT_S_RUNNING: case AVAHI_CLIENT_S_COLLISION: case AVAHI_CLIENT_S_REGISTERING: case AVAHI_CLIENT_CONNECTING: break; } } DNSServiceErrorType DNSSD_API DNSServiceBrowse( DNSServiceRef *ret_sdref, DNSServiceFlags flags, uint32_t interface, const char *regtype, const char *domain, DNSServiceBrowseReply callback, void *context) { DNSServiceErrorType ret = kDNSServiceErr_Unknown; int error; DNSServiceRef sdref = NULL; AvahiIfIndex ifindex; struct type_info type_info; AVAHI_WARN_LINKAGE; if (!ret_sdref || !regtype) return kDNSServiceErr_BadParam; *ret_sdref = NULL; if (interface == kDNSServiceInterfaceIndexLocalOnly || flags != 0) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } type_info_init(&type_info); if (type_info_parse(&type_info, regtype) < 0 || type_info.n_subtypes > 1) { type_info_free(&type_info); if (!avahi_is_valid_service_type_generic(regtype)) return kDNSServiceErr_Unsupported; } else regtype = type_info.subtypes ? (char*) type_info.subtypes->text : type_info.type; if (!(sdref = sdref_new())) { type_info_free(&type_info); return kDNSServiceErr_Unknown; } sdref->context = context; sdref->service_browser_callback = callback; ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); if (!(sdref->client = avahi_client_new(avahi_simple_poll_get(sdref->simple_poll), 0, generic_client_callback, sdref, &error))) { ret = map_error(error); goto finish; } ifindex = interface == kDNSServiceInterfaceIndexAny ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface; if (!(sdref->service_browser = avahi_service_browser_new(sdref->client, ifindex, AVAHI_PROTO_UNSPEC, regtype, domain, 0, service_browser_callback, sdref))) { ret = map_error(avahi_client_errno(sdref->client)); goto finish; } ret = kDNSServiceErr_NoError; *ret_sdref = sdref; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); if (ret != kDNSServiceErr_NoError) DNSServiceRefDeallocate(sdref); type_info_free(&type_info); return ret; } static void service_resolver_callback( AvahiServiceResolver *r, AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, AVAHI_GCC_UNUSED const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { DNSServiceRef sdref = userdata; assert(r); assert(sdref); assert(sdref->n_ref >= 1); switch (event) { case AVAHI_RESOLVER_FOUND: { char host_name_fixed[AVAHI_DOMAIN_NAME_MAX]; char full_name[AVAHI_DOMAIN_NAME_MAX]; int ret; char *p = NULL; size_t l = 0; host_name = add_trailing_dot(host_name, host_name_fixed, sizeof(host_name_fixed)); if ((p = avahi_new0(char, (l = avahi_string_list_serialize(txt, NULL, 0))+1))) avahi_string_list_serialize(txt, p, l); ret = avahi_service_name_join(full_name, sizeof(full_name), name, type, domain); assert(ret == AVAHI_OK); strcat(full_name, "."); sdref->service_resolver_callback(sdref, 0, interface, kDNSServiceErr_NoError, full_name, host_name, htons(port), l, (unsigned char*) p, sdref->context); avahi_free(p); break; } case AVAHI_RESOLVER_FAILURE: sdref->service_resolver_callback(sdref, 0, interface, map_error(avahi_client_errno(sdref->client)), NULL, NULL, 0, 0, NULL, sdref->context); break; } } DNSServiceErrorType DNSSD_API DNSServiceResolve( DNSServiceRef *ret_sdref, DNSServiceFlags flags, uint32_t interface, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callback, void *context) { DNSServiceErrorType ret = kDNSServiceErr_Unknown; int error; DNSServiceRef sdref = NULL; AvahiIfIndex ifindex; AVAHI_WARN_LINKAGE; if (!ret_sdref || !name || !regtype || !domain || !callback) return kDNSServiceErr_BadParam; *ret_sdref = NULL; if (interface == kDNSServiceInterfaceIndexLocalOnly || flags != 0) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } if (!(sdref = sdref_new())) return kDNSServiceErr_Unknown; sdref->context = context; sdref->service_resolver_callback = callback; ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); if (!(sdref->client = avahi_client_new(avahi_simple_poll_get(sdref->simple_poll), 0, generic_client_callback, sdref, &error))) { ret = map_error(error); goto finish; } ifindex = interface == kDNSServiceInterfaceIndexAny ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface; if (!(sdref->service_resolver = avahi_service_resolver_new(sdref->client, ifindex, AVAHI_PROTO_UNSPEC, name, regtype, domain, AVAHI_PROTO_UNSPEC, 0, service_resolver_callback, sdref))) { ret = map_error(avahi_client_errno(sdref->client)); goto finish; } ret = kDNSServiceErr_NoError; *ret_sdref = sdref; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); if (ret != kDNSServiceErr_NoError) DNSServiceRefDeallocate(sdref); return ret; } int DNSSD_API DNSServiceConstructFullName ( char *fullName, const char *service, const char *regtype, const char *domain) { AVAHI_WARN_LINKAGE; if (!fullName || !regtype || !domain) return -1; if (avahi_service_name_join(fullName, kDNSServiceMaxDomainName, service, regtype, domain) < 0) return -1; return 0; } static void domain_browser_callback( AvahiDomainBrowser *b, AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { DNSServiceRef sdref = userdata; static char domain_fixed[AVAHI_DOMAIN_NAME_MAX]; assert(b); assert(sdref); assert(sdref->n_ref >= 1); domain = add_trailing_dot(domain, domain_fixed, sizeof(domain_fixed)); switch (event) { case AVAHI_BROWSER_NEW: sdref->domain_browser_callback(sdref, kDNSServiceFlagsAdd, interface, kDNSServiceErr_NoError, domain, sdref->context); break; case AVAHI_BROWSER_REMOVE: sdref->domain_browser_callback(sdref, 0, interface, kDNSServiceErr_NoError, domain, sdref->context); break; case AVAHI_BROWSER_FAILURE: sdref->domain_browser_callback(sdref, 0, interface, map_error(avahi_client_errno(sdref->client)), domain, sdref->context); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; } } DNSServiceErrorType DNSSD_API DNSServiceEnumerateDomains( DNSServiceRef *ret_sdref, DNSServiceFlags flags, uint32_t interface, DNSServiceDomainEnumReply callback, void *context) { DNSServiceErrorType ret = kDNSServiceErr_Unknown; int error; DNSServiceRef sdref = NULL; AvahiIfIndex ifindex; AVAHI_WARN_LINKAGE; if (!ret_sdref || !callback) return kDNSServiceErr_BadParam; *ret_sdref = NULL; if (interface == kDNSServiceInterfaceIndexLocalOnly || (flags != kDNSServiceFlagsBrowseDomains && flags != kDNSServiceFlagsRegistrationDomains)) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } if (!(sdref = sdref_new())) return kDNSServiceErr_Unknown; sdref->context = context; sdref->domain_browser_callback = callback; ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); if (!(sdref->client = avahi_client_new(avahi_simple_poll_get(sdref->simple_poll), 0, generic_client_callback, sdref, &error))) { ret = map_error(error); goto finish; } ifindex = interface == kDNSServiceInterfaceIndexAny ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface; if (!(sdref->domain_browser = avahi_domain_browser_new(sdref->client, ifindex, AVAHI_PROTO_UNSPEC, "local", flags == kDNSServiceFlagsRegistrationDomains ? AVAHI_DOMAIN_BROWSER_REGISTER : AVAHI_DOMAIN_BROWSER_BROWSE, 0, domain_browser_callback, sdref))) { ret = map_error(avahi_client_errno(sdref->client)); goto finish; } ret = kDNSServiceErr_NoError; *ret_sdref = sdref; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); if (ret != kDNSServiceErr_NoError) DNSServiceRefDeallocate(sdref); return ret; } static void reg_report_error(DNSServiceRef sdref, DNSServiceErrorType error) { char regtype_fixed[AVAHI_DOMAIN_NAME_MAX], domain_fixed[AVAHI_DOMAIN_NAME_MAX]; const char *regtype, *domain; assert(sdref); assert(sdref->n_ref >= 1); if (!sdref->service_register_callback) return; regtype = add_trailing_dot(sdref->type_info.type, regtype_fixed, sizeof(regtype_fixed)); domain = add_trailing_dot(sdref->service_domain, domain_fixed, sizeof(domain_fixed)); sdref->service_register_callback( sdref, 0, error, sdref->service_name_chosen ? sdref->service_name_chosen : sdref->service_name, regtype, domain, sdref->context); } static int reg_create_service(DNSServiceRef sdref) { int ret; AvahiStringList *l; assert(sdref); assert(sdref->n_ref >= 1); if ((ret = avahi_entry_group_add_service_strlst( sdref->entry_group, sdref->service_interface, AVAHI_PROTO_UNSPEC, 0, sdref->service_name_chosen, sdref->type_info.type, sdref->service_domain, sdref->service_host, sdref->service_port, sdref->service_txt)) < 0) return ret; for (l = sdref->type_info.subtypes; l; l = l->next) { /* Create a subtype entry */ if (avahi_entry_group_add_service_subtype( sdref->entry_group, sdref->service_interface, AVAHI_PROTO_UNSPEC, 0, sdref->service_name_chosen, sdref->type_info.type, sdref->service_domain, (const char*) l->text) < 0) return ret; } if ((ret = avahi_entry_group_commit(sdref->entry_group)) < 0) return ret; return 0; } static void reg_client_callback(AvahiClient *s, AvahiClientState state, void* userdata) { DNSServiceRef sdref = userdata; assert(s); assert(sdref); assert(sdref->n_ref >= 1); /* We've not been setup completely */ if (!sdref->entry_group) return; switch (state) { case AVAHI_CLIENT_FAILURE: reg_report_error(sdref, kDNSServiceErr_Unknown); break; case AVAHI_CLIENT_S_RUNNING: { int ret; if (!sdref->service_name) { const char *n; /* If the service name is taken from the host name, copy that */ avahi_free(sdref->service_name_chosen); sdref->service_name_chosen = NULL; if (!(n = avahi_client_get_host_name(sdref->client))) { reg_report_error(sdref, map_error(avahi_client_errno(sdref->client))); return; } if (!(sdref->service_name_chosen = avahi_strdup(n))) { reg_report_error(sdref, kDNSServiceErr_NoMemory); return; } } if (!sdref->service_name_chosen) { assert(sdref->service_name); if (!(sdref->service_name_chosen = avahi_strdup(sdref->service_name))) { reg_report_error(sdref, kDNSServiceErr_NoMemory); return; } } /* Register the service */ if ((ret = reg_create_service(sdref)) < 0) { reg_report_error(sdref, map_error(ret)); return; } break; } case AVAHI_CLIENT_S_COLLISION: case AVAHI_CLIENT_S_REGISTERING: /* Remove our entry */ avahi_entry_group_reset(sdref->entry_group); break; case AVAHI_CLIENT_CONNECTING: /* Ignore */ break; } } static void reg_entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, void *userdata) { DNSServiceRef sdref = userdata; assert(g); switch (state) { case AVAHI_ENTRY_GROUP_ESTABLISHED: /* Inform the user */ reg_report_error(sdref, kDNSServiceErr_NoError); break; case AVAHI_ENTRY_GROUP_COLLISION: { char *n; int ret; /* Remove our entry */ avahi_entry_group_reset(sdref->entry_group); assert(sdref->service_name_chosen); /* Pick a new name */ if (!(n = avahi_alternative_service_name(sdref->service_name_chosen))) { reg_report_error(sdref, kDNSServiceErr_NoMemory); return; } avahi_free(sdref->service_name_chosen); sdref->service_name_chosen = n; /* Register the service with that new name */ if ((ret = reg_create_service(sdref)) < 0) { reg_report_error(sdref, map_error(ret)); return; } break; } case AVAHI_ENTRY_GROUP_REGISTERING: case AVAHI_ENTRY_GROUP_UNCOMMITED: /* Ignore */ break; case AVAHI_ENTRY_GROUP_FAILURE: /* Inform the user */ reg_report_error(sdref, map_error(avahi_client_errno(sdref->client))); break; } } DNSServiceErrorType DNSSD_API DNSServiceRegister ( DNSServiceRef *ret_sdref, DNSServiceFlags flags, uint32_t interface, const char *name, const char *regtype, const char *domain, const char *host, uint16_t port, uint16_t txtLen, const void *txtRecord, DNSServiceRegisterReply callback, void *context) { DNSServiceErrorType ret = kDNSServiceErr_Unknown; int error; DNSServiceRef sdref = NULL; AvahiStringList *txt = NULL; struct type_info type_info; AVAHI_WARN_LINKAGE; if (!ret_sdref || !regtype) return kDNSServiceErr_BadParam; *ret_sdref = NULL; if (!txtRecord) { txtLen = 1; txtRecord = ""; } if (interface == kDNSServiceInterfaceIndexLocalOnly || flags) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } if (txtLen > 0) if (avahi_string_list_parse(txtRecord, txtLen, &txt) < 0) return kDNSServiceErr_Invalid; if (type_info_parse(&type_info, regtype) < 0) { avahi_string_list_free(txt); return kDNSServiceErr_Invalid; } if (!(sdref = sdref_new())) { avahi_string_list_free(txt); type_info_free(&type_info); return kDNSServiceErr_Unknown; } sdref->context = context; sdref->service_register_callback = callback; sdref->type_info = type_info; sdref->service_name = avahi_strdup(name); sdref->service_domain = domain ? avahi_normalize_name_strdup(domain) : NULL; sdref->service_host = host ? avahi_normalize_name_strdup(host) : NULL; sdref->service_interface = interface == kDNSServiceInterfaceIndexAny ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface; sdref->service_port = ntohs(port); sdref->service_txt = txt; /* Some OOM checking would be cool here */ ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); if (!(sdref->client = avahi_client_new(avahi_simple_poll_get(sdref->simple_poll), 0, reg_client_callback, sdref, &error))) { ret = map_error(error); goto finish; } if (!sdref->service_domain) { const char *d; if (!(d = avahi_client_get_domain_name(sdref->client))) { ret = map_error(avahi_client_errno(sdref->client)); goto finish; } if (!(sdref->service_domain = avahi_strdup(d))) { ret = kDNSServiceErr_NoMemory; goto finish; } } if (!(sdref->entry_group = avahi_entry_group_new(sdref->client, reg_entry_group_callback, sdref))) { ret = map_error(avahi_client_errno(sdref->client)); goto finish; } if (avahi_client_get_state(sdref->client) == AVAHI_CLIENT_S_RUNNING) { const char *n; if (sdref->service_name) n = sdref->service_name; else { if (!(n = avahi_client_get_host_name(sdref->client))) { ret = map_error(avahi_client_errno(sdref->client)); goto finish; } } if (!(sdref->service_name_chosen = avahi_strdup(n))) { ret = kDNSServiceErr_NoMemory; goto finish; } if ((error = reg_create_service(sdref)) < 0) { ret = map_error(error); goto finish; } } ret = kDNSServiceErr_NoError; *ret_sdref = sdref; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); if (ret != kDNSServiceErr_NoError) DNSServiceRefDeallocate(sdref); return ret; } DNSServiceErrorType DNSSD_API DNSServiceUpdateRecord( DNSServiceRef sdref, DNSRecordRef rref, DNSServiceFlags flags, uint16_t rdlen, const void *rdata, AVAHI_GCC_UNUSED uint32_t ttl) { int ret = kDNSServiceErr_Unknown; AvahiStringList *txt = NULL; AVAHI_WARN_LINKAGE; if (!sdref || sdref->n_ref <= 0) return kDNSServiceErr_BadParam; if (flags || rref) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } if (rdlen > 0) if (avahi_string_list_parse(rdata, rdlen, &txt) < 0) return kDNSServiceErr_Invalid; ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); if (!avahi_string_list_equal(txt, sdref->service_txt)) { avahi_string_list_free(sdref->service_txt); sdref->service_txt = txt; if (avahi_client_get_state(sdref->client) == AVAHI_CLIENT_S_RUNNING && sdref->entry_group && (avahi_entry_group_get_state(sdref->entry_group) == AVAHI_ENTRY_GROUP_ESTABLISHED || avahi_entry_group_get_state(sdref->entry_group) == AVAHI_ENTRY_GROUP_REGISTERING)) if (avahi_entry_group_update_service_txt_strlst( sdref->entry_group, sdref->service_interface, AVAHI_PROTO_UNSPEC, 0, sdref->service_name_chosen, sdref->type_info.type, sdref->service_domain, sdref->service_txt) < 0) { ret = map_error(avahi_client_errno(sdref->client)); goto finish; } } else avahi_string_list_free(txt); ret = kDNSServiceErr_NoError; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); return ret; } static void query_resolver_callback( AvahiRecordBrowser *r, AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, uint16_t clazz, uint16_t type, const void* rdata, size_t size, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { DNSServiceRef sdref = userdata; assert(r); assert(sdref); assert(sdref->n_ref >= 1); switch (event) { case AVAHI_BROWSER_NEW: case AVAHI_BROWSER_REMOVE: { DNSServiceFlags qflags = 0; if (event == AVAHI_BROWSER_NEW) qflags |= kDNSServiceFlagsAdd; sdref->query_resolver_callback(sdref, qflags, interface, kDNSServiceErr_NoError, name, type, clazz, size, rdata, 0, sdref->context); break; } case AVAHI_BROWSER_ALL_FOR_NOW: case AVAHI_BROWSER_CACHE_EXHAUSTED: /* not implemented */ break; case AVAHI_BROWSER_FAILURE: sdref->query_resolver_callback(sdref, 0, interface, map_error(avahi_client_errno(sdref->client)), NULL, 0, 0, 0, NULL, 0, sdref->context); break; } } DNSServiceErrorType DNSSD_API DNSServiceQueryRecord ( DNSServiceRef *ret_sdref, DNSServiceFlags flags, uint32_t interface, const char *fullname, uint16_t type, uint16_t clazz, DNSServiceQueryRecordReply callback, void *context) { DNSServiceErrorType ret = kDNSServiceErr_Unknown; int error; DNSServiceRef sdref = NULL; AvahiIfIndex ifindex; AVAHI_WARN_LINKAGE; if (!ret_sdref || !fullname) return kDNSServiceErr_BadParam; *ret_sdref = NULL; if (interface == kDNSServiceInterfaceIndexLocalOnly || flags != 0) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } if (!(sdref = sdref_new())) return kDNSServiceErr_Unknown; sdref->context = context; sdref->query_resolver_callback = callback; ASSERT_SUCCESS(pthread_mutex_lock(&sdref->mutex)); if (!(sdref->client = avahi_client_new(avahi_simple_poll_get(sdref->simple_poll), 0, generic_client_callback, sdref, &error))) { ret = map_error(error); goto finish; } ifindex = interface == kDNSServiceInterfaceIndexAny ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface; if (!(sdref->record_browser = avahi_record_browser_new(sdref->client, ifindex, AVAHI_PROTO_UNSPEC, fullname, clazz, type, 0, query_resolver_callback, sdref))) { ret = map_error(avahi_client_errno(sdref->client)); goto finish; } ret = kDNSServiceErr_NoError; *ret_sdref = sdref; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&sdref->mutex)); if (ret != kDNSServiceErr_NoError) DNSServiceRefDeallocate(sdref); return ret; } avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/txt-test.c0000644000000000000000000000013213130651643020451 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681851.135964853 avahi-0.7/avahi-compat-libdns_sd/txt-test.c0000644000175000017500000000740013130651643022061 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include static void hexdump(const void* p, size_t size) { const uint8_t *c = p; assert(p); printf("Dumping %zu bytes from %p:\n", size, p); while (size > 0) { unsigned i; for (i = 0; i < 16; i++) { if (i < size) printf("%02x ", c[i]); else printf(" "); } for (i = 0; i < 16; i++) { if (i < size) printf("%c", c[i] >= 32 && c[i] < 127 ? c[i] : '.'); else printf(" "); } printf("\n"); c += 16; if (size <= 16) break; size -= 16; } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { const char *r; TXTRecordRef ref; uint8_t l; const void *p; char k[256]; TXTRecordCreate(&ref, 0, NULL); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "foo", 7, "lennart"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "waldo", 5, "rocks"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "quux", 9, "the_house"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "yeah", 0, NULL); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "waldo", 6, "rocked"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordRemoveValue(&ref, "foo"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordRemoveValue(&ref, "waldo"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "kawumm", 6, "bloerb"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "one", 1, "1"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "two", 1, "2"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); TXTRecordSetValue(&ref, "three", 1, "3"); hexdump(TXTRecordGetBytesPtr(&ref), TXTRecordGetLength(&ref)); assert(TXTRecordContainsKey(TXTRecordGetLength(&ref), TXTRecordGetBytesPtr(&ref), "two")); assert(!TXTRecordContainsKey(TXTRecordGetLength(&ref), TXTRecordGetBytesPtr(&ref), "four")); r = TXTRecordGetValuePtr(TXTRecordGetLength(&ref), TXTRecordGetBytesPtr(&ref), "kawumm", &l); hexdump(r, l); assert(TXTRecordGetCount(TXTRecordGetLength(&ref), TXTRecordGetBytesPtr(&ref)) == 6); TXTRecordGetItemAtIndex(TXTRecordGetLength(&ref), TXTRecordGetBytesPtr(&ref), 2, sizeof(k), k, &l, &p); fprintf(stderr, "key=<%s>\n", k); hexdump(p, l); assert(TXTRecordGetItemAtIndex(TXTRecordGetLength(&ref), TXTRecordGetBytesPtr(&ref), 20, sizeof(k), k, &l, &p) == kDNSServiceErr_Invalid); TXTRecordDeallocate(&ref); } avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643020545 xustar0030 mtime=1499681699.099370756 30 atime=1499681796.797178931 30 ctime=1499681851.127965032 avahi-0.7/avahi-compat-libdns_sd/Makefile.am0000644000175000017500000000471613130651643022164 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' if HAVE_DBUS if ENABLE_COMPAT_LIBDNS_SD avahi_compat_libdns_sddir=$(includedir)/avahi-compat-libdns_sd avahi_compat_libdns_sd_HEADERS = dns_sd.h lib_LTLIBRARIES = libdns_sd.la if ENABLE_TESTS noinst_PROGRAMS = txt-test null-test endif libdns_sd_la_SOURCES = \ dns_sd.h \ compat.c \ txt.c \ unsupported.c \ warn.c warn.h libdns_sd_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) libdns_sd_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la txt_test_SOURCES = \ dns_sd.h \ txt.c \ txt-test.c \ warn.c warn.h txt_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) txt_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la null_test_SOURCES = \ dns_sd.h \ compat.c \ null-test.c \ warn.c warn.h null_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) null_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la # You can test the compatibility layer by sticking in mDNSResponder's # dns-sd.c source here, naming it "libdns_sd-test.c" and running "make # libdns_sd-test" manually. We do not distribute that file due to # licensing restrictions. libdns_sd-test: libdns_sd-test.c libdns_sd.la $(LIBTOOL) --mode=compile $(CC) $(AM_CFLAGS) $(PTHREAD_CFLAGS) -o libdns_sd-test.o -c libdns_sd-test.c $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(PTHREAD_CFLAGS) -o libdns_sd-test libdns_sd-test.o $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la libdns_sd.la CLEANFILES = libdns_sd-test.o libdns_sd-test endif endif avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/dns_sd.h0000644000000000000000000000013213130651643020134 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681851.131964942 avahi-0.7/avahi-compat-libdns_sd/dns_sd.h0000644000175000017500000022735713130651643021563 0ustar00lathiatlathiat00000000000000/* -*- Mode: C; tab-width: 4 -*- * * Copyright (c) 2003-2004, Apple Computer, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of its * contributors may be used to endorse or promote products derived from this * software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef _DNS_SD_H #define _DNS_SD_H #ifdef __cplusplus extern "C" { #endif /* standard calling convention under Win32 is __stdcall */ /* Note: When compiling Intel EFI (Extensible Firmware Interface) under MS Visual Studio, the */ /* _WIN32 symbol is defined by the compiler even though it's NOT compiling code for Windows32 */ #if defined(_WIN32) && !defined(EFI32) && !defined(EFI64) #define DNSSD_API __stdcall #else #define DNSSD_API #endif /* stdint.h does not exist on FreeBSD 4.x; its types are defined in sys/types.h instead */ #if defined(__FreeBSD__) && (__FreeBSD__ < 5) #include /* Likewise, on Sun, standard integer types are in sys/types.h */ #elif defined(__sun__) #include /* EFI does not have stdint.h, or anything else equivalent */ #elif defined(EFI32) || defined(EFI64) typedef UINT8 uint8_t; typedef INT8 int8_t; typedef UINT16 uint16_t; typedef INT16 int16_t; typedef UINT32 uint32_t; typedef INT32 int32_t; /* Windows has its own differences */ #elif defined(_WIN32) #include #define _UNUSED #define bzero(a, b) memset(a, 0, b) #ifndef _MSL_STDINT_H typedef UINT8 uint8_t; typedef INT8 int8_t; typedef UINT16 uint16_t; typedef INT16 int16_t; typedef UINT32 uint32_t; typedef INT32 int32_t; #endif /* All other Posix platforms use stdint.h */ #else #include #endif /* DNSServiceRef, DNSRecordRef * * Opaque internal data types. * Note: client is responsible for serializing access to these structures if * they are shared between concurrent threads. */ typedef struct _DNSServiceRef_t *DNSServiceRef; typedef struct _DNSRecordRef_t *DNSRecordRef; /* General flags used in functions defined below */ enum { kDNSServiceFlagsMoreComing = 0x1, /* MoreComing indicates to a callback that at least one more result is * queued and will be delivered following immediately after this one. * Applications should not update their UI to display browse * results when the MoreComing flag is set, because this would * result in a great deal of ugly flickering on the screen. * Applications should instead wait until until MoreComing is not set, * and then update their UI. * When MoreComing is not set, that doesn't mean there will be no more * answers EVER, just that there are no more answers immediately * available right now at this instant. If more answers become available * in the future they will be delivered as usual. */ kDNSServiceFlagsAdd = 0x2, kDNSServiceFlagsDefault = 0x4, /* Flags for domain enumeration and browse/query reply callbacks. * "Default" applies only to enumeration and is only valid in * conjuction with "Add". An enumeration callback with the "Add" * flag NOT set indicates a "Remove", i.e. the domain is no longer * valid. */ kDNSServiceFlagsNoAutoRename = 0x8, /* Flag for specifying renaming behavior on name conflict when registering * non-shared records. By default, name conflicts are automatically handled * by renaming the service. NoAutoRename overrides this behavior - with this * flag set, name conflicts will result in a callback. The NoAutorename flag * is only valid if a name is explicitly specified when registering a service * (i.e. the default name is not used.) */ kDNSServiceFlagsShared = 0x10, kDNSServiceFlagsUnique = 0x20, /* Flag for registering individual records on a connected * DNSServiceRef. Shared indicates that there may be multiple records * with this name on the network (e.g. PTR records). Unique indicates that the * record's name is to be unique on the network (e.g. SRV records). */ kDNSServiceFlagsBrowseDomains = 0x40, kDNSServiceFlagsRegistrationDomains = 0x80, /* Flags for specifying domain enumeration type in DNSServiceEnumerateDomains. * BrowseDomains enumerates domains recommended for browsing, RegistrationDomains * enumerates domains recommended for registration. */ kDNSServiceFlagsLongLivedQuery = 0x100, /* Flag for creating a long-lived unicast query for the DNSServiceQueryRecord call. */ kDNSServiceFlagsAllowRemoteQuery = 0x200, /* Flag for creating a record for which we will answer remote queries * (queries from hosts more than one hop away; hosts not directly connected to the local link). */ kDNSServiceFlagsForceMulticast = 0x400, /* Flag for signifying that a query or registration should be performed exclusively via multicast DNS, * even for a name in a domain (e.g. foo.apple.com.) that would normally imply unicast DNS. */ kDNSServiceFlagsReturnCNAME = 0x800 /* Flag for returning CNAME records in the DNSServiceQueryRecord call. CNAME records are * normally followed without indicating to the client that there was a CNAME record. */ }; /* * The values for DNS Classes and Types are listed in RFC 1035, and are available * on every OS in its DNS header file. Unfortunately every OS does not have the * same header file containing DNS Class and Type constants, and the names of * the constants are not consistent. For example, BIND 8 uses "T_A", * BIND 9 uses "ns_t_a", Windows uses "DNS_TYPE_A", etc. * For this reason, these constants are also listed here, so that code using * the DNS-SD programming APIs can use these constants, so that the same code * can compile on all our supported platforms. */ enum { kDNSServiceClass_IN = 1 /* Internet */ }; enum { kDNSServiceType_A = 1, /* Host address. */ kDNSServiceType_NS = 2, /* Authoritative server. */ kDNSServiceType_MD = 3, /* Mail destination. */ kDNSServiceType_MF = 4, /* Mail forwarder. */ kDNSServiceType_CNAME = 5, /* Canonical name. */ kDNSServiceType_SOA = 6, /* Start of authority zone. */ kDNSServiceType_MB = 7, /* Mailbox domain name. */ kDNSServiceType_MG = 8, /* Mail group member. */ kDNSServiceType_MR = 9, /* Mail rename name. */ kDNSServiceType_NULL = 10, /* Null resource record. */ kDNSServiceType_WKS = 11, /* Well known service. */ kDNSServiceType_PTR = 12, /* Domain name pointer. */ kDNSServiceType_HINFO = 13, /* Host information. */ kDNSServiceType_MINFO = 14, /* Mailbox information. */ kDNSServiceType_MX = 15, /* Mail routing information. */ kDNSServiceType_TXT = 16, /* One or more text strings. */ kDNSServiceType_RP = 17, /* Responsible person. */ kDNSServiceType_AFSDB = 18, /* AFS cell database. */ kDNSServiceType_X25 = 19, /* X_25 calling address. */ kDNSServiceType_ISDN = 20, /* ISDN calling address. */ kDNSServiceType_RT = 21, /* Router. */ kDNSServiceType_NSAP = 22, /* NSAP address. */ kDNSServiceType_NSAP_PTR = 23, /* Reverse NSAP lookup (deprecated). */ kDNSServiceType_SIG = 24, /* Security signature. */ kDNSServiceType_KEY = 25, /* Security key. */ kDNSServiceType_PX = 26, /* X.400 mail mapping. */ kDNSServiceType_GPOS = 27, /* Geographical position (withdrawn). */ kDNSServiceType_AAAA = 28, /* IPv6 Address. */ kDNSServiceType_LOC = 29, /* Location Information. */ kDNSServiceType_NXT = 30, /* Next domain (security). */ kDNSServiceType_EID = 31, /* Endpoint identifier. */ kDNSServiceType_NIMLOC = 32, /* Nimrod Locator. */ kDNSServiceType_SRV = 33, /* Server Selection. */ kDNSServiceType_ATMA = 34, /* ATM Address */ kDNSServiceType_NAPTR = 35, /* Naming Authority PoinTeR */ kDNSServiceType_KX = 36, /* Key Exchange */ kDNSServiceType_CERT = 37, /* Certification record */ kDNSServiceType_A6 = 38, /* IPv6 Address (deprecated) */ kDNSServiceType_DNAME = 39, /* Non-terminal DNAME (for IPv6) */ kDNSServiceType_SINK = 40, /* Kitchen sink (experimentatl) */ kDNSServiceType_OPT = 41, /* EDNS0 option (meta-RR) */ kDNSServiceType_TKEY = 249, /* Transaction key */ kDNSServiceType_TSIG = 250, /* Transaction signature. */ kDNSServiceType_IXFR = 251, /* Incremental zone transfer. */ kDNSServiceType_AXFR = 252, /* Transfer zone of authority. */ kDNSServiceType_MAILB = 253, /* Transfer mailbox records. */ kDNSServiceType_MAILA = 254, /* Transfer mail agent records. */ kDNSServiceType_ANY = 255 /* Wildcard match. */ }; /* possible error code values */ enum { kDNSServiceErr_NoError = 0, kDNSServiceErr_Unknown = -65537, /* 0xFFFE FFFF */ kDNSServiceErr_NoSuchName = -65538, kDNSServiceErr_NoMemory = -65539, kDNSServiceErr_BadParam = -65540, kDNSServiceErr_BadReference = -65541, kDNSServiceErr_BadState = -65542, kDNSServiceErr_BadFlags = -65543, kDNSServiceErr_Unsupported = -65544, kDNSServiceErr_NotInitialized = -65545, kDNSServiceErr_AlreadyRegistered = -65547, kDNSServiceErr_NameConflict = -65548, kDNSServiceErr_Invalid = -65549, kDNSServiceErr_Firewall = -65550, kDNSServiceErr_Incompatible = -65551, /* client library incompatible with daemon */ kDNSServiceErr_BadInterfaceIndex = -65552, kDNSServiceErr_Refused = -65553, kDNSServiceErr_NoSuchRecord = -65554, kDNSServiceErr_NoAuth = -65555, kDNSServiceErr_NoSuchKey = -65556, kDNSServiceErr_NATTraversal = -65557, kDNSServiceErr_DoubleNAT = -65558, kDNSServiceErr_BadTime = -65559 /* mDNS Error codes are in the range * FFFE FF00 (-65792) to FFFE FFFF (-65537) */ }; /* Maximum length, in bytes, of a service name represented as a */ /* literal C-String, including the terminating NULL at the end. */ #define kDNSServiceMaxServiceName 64 /* Maximum length, in bytes, of a domain name represented as an *escaped* C-String */ /* including the final trailing dot, and the C-String terminating NULL at the end. */ #define kDNSServiceMaxDomainName 1005 /* * Notes on DNS Name Escaping * -- or -- * "Why is kDNSServiceMaxDomainName 1005, when the maximum legal domain name is 255 bytes?" * * All strings used in DNS-SD are UTF-8 strings. * With few exceptions, most are also escaped using standard DNS escaping rules: * * '\\' represents a single literal '\' in the name * '\.' represents a single literal '.' in the name * '\ddd', where ddd is a three-digit decimal value from 000 to 255, * represents a single literal byte with that value. * A bare unescaped '.' is a label separator, marking a boundary between domain and subdomain. * * The exceptions, that do not use escaping, are the routines where the full * DNS name of a resource is broken, for convenience, into servicename/regtype/domain. * In these routines, the "servicename" is NOT escaped. It does not need to be, since * it is, by definition, just a single literal string. Any characters in that string * represent exactly what they are. The "regtype" portion is, technically speaking, * escaped, but since legal regtypes are only allowed to contain letters, digits, * and hyphens, there is nothing to escape, so the issue is moot. The "domain" * portion is also escaped, though most domains in use on the public Internet * today, like regtypes, don't contain any characters that need to be escaped. * As DNS-SD becomes more popular, rich-text domains for service discovery will * become common, so software should be written to cope with domains with escaping. * * The servicename may be up to 63 bytes of UTF-8 text (not counting the C-String * terminating NULL at the end). The regtype is of the form _service._tcp or * _service._udp, where the "service" part is 1-14 characters, which may be * letters, digits, or hyphens. The domain part of the three-part name may be * any legal domain, providing that the resulting servicename+regtype+domain * name does not exceed 255 bytes. * * For most software, these issues are transparent. When browsing, the discovered * servicenames should simply be displayed as-is. When resolving, the discovered * servicename/regtype/domain are simply passed unchanged to DNSServiceResolve(). * When a DNSServiceResolve() succeeds, the returned fullname is already in * the correct format to pass to standard system DNS APIs such as res_query(). * For converting from servicename/regtype/domain to a single properly-escaped * full DNS name, the helper function DNSServiceConstructFullName() is provided. * * The following (highly contrived) example illustrates the escaping process. * Suppose you have an service called "Dr. Smith\Dr. Johnson", of type "_ftp._tcp" * in subdomain "4th. Floor" of subdomain "Building 2" of domain "apple.com." * The full (escaped) DNS name of this service's SRV record would be: * Dr\.\032Smith\\Dr\.\032Johnson._ftp._tcp.4th\.\032Floor.Building\0322.apple.com. */ /* * Constants for specifying an interface index * * Specific interface indexes are identified via a 32-bit unsigned integer returned * by the if_nametoindex() family of calls. * * If the client passes 0 for interface index, that means "do the right thing", * which (at present) means, "if the name is in an mDNS local multicast domain * (e.g. 'local.', '254.169.in-addr.arpa.', '{8,9,A,B}.E.F.ip6.arpa.') then multicast * on all applicable interfaces, otherwise send via unicast to the appropriate * DNS server." Normally, most clients will use 0 for interface index to * automatically get the default sensible behaviour. * * If the client passes a positive interface index, then for multicast names that * indicates to do the operation only on that one interface. For unicast names the * interface index is ignored unless kDNSServiceFlagsForceMulticast is also set. * * If the client passes kDNSServiceInterfaceIndexLocalOnly when registering * a service, then that service will be found *only* by other local clients * on the same machine that are browsing using kDNSServiceInterfaceIndexLocalOnly * or kDNSServiceInterfaceIndexAny. * If a client has a 'private' service, accessible only to other processes * running on the same machine, this allows the client to advertise that service * in a way such that it does not inadvertently appear in service lists on * all the other machines on the network. * * If the client passes kDNSServiceInterfaceIndexLocalOnly when browsing * then it will find *all* records registered on that same local machine. * Clients explicitly wishing to discover *only* LocalOnly services can * accomplish this by inspecting the interfaceIndex of each service reported * to their DNSServiceBrowseReply() callback function, and discarding those * where the interface index is not kDNSServiceInterfaceIndexLocalOnly. */ #define kDNSServiceInterfaceIndexAny 0 #define kDNSServiceInterfaceIndexLocalOnly ( (uint32_t) -1 ) typedef uint32_t DNSServiceFlags; typedef int32_t DNSServiceErrorType; /********************************************************************************************* * * Unix Domain Socket access, DNSServiceRef deallocation, and data processing functions * *********************************************************************************************/ /* DNSServiceRefSockFD() * * Access underlying Unix domain socket for an initialized DNSServiceRef. * The DNS Service Discovery implmementation uses this socket to communicate between * the client and the mDNSResponder daemon. The application MUST NOT directly read from * or write to this socket. Access to the socket is provided so that it can be used as a * run loop source, or in a select() loop: when data is available for reading on the socket, * DNSServiceProcessResult() should be called, which will extract the daemon's reply from * the socket, and pass it to the appropriate application callback. By using a run loop or * select(), results from the daemon can be processed asynchronously. Without using these * constructs, DNSServiceProcessResult() will block until the response from the daemon arrives. * The client is responsible for ensuring that the data on the socket is processed in a timely * fashion - the daemon may terminate its connection with a client that does not clear its * socket buffer. * * sdRef: A DNSServiceRef initialized by any of the DNSService calls. * * return value: The DNSServiceRef's underlying socket descriptor, or -1 on * error. */ int DNSSD_API DNSServiceRefSockFD(DNSServiceRef sdRef); /* DNSServiceProcessResult() * * Read a reply from the daemon, calling the appropriate application callback. This call will * block until the daemon's response is received. Use DNSServiceRefSockFD() in * conjunction with a run loop or select() to determine the presence of a response from the * server before calling this function to process the reply without blocking. Call this function * at any point if it is acceptable to block until the daemon's response arrives. Note that the * client is responsible for ensuring that DNSServiceProcessResult() is called whenever there is * a reply from the daemon - the daemon may terminate its connection with a client that does not * process the daemon's responses. * * sdRef: A DNSServiceRef initialized by any of the DNSService calls * that take a callback parameter. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns * an error code indicating the specific failure that occurred. */ DNSServiceErrorType DNSSD_API DNSServiceProcessResult(DNSServiceRef sdRef); /* DNSServiceRefDeallocate() * * Terminate a connection with the daemon and free memory associated with the DNSServiceRef. * Any services or records registered with this DNSServiceRef will be deregistered. Any * Browse, Resolve, or Query operations called with this reference will be terminated. * * Note: If the reference's underlying socket is used in a run loop or select() call, it should * be removed BEFORE DNSServiceRefDeallocate() is called, as this function closes the reference's * socket. * * Note: If the reference was initialized with DNSServiceCreateConnection(), any DNSRecordRefs * created via this reference will be invalidated by this call - the resource records are * deregistered, and their DNSRecordRefs may not be used in subsequent functions. Similarly, * if the reference was initialized with DNSServiceRegister, and an extra resource record was * added to the service via DNSServiceAddRecord(), the DNSRecordRef created by the Add() call * is invalidated when this function is called - the DNSRecordRef may not be used in subsequent * functions. * * Note: This call is to be used only with the DNSServiceRef defined by this API. It is * not compatible with dns_service_discovery_ref objects defined in the legacy Mach-based * DNSServiceDiscovery.h API. * * sdRef: A DNSServiceRef initialized by any of the DNSService calls. * */ void DNSSD_API DNSServiceRefDeallocate(DNSServiceRef sdRef); /********************************************************************************************* * * Domain Enumeration * *********************************************************************************************/ /* DNSServiceEnumerateDomains() * * Asynchronously enumerate domains available for browsing and registration. * * The enumeration MUST be cancelled via DNSServiceRefDeallocate() when no more domains * are to be found. * * Note that the names returned are (like all of DNS-SD) UTF-8 strings, * and are escaped using standard DNS escaping rules. * (See "Notes on DNS Name Escaping" earlier in this file for more details.) * A graphical browser displaying a hierarchical tree-structured view should cut * the names at the bare dots to yield individual labels, then de-escape each * label according to the escaping rules, and then display the resulting UTF-8 text. * * DNSServiceDomainEnumReply Callback Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceEnumerateDomains(). * * flags: Possible values are: * kDNSServiceFlagsMoreComing * kDNSServiceFlagsAdd * kDNSServiceFlagsDefault * * interfaceIndex: Specifies the interface on which the domain exists. (The index for a given * interface is determined via the if_nametoindex() family of calls.) * * errorCode: Will be kDNSServiceErr_NoError (0) on success, otherwise indicates * the failure that occurred (other parameters are undefined if errorCode is nonzero). * * replyDomain: The name of the domain. * * context: The context pointer passed to DNSServiceEnumerateDomains. * */ typedef void (DNSSD_API *DNSServiceDomainEnumReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *replyDomain, void *context ); /* DNSServiceEnumerateDomains() Parameters: * * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the enumeration operation will run indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: Possible values are: * kDNSServiceFlagsBrowseDomains to enumerate domains recommended for browsing. * kDNSServiceFlagsRegistrationDomains to enumerate domains recommended * for registration. * * interfaceIndex: If non-zero, specifies the interface on which to look for domains. * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Most applications will pass 0 to enumerate domains on * all interfaces. See "Constants for specifying an interface index" for more details. * * callBack: The function to be called when a domain is found or the call asynchronously * fails. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on succeses (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is not invoked and the DNSServiceRef * is not initialized.) */ DNSServiceErrorType DNSSD_API DNSServiceEnumerateDomains ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceDomainEnumReply callBack, void *context /* may be NULL */ ); /********************************************************************************************* * * Service Registration * *********************************************************************************************/ /* Register a service that is discovered via Browse() and Resolve() calls. * * * DNSServiceRegisterReply() Callback Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceRegister(). * * flags: Currently unused, reserved for future use. * * errorCode: Will be kDNSServiceErr_NoError on success, otherwise will * indicate the failure that occurred (including name conflicts, * if the kDNSServiceFlagsNoAutoRename flag was used when registering.) * Other parameters are undefined if errorCode is nonzero. * * name: The service name registered (if the application did not specify a name in * DNSServiceRegister(), this indicates what name was automatically chosen). * * regtype: The type of service registered, as it was passed to the callout. * * domain: The domain on which the service was registered (if the application did not * specify a domain in DNSServiceRegister(), this indicates the default domain * on which the service was registered). * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceRegisterReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, const char *name, const char *regtype, const char *domain, void *context ); /* DNSServiceRegister() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the registration will remain active indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * interfaceIndex: If non-zero, specifies the interface on which to register the service * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Most applications will pass 0 to register on all * available interfaces. See "Constants for specifying an interface index" for more details. * * flags: Indicates the renaming behavior on name conflict (most applications * will pass 0). See flag definitions above for details. * * name: If non-NULL, specifies the service name to be registered. * Most applications will not specify a name, in which case the computer * name is used (this name is communicated to the client via the callback). * If a name is specified, it must be 1-63 bytes of UTF-8 text. * If the name is longer than 63 bytes it will be automatically truncated * to a legal length, unless the NoAutoRename flag is set, * in which case kDNSServiceErr_BadParam will be returned. * * regtype: The service type followed by the protocol, separated by a dot * (e.g. "_ftp._tcp"). The service type must be an underscore, followed * by 1-14 characters, which may be letters, digits, or hyphens. * The transport protocol must be "_tcp" or "_udp". New service types * should be registered at . * * domain: If non-NULL, specifies the domain on which to advertise the service. * Most applications will not specify a domain, instead automatically * registering in the default domain(s). * * host: If non-NULL, specifies the SRV target host name. Most applications * will not specify a host, instead automatically using the machine's * default host name(s). Note that specifying a non-NULL host does NOT * create an address record for that host - the application is responsible * for ensuring that the appropriate address record exists, or creating it * via DNSServiceRegisterRecord(). * * port: The port, in network byte order, on which the service accepts connections. * Pass 0 for a "placeholder" service (i.e. a service that will not be discovered * by browsing, but will cause a name conflict if another client tries to * register that same name). Most clients will not use placeholder services. * * txtLen: The length of the txtRecord, in bytes. Must be zero if the txtRecord is NULL. * * txtRecord: The TXT record rdata. A non-NULL txtRecord MUST be a properly formatted DNS * TXT record, i.e. ... * Passing NULL for the txtRecord is allowed as a synonym for txtLen=1, txtRecord="", * i.e. it creates a TXT record of length one containing a single empty string. * RFC 1035 doesn't allow a TXT record to contain *zero* strings, so a single empty * string is the smallest legal DNS TXT record. * As with the other parameters, the DNSServiceRegister call copies the txtRecord * data; e.g. if you allocated the storage for the txtRecord parameter with malloc() * then you can safely free that memory right after the DNSServiceRegister call returns. * * callBack: The function to be called when the registration completes or asynchronously * fails. The client MAY pass NULL for the callback - The client will NOT be notified * of the default values picked on its behalf, and the client will NOT be notified of any * asynchronous errors (e.g. out of memory errors, etc.) that may prevent the registration * of the service. The client may NOT pass the NoAutoRename flag if the callback is NULL. * The client may still deregister the service at any time via DNSServiceRefDeallocate(). * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on succeses (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is never invoked and the DNSServiceRef * is not initialized.) */ DNSServiceErrorType DNSSD_API DNSServiceRegister ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, /* may be NULL */ const char *regtype, const char *domain, /* may be NULL */ const char *host, /* may be NULL */ uint16_t port, uint16_t txtLen, const void *txtRecord, /* may be NULL */ DNSServiceRegisterReply callBack, /* may be NULL */ void *context /* may be NULL */ ); /* DNSServiceAddRecord() * * Add a record to a registered service. The name of the record will be the same as the * registered service's name. * The record can later be updated or deregistered by passing the RecordRef initialized * by this function to DNSServiceUpdateRecord() or DNSServiceRemoveRecord(). * * Note that the DNSServiceAddRecord/UpdateRecord/RemoveRecord are *NOT* thread-safe * with respect to a single DNSServiceRef. If you plan to have multiple threads * in your program simultaneously add, update, or remove records from the same * DNSServiceRef, then it's the caller's responsibility to use a mutext lock * or take similar appropriate precautions to serialize those calls. * * * Parameters; * * sdRef: A DNSServiceRef initialized by DNSServiceRegister(). * * RecordRef: A pointer to an uninitialized DNSRecordRef. Upon succesfull completion of this * call, this ref may be passed to DNSServiceUpdateRecord() or DNSServiceRemoveRecord(). * If the above DNSServiceRef is passed to DNSServiceRefDeallocate(), RecordRef is also * invalidated and may not be used further. * * flags: Currently ignored, reserved for future use. * * rrtype: The type of the record (e.g. kDNSServiceType_TXT, kDNSServiceType_SRV, etc) * * rdlen: The length, in bytes, of the rdata. * * rdata: The raw rdata to be contained in the added resource record. * * ttl: The time to live of the resource record, in seconds. Pass 0 to use a default value. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns an * error code indicating the error that occurred (the RecordRef is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceAddRecord ( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint16_t rrtype, uint16_t rdlen, const void *rdata, uint32_t ttl ); /* DNSServiceUpdateRecord * * Update a registered resource record. The record must either be: * - The primary txt record of a service registered via DNSServiceRegister() * - A record added to a registered service via DNSServiceAddRecord() * - An individual record registered by DNSServiceRegisterRecord() * * * Parameters: * * sdRef: A DNSServiceRef that was initialized by DNSServiceRegister() * or DNSServiceCreateConnection(). * * RecordRef: A DNSRecordRef initialized by DNSServiceAddRecord, or NULL to update the * service's primary txt record. * * flags: Currently ignored, reserved for future use. * * rdlen: The length, in bytes, of the new rdata. * * rdata: The new rdata to be contained in the updated resource record. * * ttl: The time to live of the updated resource record, in seconds. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns an * error code indicating the error that occurred. */ DNSServiceErrorType DNSSD_API DNSServiceUpdateRecord ( DNSServiceRef sdRef, DNSRecordRef RecordRef, /* may be NULL */ DNSServiceFlags flags, uint16_t rdlen, const void *rdata, uint32_t ttl ); /* DNSServiceRemoveRecord * * Remove a record previously added to a service record set via DNSServiceAddRecord(), or deregister * an record registered individually via DNSServiceRegisterRecord(). * * Parameters: * * sdRef: A DNSServiceRef initialized by DNSServiceRegister() (if the * record being removed was registered via DNSServiceAddRecord()) or by * DNSServiceCreateConnection() (if the record being removed was registered via * DNSServiceRegisterRecord()). * * recordRef: A DNSRecordRef initialized by a successful call to DNSServiceAddRecord() * or DNSServiceRegisterRecord(). * * flags: Currently ignored, reserved for future use. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns an * error code indicating the error that occurred. */ DNSServiceErrorType DNSSD_API DNSServiceRemoveRecord ( DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags ); /********************************************************************************************* * * Service Discovery * *********************************************************************************************/ /* Browse for instances of a service. * * * DNSServiceBrowseReply() Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceBrowse(). * * flags: Possible values are kDNSServiceFlagsMoreComing and kDNSServiceFlagsAdd. * See flag definitions for details. * * interfaceIndex: The interface on which the service is advertised. This index should * be passed to DNSServiceResolve() when resolving the service. * * errorCode: Will be kDNSServiceErr_NoError (0) on success, otherwise will * indicate the failure that occurred. Other parameters are undefined if * the errorCode is nonzero. * * serviceName: The discovered service name. This name should be displayed to the user, * and stored for subsequent use in the DNSServiceResolve() call. * * regtype: The service type, which is usually (but not always) the same as was passed * to DNSServiceBrowse(). One case where the discovered service type may * not be the same as the requested service type is when using subtypes: * The client may want to browse for only those ftp servers that allow * anonymous connections. The client will pass the string "_ftp._tcp,_anon" * to DNSServiceBrowse(), but the type of the service that's discovered * is simply "_ftp._tcp". The regtype for each discovered service instance * should be stored along with the name, so that it can be passed to * DNSServiceResolve() when the service is later resolved. * * domain: The domain of the discovered service instance. This may or may not be the * same as the domain that was passed to DNSServiceBrowse(). The domain for each * discovered service instance should be stored along with the name, so that * it can be passed to DNSServiceResolve() when the service is later resolved. * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceBrowseReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *serviceName, const char *regtype, const char *replyDomain, void *context ); /* DNSServiceBrowse() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the browse operation will run indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: Currently ignored, reserved for future use. * * interfaceIndex: If non-zero, specifies the interface on which to browse for services * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Most applications will pass 0 to browse on all available * interfaces. See "Constants for specifying an interface index" for more details. * * regtype: The service type being browsed for followed by the protocol, separated by a * dot (e.g. "_ftp._tcp"). The transport protocol must be "_tcp" or "_udp". * * domain: If non-NULL, specifies the domain on which to browse for services. * Most applications will not specify a domain, instead browsing on the * default domain(s). * * callBack: The function to be called when an instance of the service being browsed for * is found, or if the call asynchronously fails. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on succeses (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is not invoked and the DNSServiceRef * is not initialized.) */ DNSServiceErrorType DNSSD_API DNSServiceBrowse ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *regtype, const char *domain, /* may be NULL */ DNSServiceBrowseReply callBack, void *context /* may be NULL */ ); /* DNSServiceResolve() * * Resolve a service name discovered via DNSServiceBrowse() to a target host name, port number, and * txt record. * * Note: Applications should NOT use DNSServiceResolve() solely for txt record monitoring - use * DNSServiceQueryRecord() instead, as it is more efficient for this task. * * Note: When the desired results have been returned, the client MUST terminate the resolve by calling * DNSServiceRefDeallocate(). * * Note: DNSServiceResolve() behaves correctly for typical services that have a single SRV record * and a single TXT record. To resolve non-standard services with multiple SRV or TXT records, * DNSServiceQueryRecord() should be used. * * DNSServiceResolveReply Callback Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceResolve(). * * flags: Currently unused, reserved for future use. * * interfaceIndex: The interface on which the service was resolved. * * errorCode: Will be kDNSServiceErr_NoError (0) on success, otherwise will * indicate the failure that occurred. Other parameters are undefined if * the errorCode is nonzero. * * fullname: The full service domain name, in the form ... * (This name is escaped following standard DNS rules, making it suitable for * passing to standard system DNS APIs such as res_query(), or to the * special-purpose functions included in this API that take fullname parameters. * See "Notes on DNS Name Escaping" earlier in this file for more details.) * * hosttarget: The target hostname of the machine providing the service. This name can * be passed to functions like gethostbyname() to identify the host's IP address. * * port: The port, in network byte order, on which connections are accepted for this service. * * txtLen: The length of the txt record, in bytes. * * txtRecord: The service's primary txt record, in standard txt record format. * * context: The context pointer that was passed to the callout. * * NOTE: In earlier versions of this header file, the txtRecord parameter was declared "const char *" * This is incorrect, since it contains length bytes which are values in the range 0 to 255, not -128 to +127. * Depending on your compiler settings, this change may cause signed/unsigned mismatch warnings. * These should be fixed by updating your own callback function definition to match the corrected * function signature using "const unsigned char *txtRecord". Making this change may also fix inadvertent * bugs in your callback function, where it could have incorrectly interpreted a length byte with value 250 * as being -6 instead, with various bad consequences ranging from incorrect operation to software crashes. * If you need to maintain portable code that will compile cleanly with both the old and new versions of * this header file, you should update your callback function definition to use the correct unsigned value, * and then in the place where you pass your callback function to DNSServiceResolve(), use a cast to eliminate * the compiler warning, e.g.: * DNSServiceResolve(sd, flags, index, name, regtype, domain, (DNSServiceResolveReply)MyCallback, context); * This will ensure that your code compiles cleanly without warnings (and more importantly, works correctly) * with both the old header and with the new corrected version. * */ typedef void (DNSSD_API *DNSServiceResolveReply) ( DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, const char *hosttarget, uint16_t port, uint16_t txtLen, const unsigned char *txtRecord, void *context ); /* DNSServiceResolve() Parameters * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the resolve operation will run indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: Currently ignored, reserved for future use. * * interfaceIndex: The interface on which to resolve the service. If this resolve call is * as a result of a currently active DNSServiceBrowse() operation, then the * interfaceIndex should be the index reported in the DNSServiceBrowseReply * callback. If this resolve call is using information previously saved * (e.g. in a preference file) for later use, then use interfaceIndex 0, because * the desired service may now be reachable via a different physical interface. * See "Constants for specifying an interface index" for more details. * * name: The name of the service instance to be resolved, as reported to the * DNSServiceBrowseReply() callback. * * regtype: The type of the service instance to be resolved, as reported to the * DNSServiceBrowseReply() callback. * * domain: The domain of the service instance to be resolved, as reported to the * DNSServiceBrowseReply() callback. * * callBack: The function to be called when a result is found, or if the call * asynchronously fails. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on succeses (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is never invoked and the DNSServiceRef * is not initialized.) */ DNSServiceErrorType DNSSD_API DNSServiceResolve ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *name, const char *regtype, const char *domain, DNSServiceResolveReply callBack, void *context /* may be NULL */ ); /********************************************************************************************* * * Special Purpose Calls (most applications will not use these) * *********************************************************************************************/ /* DNSServiceCreateConnection() * * Create a connection to the daemon allowing efficient registration of * multiple individual records. * * * Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. Deallocating * the reference (via DNSServiceRefDeallocate()) severs the * connection and deregisters all records registered on this connection. * * return value: Returns kDNSServiceErr_NoError on success, otherwise returns * an error code indicating the specific failure that occurred (in which * case the DNSServiceRef is not initialized). */ DNSServiceErrorType DNSSD_API DNSServiceCreateConnection(DNSServiceRef *sdRef); /* DNSServiceRegisterRecord * * Register an individual resource record on a connected DNSServiceRef. * * Note that name conflicts occurring for records registered via this call must be handled * by the client in the callback. * * * DNSServiceRegisterRecordReply() parameters: * * sdRef: The connected DNSServiceRef initialized by * DNSServiceCreateConnection(). * * RecordRef: The DNSRecordRef initialized by DNSServiceRegisterRecord(). If the above * DNSServiceRef is passed to DNSServiceRefDeallocate(), this DNSRecordRef is * invalidated, and may not be used further. * * flags: Currently unused, reserved for future use. * * errorCode: Will be kDNSServiceErr_NoError on success, otherwise will * indicate the failure that occurred (including name conflicts.) * Other parameters are undefined if errorCode is nonzero. * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceRegisterRecordReply) ( DNSServiceRef sdRef, DNSRecordRef RecordRef, DNSServiceFlags flags, DNSServiceErrorType errorCode, void *context ); /* DNSServiceRegisterRecord() Parameters: * * sdRef: A DNSServiceRef initialized by DNSServiceCreateConnection(). * * RecordRef: A pointer to an uninitialized DNSRecordRef. Upon succesfull completion of this * call, this ref may be passed to DNSServiceUpdateRecord() or DNSServiceRemoveRecord(). * (To deregister ALL records registered on a single connected DNSServiceRef * and deallocate each of their corresponding DNSServiceRecordRefs, call * DNSServiceRefDealloocate()). * * flags: Possible values are kDNSServiceFlagsShared or kDNSServiceFlagsUnique * (see flag type definitions for details). * * interfaceIndex: If non-zero, specifies the interface on which to register the record * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Passing 0 causes the record to be registered on all interfaces. * See "Constants for specifying an interface index" for more details. * * fullname: The full domain name of the resource record. * * rrtype: The numerical type of the resource record (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) * * rrclass: The class of the resource record (usually kDNSServiceClass_IN) * * rdlen: Length, in bytes, of the rdata. * * rdata: A pointer to the raw rdata, as it is to appear in the DNS record. * * ttl: The time to live of the resource record, in seconds. Pass 0 to use a default value. * * callBack: The function to be called when a result is found, or if the call * asynchronously fails (e.g. because of a name conflict.) * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on succeses (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is never invoked and the DNSRecordRef is * not initialized.) */ DNSServiceErrorType DNSSD_API DNSServiceRegisterRecord ( DNSServiceRef sdRef, DNSRecordRef *RecordRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, DNSServiceRegisterRecordReply callBack, void *context /* may be NULL */ ); /* DNSServiceQueryRecord * * Query for an arbitrary DNS record. * * * DNSServiceQueryRecordReply() Callback Parameters: * * sdRef: The DNSServiceRef initialized by DNSServiceQueryRecord(). * * flags: Possible values are kDNSServiceFlagsMoreComing and * kDNSServiceFlagsAdd. The Add flag is NOT set for PTR records * with a ttl of 0, i.e. "Remove" events. * * interfaceIndex: The interface on which the query was resolved (the index for a given * interface is determined via the if_nametoindex() family of calls). * See "Constants for specifying an interface index" for more details. * * errorCode: Will be kDNSServiceErr_NoError on success, otherwise will * indicate the failure that occurred. Other parameters are undefined if * errorCode is nonzero. * * fullname: The resource record's full domain name. * * rrtype: The resource record's type (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) * * rrclass: The class of the resource record (usually kDNSServiceClass_IN). * * rdlen: The length, in bytes, of the resource record rdata. * * rdata: The raw rdata of the resource record. * * ttl: The resource record's time to live, in seconds. * * context: The context pointer that was passed to the callout. * */ typedef void (DNSSD_API *DNSServiceQueryRecordReply) ( DNSServiceRef DNSServiceRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context ); /* DNSServiceQueryRecord() Parameters: * * sdRef: A pointer to an uninitialized DNSServiceRef. If the call succeeds * then it initializes the DNSServiceRef, returns kDNSServiceErr_NoError, * and the query operation will run indefinitely until the client * terminates it by passing this DNSServiceRef to DNSServiceRefDeallocate(). * * flags: Pass kDNSServiceFlagsLongLivedQuery to create a "long-lived" unicast * query in a non-local domain. Without setting this flag, unicast queries * will be one-shot - that is, only answers available at the time of the call * will be returned. By setting this flag, answers (including Add and Remove * events) that become available after the initial call is made will generate * callbacks. This flag has no effect on link-local multicast queries. * * interfaceIndex: If non-zero, specifies the interface on which to issue the query * (the index for a given interface is determined via the if_nametoindex() * family of calls.) Passing 0 causes the name to be queried for on all * interfaces. See "Constants for specifying an interface index" for more details. * * fullname: The full domain name of the resource record to be queried for. * * rrtype: The numerical type of the resource record to be queried for * (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) * * rrclass: The class of the resource record (usually kDNSServiceClass_IN). * * callBack: The function to be called when a result is found, or if the call * asynchronously fails. * * context: An application context pointer which is passed to the callback function * (may be NULL). * * return value: Returns kDNSServiceErr_NoError on succeses (any subsequent, asynchronous * errors are delivered to the callback), otherwise returns an error code indicating * the error that occurred (the callback is never invoked and the DNSServiceRef * is not initialized.) */ DNSServiceErrorType DNSSD_API DNSServiceQueryRecord ( DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceQueryRecordReply callBack, void *context /* may be NULL */ ); /* DNSServiceReconfirmRecord * * Instruct the daemon to verify the validity of a resource record that appears to * be out of date (e.g. because tcp connection to a service's target failed.) * Causes the record to be flushed from the daemon's cache (as well as all other * daemons' caches on the network) if the record is determined to be invalid. * * Parameters: * * flags: Currently unused, reserved for future use. * * interfaceIndex: If non-zero, specifies the interface of the record in question. * Passing 0 causes all instances of this record to be reconfirmed. * * fullname: The resource record's full domain name. * * rrtype: The resource record's type (e.g. kDNSServiceType_PTR, kDNSServiceType_SRV, etc) * * rrclass: The class of the resource record (usually kDNSServiceClass_IN). * * rdlen: The length, in bytes, of the resource record rdata. * * rdata: The raw rdata of the resource record. * */ DNSServiceErrorType DNSSD_API DNSServiceReconfirmRecord ( DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata ); /********************************************************************************************* * * General Utility Functions * *********************************************************************************************/ /* DNSServiceConstructFullName() * * Concatenate a three-part domain name (as returned by the above callbacks) into a * properly-escaped full domain name. Note that callbacks in the above functions ALREADY ESCAPE * strings where necessary. * * Parameters: * * fullName: A pointer to a buffer that where the resulting full domain name is to be written. * The buffer must be kDNSServiceMaxDomainName (1005) bytes in length to * accommodate the longest legal domain name without buffer overrun. * * service: The service name - any dots or backslashes must NOT be escaped. * May be NULL (to construct a PTR record name, e.g. * "_ftp._tcp.apple.com."). * * regtype: The service type followed by the protocol, separated by a dot * (e.g. "_ftp._tcp"). * * domain: The domain name, e.g. "apple.com.". Literal dots or backslashes, * if any, must be escaped, e.g. "1st\. Floor.apple.com." * * return value: Returns 0 on success, -1 on error. * */ int DNSSD_API DNSServiceConstructFullName ( char *fullName, const char *service, /* may be NULL */ const char *regtype, const char *domain ); /********************************************************************************************* * * TXT Record Construction Functions * *********************************************************************************************/ /* * A typical calling sequence for TXT record construction is something like: * * Client allocates storage for TXTRecord data (e.g. declare buffer on the stack) * TXTRecordCreate(); * TXTRecordSetValue(); * TXTRecordSetValue(); * TXTRecordSetValue(); * ... * DNSServiceRegister( ... TXTRecordGetLength(), TXTRecordGetBytesPtr() ... ); * TXTRecordDeallocate(); * Explicitly deallocate storage for TXTRecord data (if not allocated on the stack) */ /* TXTRecordRef * * Opaque internal data type. * Note: Represents a DNS-SD TXT record. */ typedef union _TXTRecordRef_t { char PrivateData[16]; char *ForceNaturalAlignment; } TXTRecordRef; /* TXTRecordCreate() * * Creates a new empty TXTRecordRef referencing the specified storage. * * If the buffer parameter is NULL, or the specified storage size is not * large enough to hold a key subsequently added using TXTRecordSetValue(), * then additional memory will be added as needed using malloc(). * * On some platforms, when memory is low, malloc() may fail. In this * case, TXTRecordSetValue() will return kDNSServiceErr_NoMemory, and this * error condition will need to be handled as appropriate by the caller. * * You can avoid the need to handle this error condition if you ensure * that the storage you initially provide is large enough to hold all * the key/value pairs that are to be added to the record. * The caller can precompute the exact length required for all of the * key/value pairs to be added, or simply provide a fixed-sized buffer * known in advance to be large enough. * A no-value (key-only) key requires (1 + key length) bytes. * A key with empty value requires (1 + key length + 1) bytes. * A key with non-empty value requires (1 + key length + 1 + value length). * For most applications, DNS-SD TXT records are generally * less than 100 bytes, so in most cases a simple fixed-sized * 256-byte buffer will be more than sufficient. * Recommended size limits for DNS-SD TXT Records are discussed in * * * Note: When passing parameters to and from these TXT record APIs, * the key name does not include the '=' character. The '=' character * is the separator between the key and value in the on-the-wire * packet format; it is not part of either the key or the value. * * txtRecord: A pointer to an uninitialized TXTRecordRef. * * bufferLen: The size of the storage provided in the "buffer" parameter. * * buffer: Optional caller-supplied storage used to hold the TXTRecord data. * This storage must remain valid for as long as * the TXTRecordRef. */ void DNSSD_API TXTRecordCreate ( TXTRecordRef *txtRecord, uint16_t bufferLen, void *buffer ); /* TXTRecordDeallocate() * * Releases any resources allocated in the course of preparing a TXT Record * using TXTRecordCreate()/TXTRecordSetValue()/TXTRecordRemoveValue(). * Ownership of the buffer provided in TXTRecordCreate() returns to the client. * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * */ void DNSSD_API TXTRecordDeallocate ( TXTRecordRef *txtRecord ); /* TXTRecordSetValue() * * Adds a key (optionally with value) to a TXTRecordRef. If the "key" already * exists in the TXTRecordRef, then the current value will be replaced with * the new value. * Keys may exist in four states with respect to a given TXT record: * - Absent (key does not appear at all) * - Present with no value ("key" appears alone) * - Present with empty value ("key=" appears in TXT record) * - Present with non-empty value ("key=value" appears in TXT record) * For more details refer to "Data Syntax for DNS-SD TXT Records" in * * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * * key: A null-terminated string which only contains printable ASCII * values (0x20-0x7E), excluding '=' (0x3D). Keys should be * 8 characters or less (not counting the terminating null). * * valueSize: The size of the value. * * value: Any binary value. For values that represent * textual data, UTF-8 is STRONGLY recommended. * For values that represent textual data, valueSize * should NOT include the terminating null (if any) * at the end of the string. * If NULL, then "key" will be added with no value. * If non-NULL but valueSize is zero, then "key=" will be * added with empty value. * * return value: Returns kDNSServiceErr_NoError on success. * Returns kDNSServiceErr_Invalid if the "key" string contains * illegal characters. * Returns kDNSServiceErr_NoMemory if adding this key would * exceed the available storage. */ DNSServiceErrorType DNSSD_API TXTRecordSetValue ( TXTRecordRef *txtRecord, const char *key, uint8_t valueSize, /* may be zero */ const void *value /* may be NULL */ ); /* TXTRecordRemoveValue() * * Removes a key from a TXTRecordRef. The "key" must be an * ASCII string which exists in the TXTRecordRef. * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * * key: A key name which exists in the TXTRecordRef. * * return value: Returns kDNSServiceErr_NoError on success. * Returns kDNSServiceErr_NoSuchKey if the "key" does not * exist in the TXTRecordRef. */ DNSServiceErrorType DNSSD_API TXTRecordRemoveValue ( TXTRecordRef *txtRecord, const char *key ); /* TXTRecordGetLength() * * Allows you to determine the length of the raw bytes within a TXTRecordRef. * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * * return value: Returns the size of the raw bytes inside a TXTRecordRef * which you can pass directly to DNSServiceRegister() or * to DNSServiceUpdateRecord(). * Returns 0 if the TXTRecordRef is empty. */ uint16_t DNSSD_API TXTRecordGetLength ( const TXTRecordRef *txtRecord ); /* TXTRecordGetBytesPtr() * * Allows you to retrieve a pointer to the raw bytes within a TXTRecordRef. * * txtRecord: A TXTRecordRef initialized by calling TXTRecordCreate(). * * return value: Returns a pointer to the raw bytes inside the TXTRecordRef * which you can pass directly to DNSServiceRegister() or * to DNSServiceUpdateRecord(). */ const void * DNSSD_API TXTRecordGetBytesPtr ( const TXTRecordRef *txtRecord ); /********************************************************************************************* * * TXT Record Parsing Functions * *********************************************************************************************/ /* * A typical calling sequence for TXT record parsing is something like: * * Receive TXT record data in DNSServiceResolve() callback * if (TXTRecordContainsKey(txtLen, txtRecord, "key")) then do something * val1ptr = TXTRecordGetValuePtr(txtLen, txtRecord, "key1", &len1); * val2ptr = TXTRecordGetValuePtr(txtLen, txtRecord, "key2", &len2); * ... * bcopy(val1ptr, myval1, len1); * bcopy(val2ptr, myval2, len2); * ... * return; * * If you wish to retain the values after return from the DNSServiceResolve() * callback, then you need to copy the data to your own storage using bcopy() * or similar, as shown in the example above. * * If for some reason you need to parse a TXT record you built yourself * using the TXT record construction functions above, then you can do * that using TXTRecordGetLength and TXTRecordGetBytesPtr calls: * TXTRecordGetValue(TXTRecordGetLength(x), TXTRecordGetBytesPtr(x), key, &len); * * Most applications only fetch keys they know about from a TXT record and * ignore the rest. * However, some debugging tools wish to fetch and display all keys. * To do that, use the TXTRecordGetCount() and TXTRecordGetItemAtIndex() calls. */ /* TXTRecordContainsKey() * * Allows you to determine if a given TXT Record contains a specified key. * * txtLen: The size of the received TXT Record. * * txtRecord: Pointer to the received TXT Record bytes. * * key: A null-terminated ASCII string containing the key name. * * return value: Returns 1 if the TXT Record contains the specified key. * Otherwise, it returns 0. */ int DNSSD_API TXTRecordContainsKey ( uint16_t txtLen, const void *txtRecord, const char *key ); /* TXTRecordGetValuePtr() * * Allows you to retrieve the value for a given key from a TXT Record. * * txtLen: The size of the received TXT Record * * txtRecord: Pointer to the received TXT Record bytes. * * key: A null-terminated ASCII string containing the key name. * * valueLen: On output, will be set to the size of the "value" data. * * return value: Returns NULL if the key does not exist in this TXT record, * or exists with no value (to differentiate between * these two cases use TXTRecordContainsKey()). * Returns pointer to location within TXT Record bytes * if the key exists with empty or non-empty value. * For empty value, valueLen will be zero. * For non-empty value, valueLen will be length of value data. */ const void * DNSSD_API TXTRecordGetValuePtr ( uint16_t txtLen, const void *txtRecord, const char *key, uint8_t *valueLen ); /* TXTRecordGetCount() * * Returns the number of keys stored in the TXT Record. The count * can be used with TXTRecordGetItemAtIndex() to iterate through the keys. * * txtLen: The size of the received TXT Record. * * txtRecord: Pointer to the received TXT Record bytes. * * return value: Returns the total number of keys in the TXT Record. * */ uint16_t DNSSD_API TXTRecordGetCount ( uint16_t txtLen, const void *txtRecord ); /* TXTRecordGetItemAtIndex() * * Allows you to retrieve a key name and value pointer, given an index into * a TXT Record. Legal index values range from zero to TXTRecordGetCount()-1. * It's also possible to iterate through keys in a TXT record by simply * calling TXTRecordGetItemAtIndex() repeatedly, beginning with index zero * and increasing until TXTRecordGetItemAtIndex() returns kDNSServiceErr_Invalid. * * On return: * For keys with no value, *value is set to NULL and *valueLen is zero. * For keys with empty value, *value is non-NULL and *valueLen is zero. * For keys with non-empty value, *value is non-NULL and *valueLen is non-zero. * * txtLen: The size of the received TXT Record. * * txtRecord: Pointer to the received TXT Record bytes. * * index: An index into the TXT Record. * * keyBufLen: The size of the string buffer being supplied. * * key: A string buffer used to store the key name. * On return, the buffer contains a null-terminated C string * giving the key name. DNS-SD TXT keys are usually * 8 characters or less. To hold the maximum possible * key name, the buffer should be 256 bytes long. * * valueLen: On output, will be set to the size of the "value" data. * * value: On output, *value is set to point to location within TXT * Record bytes that holds the value data. * * return value: Returns kDNSServiceErr_NoError on success. * Returns kDNSServiceErr_NoMemory if keyBufLen is too short. * Returns kDNSServiceErr_Invalid if index is greater than * TXTRecordGetCount()-1. */ DNSServiceErrorType DNSSD_API TXTRecordGetItemAtIndex ( uint16_t txtLen, const void *txtRecord, uint16_t index, uint16_t keyBufLen, char *key, uint8_t *valueLen, const void **value ); #ifdef __APPLE_API_PRIVATE /* * Mac OS X specific functionality * 3rd party clients of this API should not depend on future support or availability of this routine */ /* DNSServiceSetDefaultDomainForUser() * * Set the default domain for the caller's UID. Future browse and registration * calls by this user that do not specify an explicit domain will browse and * register in this wide-area domain in addition to .local. In addition, this * domain will be returned as a Browse domain via domain enumeration calls. * * * Parameters: * * flags: Pass kDNSServiceFlagsAdd to add a domain for a user. Call without * this flag set to clear a previously added domain. * * domain: The domain to be used for the caller's UID. * * return value: Returns kDNSServiceErr_NoError on succeses, otherwise returns * an error code indicating the error that occurred */ DNSServiceErrorType DNSSD_API DNSServiceSetDefaultDomainForUser ( DNSServiceFlags flags, const char *domain ); #endif //__APPLE_API_PRIVATE // Some C compiler cleverness. We can make the compiler check certain things for us, // and report errors at compile-time if anything is wrong. The usual way to do this would // be to use a run-time "if" statement or the conventional run-time "assert" mechanism, but // then you don't find out what's wrong until you run the software. This way, if the assertion // condition is false, the array size is negative, and the complier complains immediately. struct DNS_SD_CompileTimeAssertionChecks { char assert0[(sizeof(union _TXTRecordRef_t) == 16) ? 1 : -1]; }; #ifdef __cplusplus } #endif #endif /* _DNS_SD_H */ avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/null-test.c0000644000000000000000000000013213130651643020604 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681851.135964853 avahi-0.7/avahi-compat-libdns_sd/null-test.c0000644000175000017500000000476113130651643022223 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include static void reply( AVAHI_GCC_UNUSED DNSServiceRef sdRef, AVAHI_GCC_UNUSED DNSServiceFlags flags, AVAHI_GCC_UNUSED uint32_t interfaceIndex, AVAHI_GCC_UNUSED DNSServiceErrorType errorCode, AVAHI_GCC_UNUSED const char *serviceName, AVAHI_GCC_UNUSED const char *regtype, AVAHI_GCC_UNUSED const char *replyDomain, AVAHI_GCC_UNUSED void *context) { } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { DNSServiceRef ref1, ref2, ref3, ref4 = NULL; DNSServiceRegister(&ref1, 0, 0, "simple", "_simple._tcp", NULL, NULL, 4711, 0, NULL, NULL, NULL); DNSServiceRegister(&ref2, 0, 0, "subtype #1", "_simple._tcp,_subtype1", NULL, NULL, 4711, 0, NULL, NULL, NULL); DNSServiceRegister(&ref3, 0, 0, "subtype #2", "_simple._tcp,_subtype1,_subtype2", NULL, NULL, 4711, 0, NULL, NULL, NULL); DNSServiceRegister(&ref4, 0, 0, "subtype #3", "_simple._tcp,,", NULL, NULL, 4711, 0, NULL, NULL, NULL); assert(!ref4); DNSServiceRegister(&ref4, 0, 0, "subtype #3", "", NULL, NULL, 4711, 0, NULL, NULL, NULL); assert(!ref4); DNSServiceRegister(&ref4, 0, 0, "subtype #3", ",", NULL, NULL, 4711, 0, NULL, NULL, NULL); assert(!ref4); DNSServiceRegister(&ref4, 0, 0, "subtype #3", ",,", NULL, NULL, 4711, 0, NULL, NULL, NULL); assert(!ref4); DNSServiceBrowse(&ref4, 0, 0, "_simple._tcp,_gurke", NULL, reply, NULL); sleep(20); DNSServiceRefDeallocate(ref1); DNSServiceRefDeallocate(ref2); DNSServiceRefDeallocate(ref3); DNSServiceRefDeallocate(ref4); return 0; } avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/warn.c0000644000000000000000000000013213130651643017624 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681851.131964942 avahi-0.7/avahi-compat-libdns_sd/warn.c0000644000175000017500000000670513130651643021243 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include "warn.h" #ifndef COMPAT_LAYER #define COMPAT_LAYER "Apple Bonjour" #endif #ifndef CGI_SUBSYSTEM #define CGI_SUBSYSTEM "libdns_sd" #endif static pthread_mutex_t linkage_mutex = PTHREAD_MUTEX_INITIALIZER; static int linkage_warning = 0; const char *avahi_exe_name(void) { #ifdef HAVE_GETPROGNAME return getprogname(); #elif defined(__linux__) static char exe_name[1024] = ""; static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; /* Yes, I know, this is not portable. But who cares? It's for * cosmetics only, anyway. */ pthread_mutex_lock(&mutex); if (exe_name[0] == 0) { int k; if ((k = readlink("/proc/self/exe", exe_name, sizeof(exe_name)-1)) < 0) snprintf(exe_name, sizeof(exe_name), "(unknown)"); else { char *slash; assert((size_t) k <= sizeof(exe_name)-1); exe_name[k] = 0; if ((slash = strrchr(exe_name, '/'))) memmove(exe_name, slash+1, strlen(slash)+1); } } pthread_mutex_unlock(&mutex); return exe_name; #else #ifdef __GNUC__ #warning "avahi_exe_name() needs to be implemented for your operating system" #endif return "(unknown)"; #endif } void avahi_warn(const char *fmt, ...) { char msg[512] = "*** WARNING *** "; va_list ap; size_t n; assert(fmt); va_start(ap, fmt); n = strlen(msg); vsnprintf(msg + n, sizeof(msg) - n, fmt, ap); va_end(ap); fprintf(stderr, "%s\n", msg); openlog(avahi_exe_name(), LOG_PID, LOG_USER); syslog(LOG_WARNING, "%s", msg); closelog(); } void avahi_warn_linkage(void) { int w; pthread_mutex_lock(&linkage_mutex); w = linkage_warning; linkage_warning = 1; pthread_mutex_unlock(&linkage_mutex); if (!w && !getenv("AVAHI_COMPAT_NOWARN")) { avahi_warn("The program '%s' uses the "COMPAT_LAYER" compatibility layer of Avahi.", avahi_exe_name()); avahi_warn("Please fix your application to use the native API of Avahi!"); avahi_warn("For more information see "); } } void avahi_warn_unsupported(const char *function) { avahi_warn("The program '%s' called '%s()' which is not supported (or only supported partially) in the "COMPAT_LAYER" compatibility layer of Avahi.", avahi_exe_name(), function); avahi_warn("Please fix your application to use the native API of Avahi!"); avahi_warn("For more information see "); } avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/unsupported.c0000644000000000000000000000013213130651643021245 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681851.131964942 avahi-0.7/avahi-compat-libdns_sd/unsupported.c0000644000175000017500000000530513130651643022657 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include "dns_sd.h" #include "warn.h" DNSServiceErrorType DNSSD_API DNSServiceRegisterRecord ( AVAHI_GCC_UNUSED DNSServiceRef sdRef, AVAHI_GCC_UNUSED DNSRecordRef *RecordRef, AVAHI_GCC_UNUSED DNSServiceFlags flags, AVAHI_GCC_UNUSED uint32_t interfaceIndex, AVAHI_GCC_UNUSED const char *fullname, AVAHI_GCC_UNUSED uint16_t rrtype, AVAHI_GCC_UNUSED uint16_t rrclass, AVAHI_GCC_UNUSED uint16_t rdlen, AVAHI_GCC_UNUSED const void *rdata, AVAHI_GCC_UNUSED uint32_t ttl, AVAHI_GCC_UNUSED DNSServiceRegisterRecordReply callBack, AVAHI_GCC_UNUSED void *context) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } DNSServiceErrorType DNSSD_API DNSServiceReconfirmRecord ( AVAHI_GCC_UNUSED DNSServiceFlags flags, AVAHI_GCC_UNUSED uint32_t interfaceIndex, AVAHI_GCC_UNUSED const char *fullname, AVAHI_GCC_UNUSED uint16_t rrtype, AVAHI_GCC_UNUSED uint16_t rrclass, AVAHI_GCC_UNUSED uint16_t rdlen, AVAHI_GCC_UNUSED const void *rdata) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } DNSServiceErrorType DNSSD_API DNSServiceCreateConnection(AVAHI_GCC_UNUSED DNSServiceRef *sdRef) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } DNSServiceErrorType DNSSD_API DNSServiceAddRecord( AVAHI_GCC_UNUSED DNSServiceRef sdRef, AVAHI_GCC_UNUSED DNSRecordRef *RecordRef, AVAHI_GCC_UNUSED DNSServiceFlags flags, AVAHI_GCC_UNUSED uint16_t rrtype, AVAHI_GCC_UNUSED uint16_t rdlen, AVAHI_GCC_UNUSED const void *rdata, AVAHI_GCC_UNUSED uint32_t ttl) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } DNSServiceErrorType DNSSD_API DNSServiceRemoveRecord( AVAHI_GCC_UNUSED DNSServiceRef sdRef, AVAHI_GCC_UNUSED DNSRecordRef RecordRef, AVAHI_GCC_UNUSED DNSServiceFlags flags) { AVAHI_WARN_UNSUPPORTED; return kDNSServiceErr_Unsupported; } avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011020544 xustar0030 mtime=1499681801.297078263 30 atime=1499681806.836954364 30 ctime=1499681851.131964942 avahi-0.7/avahi-compat-libdns_sd/Makefile.in0000644000175000017500000013735113130652011022165 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@noinst_PROGRAMS = txt-test$(EXEEXT) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ null-test$(EXEEXT) subdir = avahi-compat-libdns_sd ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am \ $(am__avahi_compat_libdns_sd_HEADERS_DIST) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(avahi_compat_libdns_sddir)" LTLIBRARIES = $(lib_LTLIBRARIES) libdns_sd_la_LIBADD = am__libdns_sd_la_SOURCES_DIST = dns_sd.h compat.c txt.c unsupported.c \ warn.c warn.h @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@am_libdns_sd_la_OBJECTS = libdns_sd_la-compat.lo \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ libdns_sd_la-txt.lo \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ libdns_sd_la-unsupported.lo \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ libdns_sd_la-warn.lo libdns_sd_la_OBJECTS = $(am_libdns_sd_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libdns_sd_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libdns_sd_la_CFLAGS) \ $(CFLAGS) $(libdns_sd_la_LDFLAGS) $(LDFLAGS) -o $@ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@am_libdns_sd_la_rpath = \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ -rpath $(libdir) PROGRAMS = $(noinst_PROGRAMS) am__null_test_SOURCES_DIST = dns_sd.h compat.c null-test.c warn.c \ warn.h @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@am_null_test_OBJECTS = null_test-compat.$(OBJEXT) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ null_test-null-test.$(OBJEXT) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ null_test-warn.$(OBJEXT) null_test_OBJECTS = $(am_null_test_OBJECTS) am__DEPENDENCIES_1 = @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@null_test_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ ../avahi-client/libavahi-client.la null_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(null_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__txt_test_SOURCES_DIST = dns_sd.h txt.c txt-test.c warn.c warn.h @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@am_txt_test_OBJECTS = txt_test-txt.$(OBJEXT) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ txt_test-txt-test.$(OBJEXT) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ txt_test-warn.$(OBJEXT) txt_test_OBJECTS = $(am_txt_test_OBJECTS) @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@txt_test_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la txt_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(txt_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libdns_sd_la_SOURCES) $(null_test_SOURCES) \ $(txt_test_SOURCES) DIST_SOURCES = $(am__libdns_sd_la_SOURCES_DIST) \ $(am__null_test_SOURCES_DIST) $(am__txt_test_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__avahi_compat_libdns_sd_HEADERS_DIST = dns_sd.h HEADERS = $(avahi_compat_libdns_sd_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@avahi_compat_libdns_sddir = $(includedir)/avahi-compat-libdns_sd @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@avahi_compat_libdns_sd_HEADERS = dns_sd.h @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@lib_LTLIBRARIES = libdns_sd.la @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@libdns_sd_la_SOURCES = \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ dns_sd.h \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ compat.c \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ txt.c \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ unsupported.c \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ warn.c warn.h @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@libdns_sd_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@libdns_sd_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@txt_test_SOURCES = \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ dns_sd.h \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ txt.c \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ txt-test.c \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ warn.c warn.h @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@txt_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@txt_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@null_test_SOURCES = \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ dns_sd.h \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ compat.c \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ null-test.c \ @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ warn.c warn.h @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@null_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@null_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@CLEANFILES = libdns_sd-test.o libdns_sd-test all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-compat-libdns_sd/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-compat-libdns_sd/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libdns_sd.la: $(libdns_sd_la_OBJECTS) $(libdns_sd_la_DEPENDENCIES) $(EXTRA_libdns_sd_la_DEPENDENCIES) $(AM_V_CCLD)$(libdns_sd_la_LINK) $(am_libdns_sd_la_rpath) $(libdns_sd_la_OBJECTS) $(libdns_sd_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list null-test$(EXEEXT): $(null_test_OBJECTS) $(null_test_DEPENDENCIES) $(EXTRA_null_test_DEPENDENCIES) @rm -f null-test$(EXEEXT) $(AM_V_CCLD)$(null_test_LINK) $(null_test_OBJECTS) $(null_test_LDADD) $(LIBS) txt-test$(EXEEXT): $(txt_test_OBJECTS) $(txt_test_DEPENDENCIES) $(EXTRA_txt_test_DEPENDENCIES) @rm -f txt-test$(EXEEXT) $(AM_V_CCLD)$(txt_test_LINK) $(txt_test_OBJECTS) $(txt_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdns_sd_la-compat.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdns_sd_la-txt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdns_sd_la-unsupported.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdns_sd_la-warn.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/null_test-compat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/null_test-null-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/null_test-warn.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/txt_test-txt-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/txt_test-txt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/txt_test-warn.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libdns_sd_la-compat.lo: compat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdns_sd_la_CFLAGS) $(CFLAGS) -MT libdns_sd_la-compat.lo -MD -MP -MF $(DEPDIR)/libdns_sd_la-compat.Tpo -c -o libdns_sd_la-compat.lo `test -f 'compat.c' || echo '$(srcdir)/'`compat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdns_sd_la-compat.Tpo $(DEPDIR)/libdns_sd_la-compat.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='compat.c' object='libdns_sd_la-compat.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdns_sd_la_CFLAGS) $(CFLAGS) -c -o libdns_sd_la-compat.lo `test -f 'compat.c' || echo '$(srcdir)/'`compat.c libdns_sd_la-txt.lo: txt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdns_sd_la_CFLAGS) $(CFLAGS) -MT libdns_sd_la-txt.lo -MD -MP -MF $(DEPDIR)/libdns_sd_la-txt.Tpo -c -o libdns_sd_la-txt.lo `test -f 'txt.c' || echo '$(srcdir)/'`txt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdns_sd_la-txt.Tpo $(DEPDIR)/libdns_sd_la-txt.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='txt.c' object='libdns_sd_la-txt.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdns_sd_la_CFLAGS) $(CFLAGS) -c -o libdns_sd_la-txt.lo `test -f 'txt.c' || echo '$(srcdir)/'`txt.c libdns_sd_la-unsupported.lo: unsupported.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdns_sd_la_CFLAGS) $(CFLAGS) -MT libdns_sd_la-unsupported.lo -MD -MP -MF $(DEPDIR)/libdns_sd_la-unsupported.Tpo -c -o libdns_sd_la-unsupported.lo `test -f 'unsupported.c' || echo '$(srcdir)/'`unsupported.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdns_sd_la-unsupported.Tpo $(DEPDIR)/libdns_sd_la-unsupported.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unsupported.c' object='libdns_sd_la-unsupported.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdns_sd_la_CFLAGS) $(CFLAGS) -c -o libdns_sd_la-unsupported.lo `test -f 'unsupported.c' || echo '$(srcdir)/'`unsupported.c libdns_sd_la-warn.lo: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdns_sd_la_CFLAGS) $(CFLAGS) -MT libdns_sd_la-warn.lo -MD -MP -MF $(DEPDIR)/libdns_sd_la-warn.Tpo -c -o libdns_sd_la-warn.lo `test -f 'warn.c' || echo '$(srcdir)/'`warn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libdns_sd_la-warn.Tpo $(DEPDIR)/libdns_sd_la-warn.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='libdns_sd_la-warn.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libdns_sd_la_CFLAGS) $(CFLAGS) -c -o libdns_sd_la-warn.lo `test -f 'warn.c' || echo '$(srcdir)/'`warn.c null_test-compat.o: compat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -MT null_test-compat.o -MD -MP -MF $(DEPDIR)/null_test-compat.Tpo -c -o null_test-compat.o `test -f 'compat.c' || echo '$(srcdir)/'`compat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/null_test-compat.Tpo $(DEPDIR)/null_test-compat.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='compat.c' object='null_test-compat.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -c -o null_test-compat.o `test -f 'compat.c' || echo '$(srcdir)/'`compat.c null_test-compat.obj: compat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -MT null_test-compat.obj -MD -MP -MF $(DEPDIR)/null_test-compat.Tpo -c -o null_test-compat.obj `if test -f 'compat.c'; then $(CYGPATH_W) 'compat.c'; else $(CYGPATH_W) '$(srcdir)/compat.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/null_test-compat.Tpo $(DEPDIR)/null_test-compat.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='compat.c' object='null_test-compat.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -c -o null_test-compat.obj `if test -f 'compat.c'; then $(CYGPATH_W) 'compat.c'; else $(CYGPATH_W) '$(srcdir)/compat.c'; fi` null_test-null-test.o: null-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -MT null_test-null-test.o -MD -MP -MF $(DEPDIR)/null_test-null-test.Tpo -c -o null_test-null-test.o `test -f 'null-test.c' || echo '$(srcdir)/'`null-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/null_test-null-test.Tpo $(DEPDIR)/null_test-null-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='null-test.c' object='null_test-null-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -c -o null_test-null-test.o `test -f 'null-test.c' || echo '$(srcdir)/'`null-test.c null_test-null-test.obj: null-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -MT null_test-null-test.obj -MD -MP -MF $(DEPDIR)/null_test-null-test.Tpo -c -o null_test-null-test.obj `if test -f 'null-test.c'; then $(CYGPATH_W) 'null-test.c'; else $(CYGPATH_W) '$(srcdir)/null-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/null_test-null-test.Tpo $(DEPDIR)/null_test-null-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='null-test.c' object='null_test-null-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -c -o null_test-null-test.obj `if test -f 'null-test.c'; then $(CYGPATH_W) 'null-test.c'; else $(CYGPATH_W) '$(srcdir)/null-test.c'; fi` null_test-warn.o: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -MT null_test-warn.o -MD -MP -MF $(DEPDIR)/null_test-warn.Tpo -c -o null_test-warn.o `test -f 'warn.c' || echo '$(srcdir)/'`warn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/null_test-warn.Tpo $(DEPDIR)/null_test-warn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='null_test-warn.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -c -o null_test-warn.o `test -f 'warn.c' || echo '$(srcdir)/'`warn.c null_test-warn.obj: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -MT null_test-warn.obj -MD -MP -MF $(DEPDIR)/null_test-warn.Tpo -c -o null_test-warn.obj `if test -f 'warn.c'; then $(CYGPATH_W) 'warn.c'; else $(CYGPATH_W) '$(srcdir)/warn.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/null_test-warn.Tpo $(DEPDIR)/null_test-warn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='null_test-warn.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(null_test_CFLAGS) $(CFLAGS) -c -o null_test-warn.obj `if test -f 'warn.c'; then $(CYGPATH_W) 'warn.c'; else $(CYGPATH_W) '$(srcdir)/warn.c'; fi` txt_test-txt.o: txt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -MT txt_test-txt.o -MD -MP -MF $(DEPDIR)/txt_test-txt.Tpo -c -o txt_test-txt.o `test -f 'txt.c' || echo '$(srcdir)/'`txt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/txt_test-txt.Tpo $(DEPDIR)/txt_test-txt.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='txt.c' object='txt_test-txt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -c -o txt_test-txt.o `test -f 'txt.c' || echo '$(srcdir)/'`txt.c txt_test-txt.obj: txt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -MT txt_test-txt.obj -MD -MP -MF $(DEPDIR)/txt_test-txt.Tpo -c -o txt_test-txt.obj `if test -f 'txt.c'; then $(CYGPATH_W) 'txt.c'; else $(CYGPATH_W) '$(srcdir)/txt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/txt_test-txt.Tpo $(DEPDIR)/txt_test-txt.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='txt.c' object='txt_test-txt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -c -o txt_test-txt.obj `if test -f 'txt.c'; then $(CYGPATH_W) 'txt.c'; else $(CYGPATH_W) '$(srcdir)/txt.c'; fi` txt_test-txt-test.o: txt-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -MT txt_test-txt-test.o -MD -MP -MF $(DEPDIR)/txt_test-txt-test.Tpo -c -o txt_test-txt-test.o `test -f 'txt-test.c' || echo '$(srcdir)/'`txt-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/txt_test-txt-test.Tpo $(DEPDIR)/txt_test-txt-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='txt-test.c' object='txt_test-txt-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -c -o txt_test-txt-test.o `test -f 'txt-test.c' || echo '$(srcdir)/'`txt-test.c txt_test-txt-test.obj: txt-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -MT txt_test-txt-test.obj -MD -MP -MF $(DEPDIR)/txt_test-txt-test.Tpo -c -o txt_test-txt-test.obj `if test -f 'txt-test.c'; then $(CYGPATH_W) 'txt-test.c'; else $(CYGPATH_W) '$(srcdir)/txt-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/txt_test-txt-test.Tpo $(DEPDIR)/txt_test-txt-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='txt-test.c' object='txt_test-txt-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -c -o txt_test-txt-test.obj `if test -f 'txt-test.c'; then $(CYGPATH_W) 'txt-test.c'; else $(CYGPATH_W) '$(srcdir)/txt-test.c'; fi` txt_test-warn.o: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -MT txt_test-warn.o -MD -MP -MF $(DEPDIR)/txt_test-warn.Tpo -c -o txt_test-warn.o `test -f 'warn.c' || echo '$(srcdir)/'`warn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/txt_test-warn.Tpo $(DEPDIR)/txt_test-warn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='txt_test-warn.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -c -o txt_test-warn.o `test -f 'warn.c' || echo '$(srcdir)/'`warn.c txt_test-warn.obj: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -MT txt_test-warn.obj -MD -MP -MF $(DEPDIR)/txt_test-warn.Tpo -c -o txt_test-warn.obj `if test -f 'warn.c'; then $(CYGPATH_W) 'warn.c'; else $(CYGPATH_W) '$(srcdir)/warn.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/txt_test-warn.Tpo $(DEPDIR)/txt_test-warn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='txt_test-warn.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(txt_test_CFLAGS) $(CFLAGS) -c -o txt_test-warn.obj `if test -f 'warn.c'; then $(CYGPATH_W) 'warn.c'; else $(CYGPATH_W) '$(srcdir)/warn.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahi_compat_libdns_sdHEADERS: $(avahi_compat_libdns_sd_HEADERS) @$(NORMAL_INSTALL) @list='$(avahi_compat_libdns_sd_HEADERS)'; test -n "$(avahi_compat_libdns_sddir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_compat_libdns_sddir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_compat_libdns_sddir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahi_compat_libdns_sddir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahi_compat_libdns_sddir)" || exit $$?; \ done uninstall-avahi_compat_libdns_sdHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahi_compat_libdns_sd_HEADERS)'; test -n "$(avahi_compat_libdns_sddir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahi_compat_libdns_sddir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahi_compat_libdns_sddir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahi_compat_libdns_sdHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahi_compat_libdns_sdHEADERS \ uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-avahi_compat_libdns_sdHEADERS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-avahi_compat_libdns_sdHEADERS \ uninstall-libLTLIBRARIES .PRECIOUS: Makefile # You can test the compatibility layer by sticking in mDNSResponder's # dns-sd.c source here, naming it "libdns_sd-test.c" and running "make # libdns_sd-test" manually. We do not distribute that file due to # licensing restrictions. @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@libdns_sd-test: libdns_sd-test.c libdns_sd.la @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ $(LIBTOOL) --mode=compile $(CC) $(AM_CFLAGS) $(PTHREAD_CFLAGS) -o libdns_sd-test.o -c libdns_sd-test.c @ENABLE_COMPAT_LIBDNS_SD_TRUE@@HAVE_DBUS_TRUE@ $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(PTHREAD_CFLAGS) -o libdns_sd-test libdns_sd-test.o $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la libdns_sd.la # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/txt.c0000644000000000000000000000013213130651643017474 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681851.131964942 avahi-0.7/avahi-compat-libdns_sd/txt.c0000644000175000017500000002257713130651643021120 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include "dns_sd.h" #include "warn.h" typedef struct TXTRecordInternal { uint8_t *buffer, *malloc_buffer; size_t size, max_size; } TXTRecordInternal; #define INTERNAL_PTR(txtref) (* (TXTRecordInternal**) (txtref)) #define INTERNAL_PTR_CONST(txtref) (* (const TXTRecordInternal* const *) (txtref)) void DNSSD_API TXTRecordCreate( TXTRecordRef *txtref, uint16_t length, void *buffer) { TXTRecordInternal *t; AVAHI_WARN_LINKAGE; assert(txtref); /* Apple's API design is flawed in so many ways, including the * fact that it isn't compatible with 64 bit processors. To work * around this we need some magic here which involves allocating * our own memory. Please, Apple, do your homework next time * before designing an API! */ if ((t = avahi_new(TXTRecordInternal, 1))) { t->buffer = buffer; t->max_size = buffer ? length : (size_t)0; t->size = 0; t->malloc_buffer = NULL; } /* If we were unable to allocate memory, we store a NULL pointer * and return a NoMemory error later, is somewhat unclean, but * should work. */ INTERNAL_PTR(txtref) = t; } void DNSSD_API TXTRecordDeallocate(TXTRecordRef *txtref) { TXTRecordInternal *t; AVAHI_WARN_LINKAGE; assert(txtref); t = INTERNAL_PTR(txtref); if (!t) return; avahi_free(t->malloc_buffer); avahi_free(t); /* Just in case ... */ INTERNAL_PTR(txtref) = NULL; } static int make_sure_fits_in(TXTRecordInternal *t, size_t size) { uint8_t *n; size_t nsize; assert(t); if (t->size + size <= t->max_size) return 0; nsize = t->size + size + 100; if (nsize > 0xFFFF) return -1; if (!(n = avahi_realloc(t->malloc_buffer, nsize))) return -1; if (!t->malloc_buffer && t->size) memcpy(n, t->buffer, t->size); t->buffer = t->malloc_buffer = n; t->max_size = nsize; return 0; } static int remove_key(TXTRecordInternal *t, const char *key) { size_t i; uint8_t *p; size_t key_len; int found = 0; key_len = strlen(key); assert(key_len <= 0xFF); p = t->buffer; i = 0; while (i < t->size) { /* Does the item fit in? */ assert(*p <= t->size - i - 1); /* Key longer than buffer */ if (key_len > t->size - i - 1) break; if (key_len <= *p && strncmp(key, (char*) p+1, key_len) == 0 && (key_len == *p || p[1+key_len] == '=')) { uint8_t s; /* Key matches, so let's remove it */ s = *p; memmove(p, p + 1 + *p, t->size - i - *p -1); t->size -= s + 1; found = 1; } else { /* Skip to next */ i += *p +1; p += *p +1; } } return found; } DNSServiceErrorType DNSSD_API TXTRecordSetValue( TXTRecordRef *txtref, const char *key, uint8_t length, const void *value) { TXTRecordInternal *t; uint8_t *p; size_t l, n; AVAHI_WARN_LINKAGE; assert(key); assert(txtref); l = strlen(key); if (*key == 0 || strchr(key, '=') || l > 0xFF) /* Empty or invalid key */ return kDNSServiceErr_Invalid; if (!(t = INTERNAL_PTR(txtref))) return kDNSServiceErr_NoMemory; n = l + (value ? length + 1 : 0); if (n > 0xFF) return kDNSServiceErr_Invalid; if (make_sure_fits_in(t, 1 + n) < 0) return kDNSServiceErr_NoMemory; remove_key(t, key); p = t->buffer + t->size; *(p++) = (uint8_t) n; t->size ++; memcpy(p, key, l); p += l; t->size += l; if (value) { *(p++) = '='; memcpy(p, value, length); t->size += length + 1; } assert(t->size <= t->max_size); return kDNSServiceErr_NoError; } DNSServiceErrorType DNSSD_API TXTRecordRemoveValue(TXTRecordRef *txtref, const char *key) { TXTRecordInternal *t; int found; AVAHI_WARN_LINKAGE; assert(key); assert(txtref); if (*key == 0 || strchr(key, '=') || strlen(key) > 0xFF) /* Empty or invalid key */ return kDNSServiceErr_Invalid; if (!(t = INTERNAL_PTR(txtref))) return kDNSServiceErr_NoError; found = remove_key(t, key); return found ? kDNSServiceErr_NoError : kDNSServiceErr_NoSuchKey; } uint16_t DNSSD_API TXTRecordGetLength(const TXTRecordRef *txtref) { const TXTRecordInternal *t; AVAHI_WARN_LINKAGE; assert(txtref); if (!(t = INTERNAL_PTR_CONST(txtref))) return 0; assert(t->size <= 0xFFFF); return (uint16_t) t->size; } const void * DNSSD_API TXTRecordGetBytesPtr(const TXTRecordRef *txtref) { const TXTRecordInternal *t; AVAHI_WARN_LINKAGE; assert(txtref); if (!(t = INTERNAL_PTR_CONST(txtref)) || !t->buffer) return ""; return t->buffer; } static const uint8_t *find_key(const uint8_t *buffer, size_t size, const char *key) { size_t i; const uint8_t *p; size_t key_len; key_len = strlen(key); assert(key_len <= 0xFF); p = buffer; i = 0; while (i < size) { /* Does the item fit in? */ if (*p > size - i - 1) return NULL; /* Key longer than buffer */ if (key_len > size - i - 1) return NULL; if (key_len <= *p && strncmp(key, (const char*) p+1, key_len) == 0 && (key_len == *p || p[1+key_len] == '=')) { /* Key matches, so let's return it */ return p; } /* Skip to next */ i += *p +1; p += *p +1; } return NULL; } int DNSSD_API TXTRecordContainsKey ( uint16_t size, const void *buffer, const char *key) { AVAHI_WARN_LINKAGE; assert(key); if (!size) return 0; assert(buffer); if (!(find_key(buffer, size, key))) return 0; return 1; } const void * DNSSD_API TXTRecordGetValuePtr( uint16_t size, const void *buffer, const char *key, uint8_t *value_len) { const uint8_t *p; size_t n, l; AVAHI_WARN_LINKAGE; assert(key); if (!size) goto fail; if (*key == 0 || strchr(key, '=') || strlen(key) > 0xFF) /* Empty or invalid key */ return NULL; assert(buffer); if (!(p = find_key(buffer, size, key))) goto fail; n = *p; l = strlen(key); assert(n >= l); p += 1 + l; n -= l; if (n <= 0) goto fail; assert(*p == '='); p++; n--; if (value_len) *value_len = n; return p; fail: if (value_len) *value_len = 0; return NULL; } uint16_t DNSSD_API TXTRecordGetCount( uint16_t size, const void *buffer) { const uint8_t *p; unsigned n = 0; size_t i; AVAHI_WARN_LINKAGE; if (!size) return 0; assert(buffer); p = buffer; i = 0; while (i < size) { /* Does the item fit in? */ if (*p > size - i - 1) break; n++; /* Skip to next */ i += *p +1; p += *p +1; } assert(n <= 0xFFFF); return (uint16_t) n; } DNSServiceErrorType DNSSD_API TXTRecordGetItemAtIndex( uint16_t size, const void *buffer, uint16_t idx, uint16_t key_len, char *key, uint8_t *value_len, const void **value) { const uint8_t *p; size_t i; unsigned n = 0; DNSServiceErrorType ret = kDNSServiceErr_Invalid; AVAHI_WARN_LINKAGE; if (!size) goto fail; assert(buffer); p = buffer; i = 0; while (i < size) { /* Does the item fit in? */ if (*p > size - i - 1) goto fail; if (n >= idx) { size_t l; const uint8_t *d; d = memchr(p+1, '=', *p); /* Length of key */ l = d ? d - p - 1 : *p; if (key_len < l+1) { ret = kDNSServiceErr_NoMemory; goto fail; } strncpy(key, (const char*) p + 1, l); key[l] = 0; if (d) { if (value_len) *value_len = *p - l - 1; if (value) *value = d + 1; } else { if (value_len) *value_len = 0; if (value) *value = NULL; } return kDNSServiceErr_NoError; } n++; /* Skip to next */ i += *p +1; p += *p +1; } fail: if (value) *value = NULL; if (value_len) *value_len = 0; return ret; } avahi-0.7/avahi-compat-libdns_sd/PaxHeaders.10109/warn.h0000644000000000000000000000013213130651643017631 xustar0030 mtime=1499681699.099370756 30 atime=1499681699.099370756 30 ctime=1499681851.135964853 avahi-0.7/avahi-compat-libdns_sd/warn.h0000644000175000017500000000236413130651643021245 0ustar00lathiatlathiat00000000000000#ifndef foowarnhfoo #define foowarnhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /* This routine works on Linux only, so don't rely on it */ const char *avahi_exe_name(void); void avahi_warn_unsupported(const char *function); void avahi_warn_linkage(void); void avahi_warn(const char *fmt, ...); #define AVAHI_WARN_LINKAGE do { avahi_warn_linkage(); } while(0) #define AVAHI_WARN_UNSUPPORTED do { avahi_warn_linkage(); avahi_warn_unsupported(__FUNCTION__); } while(0) #define AVAHI_WARN_UNSUPPORTED_ABORT do { AVAHI_WARN_UNSUPPORTED; abort(); } while(0) #endif avahi-0.7/PaxHeaders.10109/examples0000644000000000000000000000013213130652072013737 xustar0030 mtime=1499681850.823971815 30 atime=1499681851.283961552 30 ctime=1499681850.823971815 avahi-0.7/examples/0000755000175000017500000000000013130652072015423 5ustar00lathiatlathiat00000000000000avahi-0.7/examples/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016053 xustar0030 mtime=1499681699.135369946 30 atime=1499681796.813178573 30 ctime=1499681850.819971905 avahi-0.7/examples/Makefile.am0000644000175000017500000000413313130651643017463 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) if ENABLE_TESTS noinst_PROGRAMS = \ core-publish-service \ core-browse-services endif core_publish_service_SOURCES = core-publish-service.c core_publish_service_CFLAGS = $(AM_CFLAGS) core_publish_service_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la core_browse_services_SOURCES = core-browse-services.c core_browse_services_CFLAGS = $(AM_CFLAGS) core_browse_services_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la if HAVE_DBUS if ENABLE_TESTS noinst_PROGRAMS += \ client-publish-service \ client-browse-services endif client_publish_service_SOURCES = client-publish-service.c client_publish_service_CFLAGS = $(AM_CFLAGS) client_publish_service_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la client_browse_services_SOURCES = client-browse-services.c client_browse_services_CFLAGS = $(AM_CFLAGS) client_browse_services_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la if HAVE_GLIB if ENABLE_TESTS noinst_PROGRAMS += \ glib-integration endif glib_integration_SOURCES = glib-integration.c glib_integration_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS) glib_integration_LDADD = $(AM_LDADD) $(GLIB20_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la ../avahi-glib/libavahi-glib.la endif endif avahi-0.7/examples/PaxHeaders.10109/client-publish-service.c0000644000000000000000000000013213130651643020543 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.823971815 avahi-0.7/examples/client-publish-service.c0000644000175000017500000002075713130651643022165 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include static AvahiEntryGroup *group = NULL; static AvahiSimplePoll *simple_poll = NULL; static char *name = NULL; static void create_services(AvahiClient *c); static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata) { assert(g == group || group == NULL); group = g; /* Called whenever the entry group state changes */ switch (state) { case AVAHI_ENTRY_GROUP_ESTABLISHED : /* The entry group has been established successfully */ fprintf(stderr, "Service '%s' successfully established.\n", name); break; case AVAHI_ENTRY_GROUP_COLLISION : { char *n; /* A service name collision with a remote service * happened. Let's pick a new name */ n = avahi_alternative_service_name(name); avahi_free(name); name = n; fprintf(stderr, "Service name collision, renaming service to '%s'\n", name); /* And recreate the services */ create_services(avahi_entry_group_get_client(g)); break; } case AVAHI_ENTRY_GROUP_FAILURE : fprintf(stderr, "Entry group failure: %s\n", avahi_strerror(avahi_client_errno(avahi_entry_group_get_client(g)))); /* Some kind of failure happened while we were registering our services */ avahi_simple_poll_quit(simple_poll); break; case AVAHI_ENTRY_GROUP_UNCOMMITED: case AVAHI_ENTRY_GROUP_REGISTERING: ; } } static void create_services(AvahiClient *c) { char *n, r[128]; int ret; assert(c); /* If this is the first time we're called, let's create a new * entry group if necessary */ if (!group) if (!(group = avahi_entry_group_new(c, entry_group_callback, NULL))) { fprintf(stderr, "avahi_entry_group_new() failed: %s\n", avahi_strerror(avahi_client_errno(c))); goto fail; } /* If the group is empty (either because it was just created, or * because it was reset previously, add our entries. */ if (avahi_entry_group_is_empty(group)) { fprintf(stderr, "Adding service '%s'\n", name); /* Create some random TXT data */ snprintf(r, sizeof(r), "random=%i", rand()); /* We will now add two services and one subtype to the entry * group. The two services have the same name, but differ in * the service type (IPP vs. BSD LPR). Only services with the * same name should be put in the same entry group. */ /* Add the service for IPP */ if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_ipp._tcp", NULL, NULL, 651, "test=blah", r, NULL)) < 0) { if (ret == AVAHI_ERR_COLLISION) goto collision; fprintf(stderr, "Failed to add _ipp._tcp service: %s\n", avahi_strerror(ret)); goto fail; } /* Add the same service for BSD LPR */ if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, NULL, 515, NULL)) < 0) { if (ret == AVAHI_ERR_COLLISION) goto collision; fprintf(stderr, "Failed to add _printer._tcp service: %s\n", avahi_strerror(ret)); goto fail; } /* Add an additional (hypothetic) subtype */ if ((ret = avahi_entry_group_add_service_subtype(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, "_magic._sub._printer._tcp") < 0)) { fprintf(stderr, "Failed to add subtype _magic._sub._printer._tcp: %s\n", avahi_strerror(ret)); goto fail; } /* Tell the server to register the service */ if ((ret = avahi_entry_group_commit(group)) < 0) { fprintf(stderr, "Failed to commit entry group: %s\n", avahi_strerror(ret)); goto fail; } } return; collision: /* A service name collision with a local service happened. Let's * pick a new name */ n = avahi_alternative_service_name(name); avahi_free(name); name = n; fprintf(stderr, "Service name collision, renaming service to '%s'\n", name); avahi_entry_group_reset(group); create_services(c); return; fail: avahi_simple_poll_quit(simple_poll); } static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata) { assert(c); /* Called whenever the client or server state changes */ switch (state) { case AVAHI_CLIENT_S_RUNNING: /* The server has startup successfully and registered its host * name on the network, so it's time to create our services */ create_services(c); break; case AVAHI_CLIENT_FAILURE: fprintf(stderr, "Client failure: %s\n", avahi_strerror(avahi_client_errno(c))); avahi_simple_poll_quit(simple_poll); break; case AVAHI_CLIENT_S_COLLISION: /* Let's drop our registered services. When the server is back * in AVAHI_SERVER_RUNNING state we will register them * again with the new host name. */ case AVAHI_CLIENT_S_REGISTERING: /* The server records are now being established. This * might be caused by a host name change. We need to wait * for our own records to register until the host name is * properly esatblished. */ if (group) avahi_entry_group_reset(group); break; case AVAHI_CLIENT_CONNECTING: ; } } static void modify_callback(AVAHI_GCC_UNUSED AvahiTimeout *e, void *userdata) { AvahiClient *client = userdata; fprintf(stderr, "Doing some weird modification\n"); avahi_free(name); name = avahi_strdup("Modified MegaPrinter"); /* If the server is currently running, we need to remove our * service and create it anew */ if (avahi_client_get_state(client) == AVAHI_CLIENT_S_RUNNING) { /* Remove the old services */ if (group) avahi_entry_group_reset(group); /* And create them again with the new name */ create_services(client); } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { AvahiClient *client = NULL; int error; int ret = 1; struct timeval tv; /* Allocate main loop object */ if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, "Failed to create simple poll object.\n"); goto fail; } name = avahi_strdup("MegaPrinter"); /* Allocate a new client */ client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error); /* Check wether creating the client object succeeded */ if (!client) { fprintf(stderr, "Failed to create client: %s\n", avahi_strerror(error)); goto fail; } /* After 10s do some weird modification to the service */ avahi_simple_poll_get(simple_poll)->timeout_new( avahi_simple_poll_get(simple_poll), avahi_elapse_time(&tv, 1000*10, 0), modify_callback, client); /* Run the main loop */ avahi_simple_poll_loop(simple_poll); ret = 0; fail: /* Cleanup things */ if (client) avahi_client_free(client); if (simple_poll) avahi_simple_poll_free(simple_poll); avahi_free(name); return ret; } avahi-0.7/examples/PaxHeaders.10109/core-browse-services.c0000644000000000000000000000013213130651643020233 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.823971815 avahi-0.7/examples/core-browse-services.c0000644000175000017500000001533513130651643021651 0ustar00lathiatlathiat00000000000000/* PLEASE NOTE * * This file demonstrates how to use Avahi's core API, this is * the embeddable mDNS stack for embedded applications. * * End user applications should *not* use this API and should use * the D-Bus or C APIs, please see * client-browse-services.c and glib-integration.c * * I repeat, you probably do *not* want to use this example. */ /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include static AvahiSimplePoll *simple_poll = NULL; static AvahiServer *server = NULL; static void resolve_callback( AvahiSServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *address, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { assert(r); /* Called whenever a service has been resolved successfully or timed out */ switch (event) { case AVAHI_RESOLVER_FAILURE: fprintf(stderr, "(Resolver) Failed to resolve service '%s' of type '%s' in domain '%s': %s\n", name, type, domain, avahi_strerror(avahi_server_errno(server))); break; case AVAHI_RESOLVER_FOUND: { char a[AVAHI_ADDRESS_STR_MAX], *t; fprintf(stderr, "(Resolver) Service '%s' of type '%s' in domain '%s':\n", name, type, domain); avahi_address_snprint(a, sizeof(a), address); t = avahi_string_list_to_string(txt); fprintf(stderr, "\t%s:%u (%s)\n" "\tTXT=%s\n" "\tcookie is %u\n" "\tis_local: %i\n" "\twide_area: %i\n" "\tmulticast: %i\n" "\tcached: %i\n", host_name, port, a, t, avahi_string_list_get_service_cookie(txt), !!(flags & AVAHI_LOOKUP_RESULT_LOCAL), !!(flags & AVAHI_LOOKUP_RESULT_WIDE_AREA), !!(flags & AVAHI_LOOKUP_RESULT_MULTICAST), !!(flags & AVAHI_LOOKUP_RESULT_CACHED)); avahi_free(t); } } avahi_s_service_resolver_free(r); } static void browse_callback( AvahiSServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { AvahiServer *s = userdata; assert(b); /* Called whenever a new services becomes available on the LAN or is removed from the LAN */ switch (event) { case AVAHI_BROWSER_FAILURE: fprintf(stderr, "(Browser) %s\n", avahi_strerror(avahi_server_errno(server))); avahi_simple_poll_quit(simple_poll); return; case AVAHI_BROWSER_NEW: fprintf(stderr, "(Browser) NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain); /* We ignore the returned resolver object. In the callback function we free it. If the server is terminated before the callback function is called the server will free the resolver for us. */ if (!(avahi_s_service_resolver_new(s, interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, 0, resolve_callback, s))) fprintf(stderr, "Failed to resolve service '%s': %s\n", name, avahi_strerror(avahi_server_errno(s))); break; case AVAHI_BROWSER_REMOVE: fprintf(stderr, "(Browser) REMOVE: service '%s' of type '%s' in domain '%s'\n", name, type, domain); break; case AVAHI_BROWSER_ALL_FOR_NOW: case AVAHI_BROWSER_CACHE_EXHAUSTED: fprintf(stderr, "(Browser) %s\n", event == AVAHI_BROWSER_CACHE_EXHAUSTED ? "CACHE_EXHAUSTED" : "ALL_FOR_NOW"); break; } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { AvahiServerConfig config; AvahiSServiceBrowser *sb = NULL; int error; int ret = 1; /* Initialize the psuedo-RNG */ srand(time(NULL)); /* Allocate main loop object */ if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, "Failed to create simple poll object.\n"); goto fail; } /* Do not publish any local records */ avahi_server_config_init(&config); config.publish_hinfo = 0; config.publish_addresses = 0; config.publish_workstation = 0; config.publish_domain = 0; /* Set a unicast DNS server for wide area DNS-SD */ avahi_address_parse("192.168.50.1", AVAHI_PROTO_UNSPEC, &config.wide_area_servers[0]); config.n_wide_area_servers = 1; config.enable_wide_area = 1; /* Allocate a new server */ server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, NULL, NULL, &error); /* Free the configuration data */ avahi_server_config_free(&config); /* Check wether creating the server object succeeded */ if (!server) { fprintf(stderr, "Failed to create server: %s\n", avahi_strerror(error)); goto fail; } /* Create the service browser */ if (!(sb = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_http._tcp", NULL, 0, browse_callback, server))) { fprintf(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_server_errno(server))); goto fail; } /* Run the main loop */ avahi_simple_poll_loop(simple_poll); ret = 0; fail: /* Cleanup things */ if (sb) avahi_s_service_browser_free(sb); if (server) avahi_server_free(server); if (simple_poll) avahi_simple_poll_free(simple_poll); return ret; } avahi-0.7/examples/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011016051 xustar0029 mtime=1499681801.80106699 30 atime=1499681806.784955527 30 ctime=1499681850.819971905 avahi-0.7/examples/Makefile.in0000644000175000017500000012203013130652011017457 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_TESTS_TRUE@noinst_PROGRAMS = core-publish-service$(EXEEXT) \ @ENABLE_TESTS_TRUE@ core-browse-services$(EXEEXT) \ @ENABLE_TESTS_TRUE@ $(am__EXEEXT_1) $(am__EXEEXT_2) @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@am__append_1 = \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ client-publish-service \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ client-browse-services @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@am__append_2 = \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@ glib-integration subdir = examples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@am__EXEEXT_1 = client-publish-service$(EXEEXT) \ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ client-browse-services$(EXEEXT) @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@am__EXEEXT_2 = glib-integration$(EXEEXT) PROGRAMS = $(noinst_PROGRAMS) am__client_browse_services_SOURCES_DIST = client-browse-services.c @HAVE_DBUS_TRUE@am_client_browse_services_OBJECTS = client_browse_services-client-browse-services.$(OBJEXT) client_browse_services_OBJECTS = $(am_client_browse_services_OBJECTS) @HAVE_DBUS_TRUE@client_browse_services_DEPENDENCIES = \ @HAVE_DBUS_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = client_browse_services_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(client_browse_services_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am__client_publish_service_SOURCES_DIST = client-publish-service.c @HAVE_DBUS_TRUE@am_client_publish_service_OBJECTS = client_publish_service-client-publish-service.$(OBJEXT) client_publish_service_OBJECTS = $(am_client_publish_service_OBJECTS) @HAVE_DBUS_TRUE@client_publish_service_DEPENDENCIES = \ @HAVE_DBUS_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la client_publish_service_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(client_publish_service_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_core_browse_services_OBJECTS = \ core_browse_services-core-browse-services.$(OBJEXT) core_browse_services_OBJECTS = $(am_core_browse_services_OBJECTS) core_browse_services_DEPENDENCIES = ../avahi-core/libavahi-core.la \ ../avahi-common/libavahi-common.la core_browse_services_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(core_browse_services_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am_core_publish_service_OBJECTS = \ core_publish_service-core-publish-service.$(OBJEXT) core_publish_service_OBJECTS = $(am_core_publish_service_OBJECTS) core_publish_service_DEPENDENCIES = ../avahi-core/libavahi-core.la \ ../avahi-common/libavahi-common.la core_publish_service_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(core_publish_service_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am__glib_integration_SOURCES_DIST = glib-integration.c @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@am_glib_integration_OBJECTS = glib_integration-glib-integration.$(OBJEXT) glib_integration_OBJECTS = $(am_glib_integration_OBJECTS) am__DEPENDENCIES_1 = @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@glib_integration_DEPENDENCIES = \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@ ../avahi-glib/libavahi-glib.la glib_integration_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(glib_integration_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(client_browse_services_SOURCES) \ $(client_publish_service_SOURCES) \ $(core_browse_services_SOURCES) \ $(core_publish_service_SOURCES) $(glib_integration_SOURCES) DIST_SOURCES = $(am__client_browse_services_SOURCES_DIST) \ $(am__client_publish_service_SOURCES_DIST) \ $(core_browse_services_SOURCES) \ $(core_publish_service_SOURCES) \ $(am__glib_integration_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = -I$(top_srcdir) core_publish_service_SOURCES = core-publish-service.c core_publish_service_CFLAGS = $(AM_CFLAGS) core_publish_service_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la core_browse_services_SOURCES = core-browse-services.c core_browse_services_CFLAGS = $(AM_CFLAGS) core_browse_services_LDADD = $(AM_LDADD) ../avahi-core/libavahi-core.la ../avahi-common/libavahi-common.la @HAVE_DBUS_TRUE@client_publish_service_SOURCES = client-publish-service.c @HAVE_DBUS_TRUE@client_publish_service_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@client_publish_service_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la @HAVE_DBUS_TRUE@client_browse_services_SOURCES = client-browse-services.c @HAVE_DBUS_TRUE@client_browse_services_CFLAGS = $(AM_CFLAGS) @HAVE_DBUS_TRUE@client_browse_services_LDADD = $(AM_LDADD) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@glib_integration_SOURCES = glib-integration.c @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@glib_integration_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@glib_integration_LDADD = $(AM_LDADD) $(GLIB20_LIBS) ../avahi-client/libavahi-client.la ../avahi-common/libavahi-common.la ../avahi-glib/libavahi-glib.la all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign examples/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list client-browse-services$(EXEEXT): $(client_browse_services_OBJECTS) $(client_browse_services_DEPENDENCIES) $(EXTRA_client_browse_services_DEPENDENCIES) @rm -f client-browse-services$(EXEEXT) $(AM_V_CCLD)$(client_browse_services_LINK) $(client_browse_services_OBJECTS) $(client_browse_services_LDADD) $(LIBS) client-publish-service$(EXEEXT): $(client_publish_service_OBJECTS) $(client_publish_service_DEPENDENCIES) $(EXTRA_client_publish_service_DEPENDENCIES) @rm -f client-publish-service$(EXEEXT) $(AM_V_CCLD)$(client_publish_service_LINK) $(client_publish_service_OBJECTS) $(client_publish_service_LDADD) $(LIBS) core-browse-services$(EXEEXT): $(core_browse_services_OBJECTS) $(core_browse_services_DEPENDENCIES) $(EXTRA_core_browse_services_DEPENDENCIES) @rm -f core-browse-services$(EXEEXT) $(AM_V_CCLD)$(core_browse_services_LINK) $(core_browse_services_OBJECTS) $(core_browse_services_LDADD) $(LIBS) core-publish-service$(EXEEXT): $(core_publish_service_OBJECTS) $(core_publish_service_DEPENDENCIES) $(EXTRA_core_publish_service_DEPENDENCIES) @rm -f core-publish-service$(EXEEXT) $(AM_V_CCLD)$(core_publish_service_LINK) $(core_publish_service_OBJECTS) $(core_publish_service_LDADD) $(LIBS) glib-integration$(EXEEXT): $(glib_integration_OBJECTS) $(glib_integration_DEPENDENCIES) $(EXTRA_glib_integration_DEPENDENCIES) @rm -f glib-integration$(EXEEXT) $(AM_V_CCLD)$(glib_integration_LINK) $(glib_integration_OBJECTS) $(glib_integration_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client_browse_services-client-browse-services.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client_publish_service-client-publish-service.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/core_browse_services-core-browse-services.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/core_publish_service-core-publish-service.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glib_integration-glib-integration.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< client_browse_services-client-browse-services.o: client-browse-services.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_browse_services_CFLAGS) $(CFLAGS) -MT client_browse_services-client-browse-services.o -MD -MP -MF $(DEPDIR)/client_browse_services-client-browse-services.Tpo -c -o client_browse_services-client-browse-services.o `test -f 'client-browse-services.c' || echo '$(srcdir)/'`client-browse-services.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/client_browse_services-client-browse-services.Tpo $(DEPDIR)/client_browse_services-client-browse-services.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='client-browse-services.c' object='client_browse_services-client-browse-services.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_browse_services_CFLAGS) $(CFLAGS) -c -o client_browse_services-client-browse-services.o `test -f 'client-browse-services.c' || echo '$(srcdir)/'`client-browse-services.c client_browse_services-client-browse-services.obj: client-browse-services.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_browse_services_CFLAGS) $(CFLAGS) -MT client_browse_services-client-browse-services.obj -MD -MP -MF $(DEPDIR)/client_browse_services-client-browse-services.Tpo -c -o client_browse_services-client-browse-services.obj `if test -f 'client-browse-services.c'; then $(CYGPATH_W) 'client-browse-services.c'; else $(CYGPATH_W) '$(srcdir)/client-browse-services.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/client_browse_services-client-browse-services.Tpo $(DEPDIR)/client_browse_services-client-browse-services.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='client-browse-services.c' object='client_browse_services-client-browse-services.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_browse_services_CFLAGS) $(CFLAGS) -c -o client_browse_services-client-browse-services.obj `if test -f 'client-browse-services.c'; then $(CYGPATH_W) 'client-browse-services.c'; else $(CYGPATH_W) '$(srcdir)/client-browse-services.c'; fi` client_publish_service-client-publish-service.o: client-publish-service.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_publish_service_CFLAGS) $(CFLAGS) -MT client_publish_service-client-publish-service.o -MD -MP -MF $(DEPDIR)/client_publish_service-client-publish-service.Tpo -c -o client_publish_service-client-publish-service.o `test -f 'client-publish-service.c' || echo '$(srcdir)/'`client-publish-service.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/client_publish_service-client-publish-service.Tpo $(DEPDIR)/client_publish_service-client-publish-service.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='client-publish-service.c' object='client_publish_service-client-publish-service.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_publish_service_CFLAGS) $(CFLAGS) -c -o client_publish_service-client-publish-service.o `test -f 'client-publish-service.c' || echo '$(srcdir)/'`client-publish-service.c client_publish_service-client-publish-service.obj: client-publish-service.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_publish_service_CFLAGS) $(CFLAGS) -MT client_publish_service-client-publish-service.obj -MD -MP -MF $(DEPDIR)/client_publish_service-client-publish-service.Tpo -c -o client_publish_service-client-publish-service.obj `if test -f 'client-publish-service.c'; then $(CYGPATH_W) 'client-publish-service.c'; else $(CYGPATH_W) '$(srcdir)/client-publish-service.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/client_publish_service-client-publish-service.Tpo $(DEPDIR)/client_publish_service-client-publish-service.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='client-publish-service.c' object='client_publish_service-client-publish-service.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(client_publish_service_CFLAGS) $(CFLAGS) -c -o client_publish_service-client-publish-service.obj `if test -f 'client-publish-service.c'; then $(CYGPATH_W) 'client-publish-service.c'; else $(CYGPATH_W) '$(srcdir)/client-publish-service.c'; fi` core_browse_services-core-browse-services.o: core-browse-services.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(core_browse_services_CFLAGS) $(CFLAGS) -MT core_browse_services-core-browse-services.o -MD -MP -MF $(DEPDIR)/core_browse_services-core-browse-services.Tpo -c -o core_browse_services-core-browse-services.o `test -f 'core-browse-services.c' || echo '$(srcdir)/'`core-browse-services.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/core_browse_services-core-browse-services.Tpo $(DEPDIR)/core_browse_services-core-browse-services.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='core-browse-services.c' object='core_browse_services-core-browse-services.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(core_browse_services_CFLAGS) $(CFLAGS) -c -o core_browse_services-core-browse-services.o `test -f 'core-browse-services.c' || echo '$(srcdir)/'`core-browse-services.c core_browse_services-core-browse-services.obj: core-browse-services.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(core_browse_services_CFLAGS) $(CFLAGS) -MT core_browse_services-core-browse-services.obj -MD -MP -MF $(DEPDIR)/core_browse_services-core-browse-services.Tpo -c -o core_browse_services-core-browse-services.obj `if test -f 'core-browse-services.c'; then $(CYGPATH_W) 'core-browse-services.c'; else $(CYGPATH_W) '$(srcdir)/core-browse-services.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/core_browse_services-core-browse-services.Tpo $(DEPDIR)/core_browse_services-core-browse-services.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='core-browse-services.c' object='core_browse_services-core-browse-services.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(core_browse_services_CFLAGS) $(CFLAGS) -c -o core_browse_services-core-browse-services.obj `if test -f 'core-browse-services.c'; then $(CYGPATH_W) 'core-browse-services.c'; else $(CYGPATH_W) '$(srcdir)/core-browse-services.c'; fi` core_publish_service-core-publish-service.o: core-publish-service.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(core_publish_service_CFLAGS) $(CFLAGS) -MT core_publish_service-core-publish-service.o -MD -MP -MF $(DEPDIR)/core_publish_service-core-publish-service.Tpo -c -o core_publish_service-core-publish-service.o `test -f 'core-publish-service.c' || echo '$(srcdir)/'`core-publish-service.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/core_publish_service-core-publish-service.Tpo $(DEPDIR)/core_publish_service-core-publish-service.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='core-publish-service.c' object='core_publish_service-core-publish-service.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(core_publish_service_CFLAGS) $(CFLAGS) -c -o core_publish_service-core-publish-service.o `test -f 'core-publish-service.c' || echo '$(srcdir)/'`core-publish-service.c core_publish_service-core-publish-service.obj: core-publish-service.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(core_publish_service_CFLAGS) $(CFLAGS) -MT core_publish_service-core-publish-service.obj -MD -MP -MF $(DEPDIR)/core_publish_service-core-publish-service.Tpo -c -o core_publish_service-core-publish-service.obj `if test -f 'core-publish-service.c'; then $(CYGPATH_W) 'core-publish-service.c'; else $(CYGPATH_W) '$(srcdir)/core-publish-service.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/core_publish_service-core-publish-service.Tpo $(DEPDIR)/core_publish_service-core-publish-service.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='core-publish-service.c' object='core_publish_service-core-publish-service.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(core_publish_service_CFLAGS) $(CFLAGS) -c -o core_publish_service-core-publish-service.obj `if test -f 'core-publish-service.c'; then $(CYGPATH_W) 'core-publish-service.c'; else $(CYGPATH_W) '$(srcdir)/core-publish-service.c'; fi` glib_integration-glib-integration.o: glib-integration.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_integration_CFLAGS) $(CFLAGS) -MT glib_integration-glib-integration.o -MD -MP -MF $(DEPDIR)/glib_integration-glib-integration.Tpo -c -o glib_integration-glib-integration.o `test -f 'glib-integration.c' || echo '$(srcdir)/'`glib-integration.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/glib_integration-glib-integration.Tpo $(DEPDIR)/glib_integration-glib-integration.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='glib-integration.c' object='glib_integration-glib-integration.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_integration_CFLAGS) $(CFLAGS) -c -o glib_integration-glib-integration.o `test -f 'glib-integration.c' || echo '$(srcdir)/'`glib-integration.c glib_integration-glib-integration.obj: glib-integration.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_integration_CFLAGS) $(CFLAGS) -MT glib_integration-glib-integration.obj -MD -MP -MF $(DEPDIR)/glib_integration-glib-integration.Tpo -c -o glib_integration-glib-integration.obj `if test -f 'glib-integration.c'; then $(CYGPATH_W) 'glib-integration.c'; else $(CYGPATH_W) '$(srcdir)/glib-integration.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/glib_integration-glib-integration.Tpo $(DEPDIR)/glib_integration-glib-integration.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='glib-integration.c' object='glib_integration-glib-integration.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_integration_CFLAGS) $(CFLAGS) -c -o glib_integration-glib-integration.obj `if test -f 'glib-integration.c'; then $(CYGPATH_W) 'glib-integration.c'; else $(CYGPATH_W) '$(srcdir)/glib-integration.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/examples/PaxHeaders.10109/glib-integration.c0000644000000000000000000000013213130651643017421 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.823971815 avahi-0.7/examples/glib-integration.c0000644000175000017500000001126613130651643021036 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include /* Callback for Avahi API Timeout Event */ static void avahi_timeout_event (AVAHI_GCC_UNUSED AvahiTimeout *timeout, AVAHI_GCC_UNUSED void *userdata) { g_message ("Avahi API Timeout reached!"); } /* Callback for GLIB API Timeout Event */ static gboolean avahi_timeout_event_glib (void *userdata) { GMainLoop *loop = userdata; g_message ("GLIB API Timeout reached, quitting main loop!"); /* Quit the application */ g_main_loop_quit (loop); return FALSE; /* Don't re-schedule timeout event */ } /* Callback for state changes on the Client */ static void avahi_client_callback (AVAHI_GCC_UNUSED AvahiClient *client, AvahiClientState state, void *userdata) { GMainLoop *loop = userdata; g_message ("Avahi Client State Change: %d", state); if (state == AVAHI_CLIENT_FAILURE) { /* We we're disconnected from the Daemon */ g_message ("Disconnected from the Avahi Daemon: %s", avahi_strerror(avahi_client_errno(client))); /* Quit the application */ g_main_loop_quit (loop); } } int main (AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { GMainLoop *loop = NULL; const AvahiPoll *poll_api; AvahiGLibPoll *glib_poll; AvahiClient *client; struct timeval tv; const char *version; int error; /* Optional: Tell avahi to use g_malloc and g_free */ avahi_set_allocator (avahi_glib_allocator ()); /* Create the GLIB main loop */ loop = g_main_loop_new (NULL, FALSE); /* Create the GLIB Adaptor */ glib_poll = avahi_glib_poll_new (NULL, G_PRIORITY_DEFAULT); poll_api = avahi_glib_poll_get (glib_poll); /* Example, schedule a timeout event with the Avahi API */ avahi_elapse_time (&tv, /* timeval structure */ 1000, /* 1 second */ 0); /* "jitter" - Random additional delay from 0 to this value */ poll_api->timeout_new (poll_api, /* The AvahiPoll object */ &tv, /* struct timeval indicating when to go activate */ avahi_timeout_event, /* Pointer to function to call */ NULL); /* User data to pass to function */ /* Schedule a timeout event with the glib api */ g_timeout_add (5000, /* 5 seconds */ avahi_timeout_event_glib, /* Pointer to function callback */ loop); /* User data to pass to function */ /* Create a new AvahiClient instance */ client = avahi_client_new (poll_api, /* AvahiPoll object from above */ 0, avahi_client_callback, /* Callback function for Client state changes */ loop, /* User data */ &error); /* Error return */ /* Check the error return code */ if (client == NULL) { /* Print out the error string */ g_warning ("Error initializing Avahi: %s", avahi_strerror (error)); goto fail; } /* Make a call to get the version string from the daemon */ version = avahi_client_get_version_string (client); /* Check if the call suceeded */ if (version == NULL) { g_warning ("Error getting version string: %s", avahi_strerror (avahi_client_errno (client))); goto fail; } g_message ("Avahi Server Version: %s", version); /* Start the GLIB Main Loop */ g_main_loop_run (loop); fail: /* Clean up */ g_main_loop_unref (loop); avahi_client_free (client); avahi_glib_poll_free (glib_poll); return 0; } avahi-0.7/examples/PaxHeaders.10109/core-publish-service.c0000644000000000000000000000013213130651643020215 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.823971815 avahi-0.7/examples/core-publish-service.c0000644000175000017500000001626313130651643021634 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include static AvahiSEntryGroup *group = NULL; static AvahiSimplePoll *simple_poll = NULL; static char *name = NULL; static void create_services(AvahiServer *s); static void entry_group_callback(AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata) { assert(s); assert(g == group); /* Called whenever the entry group state changes */ switch (state) { case AVAHI_ENTRY_GROUP_ESTABLISHED: /* The entry group has been established successfully */ fprintf(stderr, "Service '%s' successfully established.\n", name); break; case AVAHI_ENTRY_GROUP_COLLISION: { char *n; /* A service name collision happened. Let's pick a new name */ n = avahi_alternative_service_name(name); avahi_free(name); name = n; fprintf(stderr, "Service name collision, renaming service to '%s'\n", name); /* And recreate the services */ create_services(s); break; } case AVAHI_ENTRY_GROUP_FAILURE : fprintf(stderr, "Entry group failure: %s\n", avahi_strerror(avahi_server_errno(s))); /* Some kind of failure happened while we were registering our services */ avahi_simple_poll_quit(simple_poll); break; case AVAHI_ENTRY_GROUP_UNCOMMITED: case AVAHI_ENTRY_GROUP_REGISTERING: ; } } static void create_services(AvahiServer *s) { char r[128]; int ret; assert(s); /* If this is the first time we're called, let's create a new entry group */ if (!group) if (!(group = avahi_s_entry_group_new(s, entry_group_callback, NULL))) { fprintf(stderr, "avahi_entry_group_new() failed: %s\n", avahi_strerror(avahi_server_errno(s))); goto fail; } fprintf(stderr, "Adding service '%s'\n", name); /* Create some random TXT data */ snprintf(r, sizeof(r), "random=%i", rand()); /* Add the service for IPP */ if ((ret = avahi_server_add_service(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_ipp._tcp", NULL, NULL, 651, "test=blah", r, NULL)) < 0) { fprintf(stderr, "Failed to add _ipp._tcp service: %s\n", avahi_strerror(ret)); goto fail; } /* Add the same service for BSD LPR */ if ((ret = avahi_server_add_service(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, NULL, 515, NULL)) < 0) { fprintf(stderr, "Failed to add _printer._tcp service: %s\n", avahi_strerror(ret)); goto fail; } /* Add an additional (hypothetic) subtype */ if ((ret = avahi_server_add_service_subtype(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, "_magic._sub._printer._tcp") < 0)) { fprintf(stderr, "Failed to add subtype _magic._sub._printer._tcp: %s\n", avahi_strerror(ret)); goto fail; } /* Tell the server to register the service */ if ((ret = avahi_s_entry_group_commit(group)) < 0) { fprintf(stderr, "Failed to commit entry_group: %s\n", avahi_strerror(ret)); goto fail; } return; fail: avahi_simple_poll_quit(simple_poll); } static void server_callback(AvahiServer *s, AvahiServerState state, AVAHI_GCC_UNUSED void * userdata) { assert(s); /* Called whenever the server state changes */ switch (state) { case AVAHI_SERVER_RUNNING: /* The serve has startup successfully and registered its host * name on the network, so it's time to create our services */ if (!group) create_services(s); break; case AVAHI_SERVER_COLLISION: { char *n; int r; /* A host name collision happened. Let's pick a new name for the server */ n = avahi_alternative_host_name(avahi_server_get_host_name(s)); fprintf(stderr, "Host name collision, retrying with '%s'\n", n); r = avahi_server_set_host_name(s, n); avahi_free(n); if (r < 0) { fprintf(stderr, "Failed to set new host name: %s\n", avahi_strerror(r)); avahi_simple_poll_quit(simple_poll); return; } } /* Fall through */ case AVAHI_SERVER_REGISTERING: /* Let's drop our registered services. When the server is back * in AVAHI_SERVER_RUNNING state we will register them * again with the new host name. */ if (group) avahi_s_entry_group_reset(group); break; case AVAHI_SERVER_FAILURE: /* Terminate on failure */ fprintf(stderr, "Server failure: %s\n", avahi_strerror(avahi_server_errno(s))); avahi_simple_poll_quit(simple_poll); break; case AVAHI_SERVER_INVALID: ; } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { AvahiServerConfig config; AvahiServer *server = NULL; int error; int ret = 1; /* Initialize the pseudo-RNG */ srand(time(NULL)); /* Allocate main loop object */ if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, "Failed to create simple poll object.\n"); goto fail; } name = avahi_strdup("MegaPrinter"); /* Let's set the host name for this server. */ avahi_server_config_init(&config); config.host_name = avahi_strdup("gurkiman"); config.publish_workstation = 0; /* Allocate a new server */ server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, server_callback, NULL, &error); /* Free the configuration data */ avahi_server_config_free(&config); /* Check wether creating the server object succeeded */ if (!server) { fprintf(stderr, "Failed to create server: %s\n", avahi_strerror(error)); goto fail; } /* Run the main loop */ avahi_simple_poll_loop(simple_poll); ret = 0; fail: /* Cleanup things */ if (server) avahi_server_free(server); if (simple_poll) avahi_simple_poll_free(simple_poll); avahi_free(name); return ret; } avahi-0.7/examples/PaxHeaders.10109/client-browse-services.c0000644000000000000000000000013213130651643020561 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.823971815 avahi-0.7/examples/client-browse-services.c0000644000175000017500000001444713130651643022202 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include static AvahiSimplePoll *simple_poll = NULL; static void resolve_callback( AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *address, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void* userdata) { assert(r); /* Called whenever a service has been resolved successfully or timed out */ switch (event) { case AVAHI_RESOLVER_FAILURE: fprintf(stderr, "(Resolver) Failed to resolve service '%s' of type '%s' in domain '%s': %s\n", name, type, domain, avahi_strerror(avahi_client_errno(avahi_service_resolver_get_client(r)))); break; case AVAHI_RESOLVER_FOUND: { char a[AVAHI_ADDRESS_STR_MAX], *t; fprintf(stderr, "Service '%s' of type '%s' in domain '%s':\n", name, type, domain); avahi_address_snprint(a, sizeof(a), address); t = avahi_string_list_to_string(txt); fprintf(stderr, "\t%s:%u (%s)\n" "\tTXT=%s\n" "\tcookie is %u\n" "\tis_local: %i\n" "\tour_own: %i\n" "\twide_area: %i\n" "\tmulticast: %i\n" "\tcached: %i\n", host_name, port, a, t, avahi_string_list_get_service_cookie(txt), !!(flags & AVAHI_LOOKUP_RESULT_LOCAL), !!(flags & AVAHI_LOOKUP_RESULT_OUR_OWN), !!(flags & AVAHI_LOOKUP_RESULT_WIDE_AREA), !!(flags & AVAHI_LOOKUP_RESULT_MULTICAST), !!(flags & AVAHI_LOOKUP_RESULT_CACHED)); avahi_free(t); } } avahi_service_resolver_free(r); } static void browse_callback( AvahiServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void* userdata) { AvahiClient *c = userdata; assert(b); /* Called whenever a new services becomes available on the LAN or is removed from the LAN */ switch (event) { case AVAHI_BROWSER_FAILURE: fprintf(stderr, "(Browser) %s\n", avahi_strerror(avahi_client_errno(avahi_service_browser_get_client(b)))); avahi_simple_poll_quit(simple_poll); return; case AVAHI_BROWSER_NEW: fprintf(stderr, "(Browser) NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain); /* We ignore the returned resolver object. In the callback function we free it. If the server is terminated before the callback function is called the server will free the resolver for us. */ if (!(avahi_service_resolver_new(c, interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, 0, resolve_callback, c))) fprintf(stderr, "Failed to resolve service '%s': %s\n", name, avahi_strerror(avahi_client_errno(c))); break; case AVAHI_BROWSER_REMOVE: fprintf(stderr, "(Browser) REMOVE: service '%s' of type '%s' in domain '%s'\n", name, type, domain); break; case AVAHI_BROWSER_ALL_FOR_NOW: case AVAHI_BROWSER_CACHE_EXHAUSTED: fprintf(stderr, "(Browser) %s\n", event == AVAHI_BROWSER_CACHE_EXHAUSTED ? "CACHE_EXHAUSTED" : "ALL_FOR_NOW"); break; } } static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata) { assert(c); /* Called whenever the client or server state changes */ if (state == AVAHI_CLIENT_FAILURE) { fprintf(stderr, "Server connection failure: %s\n", avahi_strerror(avahi_client_errno(c))); avahi_simple_poll_quit(simple_poll); } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) { AvahiClient *client = NULL; AvahiServiceBrowser *sb = NULL; int error; int ret = 1; /* Allocate main loop object */ if (!(simple_poll = avahi_simple_poll_new())) { fprintf(stderr, "Failed to create simple poll object.\n"); goto fail; } /* Allocate a new client */ client = avahi_client_new(avahi_simple_poll_get(simple_poll), 0, client_callback, NULL, &error); /* Check wether creating the client object succeeded */ if (!client) { fprintf(stderr, "Failed to create client: %s\n", avahi_strerror(error)); goto fail; } /* Create the service browser */ if (!(sb = avahi_service_browser_new(client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_http._tcp", NULL, 0, browse_callback, client))) { fprintf(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_client_errno(client))); goto fail; } /* Run the main loop */ avahi_simple_poll_loop(simple_poll); ret = 0; fail: /* Cleanup things */ if (sb) avahi_service_browser_free(sb); if (client) avahi_client_free(client); if (simple_poll) avahi_simple_poll_free(simple_poll); return ret; } avahi-0.7/PaxHeaders.10109/config.h.in0000644000000000000000000000007313130652010014215 xustar0030 atime=1499681806.884953291 29 ctime=1499681849.99599029 avahi-0.7/config.h.in0000644000175000017500000002373713130652010015634 0ustar00lathiatlathiat00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Group for running the avahi-autoipd daemon */ #undef AVAHI_AUTOIPD_GROUP /* User for running the avahi-autoipd daemon */ #undef AVAHI_AUTOIPD_USER /* Group for Avahi */ #undef AVAHI_GROUP /* Privileged access group for Avahi clients */ #undef AVAHI_PRIV_ACCESS_GROUP /* User for running the Avahi daemon */ #undef AVAHI_USER /* Enable chroot() usage */ #undef ENABLE_CHROOT /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* Define if SSP C support is enabled. */ #undef ENABLE_SSP_CC /* Define if SSP C++ support is enabled. */ #undef ENABLE_SSP_CXX /* Gettext package */ #undef GETTEXT_PACKAGE /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_INET_H /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET /* Define to 1 if you have the header file. */ #undef HAVE_BSDXML_H /* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define to 1 if your system has a working `chown' function. */ #undef HAVE_CHOWN /* Define to 1 if you have the `chroot' function. */ #undef HAVE_CHROOT /* Support for DBM */ #undef HAVE_DBM /* Whether we have D-Bus or not */ #undef HAVE_DBUS /* Define to 1 if you have the `dbus_bus_get_private' function. */ #undef HAVE_DBUS_BUS_GET_PRIVATE /* Define to 1 if you have the `dbus_connection_close' function. */ #undef HAVE_DBUS_CONNECTION_CLOSE /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the declaration of `environ', and to 0 if you don't. */ #undef HAVE_DECL_ENVIRON /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Have dlopen() */ #undef HAVE_DLOPEN /* Define to 1 if you have the header file. */ #undef HAVE_EXPAT_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define if you have gcc -fvisibility=hidden support */ #undef HAVE_GCC_VISIBILITY /* Support for GDBM */ #undef HAVE_GDBM /* Define to 1 if you have the header file. */ #undef HAVE_GDBM_H /* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME /* Define to 1 if you have the `gethostname' function. */ #undef HAVE_GETHOSTNAME /* Define to 1 if you have the `getprogname' function. */ #undef HAVE_GETPROGNAME /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY /* Enable Linux inotify() usage */ #undef HAVE_INOTIFY /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Enable BSD kqueue() usage */ #undef HAVE_KQUEUE /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the `memchr' function. */ #undef HAVE_MEMCHR /* Define to 1 if you have the `memmove' function. */ #undef HAVE_MEMMOVE /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `memset' function. */ #undef HAVE_MEMSET /* Define to 1 if you have the `mkdir' function. */ #undef HAVE_MKDIR /* Define to 1 if you have the header file. */ #undef HAVE_NDBM_H /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Support for Linux netlink */ #undef HAVE_NETLINK /* Support for PF_ROUTE */ #undef HAVE_PF_ROUTE /* Define if you have POSIX threads libraries and header files. */ #undef HAVE_PTHREAD /* Define to 1 if you have the `putenv' function. */ #undef HAVE_PUTENV /* Define to 1 if you have the `select' function. */ #undef HAVE_SELECT /* Define to 1 if you have the `setegid' function. */ #undef HAVE_SETEGID /* Define to 1 if you have the `seteuid' function. */ #undef HAVE_SETEUID /* Define to 1 if you have the `setproctitle' function. */ #undef HAVE_SETPROCTITLE /* Define to 1 if you have the `setregid' function. */ #undef HAVE_SETREGID /* Define to 1 if you have the `setresgid' function. */ #undef HAVE_SETRESGID /* Define to 1 if you have the `setresuid' function. */ #undef HAVE_SETRESUID /* Define to 1 if you have the `setreuid' function. */ #undef HAVE_SETREUID /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Define to 1 if `stat' has the bug that it succeeds when given the zero-length file name argument. */ #undef HAVE_STAT_EMPTY_STRING_BUG /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strcspn' function. */ #undef HAVE_STRCSPN /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strlcpy' function. */ #undef HAVE_STRLCPY /* Define to 1 if you have the `strncasecmp' function. */ #undef HAVE_STRNCASECMP /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR /* Define to 1 if you have the `strspn' function. */ #undef HAVE_STRSPN /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR /* Support for struct ip_mreq */ #undef HAVE_STRUCT_IP_MREQ /* Support for struct ip_mreqn */ #undef HAVE_STRUCT_IP_MREQN /* Define if there is a struct lifconf. */ #undef HAVE_STRUCT_LIFCONF /* Define to 1 if you have the header file. */ #undef HAVE_SYSLOG_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_CAPABILITY_H /* Support for sys/filio.h */ #undef HAVE_SYS_FILIO_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_INOTIFY_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PRCTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SELECT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Support for sys/sysctl.h */ #undef HAVE_SYS_SYSCTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the `uname' function. */ #undef HAVE_UNAME /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Support for visibility hidden */ #undef HAVE_VISIBILITY_HIDDEN /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Define to 1 if `lstat' dereferences a symlink specified with a trailing slash. */ #undef LSTAT_FOLLOWS_SLASHED_SYMLINK /* Define to the sub-directory where libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to necessary symbol if this constant uses a non-standard name on your system. */ #undef PTHREAD_CREATE_JOINABLE /* Define to the type of arg 1 for `select'. */ #undef SELECT_TYPE_ARG1 /* Define to the type of args 2, 3 and 4 for `select'. */ #undef SELECT_TYPE_ARG234 /* Define to the type of arg 5 for `select'. */ #undef SELECT_TYPE_ARG5 /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Version number of package */ #undef VERSION /* Define to 1 if on MINIX. */ #undef _MINIX /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `int' if doesn't define. */ #undef gid_t /* Define to `int' if does not define. */ #undef mode_t /* Define to `int' if does not define. */ #undef pid_t /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to `int' if doesn't define. */ #undef uid_t avahi-0.7/PaxHeaders.10109/doxygen_to_devhelp.xsl0000644000000000000000000000013213130651643016617 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.023989663 avahi-0.7/doxygen_to_devhelp.xsl0000644000175000017500000000557713130651643020244 0ustar00lathiatlathiat00000000000000 ../../../doc/avahi-docs/html/ .html .html# .html# avahi-0.7/PaxHeaders.10109/avahi-ui.pc.in0000644000000000000000000000013213130651643014635 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.023989663 avahi-0.7/avahi-ui.pc.in0000644000175000017500000000045713130651643016252 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: avahi-ui Description: Avahi Multicast DNS Responder (Common GTK2 UI support) Requires: gtk+-2.0 avahi-client avahi-glib Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lavahi-ui Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/avahi-sharp0000644000000000000000000000013213130652072014324 xustar0030 mtime=1499681850.599976813 30 atime=1499681851.283961552 30 ctime=1499681850.599976813 avahi-0.7/avahi-sharp/0000755000175000017500000000000013130652072016010 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-sharp/PaxHeaders.10109/ServiceTypeBrowser.cs0000644000000000000000000000013213130651643020541 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.119370306 30 ctime=1499681850.567977527 avahi-0.7/avahi-sharp/ServiceTypeBrowser.cs0000644000175000017500000001465613130651643022164 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Collections; using System.Runtime.InteropServices; using System.Text; namespace Avahi { internal delegate void ServiceTypeBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr type, IntPtr domain, LookupResultFlags flags, IntPtr userdata); public struct ServiceTypeInfo { public int NetworkInterface; public Protocol Protocol; public string Domain; public string ServiceType; public LookupResultFlags Flags; } public class ServiceTypeInfoArgs : EventArgs { private ServiceTypeInfo type; public ServiceTypeInfo ServiceType { get { return type; } } public ServiceTypeInfoArgs (ServiceTypeInfo type) { this.type = type; } } public delegate void ServiceTypeInfoHandler (object o, ServiceTypeInfoArgs args); public class ServiceTypeBrowser : BrowserBase, IDisposable { private IntPtr handle; private ArrayList infos = new ArrayList (); private Client client; private int iface; private Protocol proto; private string domain; private LookupFlags flags; private ServiceTypeBrowserCallback cb; private ArrayList addListeners = new ArrayList (); private ArrayList removeListeners = new ArrayList (); [DllImport ("avahi-client")] private static extern IntPtr avahi_service_type_browser_new (IntPtr client, int iface, int proto, byte[] domain, LookupFlags flags, ServiceTypeBrowserCallback cb, IntPtr userdata); [DllImport ("avahi-client")] private static extern void avahi_service_type_browser_free (IntPtr handle); public event ServiceTypeInfoHandler ServiceTypeAdded { add { addListeners.Add (value); Start (); } remove { addListeners.Remove (value); Stop (false); } } public event ServiceTypeInfoHandler ServiceTypeRemoved { add { removeListeners.Add (value); Start (); } remove { removeListeners.Remove (value); Stop (false); } } public ServiceTypeInfo[] ServiceTypes { get { return (ServiceTypeInfo[]) infos.ToArray (typeof (ServiceTypeInfo)); } } public ServiceTypeBrowser (Client client) : this (client, client.DomainName) { } public ServiceTypeBrowser (Client client, string domain) : this (client, -1, Protocol.Unspecified, domain, LookupFlags.None) { } public ServiceTypeBrowser (Client client, int iface, Protocol proto, string domain, LookupFlags flags) { this.client = client; this.iface = iface; this.proto = proto; this.domain = domain; this.flags = flags; cb = OnServiceTypeBrowserCallback; } ~ServiceTypeBrowser () { Dispose (); } public void Dispose () { Stop (true); } private void Start () { if (client.Handle == IntPtr.Zero || handle != IntPtr.Zero || (addListeners.Count == 0 && removeListeners.Count == 0)) return; lock (client) { handle = avahi_service_type_browser_new (client.Handle, iface, (int) proto, Utility.StringToBytes (domain), flags, cb, IntPtr.Zero); if (handle == IntPtr.Zero) client.ThrowError (); } } private void Stop (bool force) { if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero && (force || (addListeners.Count == 0 && removeListeners.Count == 0))) { lock (client) { avahi_service_type_browser_free (handle); handle = IntPtr.Zero; } } } private void OnServiceTypeBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr type, IntPtr domain, LookupResultFlags flags, IntPtr userdata) { ServiceTypeInfo info; info.NetworkInterface = iface; info.Protocol = proto; info.Domain = Utility.PtrToString (domain); info.ServiceType = Utility.PtrToString (type); info.Flags = flags; switch (bevent) { case BrowserEvent.Added: infos.Add (info); foreach (ServiceTypeInfoHandler handler in addListeners) handler (this, new ServiceTypeInfoArgs (info)); break; case BrowserEvent.Removed: infos.Remove (info); foreach (ServiceTypeInfoHandler handler in removeListeners) handler (this, new ServiceTypeInfoArgs (info)); break; default: EmitBrowserEvent (bevent); break; } } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/ServiceBrowser.cs0000644000000000000000000000013213130651643017677 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.563977617 avahi-0.7/avahi-sharp/ServiceBrowser.cs0000644000175000017500000001551713130651643021317 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Net; using System.Collections; using System.Runtime.InteropServices; using System.Text; namespace Avahi { internal delegate void ServiceBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr name, IntPtr type, IntPtr domain, LookupResultFlags flags, IntPtr userdata); public struct ServiceInfo { public int NetworkInterface; public Protocol Protocol; public string Domain; public string ServiceType; public string Name; public string HostName; public IPAddress Address; public UInt16 Port; public byte[][] Text; public LookupResultFlags Flags; public static ServiceInfo Zero = new ServiceInfo (); } public class ServiceInfoArgs : EventArgs { private ServiceInfo service; public ServiceInfo Service { get { return service; } } public ServiceInfoArgs (ServiceInfo service) { this.service = service; } } public delegate void ServiceInfoHandler (object o, ServiceInfoArgs args); public class ServiceBrowser : BrowserBase, IDisposable { private IntPtr handle; private ArrayList infos = new ArrayList (); private Client client; private int iface; private Protocol proto; private string domain; private string type; private LookupFlags flags; private ServiceBrowserCallback cb; private ArrayList addListeners = new ArrayList (); private ArrayList removeListeners = new ArrayList (); [DllImport ("avahi-client")] private static extern IntPtr avahi_service_browser_new (IntPtr client, int iface, int proto, byte[] type, byte[] domain, LookupFlags flags, ServiceBrowserCallback cb, IntPtr userdata); [DllImport ("avahi-client")] private static extern void avahi_service_browser_free (IntPtr handle); public event ServiceInfoHandler ServiceAdded { add { addListeners.Add (value); Start (); } remove { addListeners.Remove (value); Stop (false); } } public event ServiceInfoHandler ServiceRemoved { add { removeListeners.Add (value); Start (); } remove { removeListeners.Remove (value); Stop (false); } } public ServiceInfo[] Services { get { return (ServiceInfo[]) infos.ToArray (typeof (ServiceInfo)); } } public ServiceBrowser (Client client, string type) : this (client, type, client.DomainName) { } public ServiceBrowser (Client client, string type, string domain) : this (client, -1, Protocol.Unspecified, type, domain, LookupFlags.None) { } public ServiceBrowser (Client client, int iface, Protocol proto, string type, string domain, LookupFlags flags) { this.client = client; this.iface = iface; this.proto = proto; this.domain = domain; this.type = type; this.flags = flags; cb = OnServiceBrowserCallback; } ~ServiceBrowser () { Dispose (); } public void Dispose () { Stop (true); } private void Start () { if (client.Handle == IntPtr.Zero || handle != IntPtr.Zero || (addListeners.Count == 0 && removeListeners.Count == 0)) return; lock (client) { handle = avahi_service_browser_new (client.Handle, iface, (int) proto, Utility.StringToBytes (type), Utility.StringToBytes (domain), flags, cb, IntPtr.Zero); if (handle == IntPtr.Zero) client.ThrowError (); } } private void Stop (bool force) { if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero && (force || (addListeners.Count == 0 && removeListeners.Count == 0))) { lock (client) { avahi_service_browser_free (handle); handle = IntPtr.Zero; } } } private void OnServiceBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr name, IntPtr type, IntPtr domain, LookupResultFlags flags, IntPtr userdata) { ServiceInfo info; info.NetworkInterface = iface; info.Protocol = proto; info.Domain = Utility.PtrToString (domain); info.ServiceType = Utility.PtrToString (type); info.Name = Utility.PtrToString (name); info.HostName = null; info.Address = null; info.Port = 0; info.Text = null; info.Flags = flags; switch (bevent) { case BrowserEvent.Added: infos.Add (info); foreach (ServiceInfoHandler handler in addListeners) handler (this, new ServiceInfoArgs (info)); break; case BrowserEvent.Removed: infos.Remove (info); foreach (ServiceInfoHandler handler in removeListeners) handler (this, new ServiceInfoArgs (info)); break; default: EmitBrowserEvent (bevent); break; } } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/EntryGroup.cs0000644000000000000000000000013213130651643017051 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.563977617 avahi-0.7/avahi-sharp/EntryGroup.cs0000644000175000017500000003354013130651643020465 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Net; using System.Runtime.InteropServices; using System.Text; using Mono.Unix; namespace Avahi { [Flags] public enum PublishFlags { None = 0, Unique = 1, NoProbe = 2, NoAnnounce = 4, AllowMultiple = 8, NoReverse = 16, NoCookie = 32, Update = 64, UseWideArea = 128, UseMulticast = 256 } public enum EntryGroupState { Uncommited, Registering, Established, Collision, Failure } public class EntryGroupStateArgs : EventArgs { private EntryGroupState state; public EntryGroupState State { get { return state; } } public EntryGroupStateArgs (EntryGroupState state) { this.state = state; } } internal delegate void EntryGroupCallback (IntPtr group, EntryGroupState state, IntPtr userdata); public delegate void EntryGroupStateHandler (object o, EntryGroupStateArgs args); public class EntryGroup : IDisposable { private Client client; private IntPtr handle; private EntryGroupCallback cb; [DllImport ("avahi-client")] private static extern IntPtr avahi_entry_group_new (IntPtr client, EntryGroupCallback cb, IntPtr userdata); [DllImport ("avahi-client")] private static extern int avahi_entry_group_commit (IntPtr group); [DllImport ("avahi-client")] private static extern int avahi_entry_group_reset (IntPtr group); [DllImport ("avahi-client")] private static extern EntryGroupState avahi_entry_group_get_state (IntPtr group); [DllImport ("avahi-client")] private static extern bool avahi_entry_group_is_empty (IntPtr group); [DllImport ("avahi-client")] private static extern int avahi_entry_group_add_service_strlst (IntPtr group, int iface, Protocol proto, PublishFlags flags, byte[] name, byte[] type, byte[] domain, byte[] host, UInt16 port, IntPtr strlst); [DllImport ("avahi-client")] private static extern int avahi_entry_group_update_service_strlst (IntPtr group, int iface, Protocol proto, PublishFlags flags, byte[] name, byte[] type, byte[] domain, IntPtr strlst); [DllImport ("avahi-client")] private static extern int avahi_entry_group_add_service_subtype (IntPtr group, int iface, Protocol proto, PublishFlags flags, byte[] name, byte[] type, byte[] domain, byte[] subtype); [DllImport ("avahi-client")] private static extern int avahi_entry_group_add_address (IntPtr group, int iface, Protocol proto, PublishFlags flags, byte[] name, IntPtr address); [DllImport ("avahi-client")] private static extern int avahi_entry_group_add_record (IntPtr group, int iface, Protocol proto, PublishFlags flags, byte[] name, RecordClass clazz, RecordType type, uint ttl, byte[] rdata, int size); [DllImport ("avahi-client")] private static extern void avahi_entry_group_free (IntPtr group); [DllImport ("avahi-common")] private static extern IntPtr avahi_string_list_new (IntPtr txt); [DllImport ("avahi-common")] private static extern IntPtr avahi_string_list_add (IntPtr list, byte[] txt); [DllImport ("avahi-common")] private static extern void avahi_string_list_free (IntPtr list); [DllImport ("avahi-common")] private static extern IntPtr avahi_alternative_service_name (byte[] name); public event EntryGroupStateHandler StateChanged; public EntryGroupState State { get { lock (client) { return avahi_entry_group_get_state (handle); } } } public bool IsEmpty { get { lock (client) { return avahi_entry_group_is_empty (handle); } } } public EntryGroup (Client client) { this.client = client; cb = OnEntryGroupCallback; lock (client) { handle = avahi_entry_group_new (client.Handle, cb, IntPtr.Zero); if (handle == IntPtr.Zero) client.ThrowError (); } } ~EntryGroup () { Dispose (); } public void Dispose () { if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero) { lock (client) { avahi_entry_group_free (handle); handle = IntPtr.Zero; } } } public void Commit () { lock (client) { if (avahi_entry_group_commit (handle) < 0) client.ThrowError (); } } public void Reset () { lock (client) { if (avahi_entry_group_reset (handle) < 0) client.ThrowError (); } } public void AddService (string name, string type, string domain, UInt16 port, params string[] txt) { AddService (PublishFlags.None, name, type, domain, port, txt); } public void AddService (PublishFlags flags, string name, string type, string domain, UInt16 port, params string[] txt) { AddService (-1, Protocol.Unspecified, flags, name, type, domain, null, port, txt); } public void AddService (int iface, Protocol proto, PublishFlags flags, string name, string type, string domain, string host, UInt16 port, params string[] txt) { IntPtr list = avahi_string_list_new (IntPtr.Zero); if (txt != null) { foreach (string item in txt) { list = avahi_string_list_add (list, Utility.StringToBytes (item)); } } AddService (iface, proto, flags, name, type, domain, host, port, list); } public void AddService (int iface, Protocol proto, PublishFlags flags, string name, string type, string domain, string host, UInt16 port, params byte[][] txt) { IntPtr list = avahi_string_list_new (IntPtr.Zero); if (txt != null) { foreach (byte[] item in txt) { list = avahi_string_list_add (list, item); } } AddService (iface, proto, flags, name, type, domain, host, port, list); } private void AddService (int iface, Protocol proto, PublishFlags flags, string name, string type, string domain, string host, UInt16 port, IntPtr list) { int ret; lock (client) { ret = avahi_entry_group_add_service_strlst (handle, iface, proto, flags, Utility.StringToBytes (name), Utility.StringToBytes (type), Utility.StringToBytes (domain), Utility.StringToBytes (host), port, list); } avahi_string_list_free (list); if (ret < 0) { client.ThrowError (); } } public void UpdateService (string name, string type, string domain, params string[] txt) { UpdateService (-1, Protocol.Unspecified, PublishFlags.None, name, type, domain, txt); } public void UpdateService (int iface, Protocol proto, PublishFlags flags, string name, string type, string domain, params string[] txt) { IntPtr list = avahi_string_list_new (IntPtr.Zero); if (txt != null) { foreach (string item in txt) { list = avahi_string_list_add (list, Utility.StringToBytes (item)); } } UpdateService (iface, proto, flags, name, type, domain, list); } public void UpdateService (int iface, Protocol proto, PublishFlags flags, string name, string type, string domain, params byte[][] txt) { IntPtr list = avahi_string_list_new (IntPtr.Zero); if (txt != null) { foreach (byte[] item in txt) { list = avahi_string_list_add (list, item); } } UpdateService (iface, proto, flags, name, type, domain, list); } private void UpdateService (int iface, Protocol proto, PublishFlags flags, string name, string type, string domain, IntPtr list) { lock (client) { int ret = avahi_entry_group_update_service_strlst (handle, iface, proto, flags, Utility.StringToBytes (name), Utility.StringToBytes (type), Utility.StringToBytes (domain), list); avahi_string_list_free (list); if (ret < 0) { client.ThrowError (); } } } public void AddServiceSubtype (string name, string type, string domain, string subtype) { AddServiceSubtype (-1, Protocol.Unspecified, PublishFlags.None, name, type, domain, subtype); } public void AddServiceSubtype (int iface, Protocol proto, PublishFlags flags, string name, string type, string domain, string subtype) { lock (client) { int ret = avahi_entry_group_add_service_subtype (handle, iface, proto, flags, Utility.StringToBytes (name), Utility.StringToBytes (type), Utility.StringToBytes (domain), Utility.StringToBytes (subtype)); if (ret < 0) { client.ThrowError (); } } } public void AddAddress (string name, IPAddress address) { AddAddress (-1, Protocol.Unspecified, PublishFlags.None, name, address); } public void AddAddress (int iface, Protocol proto, PublishFlags flags, string name, IPAddress address) { IntPtr addressPtr = Utility.AddressToPtr (address); lock (client) { int ret = avahi_entry_group_add_address (handle, iface, proto, flags, Utility.StringToBytes (name), addressPtr); Utility.Free (addressPtr); if (ret < 0) { client.ThrowError (); } } } public void AddRecord (string name, RecordClass clazz, RecordType type, uint ttl, byte[] rdata, int length) { AddRecord (-1, Protocol.Unspecified, PublishFlags.None, name, clazz, type, ttl, rdata, length); } public void AddRecord (int iface, Protocol proto, PublishFlags flags, string name, RecordClass clazz, RecordType type, uint ttl, byte[] rdata, int length) { lock (client) { int ret = avahi_entry_group_add_record (handle, iface, proto, flags, Utility.StringToBytes (name), clazz, type, ttl, rdata, length); if (ret < 0) { client.ThrowError (); } } } public static string GetAlternativeServiceName (string name) { return Utility.PtrToStringFree (avahi_alternative_service_name (Utility.StringToBytes (name))); } private void OnEntryGroupCallback (IntPtr group, EntryGroupState state, IntPtr userdata) { if (StateChanged != null) StateChanged (this, new EntryGroupStateArgs (state)); } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/DomainBrowser.cs0000644000000000000000000000013213130651643017506 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.563977617 avahi-0.7/avahi-sharp/DomainBrowser.cs0000644000175000017500000001426413130651643021124 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Collections; using System.Runtime.InteropServices; using System.Text; namespace Avahi { internal delegate void DomainBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr domain, LookupResultFlags flags, IntPtr userdata); public enum DomainBrowserType { Browse, BrowseDefault, Register, RegisterDefault, BrowseLegacy } public struct DomainInfo { public int NetworkInterface; public Protocol Protocol; public string Domain; public LookupResultFlags Flags; } public class DomainInfoArgs : EventArgs { private DomainInfo domain; public DomainInfo Domain { get { return domain; } } public DomainInfoArgs (DomainInfo domain) { this.domain = domain; } } public delegate void DomainInfoHandler (object o, DomainInfoArgs args); public class DomainBrowser : BrowserBase, IDisposable { private IntPtr handle; private ArrayList infos = new ArrayList (); private Client client; private int iface; private Protocol proto; private string domain; private DomainBrowserType btype; private LookupFlags flags; private DomainBrowserCallback cb; private ArrayList addListeners = new ArrayList (); private ArrayList removeListeners = new ArrayList (); [DllImport ("avahi-client")] private static extern IntPtr avahi_domain_browser_new (IntPtr client, int iface, int proto, byte[] domain, int btype, LookupFlags flags, DomainBrowserCallback cb, IntPtr userdata); [DllImport ("avahi-client")] private static extern void avahi_domain_browser_free (IntPtr handle); public event DomainInfoHandler DomainAdded { add { addListeners.Add (value); Start (); } remove { addListeners.Remove (value); Stop (false); } } public event DomainInfoHandler DomainRemoved { add { removeListeners.Add (value); Start (); } remove { removeListeners.Remove (value); Stop (false); } } public DomainInfo[] Domains { get { return (DomainInfo[]) infos.ToArray (typeof (DomainInfo)); } } public DomainBrowser (Client client) : this (client, -1, Protocol.Unspecified, client.DomainName, DomainBrowserType.Browse, LookupFlags.None) { } public DomainBrowser (Client client, int iface, Protocol proto, string domain, DomainBrowserType btype, LookupFlags flags) { this.client = client; this.iface = iface; this.proto = proto; this.domain = domain; this.btype = btype; this.flags = flags; cb = OnDomainBrowserCallback; } ~DomainBrowser () { Dispose (); } public void Dispose () { Stop (true); } private void Start () { if (client.Handle == IntPtr.Zero && handle != IntPtr.Zero || (addListeners.Count == 0 && removeListeners.Count == 0)) return; lock (client) { handle = avahi_domain_browser_new (client.Handle, iface, (int) proto, Utility.StringToBytes (domain), (int) btype, flags, cb, IntPtr.Zero); if (handle == IntPtr.Zero) client.ThrowError (); } } private void Stop (bool force) { if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero && (force || (addListeners.Count == 0 && removeListeners.Count == 0))) { lock (client) { avahi_domain_browser_free (handle); handle = IntPtr.Zero; } } } private void OnDomainBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr domain, LookupResultFlags flags, IntPtr userdata) { DomainInfo info; info.NetworkInterface = iface; info.Protocol = proto; info.Domain = Utility.PtrToString (domain); info.Flags = flags; switch (bevent) { case BrowserEvent.Added: infos.Add (info); foreach (DomainInfoHandler handler in addListeners) handler (this, new DomainInfoArgs (info)); break; case BrowserEvent.Removed: infos.Remove (info); foreach (DomainInfoHandler handler in removeListeners) handler (this, new DomainInfoArgs (info)); break; default: EmitBrowserEvent (bevent); break; } } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/gencfg.sh0000644000000000000000000000013213130651643016171 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.599976813 avahi-0.7/avahi-sharp/gencfg.sh0000755000175000017500000000036713130651643017611 0ustar00lathiatlathiat00000000000000#!/bin/sh . $1 client_dlname=$dlname . $2 common_dlname=$dlname . $3 glib_dlname=$dlname exec sed -e "s,@CLIENT_DLNAME\@,${client_dlname},g" \ -e "s,@COMMON_DLNAME\@,${common_dlname},g" \ -e "s,@GLIB_DLNAME\@,${glib_dlname},g" avahi-0.7/avahi-sharp/PaxHeaders.10109/AddressResolver.cs0000644000000000000000000000013213130651643020042 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.559977703 avahi-0.7/avahi-sharp/AddressResolver.cs0000644000175000017500000001363013130651643021454 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Collections; using System.Net; using System.Runtime.InteropServices; using Mono.Unix; namespace Avahi { internal delegate void AddressResolverCallback (IntPtr resolver, int iface, Protocol proto, ResolverEvent revent, IntPtr address, IntPtr hostname, LookupResultFlags flags, IntPtr userdata); public delegate void HostAddressHandler (object o, HostAddressArgs args); public class HostAddressArgs : EventArgs { private string host; private IPAddress address; public string Host { get { return host; } } public IPAddress Address { get { return address; } } public HostAddressArgs (string host, IPAddress address) { this.host = host; this.address = address; } } public class AddressResolver : ResolverBase, IDisposable { private IntPtr handle; private Client client; private int iface; private Protocol proto; private IPAddress address; private LookupFlags flags; private AddressResolverCallback cb; private IPAddress currentAddress; private string currentHost; private ArrayList foundListeners = new ArrayList (); private ArrayList timeoutListeners = new ArrayList (); [DllImport ("avahi-client")] private static extern IntPtr avahi_address_resolver_new (IntPtr client, int iface, Protocol proto, IntPtr address, LookupFlags flags, AddressResolverCallback cb, IntPtr userdata); [DllImport ("avahi-client")] private static extern void avahi_address_resolver_free (IntPtr handle); public event HostAddressHandler Found { add { foundListeners.Add (value); Start (); } remove { foundListeners.Remove (value); Stop (false); } } public event EventHandler Timeout { add { timeoutListeners.Add (value); Start (); } remove { timeoutListeners.Remove (value); Stop (false); } } public IPAddress Address { get { return currentAddress; } } public string HostName { get { return currentHost; } } public AddressResolver (Client client, IPAddress address) : this (client, -1, Protocol.Unspecified, address, LookupFlags.None) { } public AddressResolver (Client client, int iface, Protocol proto, IPAddress address, LookupFlags flags) { this.client = client; this.iface = iface; this.proto = proto; this.address = address; this.flags = flags; cb = OnAddressResolverCallback; } ~AddressResolver () { Dispose (); } public void Dispose () { Stop (true); } private void Start () { if (client.Handle == IntPtr.Zero || handle != IntPtr.Zero || (foundListeners.Count == 0 && timeoutListeners.Count == 0)) return; IntPtr addrPtr = Utility.AddressToPtr (address); lock (client) { handle = avahi_address_resolver_new (client.Handle, iface, proto, addrPtr, flags, cb, IntPtr.Zero); if (handle == IntPtr.Zero) client.ThrowError (); } Utility.Free (addrPtr); } private void Stop (bool force) { if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero && (force || (foundListeners.Count == 0 && timeoutListeners.Count == 0))) { lock (client) { avahi_address_resolver_free (handle); handle = IntPtr.Zero; } } } private void OnAddressResolverCallback (IntPtr resolver, int iface, Protocol proto, ResolverEvent revent, IntPtr address, IntPtr hostname, LookupResultFlags flags, IntPtr userdata) { switch (revent) { case ResolverEvent.Found: currentAddress = Utility.PtrToAddress (address); currentHost = Utility.PtrToString (hostname); foreach (HostAddressHandler handler in foundListeners) handler (this, new HostAddressArgs (currentHost, currentAddress)); break; case ResolverEvent.Failure: EmitFailure (client.LastError); break; } } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/en0000644000000000000000000000013213130652072014726 xustar0030 mtime=1499681850.571977438 30 atime=1499681851.283961552 30 ctime=1499681850.571977438 avahi-0.7/avahi-sharp/en/0000755000175000017500000000000013130652072016412 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-sharp/en/PaxHeaders.10109/Avahi.xml0000644000000000000000000000013213130651643016560 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.571977438 avahi-0.7/avahi-sharp/en/Avahi.xml0000644000175000017500000000020113130651643020160 0ustar00lathiatlathiat00000000000000 To be added. To be added. avahi-0.7/avahi-sharp/en/PaxHeaders.10109/index.xml0000644000000000000000000000013213130651643016637 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.571977438 avahi-0.7/avahi-sharp/en/index.xml0000644000175000017500000000560513130651643020254 0ustar00lathiatlathiat00000000000000 System.Reflection.AssemblyTrademark(Trademark="") System.Reflection.AssemblyCopyright(Copyright="(C) 2005 James Willcox <snorp@snorp.net>") System.Reflection.AssemblyProduct(Product="") System.Reflection.AssemblyCompany(Company="") System.Reflection.AssemblyConfiguration(Configuration="") System.Reflection.AssemblyDescription(Description="Mono bindings for the Avahi mDNS/DNS-SD stack") System.Reflection.AssemblyTitle(Title="avahi-sharp") To be added. To be added. avahi-sharp avahi-0.7/avahi-sharp/en/PaxHeaders.10109/Avahi0000644000000000000000000000013213130652072015756 xustar0030 mtime=1499681850.599976813 30 atime=1499681851.283961552 30 ctime=1499681850.599976813 avahi-0.7/avahi-sharp/en/Avahi/0000755000175000017500000000000013130652072017442 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/HostNameResolver.xml0000644000000000000000000000013213130651643022020 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.587977081 avahi-0.7/avahi-sharp/en/Avahi/HostNameResolver.xml0000644000175000017500000001015013130651643023424 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 Avahi.ResolverBase System.IDisposable Constructor To be added. To be added. To be added. To be added. Event Avahi.HostAddressHandler To be added. To be added. Event System.EventHandler To be added. To be added. Method System.Void To be added. To be added. Property System.Net.IPAddress To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceTypeBrowser.xml0000644000000000000000000000013213130651643022366 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.595976902 avahi-0.7/avahi-sharp/en/Avahi/ServiceTypeBrowser.xml0000644000175000017500000001014313130651643023774 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 Avahi.BrowserBase System.IDisposable Constructor To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. Event Avahi.ServiceTypeInfoHandler To be added. To be added. Event Avahi.ServiceTypeInfoHandler To be added. To be added. Method System.Void To be added. To be added. Property Avahi.ServiceTypeInfo[] To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/DomainInfoArgs.xml0000644000000000000000000000013213130651643021420 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.579977259 avahi-0.7/avahi-sharp/en/Avahi/DomainInfoArgs.xml0000644000175000017500000000247313130651643023035 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.EventArgs Constructor To be added. To be added. To be added. Property Avahi.DomainInfo To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ClientState.xml0000644000000000000000000000013213130651643020777 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.575977348 avahi-0.7/avahi-sharp/en/Avahi/ClientState.xml0000644000175000017500000000364213130651643022413 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum Field Avahi.ClientState To be added. Field Avahi.ClientState To be added. Field Avahi.ClientState To be added. Field Avahi.ClientState To be added. Field Avahi.ClientState To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/LookupFlags.xml0000644000000000000000000000013213130651643021006 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.587977081 avahi-0.7/avahi-sharp/en/Avahi/LookupFlags.xml0000644000175000017500000000401613130651643022416 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum System.Flags Field Avahi.LookupFlags To be added. Field Avahi.LookupFlags To be added. Field Avahi.LookupFlags To be added. Field Avahi.LookupFlags To be added. Field Avahi.LookupFlags To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/RecordClass.xml0000644000000000000000000000013213130651643020764 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.591976992 avahi-0.7/avahi-sharp/en/Avahi/RecordClass.xml0000644000175000017500000000132613130651643022375 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum Field Avahi.RecordClass To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ErrorCode.xml0000644000000000000000000000013213130651643020444 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.583977167 avahi-0.7/avahi-sharp/en/Avahi/ErrorCode.xml0000644000175000017500000003734613130651643022070 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. Field Avahi.ErrorCode To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/BrowserBase.xml0000644000000000000000000000013213130651643020776 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.571977438 avahi-0.7/avahi-sharp/en/Avahi/BrowserBase.xml0000644000175000017500000000352713130651643022414 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Object Constructor To be added. To be added. Event System.EventHandler To be added. To be added. Event System.EventHandler To be added. To be added. Event System.EventHandler To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/HostAddressHandler.xml0000644000000000000000000000013213130651643022301 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.587977081 avahi-0.7/avahi-sharp/en/Avahi/HostAddressHandler.xml0000644000175000017500000000141513130651643023711 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Delegate System.Void To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceInfoArgs.xml0000644000000000000000000000013213130651643021611 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.595976902 avahi-0.7/avahi-sharp/en/Avahi/ServiceInfoArgs.xml0000644000175000017500000000251013130651643023216 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.EventArgs Constructor To be added. To be added. To be added. Property Avahi.ServiceInfo To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/EntryGroupStateArgs.xml0000644000000000000000000000013213130651643022514 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.579977259 avahi-0.7/avahi-sharp/en/Avahi/EntryGroupStateArgs.xml0000644000175000017500000000253613130651643024131 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.EventArgs Constructor To be added. To be added. To be added. Property Avahi.EntryGroupState To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/PublishFlags.xml0000644000000000000000000000013213130651643021143 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.587977081 avahi-0.7/avahi-sharp/en/Avahi/PublishFlags.xml0000644000175000017500000000701313130651643022553 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum System.Flags Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. Field Avahi.PublishFlags To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/AddressResolver.xml0000644000000000000000000000013213130651643021667 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.571977438 avahi-0.7/avahi-sharp/en/Avahi/AddressResolver.xml0000644000175000017500000001000413130651643023271 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 Avahi.ResolverBase System.IDisposable Constructor To be added. To be added. To be added. To be added. Event Avahi.HostAddressHandler To be added. To be added. Event System.EventHandler To be added. To be added. Method System.Void To be added. To be added. Property System.Net.IPAddress To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/Client.xml0000644000000000000000000000013213130651643017776 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.575977348 avahi-0.7/avahi-sharp/en/Avahi/Client.xml0000644000175000017500000001416613130651643021415 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Object System.IDisposable Constructor To be added. To be added. Event Avahi.ClientStateHandler To be added. To be added. Method System.Void To be added. To be added. Property System.String To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Property Avahi.ClientState To be added. To be added. To be added. Property System.UInt32 To be added. To be added. To be added. Constructor To be added. To be added. To be added. Method System.String To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/EntryGroupState.xml0000644000000000000000000000013213130651643021677 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.583977167 avahi-0.7/avahi-sharp/en/Avahi/EntryGroupState.xml0000644000175000017500000000371213130651643023311 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum Field Avahi.EntryGroupState To be added. Field Avahi.EntryGroupState To be added. Field Avahi.EntryGroupState To be added. Field Avahi.EntryGroupState To be added. Field Avahi.EntryGroupState To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ClientException.xml0000644000000000000000000000013213130651643021655 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.571977438 avahi-0.7/avahi-sharp/en/Avahi/ClientException.xml0000644000175000017500000000163613130651643023272 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.ApplicationException Property Avahi.ErrorCode To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceInfoHandler.xml0000644000000000000000000000013213130651643022272 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.595976902 avahi-0.7/avahi-sharp/en/Avahi/ServiceInfoHandler.xml0000644000175000017500000000141513130651643023702 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Delegate System.Void To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceResolver.xml0000644000000000000000000000013213130651643021702 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.595976902 avahi-0.7/avahi-sharp/en/Avahi/ServiceResolver.xml0000644000175000017500000001131713130651643023314 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 Avahi.ResolverBase System.IDisposable Constructor To be added. To be added. To be added. To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. Event Avahi.ServiceInfoHandler To be added. To be added. Event System.EventHandler To be added. To be added. Method System.Void To be added. To be added. Property Avahi.ServiceInfo To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceTypeInfo.xml0000644000000000000000000000013213130651643021636 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.599976813 avahi-0.7/avahi-sharp/en/Avahi/ServiceTypeInfo.xml0000644000175000017500000000435113130651643023250 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.ValueType Field System.Int32 To be added. To be added. Field Avahi.Protocol To be added. To be added. Field System.String To be added. To be added. Field System.String To be added. To be added. Field Avahi.LookupResultFlags To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/HostAddressArgs.xml0000644000000000000000000000013213130651643021620 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.583977167 avahi-0.7/avahi-sharp/en/Avahi/HostAddressArgs.xml0000644000175000017500000000352113130651643023230 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.EventArgs Constructor To be added. To be added. To be added. To be added. Property System.String To be added. To be added. To be added. Property System.Net.IPAddress To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceInfo.xml0000644000000000000000000000013213130651643020774 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.595976902 avahi-0.7/avahi-sharp/en/Avahi/ServiceInfo.xml0000644000175000017500000001046013130651643022404 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.ValueType Field System.Int32 To be added. To be added. Field Avahi.Protocol To be added. To be added. Field System.String To be added. To be added. Field System.String To be added. To be added. Field System.String To be added. To be added. Field System.String To be added. To be added. Field System.Net.IPAddress To be added. To be added. Field System.UInt16 To be added. To be added. Field System.Byte[][] To be added. To be added. Field Avahi.ServiceInfo To be added. To be added. Field Avahi.LookupResultFlags To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ResolverBase.xml0000644000000000000000000000013213130651643021154 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.591976992 avahi-0.7/avahi-sharp/en/Avahi/ResolverBase.xml0000644000175000017500000000216413130651643022566 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Object Constructor To be added. To be added. Event Avahi.ErrorCodeHandler To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ClientStateHandler.xml0000644000000000000000000000013213130651643022275 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.575977348 avahi-0.7/avahi-sharp/en/Avahi/ClientStateHandler.xml0000644000175000017500000000142013130651643023701 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Delegate System.Void To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceBrowser.xml0000644000000000000000000000013213130651643021524 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.591976992 avahi-0.7/avahi-sharp/en/Avahi/ServiceBrowser.xml0000644000175000017500000001056713130651643023144 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 Avahi.BrowserBase System.IDisposable Constructor To be added. To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. To be added. Event Avahi.ServiceInfoHandler To be added. To be added. Event Avahi.ServiceInfoHandler To be added. To be added. Method System.Void To be added. To be added. Property Avahi.ServiceInfo[] To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/DomainBrowserType.xml0000644000000000000000000000013213130651643022175 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.575977348 avahi-0.7/avahi-sharp/en/Avahi/DomainBrowserType.xml0000644000175000017500000000374613130651643023616 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum Field Avahi.DomainBrowserType To be added. Field Avahi.DomainBrowserType To be added. Field Avahi.DomainBrowserType To be added. Field Avahi.DomainBrowserType To be added. Field Avahi.DomainBrowserType To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/RecordBrowser.xml0000644000000000000000000000013213130651643021342 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.587977081 avahi-0.7/avahi-sharp/en/Avahi/RecordBrowser.xml0000644000175000017500000000772413130651643022763 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 Avahi.BrowserBase System.IDisposable Constructor To be added. To be added. To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. Event Avahi.RecordInfoHandler To be added. To be added. Event Avahi.RecordInfoHandler To be added. To be added. Method System.Void To be added. To be added. Property Avahi.RecordInfo[] To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/RecordType.xml0000644000000000000000000000013213130651643020640 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.591976992 avahi-0.7/avahi-sharp/en/Avahi/RecordType.xml0000644000175000017500000000641713130651643022257 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. Field Avahi.RecordType To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/RecordInfoArgs.xml0000644000000000000000000000013213130651643021427 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.591976992 avahi-0.7/avahi-sharp/en/Avahi/RecordInfoArgs.xml0000644000175000017500000000247313130651643023044 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.EventArgs Constructor To be added. To be added. To be added. Property Avahi.RecordInfo To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ErrorCodeHandler.xml0000644000000000000000000000013213130651643021742 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.583977167 avahi-0.7/avahi-sharp/en/Avahi/ErrorCodeHandler.xml0000644000175000017500000000140313130651643023347 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Delegate System.Void To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/LookupResultFlags.xml0000644000000000000000000000013213130651643022205 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.587977081 avahi-0.7/avahi-sharp/en/Avahi/LookupResultFlags.xml0000644000175000017500000000453413130651643023622 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum System.Flags Field Avahi.LookupResultFlags To be added. Field Avahi.LookupResultFlags To be added. Field Avahi.LookupResultFlags To be added. Field Avahi.LookupResultFlags To be added. Field Avahi.LookupResultFlags To be added. Field Avahi.LookupResultFlags To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceTypeInfoArgs.xml0000644000000000000000000000013213130651643022453 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.595976902 avahi-0.7/avahi-sharp/en/Avahi/ServiceTypeInfoArgs.xml0000644000175000017500000000254713130651643024072 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.EventArgs Constructor To be added. To be added. To be added. Property Avahi.ServiceTypeInfo To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/DomainInfoHandler.xml0000644000000000000000000000013213130651643022101 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.579977259 avahi-0.7/avahi-sharp/en/Avahi/DomainInfoHandler.xml0000644000175000017500000000141013130651643023504 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Delegate System.Void To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/DomainBrowser.xml0000644000000000000000000000013213130651643021333 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.579977259 avahi-0.7/avahi-sharp/en/Avahi/DomainBrowser.xml0000644000175000017500000000716013130651643022746 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 Avahi.BrowserBase System.IDisposable Constructor To be added. To be added. To be added. Event Avahi.DomainInfoHandler To be added. To be added. Event Avahi.DomainInfoHandler To be added. To be added. Method System.Void To be added. To be added. Property Avahi.DomainInfo[] To be added. To be added. To be added. Constructor To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/DomainInfo.xml0000644000000000000000000000013213130651643020603 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.579977259 avahi-0.7/avahi-sharp/en/Avahi/DomainInfo.xml0000644000175000017500000000356313130651643022221 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.ValueType Field System.Int32 To be added. To be added. Field Avahi.Protocol To be added. To be added. Field System.String To be added. To be added. Field Avahi.LookupResultFlags To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/RecordInfo.xml0000644000000000000000000000013213130651643020612 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.591976992 avahi-0.7/avahi-sharp/en/Avahi/RecordInfo.xml0000644000175000017500000000563013130651643022225 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.ValueType Field System.Int32 To be added. To be added. Field Avahi.Protocol To be added. To be added. Field System.String To be added. To be added. Field Avahi.RecordClass To be added. To be added. Field Avahi.RecordType To be added. To be added. Field System.Byte[] To be added. To be added. Field Avahi.LookupResultFlags To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ServiceTypeInfoHandler.xml0000644000000000000000000000013213130651643023134 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.599976813 avahi-0.7/avahi-sharp/en/Avahi/ServiceTypeInfoHandler.xml0000644000175000017500000000144113130651643024543 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Delegate System.Void To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ClientFlags.xml0000644000000000000000000000013213130651643020753 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.575977348 avahi-0.7/avahi-sharp/en/Avahi/ClientFlags.xml0000644000175000017500000000266413130651643022372 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum System.Flags Field Avahi.ClientFlags To be added. Field Avahi.ClientFlags To be added. Field Avahi.ClientFlags To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ClientStateArgs.xml0000644000000000000000000000013213130651643021614 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.575977348 avahi-0.7/avahi-sharp/en/Avahi/ClientStateArgs.xml0000644000175000017500000000247613130651643023234 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.EventArgs Constructor To be added. To be added. To be added. Property Avahi.ClientState To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/Protocol.xml0000644000000000000000000000013213130651643020361 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.587977081 avahi-0.7/avahi-sharp/en/Avahi/Protocol.xml0000644000175000017500000000244213130651643021772 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Enum Field Avahi.Protocol To be added. Field Avahi.Protocol To be added. Field Avahi.Protocol To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/EntryGroup.xml0000644000000000000000000000013213130651643020676 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.583977167 avahi-0.7/avahi-sharp/en/Avahi/EntryGroup.xml0000644000175000017500000004713013130651643022312 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Object System.IDisposable Constructor To be added. To be added. To be added. Event Avahi.EntryGroupStateHandler To be added. To be added. Method System.Void To be added. To be added. Method System.Void To be added. To be added. Method System.Void To be added. To be added. Method System.Void System.ParamArray To be added. To be added. To be added. To be added. To be added. To be added. To be added. Property Avahi.EntryGroupState To be added. To be added. To be added. Property System.Boolean To be added. To be added. To be added. Method System.String To be added. To be added. To be added. To be added. Method System.Void System.ParamArray To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void System.ParamArray To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void System.ParamArray To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void System.ParamArray To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void To be added. To be added. To be added. To be added. Method System.Void To be added. To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void System.ParamArray To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. Method System.Void System.ParamArray To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/RecordInfoHandler.xml0000644000000000000000000000013213130651643022110 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.591976992 avahi-0.7/avahi-sharp/en/Avahi/RecordInfoHandler.xml0000644000175000017500000000141013130651643023513 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Delegate System.Void To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/EntryGroupStateHandler.xml0000644000000000000000000000013213130651643023175 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.579977259 avahi-0.7/avahi-sharp/en/Avahi/EntryGroupStateHandler.xml0000644000175000017500000000144113130651643024604 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.Delegate System.Void To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/en/Avahi/PaxHeaders.10109/ErrorCodeArgs.xml0000644000000000000000000000013213130651643021261 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.583977167 avahi-0.7/avahi-sharp/en/Avahi/ErrorCodeArgs.xml0000644000175000017500000000246313130651643022675 0ustar00lathiatlathiat00000000000000 avahi-sharp 1.0.0.0 System.EventArgs Constructor To be added. To be added. To be added. Property Avahi.ErrorCode To be added. To be added. To be added. To be added. To be added. avahi-0.7/avahi-sharp/PaxHeaders.10109/RecordBrowser.cs0000644000000000000000000000013213130651643017515 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.563977617 avahi-0.7/avahi-sharp/RecordBrowser.cs0000644000175000017500000001552513130651643021134 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Net; using System.Collections; using System.Runtime.InteropServices; using System.Text; namespace Avahi { public delegate void RecordInfoHandler (object o, RecordInfoArgs args); internal delegate void RecordBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr name, ushort clazz, ushort type, IntPtr rdata, int size, LookupResultFlags flags, IntPtr userdata); public enum RecordClass { In = 1 } public enum RecordType { A = 1, Ns = 2, Cname = 5, Soa = 6, Ptr = 12, Hinfo = 13, Mx = 15, Txt = 16, Aaa = 28, Srv = 33 } public struct RecordInfo { public int NetworkInterface; public Protocol Protocol; public string Name; public RecordClass Class; public RecordType Type; public byte[] Data; public LookupResultFlags Flags; } public class RecordInfoArgs : EventArgs { private RecordInfo record; public RecordInfo Record { get { return record; } } public RecordInfoArgs (RecordInfo record) { this.record = record; } } public class RecordBrowser : BrowserBase, IDisposable { private IntPtr handle; private ArrayList infos = new ArrayList (); private Client client; private int iface; private Protocol proto; private string name; private RecordClass clazz; private RecordType type; private LookupFlags flags; private RecordBrowserCallback cb; private ArrayList addListeners = new ArrayList (); private ArrayList removeListeners = new ArrayList (); [DllImport ("avahi-client")] private static extern IntPtr avahi_record_browser_new (IntPtr client, int iface, Protocol proto, byte[] name, ushort clazz, ushort type, LookupFlags flags, RecordBrowserCallback cb, IntPtr userdata); [DllImport ("avahi-client")] private static extern void avahi_record_browser_free (IntPtr handle); public event RecordInfoHandler RecordAdded { add { addListeners.Add (value); Start (); } remove { addListeners.Remove (value); Stop (false); } } public event RecordInfoHandler RecordRemoved { add { removeListeners.Add (value); Start (); } remove { removeListeners.Remove (value); Stop (false); } } public RecordInfo[] Records { get { return (RecordInfo[]) infos.ToArray (typeof (RecordInfo)); } } public RecordBrowser (Client client, string name, RecordType type) : this (client, -1, Protocol.Unspecified, name, RecordClass.In, type, LookupFlags.None) { } public RecordBrowser (Client client, int iface, Protocol proto, string name, RecordClass clazz, RecordType type, LookupFlags flags) { this.client = client; this.iface = iface; this.proto = proto; this.name = name; this.clazz = clazz; this.type = type; this.flags = flags; cb = OnRecordBrowserCallback; } ~RecordBrowser () { Dispose (); } public void Dispose () { Stop (true); } private void Start () { if (client.Handle == IntPtr.Zero || handle != IntPtr.Zero || (addListeners.Count == 0 && removeListeners.Count == 0)) return; lock (client) { handle = avahi_record_browser_new (client.Handle, iface, proto, Utility.StringToBytes (name), (ushort) clazz, (ushort) type, flags, cb, IntPtr.Zero); if (handle == IntPtr.Zero) client.ThrowError (); } } private void Stop (bool force) { if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero && (force || (addListeners.Count == 0 && removeListeners.Count == 0))) { lock (client) { avahi_record_browser_free (handle); handle = IntPtr.Zero; } } } private void OnRecordBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr name, ushort clazz, ushort type, IntPtr rdata, int size, LookupResultFlags flags, IntPtr userdata) { RecordInfo info; info.NetworkInterface = iface; info.Protocol = proto; info.Name = Utility.PtrToString (name); info.Class = (RecordClass) clazz; info.Type = (RecordType) type; info.Flags = flags; info.Data = new byte[size]; if (rdata != IntPtr.Zero) { Marshal.Copy (rdata, info.Data, 0, size); } switch (bevent) { case BrowserEvent.Added: infos.Add (info); foreach (RecordInfoHandler handler in addListeners) handler (this, new RecordInfoArgs (info)); break; case BrowserEvent.Removed: infos.Remove (info); foreach (RecordInfoHandler handler in removeListeners) handler (this, new RecordInfoArgs (info)); break; default: EmitBrowserEvent (bevent); break; } } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/ResolverBase.cs0000644000000000000000000000013213130651643017327 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.563977617 avahi-0.7/avahi-sharp/ResolverBase.cs0000644000175000017500000000201313130651643020732 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; namespace Avahi { public abstract class ResolverBase { public event ErrorCodeHandler Failed; internal void EmitFailure (ErrorCode code) { if (Failed != null) Failed (this, new ErrorCodeArgs (code)); } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/Client.cs0000644000000000000000000000013213130651643016151 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.559977703 avahi-0.7/avahi-sharp/Client.cs0000644000175000017500000002547013130651643017570 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Threading; using System.Collections; using System.Runtime.InteropServices; using Mono.Unix; using Mono.Unix.Native; using Stdlib = Mono.Unix.Native.Stdlib; namespace Avahi { internal enum ResolverEvent { Found, Failure } internal enum BrowserEvent { Added, Removed, CacheExhausted, AllForNow, Failure } internal delegate int PollCallback (IntPtr ufds, uint nfds, int timeout); internal delegate void ClientCallback (IntPtr client, ClientState state, IntPtr userData); public delegate void ClientStateHandler (object o, ClientStateArgs state); public class ClientStateArgs : EventArgs { private ClientState state; private ErrorCode error; public ClientState State { get { return state; } } public ErrorCode Error { get { return error; } } public ClientStateArgs (ClientState state, ErrorCode error) { this.state = state; this.error = error; } } public enum Protocol { Unspecified = -1, IPv4 = 0, IPv6 = 1 } internal enum ServerState { Invalid, Registering, Running, Collision } public enum ClientState { Registering = ServerState.Registering, Running = ServerState.Running, Collision = ServerState.Collision, Failure = 100, Connecting = 101 } [Flags] public enum LookupFlags { None = 0, UseWideArea = 1, UseMulticast = 2, NoTxt = 4, NoAddress = 8 } [Flags] public enum LookupResultFlags { None = 0, Cached = 1, WideArea = 2, Multicast = 4, Local = 8, OurOwn = 16, } [Flags] public enum ClientFlags { None = 0, IgnoreUserConfig = 1, NoFail = 2 } public class Client : IDisposable { private IntPtr handle; private ClientCallback cb; private PollCallback pollcb; private IntPtr spoll; private Thread thread; [DllImport ("avahi-client")] private static extern IntPtr avahi_client_new (IntPtr poll, ClientFlags flags, ClientCallback handler, IntPtr userData, out int error); [DllImport ("avahi-client")] private static extern void avahi_client_free (IntPtr handle); [DllImport ("avahi-client")] private static extern IntPtr avahi_client_get_version_string (IntPtr handle); [DllImport ("avahi-client")] private static extern IntPtr avahi_client_get_host_name (IntPtr handle); [DllImport ("avahi-client")] private static extern IntPtr avahi_client_get_domain_name (IntPtr handle); [DllImport ("avahi-client")] private static extern IntPtr avahi_client_get_host_name_fqdn (IntPtr handle); [DllImport ("avahi-client")] private static extern ClientState avahi_client_get_state (IntPtr handle); [DllImport ("avahi-client")] private static extern int avahi_client_errno (IntPtr handle); [DllImport ("avahi-common")] private static extern IntPtr avahi_simple_poll_new (); [DllImport ("avahi-common")] private static extern IntPtr avahi_simple_poll_get (IntPtr spoll); [DllImport ("avahi-common")] private static extern void avahi_simple_poll_free (IntPtr spoll); [DllImport ("avahi-common")] private static extern int avahi_simple_poll_loop (IntPtr spoll); [DllImport ("avahi-common")] private static extern void avahi_simple_poll_set_func (IntPtr spoll, PollCallback cb); [DllImport ("avahi-common")] private static extern void avahi_simple_poll_quit (IntPtr spoll); [DllImport ("avahi-client")] private static extern uint avahi_client_get_local_service_cookie (IntPtr client); [DllImport ("avahi-common")] private static extern int avahi_service_name_join (IntPtr buf, int len, byte[] name, byte[] type, byte[] domain); [DllImport ("avahi-common")] private static extern int avahi_service_name_split (byte[] service, IntPtr name, int name_len, IntPtr type, int type_len, IntPtr domain, int domain_len); [DllImport ("libc")] private static extern int poll(IntPtr ufds, uint nfds, int timeout); public event ClientStateHandler StateChanged; internal IntPtr Handle { get { return handle; } } public string Version { get { lock (this) { return Utility.PtrToString (avahi_client_get_version_string (handle)); } } } public string HostName { get { lock (this) { return Utility.PtrToString (avahi_client_get_host_name (handle)); } } } public string DomainName { get { lock (this) { return Utility.PtrToString (avahi_client_get_domain_name (handle)); } } } public string HostNameFqdn { get { lock (this) { return Utility.PtrToString (avahi_client_get_host_name_fqdn (handle)); } } } public ClientState State { get { lock (this) { return (ClientState) avahi_client_get_state (handle); } } } public uint LocalServiceCookie { get { lock (this) { return avahi_client_get_local_service_cookie (handle); } } } internal ErrorCode LastError { get { lock (this) { return (ErrorCode) avahi_client_errno (handle); } } } public Client (ClientFlags flags) { spoll = avahi_simple_poll_new (); pollcb = OnPollCallback; avahi_simple_poll_set_func (spoll, pollcb); IntPtr poll = avahi_simple_poll_get (spoll); cb = OnClientCallback; int error; handle = avahi_client_new (poll, flags, cb, IntPtr.Zero, out error); if (error != 0) throw new ClientException (error); thread = new Thread (PollLoop); thread.IsBackground = true; thread.Start (); } public Client () : this (ClientFlags.None) { } ~Client () { Dispose (); } public void Dispose () { if (handle != IntPtr.Zero) { lock (this) { avahi_client_free (handle); handle = IntPtr.Zero; avahi_simple_poll_quit (spoll); Monitor.Wait (this); avahi_simple_poll_free (spoll); } } } public static string JoinServiceName (string name, string type, string domain) { int len = 4 * (name.Length + type.Length + domain.Length) + 4; IntPtr buf = Stdlib.malloc ((ulong) len); int ret = avahi_service_name_join (buf, len, Utility.StringToBytes (name), Utility.StringToBytes (type), Utility.StringToBytes (domain)); if (ret < 0) { Utility.Free (buf); return null; // FIXME, should throw exception } string service = Utility.PtrToString (buf); Utility.Free (buf); return service; } public static void SplitServiceName (string service, out string name, out string type, out string domain) { int len = 1024; IntPtr namePtr = Stdlib.malloc ((ulong) len); IntPtr typePtr = Stdlib.malloc ((ulong) len); IntPtr domainPtr = Stdlib.malloc ((ulong) len); int ret = avahi_service_name_split (Utility.StringToBytes (service), namePtr, len, typePtr, len, domainPtr, len); if (ret < 0) { Utility.Free (namePtr); Utility.Free (typePtr); Utility.Free (domainPtr); name = null; type = null; domain = null; return; } name = Utility.PtrToString (namePtr); type = Utility.PtrToString (typePtr); domain = Utility.PtrToString (domainPtr); Utility.Free (namePtr); Utility.Free (typePtr); Utility.Free (domainPtr); } internal void ThrowError () { ErrorCode error = LastError; if (error != ErrorCode.Ok) throw new ClientException (error); } private void OnClientCallback (IntPtr client, ClientState state, IntPtr userData) { if (StateChanged != null) StateChanged (this, new ClientStateArgs (state, LastError)); } private int OnPollCallback (IntPtr ufds, uint nfds, int timeout) { Monitor.Exit (this); int result = poll (ufds, nfds, timeout); Monitor.Enter (this); return result; } private void PollLoop () { try { lock (this) { avahi_simple_poll_loop (spoll); Monitor.Pulse (this); } } catch (Exception e) { Console.Error.WriteLine ("Error in avahi-sharp event loop: " + e); } } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/BrowserBase.cs0000644000000000000000000000013213130651643017151 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.559977703 avahi-0.7/avahi-sharp/BrowserBase.cs0000644000175000017500000000312213130651643020556 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; namespace Avahi { public abstract class BrowserBase { public event EventHandler CacheExhausted; public event EventHandler AllForNow; public event EventHandler Failed; internal void EmitBrowserEvent (BrowserEvent bevent) { switch (bevent) { case BrowserEvent.CacheExhausted: if (CacheExhausted != null) CacheExhausted (this, new EventArgs ()); break; case BrowserEvent.AllForNow: if (AllForNow != null) AllForNow (this, new EventArgs ()); break; case BrowserEvent.Failure: if (Failed != null) Failed (this, new EventArgs ()); break; default: break; } } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/ServiceResolver.cs0000644000000000000000000000013213130651643020055 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.567977527 avahi-0.7/avahi-sharp/ServiceResolver.cs0000644000175000017500000002076013130651643021471 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Collections; using System.Net; using System.Runtime.InteropServices; using System.Text; using Mono.Unix; namespace Avahi { internal delegate void ServiceResolverCallback (IntPtr resolver, int iface, Protocol proto, ResolverEvent revent, IntPtr name, IntPtr type, IntPtr domain, IntPtr host, IntPtr address, UInt16 port, IntPtr txt, LookupResultFlags flags, IntPtr userdata); public class ServiceResolver : ResolverBase, IDisposable { private IntPtr handle; private ServiceInfo currentInfo; private Client client; private int iface; private Protocol proto; private string name; private string type; private string domain; private Protocol aproto; private LookupFlags flags; private ServiceResolverCallback cb; private ArrayList foundListeners = new ArrayList (); private ArrayList timeoutListeners = new ArrayList (); [DllImport ("avahi-client")] private static extern IntPtr avahi_service_resolver_new (IntPtr client, int iface, Protocol proto, byte[] name, byte[] type, byte[] domain, Protocol aproto, LookupFlags flags, ServiceResolverCallback cb, IntPtr userdata); [DllImport ("avahi-common")] private static extern IntPtr avahi_string_list_get_next (IntPtr list); [DllImport ("avahi-common")] private static extern IntPtr avahi_string_list_get_text (IntPtr list); [DllImport ("avahi-common")] private static extern int avahi_string_list_get_size (IntPtr list); [DllImport ("avahi-client")] private static extern void avahi_service_resolver_free (IntPtr handle); public event ServiceInfoHandler Found { add { foundListeners.Add (value); Start (); } remove { foundListeners.Remove (value); Stop (false); } } public event EventHandler Timeout { add { timeoutListeners.Add (value); Start (); } remove { timeoutListeners.Remove (value); Stop (false); } } public ServiceInfo Service { get { return currentInfo; } } public ServiceResolver (Client client, string name, string type, string domain) : this (client, -1, Protocol.Unspecified, name, type, domain, Protocol.Unspecified, LookupFlags.None) { } public ServiceResolver (Client client, ServiceInfo service) : this (client, service.NetworkInterface, service.Protocol, service.Name, service.ServiceType, service.Domain, Protocol.Unspecified, GetLookupFlags (service.Flags)) { } public ServiceResolver (Client client, int iface, Protocol proto, string name, string type, string domain, Protocol aproto, LookupFlags flags) { this.client = client; this.iface = iface; this.proto = proto; this.name = name; this.type = type; this.domain = domain; this.aproto = aproto; this.flags = flags; cb = OnServiceResolverCallback; } ~ServiceResolver () { Dispose (); } public void Dispose () { Stop (true); } private void Start () { if (client.Handle == IntPtr.Zero || handle != IntPtr.Zero || (foundListeners.Count == 0 && timeoutListeners.Count == 0)) return; lock (client) { handle = avahi_service_resolver_new (client.Handle, iface, proto, Utility.StringToBytes (name), Utility.StringToBytes (type), Utility.StringToBytes (domain), aproto, flags, cb, IntPtr.Zero); if (handle == IntPtr.Zero) client.ThrowError (); } } private void Stop (bool force) { if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero && (force || (foundListeners.Count == 0 && timeoutListeners.Count == 0))) { lock (client) { avahi_service_resolver_free (handle); handle = IntPtr.Zero; } } } private void OnServiceResolverCallback (IntPtr resolver, int iface, Protocol proto, ResolverEvent revent, IntPtr name, IntPtr type, IntPtr domain, IntPtr host, IntPtr address, UInt16 port, IntPtr txt, LookupResultFlags flags, IntPtr userdata) { ServiceInfo info; info.NetworkInterface = iface; info.Protocol = proto; info.Domain = Utility.PtrToString (domain); info.ServiceType = Utility.PtrToString (type); info.Name = Utility.PtrToString (name); info.HostName = Utility.PtrToString (host); info.Address = Utility.PtrToAddress (address); info.Port = port; if (proto == Protocol.IPv6) info.Address.ScopeId = iface; ArrayList txtlist = new ArrayList (); for (IntPtr l = txt; l != IntPtr.Zero; l = avahi_string_list_get_next (l)) { IntPtr buf = avahi_string_list_get_text (l); int len = avahi_string_list_get_size (l); byte[] txtbuf = new byte[len]; Marshal.Copy (buf, txtbuf, 0, len); txtlist.Add (txtbuf); } info.Text = (byte[][]) txtlist.ToArray (typeof (byte[])); info.Flags = flags; switch (revent) { case ResolverEvent.Found: currentInfo = info; foreach (ServiceInfoHandler handler in foundListeners) handler (this, new ServiceInfoArgs (info)); break; case ResolverEvent.Failure: EmitFailure (client.LastError); break; } } private static LookupFlags GetLookupFlags (LookupResultFlags rflags) { LookupFlags ret = LookupFlags.None; if ((rflags & LookupResultFlags.Multicast) > 0) ret |= LookupFlags.UseMulticast; if ((rflags & LookupResultFlags.WideArea) > 0) ret |= LookupFlags.UseWideArea; return ret; } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/AssemblyInfo.cs0000644000000000000000000000013213130651643017326 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.559977703 avahi-0.7/avahi-sharp/AssemblyInfo.cs0000644000175000017500000000323513130651643020740 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System.Reflection; using System.Runtime.CompilerServices; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly: AssemblyTitle("avahi-sharp")] [assembly: AssemblyDescription("Mono bindings for the Avahi mDNS/DNS-SD stack")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("")] [assembly: AssemblyCopyright("(C) 2005 James Willcox ")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0")] avahi-0.7/avahi-sharp/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016437 xustar0030 mtime=1499681801.665070032 30 atime=1499681806.820954722 30 ctime=1499681850.559977703 avahi-0.7/avahi-sharp/Makefile.in0000644000175000017500000005412513130652011020055 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = avahi-sharp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(monodocdir)" DATA = $(monodoc_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ASSEMBLY = avahi-sharp.dll CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config AVAHISOURCES = \ $(srcdir)/AddressResolver.cs \ $(srcdir)/AssemblyInfo.cs \ $(srcdir)/BrowserBase.cs \ $(srcdir)/Client.cs \ $(srcdir)/ClientException.cs \ $(srcdir)/DomainBrowser.cs \ $(srcdir)/EntryGroup.cs \ $(srcdir)/HostNameResolver.cs \ $(srcdir)/RecordBrowser.cs \ $(srcdir)/ResolverBase.cs \ $(srcdir)/ServiceBrowser.cs \ $(srcdir)/ServiceResolver.cs \ $(srcdir)/ServiceTypeBrowser.cs \ $(srcdir)/Utility.cs EXTRA_DIST = \ $(AVAHISOURCES) \ $(srcdir)/AvahiTest.cs \ $(srcdir)/avahi.snk \ $(srcdir)/$(ASSEMBLY).config.in \ $(srcdir)/avahi-sharp-docs.source \ $(srcdir)/en/*.xml \ $(srcdir)/en/*/*.xml \ $(srcdir)/gencfg.sh @HAVE_DBUS_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@monodocdir = $(MONODOC_DIR) @HAVE_DBUS_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@monodoc_DATA = avahi-sharp-docs.zip avahi-sharp-docs.tree avahi-sharp-docs.source all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-sharp/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-sharp/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-monodocDATA: $(monodoc_DATA) @$(NORMAL_INSTALL) @list='$(monodoc_DATA)'; test -n "$(monodocdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(monodocdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(monodocdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(monodocdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(monodocdir)" || exit $$?; \ done uninstall-monodocDATA: @$(NORMAL_UNINSTALL) @list='$(monodoc_DATA)'; test -n "$(monodocdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(monodocdir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(monodocdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @HAVE_DBUS_FALSE@install-data-hook: @HAVE_MONO_FALSE@install-data-hook: @HAVE_DBUS_FALSE@uninstall-hook: @HAVE_MONO_FALSE@uninstall-hook: clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-monodocDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-data-hook install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-monodocDATA @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) uninstall-hook .MAKE: install-am install-data-am install-strip uninstall-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-hook install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-monodocDATA install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-hook uninstall-monodocDATA .PRECIOUS: Makefile $(ASSEMBLY): $(AVAHISOURCES) $(AM_V_GEN)MONO_SHARED_DIR=. mcs -keyfile:$(srcdir)/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -r:Mono.Posix $(ASSEMBLY).config: $(ASSEMBLY).config.in $(AM_V_GEN)$(srcdir)/gencfg.sh $(top_builddir)/avahi-client/libavahi-client.la \ $(top_builddir)/avahi-common/libavahi-common.la \ $(top_builddir)/avahi-glib/libavahi-glib.la < $< > $@ @HAVE_DBUS_TRUE@@HAVE_MONO_TRUE@all: $(ASSEMBLY) $(ASSEMBLY).config @HAVE_DBUS_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@update-docs: $(ASSEMBLY) @HAVE_DBUS_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@ $(AM_V_GEN)$(MONODOCER) -assembly:$(ASSEMBLY) -path:en @HAVE_DBUS_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@avahi-sharp-docs.zip: avahi-sharp-docs.tree @HAVE_DBUS_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@avahi-sharp-docs.tree: $(srcdir)/en/*/* @HAVE_DBUS_TRUE@@HAVE_MONODOC_TRUE@@HAVE_MONO_TRUE@ $(AM_V_GEN)$(MDASSEMBLER) --out avahi-sharp-docs --ecma $(srcdir)/en @HAVE_DBUS_TRUE@@HAVE_MONO_TRUE@install-data-hook: $(ASSEMBLY) @HAVE_DBUS_TRUE@@HAVE_MONO_TRUE@ $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) @HAVE_DBUS_TRUE@@HAVE_MONO_TRUE@uninstall-hook: $(ASSEMBLY) @HAVE_DBUS_TRUE@@HAVE_MONO_TRUE@ $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-sharp/PaxHeaders.10109/Utility.cs0000644000000000000000000000013213130651643016376 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.567977527 avahi-0.7/avahi-sharp/Utility.cs0000644000175000017500000000644113130651643020012 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Net; using System.Text; using System.Runtime.InteropServices; using Mono.Unix; using Mono.Unix.Native; using Stdlib = Mono.Unix.Native.Stdlib; namespace Avahi { internal class Utility { [DllImport ("libc")] private static extern int strlen (IntPtr ptr); [DllImport ("avahi-common")] private static extern IntPtr avahi_address_snprint (IntPtr buf, int size, IntPtr address); [DllImport ("avahi-common")] private static extern IntPtr avahi_address_parse (IntPtr str, Protocol proto, IntPtr ret); public static string PtrToString (IntPtr ptr) { if (ptr == IntPtr.Zero) return null; int len = strlen (ptr); byte[] bytes = new byte[len]; Marshal.Copy (ptr, bytes, 0, len); return Encoding.UTF8.GetString (bytes); } public static string PtrToStringFree (IntPtr ptr) { if (ptr == IntPtr.Zero) return null; string ret = PtrToString (ptr); Free (ptr); return ret; } public static byte[] StringToBytes (string str) { if (str == null) return null; return Encoding.UTF8.GetBytes (str + "\0"); // lame. } private static IntPtr StringToPtr (string str) { if (str == null) return IntPtr.Zero; byte[] bytes = Utility.StringToBytes (str); IntPtr buf = Stdlib.malloc ((uint) bytes.Length + 1); Marshal.Copy (bytes, 0, buf, bytes.Length); Marshal.WriteByte (buf, bytes.Length, 0); return buf; } public static void Free (IntPtr ptr) { Stdlib.free (ptr); } public static IntPtr AddressToPtr (IPAddress address) { IntPtr straddr = Utility.StringToPtr (address.ToString ()); IntPtr addrPtr = Stdlib.malloc (32); avahi_address_parse (straddr, Protocol.Unspecified, addrPtr); Utility.Free (straddr); return addrPtr; } public static IPAddress PtrToAddress (IntPtr ptr) { IPAddress address = null; if (ptr != IntPtr.Zero) { IntPtr buf = Stdlib.malloc (256); IntPtr addrPtr = avahi_address_snprint (buf, 256, ptr); address = IPAddress.Parse (Utility.PtrToString (addrPtr)); Utility.Free (addrPtr); } return address; } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/HostNameResolver.cs0000644000000000000000000000013213130651643020173 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.563977617 avahi-0.7/avahi-sharp/HostNameResolver.cs0000644000175000017500000001312113130651643021600 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Collections; using System.Net; using System.Runtime.InteropServices; using System.Text; using Mono.Unix; namespace Avahi { internal delegate void HostNameResolverCallback (IntPtr resolver, int iface, Protocol proto, ResolverEvent revent, IntPtr hostname, IntPtr address, LookupResultFlags flags, IntPtr userdata); public class HostNameResolver : ResolverBase, IDisposable { private IntPtr handle; private Client client; private int iface; private Protocol proto; private string hostname; private Protocol aproto; private LookupFlags flags; private HostNameResolverCallback cb; private IPAddress currentAddress; private string currentHost; private ArrayList foundListeners = new ArrayList (); private ArrayList timeoutListeners = new ArrayList (); [DllImport ("avahi-client")] private static extern IntPtr avahi_host_name_resolver_new (IntPtr client, int iface, Protocol proto, byte[] hostname, Protocol aproto, LookupFlags flags, HostNameResolverCallback cb, IntPtr userdata); [DllImport ("avahi-client")] private static extern void avahi_host_name_resolver_free (IntPtr handle); public event HostAddressHandler Found { add { foundListeners.Add (value); Start (); } remove { foundListeners.Remove (value); Stop (false); } } public event EventHandler Timeout { add { timeoutListeners.Add (value); Start (); } remove { timeoutListeners.Remove (value); Stop (false); } } public IPAddress Address { get { return currentAddress; } } public string HostName { get { return currentHost; } } public HostNameResolver (Client client, string hostname) : this (client, -1, Protocol.Unspecified, hostname, Protocol.Unspecified, LookupFlags.None) { } public HostNameResolver (Client client, int iface, Protocol proto, string hostname, Protocol aproto, LookupFlags flags) { this.client = client; this.iface = iface; this.proto = proto; this.hostname = hostname; this.aproto = aproto; this.flags = flags; cb = OnHostNameResolverCallback; } ~HostNameResolver () { Dispose (); } public void Dispose () { Stop (true); } private void Start () { if (client.Handle == IntPtr.Zero || handle != IntPtr.Zero || (foundListeners.Count == 0 && timeoutListeners.Count == 0)) return; lock (client) { handle = avahi_host_name_resolver_new (client.Handle, iface, proto, Utility.StringToBytes (hostname), aproto, flags, cb, IntPtr.Zero); if (handle == IntPtr.Zero) client.ThrowError (); } } private void Stop (bool force) { if (client.Handle != IntPtr.Zero && handle != IntPtr.Zero && (force || (foundListeners.Count == 0 && timeoutListeners.Count == 0))) { lock (client) { avahi_host_name_resolver_free (handle); handle = IntPtr.Zero; } } } private void OnHostNameResolverCallback (IntPtr resolver, int iface, Protocol proto, ResolverEvent revent, IntPtr hostname, IntPtr address, LookupResultFlags flags, IntPtr userdata) { switch (revent) { case ResolverEvent.Found: currentAddress = Utility.PtrToAddress (address); currentHost = Utility.PtrToString (hostname); foreach (HostAddressHandler handler in foundListeners) handler (this, new HostAddressArgs (currentHost, currentAddress)); break; case ResolverEvent.Failure: EmitFailure (client.LastError); break; } } } } avahi-0.7/avahi-sharp/PaxHeaders.10109/avahi.snk0000644000000000000000000000013213130651643016211 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.567977527 avahi-0.7/avahi-sharp/avahi.snk0000644000175000017500000000112413130651643017616 0ustar00lathiatlathiat00000000000000$RSA2…X~•š­ÙR¹Ð`¶‘Q­!í+9™Þ"dG*yÒë:Õ%6˜ââ%Ì,Rδ/=„Þu®ÃôËÚ)O=Í™*?)m½#›ñâÒÑŸ$¸‚žÈ$Ñîyºw,]Õ:  vßîÌAVŠ©d4*0¨OráS±Éòª>Á¹½¥Yðlž²ƒ+/;­˜¨ºG]c¹Ã—' õú“$7'Ôn³îps¹ÄKd¨ýyÆ¡-âA@áýÕšÜvÅv ¼ ÄB#CYZÝÊ&{.Ô):#ê(ëç)»0|"Š#ÅÌ“¡Xë1a¾¿NµLóbÑ([ ÿý?!®4êg¯á)¿Ôj ½Ù9hQ–1‚~*¾fðVÇüve=À˜ M7!µ¯ Úw"Òï‰+èš@Úç†Õx×+_™K7!.ˆDˆœoŽë )n|¾«ÌëTkUú'JÞ­MùÄÆ"DÊ#ûG€áð{ýý˸'Ê4i©; avahi-0.7/avahi-sharp/PaxHeaders.10109/AvahiTest.cs0000644000000000000000000000013213130651643016623 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.567977527 avahi-0.7/avahi-sharp/AvahiTest.cs0000644000175000017500000001063513130651643020237 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Collections; using System.Text; using System.Net; using Avahi; public class AvahiTest { private static Client client; private static ArrayList objects = new ArrayList (); public static void Main () { client = new Client (); Console.WriteLine ("joined service name: " + Client.JoinServiceName ("FooBar", "_foo", "local")); EntryGroup eg = new EntryGroup (client); eg.StateChanged += OnEntryGroupChanged; eg.AddService ("foobar2", "_dingdong._tcp", client.DomainName, 444, new string[] { "foo=stuff", "bar=stuff2", "baz=stuff3" }); eg.Commit (); BrowseServiceTypes ("local"); Console.WriteLine ("Press enter to quit"); Console.ReadLine (); client.Dispose (); } private static void OnEntryGroupChanged (object o, EntryGroupStateArgs args) { Console.WriteLine ("Entry group status: " + args.State); if (args.State == EntryGroupState.Established) { DomainBrowser browser = new DomainBrowser (client); objects.Add (browser); browser.DomainAdded += OnDomainAdded; } } private static void OnDomainAdded (object o, DomainInfoArgs args) { Console.WriteLine ("Got domain added: " + args.Domain.Domain); // BrowseServiceTypes (args.Domain.Domain); } private static void BrowseServiceTypes (string domain) { ServiceTypeBrowser stb = new ServiceTypeBrowser (client, domain); objects.Add (stb); stb.CacheExhausted += OnCacheExhausted; stb.ServiceTypeAdded += OnServiceTypeAdded; } private static void OnCacheExhausted (object o, EventArgs args) { Console.WriteLine ("Cache is exhausted"); } private static void OnServiceTypeAdded (object o, ServiceTypeInfoArgs args) { Console.WriteLine ("Got service type: " + args.ServiceType.ServiceType); ServiceBrowser sb = new ServiceBrowser (client, args.ServiceType.ServiceType, args.ServiceType.Domain); objects.Add (sb); sb.ServiceAdded += OnServiceAdded; } private static void OnServiceAdded (object o, ServiceInfoArgs args) { // Console.WriteLine ("Got service: " + info.Name); ServiceResolver resolver = new ServiceResolver (client, args.Service); objects.Add (resolver); resolver.Found += OnServiceResolved; } private static void OnServiceResolved (object o, ServiceInfoArgs args) { objects.Remove (o); Console.WriteLine ("Service '{0}' at {1}:{2}", args.Service.Name, args.Service.HostName, args.Service.Port); foreach (byte[] bytes in args.Service.Text) { Console.WriteLine ("Text: " + Encoding.UTF8.GetString (bytes)); } AddressResolver ar = new AddressResolver (client, args.Service.Address); objects.Add (ar); ar.Found += OnAddressResolved; ar.Failed += OnAddressResolverFailed; } private static void OnAddressResolverFailed (object o, ErrorCodeArgs args) { Console.WriteLine ("Failed to resolve '{0}': {1}", (o as AddressResolver).Address, args.ErrorCode); } private static void OnAddressResolved (object o, HostAddressArgs args) { objects.Remove (o); Console.WriteLine ("Resolved {0} to {1}", args.Address, args.Host); HostNameResolver hr = new HostNameResolver (client, args.Host); objects.Add (hr); hr.Found += OnHostNameResolved; } private static void OnHostNameResolved (object o, HostAddressArgs args) { objects.Remove (o); Console.WriteLine ("Resolved {0} to {1}", args.Host, args.Address); } } avahi-0.7/avahi-sharp/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016440 xustar0030 mtime=1499681699.119370306 30 atime=1499681796.805178752 30 ctime=1499681850.559977703 avahi-0.7/avahi-sharp/Makefile.am0000644000175000017500000000507713130651643020060 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. ASSEMBLY = avahi-sharp.dll CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(ASSEMBLY).config AVAHISOURCES = \ $(srcdir)/AddressResolver.cs \ $(srcdir)/AssemblyInfo.cs \ $(srcdir)/BrowserBase.cs \ $(srcdir)/Client.cs \ $(srcdir)/ClientException.cs \ $(srcdir)/DomainBrowser.cs \ $(srcdir)/EntryGroup.cs \ $(srcdir)/HostNameResolver.cs \ $(srcdir)/RecordBrowser.cs \ $(srcdir)/ResolverBase.cs \ $(srcdir)/ServiceBrowser.cs \ $(srcdir)/ServiceResolver.cs \ $(srcdir)/ServiceTypeBrowser.cs \ $(srcdir)/Utility.cs EXTRA_DIST = \ $(AVAHISOURCES) \ $(srcdir)/AvahiTest.cs \ $(srcdir)/avahi.snk \ $(srcdir)/$(ASSEMBLY).config.in \ $(srcdir)/avahi-sharp-docs.source \ $(srcdir)/en/*.xml \ $(srcdir)/en/*/*.xml \ $(srcdir)/gencfg.sh $(ASSEMBLY): $(AVAHISOURCES) $(AM_V_GEN)MONO_SHARED_DIR=. mcs -keyfile:$(srcdir)/avahi.snk -target:library -out:$@ -debug $(AVAHISOURCES) -r:Mono.Posix $(ASSEMBLY).config: $(ASSEMBLY).config.in $(AM_V_GEN)$(srcdir)/gencfg.sh $(top_builddir)/avahi-client/libavahi-client.la \ $(top_builddir)/avahi-common/libavahi-common.la \ $(top_builddir)/avahi-glib/libavahi-glib.la < $< > $@ if HAVE_MONO if HAVE_DBUS all: $(ASSEMBLY) $(ASSEMBLY).config if HAVE_MONODOC update-docs: $(ASSEMBLY) $(AM_V_GEN)$(MONODOCER) -assembly:$(ASSEMBLY) -path:en avahi-sharp-docs.zip: avahi-sharp-docs.tree avahi-sharp-docs.tree: $(srcdir)/en/*/* $(AM_V_GEN)$(MDASSEMBLER) --out avahi-sharp-docs --ecma $(srcdir)/en monodocdir = $(MONODOC_DIR) monodoc_DATA = avahi-sharp-docs.zip avahi-sharp-docs.tree avahi-sharp-docs.source endif install-data-hook: $(ASSEMBLY) $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /i $(ASSEMBLY) /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) uninstall-hook: $(ASSEMBLY) $(AM_V_GEN)MONO_SHARED_DIR=. $(GACUTIL) /u avahi-sharp /package avahi-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) endif endif avahi-0.7/avahi-sharp/PaxHeaders.10109/avahi-sharp-docs.source0000644000000000000000000000013213130651643020757 xustar0030 mtime=1499681699.123370216 30 atime=1499681699.123370216 30 ctime=1499681850.571977438 avahi-0.7/avahi-sharp/avahi-sharp-docs.source0000644000175000017500000000020113130651643022357 0ustar00lathiatlathiat00000000000000 avahi-0.7/avahi-sharp/PaxHeaders.10109/ClientException.cs0000644000000000000000000000013213130651643020030 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.563977617 avahi-0.7/avahi-sharp/ClientException.cs0000644000175000017500000000633013130651643021441 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ using System; using System.Runtime.InteropServices; namespace Avahi { public enum ErrorCode { Ok = 0, Failure = -1, BadState = -2, InvalidHostName = - 3, InvalidDomainName = -4, NoNetwork = -5, InvalidTTL = -6, IsPattern = -7, Collision = -8, InvalidRecord = -9, InvalidServiceName = -10, InvalidServiceType = -11, InvalidPort = -12, InvalidKey = -13, InvalidAddress = -14, Timeout = -15, TooManyClients = -16, TooManyObjects = -17, TooManyEntries = -18, OS = -19, AccessDenied = -20, InvalidOperation = -21, DBusError = -22, Disconnected = -23, NoMemory = -24, InvalidObject = -25, NoDaemon = -26, InvalidInterface = -27, InvalidProtocol = -28, InvalidFlags = -29, NotFound = -30, InvalidConfig = -31, VersionMismatch = -32, InvalidServiceSubtype = -33, InvalidPacket = -34, InvalidDnsError = -35, DnsFormErr = -36, DnsServFail = -37, DnsNxDomain = -38, DnsNoTimp = -39, DnsRefused = -40, DnsYxDomain = -41, DnsYxRrSet = -42, DnsNxRrSet = -43, DnsNotAuth = -44, DnsNotZone = -45, InvalidRData = -46, InvalidDnsClass = -47, InvalidDnsType = -48, NotSupported = -49, NotPermitted = -50 } public delegate void ErrorCodeHandler (object o, ErrorCodeArgs args); public class ErrorCodeArgs : EventArgs { private ErrorCode code; public ErrorCode ErrorCode { get { return code; } } public ErrorCodeArgs (ErrorCode code) { this.code = code; } } public class ClientException : ApplicationException { private ErrorCode code; [DllImport ("avahi-common")] private static extern IntPtr avahi_strerror (ErrorCode code); public ErrorCode ErrorCode { get { return code; } } internal ClientException (int code) : this ((ErrorCode) code) { } internal ClientException (ErrorCode code) : base (GetErrorString (code)) { this.code = code; } private static string GetErrorString (ErrorCode code) { IntPtr str = avahi_strerror (code); return Utility.PtrToString (str); } } } avahi-0.7/PaxHeaders.10109/avahi-autoipd0000644000000000000000000000013213130652073014655 xustar0030 mtime=1499681851.207963246 30 atime=1499681851.283961552 30 ctime=1499681851.207963246 avahi-0.7/avahi-autoipd/0000755000175000017500000000000013130652073016341 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-autoipd/PaxHeaders.10109/main.h0000644000000000000000000000013213130651643016031 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681851.203963336 avahi-0.7/avahi-autoipd/main.h0000644000175000017500000000227613130651643017447 0ustar00lathiatlathiat00000000000000#ifndef fooavahimainhfoo #define fooavahimainhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ typedef enum Event { EVENT_NULL, EVENT_PACKET, EVENT_TIMEOUT, EVENT_ROUTABLE_ADDR_CONFIGURED, EVENT_ROUTABLE_ADDR_UNCONFIGURED, EVENT_REFRESH_REQUEST } Event; typedef enum State { STATE_START, STATE_WAITING_PROBE, STATE_PROBING, STATE_WAITING_ANNOUNCE, STATE_ANNOUNCING, STATE_RUNNING, STATE_SLEEPING, STATE_MAX } State; int is_ll_address(uint32_t addr); #endif avahi-0.7/avahi-autoipd/PaxHeaders.10109/avahi-autoipd.action.linux0000644000000000000000000000013213130651643022024 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681851.207963246 avahi-0.7/avahi-autoipd/avahi-autoipd.action.linux0000755000175000017500000000500113130651643023432 0ustar00lathiatlathiat00000000000000#!/bin/sh # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. set -e # Command line arguments: # $1 event that happened: # BIND: Successfully claimed address # CONFLICT: An IP address conflict happened # UNBIND: The IP address is no longer needed # STOP: The daemon is terminating # $2 interface name # $3 IP adddress PATH="$PATH:/usr/bin:/usr/sbin:/bin:/sbin" # Use a different metric for each interface, so that we can set # identical routes to multiple interfaces. METRIC=$((1000 + `cat "/sys/class/net/$2/ifindex" 2>/dev/null || echo 0`)) if [ -x /bin/ip -o -x /sbin/ip ] ; then # We have the Linux ip tool from the iproute package case "$1" in BIND) ip addr flush dev "$2" label "$2:avahi" ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" ip route add default dev "$2" metric "$METRIC" scope link ||: ;; CONFLICT|UNBIND|STOP) ip route del default dev "$2" metric "$METRIC" scope link ||: ip addr del "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" ;; *) echo "Unknown event $1" >&2 exit 1 ;; esac elif [ -x /bin/ifconfig -o -x /sbin/ifconfig ] ; then # We have the old ifconfig tool case "$1" in BIND) ifconfig "$2:avahi" inet "$3" netmask 255.255.0.0 broadcast 169.254.255.255 up route add default dev "$2:avahi" metric "$METRIC" ||: ;; CONFLICT|STOP|UNBIND) route del default dev "$2:avahi" metric "$METRIC" ||: ifconfig "$2:avahi" down ;; *) echo "Unknown event $1" >&2 exit 1 ;; esac else echo "No network configuration tool found." >&2 exit 1 fi exit 0 avahi-0.7/avahi-autoipd/PaxHeaders.10109/iface.h0000644000000000000000000000013213130651643016154 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681851.203963336 avahi-0.7/avahi-autoipd/iface.h0000644000175000017500000000263713130651643017573 0ustar00lathiatlathiat00000000000000#ifndef fooavahiifacehfoo #define fooavahiifacehfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #include #include "main.h" /* Subscribe to network configuration changes. The only events we are * interested in are when routable addresses are removed/added to the * monitored interface and when our monitored interface disappears. */ /* Return a valid fd that we listen on for events */ int iface_init(int ifindex); /* Process events */ int iface_process(Event *event); void iface_done(void); /* Deduce the initial state of our state machine. If a routable * address is configured for the interface, *state should be set to * STATE_SLEEPING, otherwise STATE_START */ int iface_get_initial_state(State *state); #endif avahi-0.7/avahi-autoipd/PaxHeaders.10109/avahi-autoipd.action.bsd0000644000000000000000000000013213130651643021435 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.083371116 30 ctime=1499681851.207963246 avahi-0.7/avahi-autoipd/avahi-autoipd.action.bsd0000755000175000017500000000235713130651643023056 0ustar00lathiatlathiat00000000000000#!/bin/sh # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. set -e # Command line arguments: # $1 event that happened: # BIND: Successfully claimed address # CONFLICT: An IP address conflict happened # UNBIND: The IP address is no longer needed # STOP: The daemon is terminating # $2 interface name # $3 IP adddress # We have the BSD ifconfig tool case "$1" in BIND) ifconfig "$2" "$3"/16 ;; CONFLICT|STOP|UNBIND) ifconfig "$2" "$3"/16 delete ;; *) echo "Unknown event $1" >&2 exit 1 ;; esac exit 0 avahi-0.7/avahi-autoipd/PaxHeaders.10109/iface-bsd.c0000644000000000000000000000013213130651643016715 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681851.203963336 avahi-0.7/avahi-autoipd/iface-bsd.c0000644000175000017500000003102713130651643020327 0ustar00lathiatlathiat00000000000000/* rcs tags go here */ /* Original author: Bruce M. Simpson */ /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "iface.h" #ifndef IN_LINKLOCAL #define IN_LINKLOCAL(i) (((u_int32_t)(i) & (0xffff0000)) == (0xa9fe0000)) #endif #ifndef elementsof #define elementsof(array) (sizeof(array)/sizeof(array[0])) #endif #ifndef so_set_nonblock #define so_set_nonblock(s, val) \ do { \ int __flags; \ __flags = fcntl((s), F_GETFL); \ if (__flags == -1) \ break; \ if (val != 0) \ __flags |= O_NONBLOCK; \ else \ __flags &= ~O_NONBLOCK; \ (void)fcntl((s), F_SETFL, __flags); \ } while (0) #endif #define MAX_RTMSG_SIZE 2048 struct rtm_dispinfo { u_char *di_buf; ssize_t di_buflen; ssize_t di_len; }; union rtmunion { struct rt_msghdr rtm; struct if_msghdr ifm; struct ifa_msghdr ifam; struct ifma_msghdr ifmam; struct if_announcemsghdr ifan; }; typedef union rtmunion rtmunion_t; struct Address; typedef struct Address Address; struct Address { in_addr_t address; AVAHI_LLIST_FIELDS(Address, addresses); }; static int rtm_dispatch(void); static int rtm_dispatch_newdeladdr(struct rtm_dispinfo *di); static int rtm_dispatch_ifannounce(struct rtm_dispinfo *di); static struct sockaddr *next_sa(struct sockaddr *sa); static int fd = -1; static int ifindex = -1; static AVAHI_LLIST_HEAD(Address, addresses) = NULL; int iface_init(int idx) { fd = socket(PF_ROUTE, SOCK_RAW, AF_INET); if (fd == -1) { daemon_log(LOG_ERR, "socket(PF_ROUTE): %s", strerror(errno)); return (-1); } so_set_nonblock(fd, 1); ifindex = idx; return (fd); } int iface_get_initial_state(State *state) { int mib[6]; char *buf; struct if_msghdr *ifm; struct ifa_msghdr *ifam; char *lim; char *next; struct sockaddr *sa; size_t len; int naddrs; assert(state != NULL); assert(fd != -1); naddrs = 0; mib[0] = CTL_NET; mib[1] = PF_ROUTE; mib[2] = 0; mib[3] = 0; mib[4] = NET_RT_IFLIST; mib[5] = ifindex; if (sysctl(mib, elementsof(mib), NULL, &len, NULL, 0) != 0) { daemon_log(LOG_ERR, "sysctl(NET_RT_IFLIST): %s", strerror(errno)); return (-1); } buf = malloc(len); if (buf == NULL) { daemon_log(LOG_ERR, "malloc(%d): %s", len, strerror(errno)); return (-1); } if (sysctl(mib, elementsof(mib), buf, &len, NULL, 0) != 0) { daemon_log(LOG_ERR, "sysctl(NET_RT_IFLIST): %s", strerror(errno)); free(buf); return (-1); } lim = buf + len; for (next = buf; next < lim; next += ifm->ifm_msglen) { ifm = (struct if_msghdr *)next; if (ifm->ifm_type == RTM_NEWADDR) { ifam = (struct ifa_msghdr *)next; sa = (struct sockaddr *)(ifam + 1); if (sa->sa_family != AF_INET) continue; ++naddrs; } } free(buf); *state = (naddrs > 0) ? STATE_SLEEPING : STATE_START; return (0); } int iface_process(Event *event) { int routable; assert(fd != -1); routable = !!addresses; if (rtm_dispatch() == -1) return (-1); if (routable && !addresses) *event = EVENT_ROUTABLE_ADDR_UNCONFIGURED; else if (!routable && addresses) *event = EVENT_ROUTABLE_ADDR_CONFIGURED; return (0); } void iface_done(void) { Address *a; if (fd != -1) { close(fd); fd = -1; } while ((a = addresses) != NULL) { AVAHI_LLIST_REMOVE(Address, addresses, addresses, a); avahi_free(a); } } /* * Dispatch kernel routing socket messages. */ static int rtm_dispatch(void) { struct msghdr mh; struct iovec iov[1]; struct rt_msghdr *rtm; struct rtm_dispinfo *di; ssize_t len; int retval; di = malloc(sizeof(*di)); if (di == NULL) { daemon_log(LOG_ERR, "malloc(%d): %s", sizeof(*di), strerror(errno)); return (-1); } di->di_buflen = MAX_RTMSG_SIZE; di->di_buf = calloc(MAX_RTMSG_SIZE, 1); if (di->di_buf == NULL) { free(di); daemon_log(LOG_ERR, "calloc(%d): %s", MAX_RTMSG_SIZE, strerror(errno)); return (-1); } memset(&mh, 0, sizeof(mh)); iov[0].iov_base = di->di_buf; iov[0].iov_len = di->di_buflen; mh.msg_iov = iov; mh.msg_iovlen = 1; retval = 0; for (;;) { len = recvmsg(fd, &mh, MSG_DONTWAIT); if (len == -1) { if (errno == EWOULDBLOCK) break; else { daemon_log(LOG_ERR, "recvmsg(): %s", strerror(errno)); retval = -1; break; } } rtm = (void *)di->di_buf; if (rtm->rtm_version != RTM_VERSION) { daemon_log(LOG_ERR, "unknown routing socket message (version %d)\n", rtm->rtm_version); /* this is non-fatal; just ignore it for now. */ continue; } switch (rtm->rtm_type) { case RTM_NEWADDR: case RTM_DELADDR: retval = rtm_dispatch_newdeladdr(di); break; case RTM_IFANNOUNCE: retval = rtm_dispatch_ifannounce(di); break; default: daemon_log(LOG_DEBUG, "%s: rtm_type %d ignored", __func__, rtm->rtm_type); break; } /* * If we got an error; assume our position on the call * stack is enclosed by a level-triggered event loop, * and signal the error condition. */ if (retval != 0) break; } free(di->di_buf); free(di); return (retval); } /* handle link coming or going away */ static int rtm_dispatch_ifannounce(struct rtm_dispinfo *di) { rtmunion_t *rtm = (void *)di->di_buf; assert(rtm->rtm.rtm_type == RTM_IFANNOUNCE); daemon_log(LOG_DEBUG, "%s: IFANNOUNCE for ifindex %d", __func__, rtm->ifan.ifan_index); switch (rtm->ifan.ifan_what) { case IFAN_ARRIVAL: if (rtm->ifan.ifan_index == ifindex) { daemon_log(LOG_ERR, "RTM_IFANNOUNCE IFAN_ARRIVAL, for ifindex %d, which we already manage.", ifindex); return (-1); } break; case IFAN_DEPARTURE: if (rtm->ifan.ifan_index == ifindex) { daemon_log(LOG_ERR, "Interface vanished."); return (-1); } break; default: /* ignore */ break; } return (0); } static struct sockaddr * next_sa(struct sockaddr *sa) { void *p; size_t sa_size; #ifdef SA_SIZE sa_size = SA_SIZE(sa); #else /* This is not foolproof, kernel may round. */ sa_size = sa->sa_len; if (sa_size < sizeof(u_long)) sa_size = sizeof(u_long); #endif p = ((char *)sa) + sa_size; return (struct sockaddr *)p; } /* handle address coming or going away */ static int rtm_dispatch_newdeladdr(struct rtm_dispinfo *di) { Address *ap; struct ifa_msghdr *ifam; struct sockaddr *sa; struct sockaddr_in *sin; int link_local; /* macro to skip to next RTA; has side-effects */ #define SKIPRTA(ifamsgp, rta, sa) \ do { \ if ((ifamsgp)->ifam_addrs & (rta)) \ (sa) = next_sa((sa)); \ } while (0) ifam = &((rtmunion_t *)di->di_buf)->ifam; assert(ifam->ifam_type == RTM_NEWADDR || ifam->ifam_type == RTM_DELADDR); daemon_log(LOG_DEBUG, "%s: %s for iface %d (%s)", __func__, ifam->ifam_type == RTM_NEWADDR ? "NEWADDR" : "DELADDR", ifam->ifam_index, (ifam->ifam_index == ifindex) ? "ours" : "not ours"); if (ifam->ifam_index != ifindex) return (0); if (!(ifam->ifam_addrs & RTA_IFA)) { daemon_log(LOG_ERR, "ifa msg has no RTA_IFA."); return (0); } /* skip over rtmsg padding correctly */ sa = (struct sockaddr *)(ifam + 1); SKIPRTA(ifam, RTA_DST, sa); SKIPRTA(ifam, RTA_GATEWAY, sa); SKIPRTA(ifam, RTA_NETMASK, sa); SKIPRTA(ifam, RTA_GENMASK, sa); SKIPRTA(ifam, RTA_IFP, sa); /* * sa now points to RTA_IFA sockaddr; we are only interested * in updates for routable addresses. */ if (sa->sa_family != AF_INET) { daemon_log(LOG_DEBUG, "%s: RTA_IFA family not AF_INET (=%d)", __func__, sa->sa_family); return (0); } sin = (struct sockaddr_in *)sa; link_local = IN_LINKLOCAL(ntohl(sin->sin_addr.s_addr)); daemon_log(LOG_DEBUG, "%s: %s for %s (%s)", __func__, ifam->ifam_type == RTM_NEWADDR ? "NEWADDR" : "DELADDR", inet_ntoa(sin->sin_addr), link_local ? "link local" : "routable"); if (link_local) return (0); for (ap = addresses; ap; ap = ap->addresses_next) { if (ap->address == sin->sin_addr.s_addr) break; } if (ifam->ifam_type == RTM_DELADDR && ap != NULL) { AVAHI_LLIST_REMOVE(Address, addresses, addresses, ap); avahi_free(ap); } if (ifam->ifam_type == RTM_NEWADDR && ap == NULL) { ap = avahi_new(Address, 1); ap->address = sin->sin_addr.s_addr; AVAHI_LLIST_PREPEND(Address, addresses, addresses, ap); } return (0); #undef SKIPRTA } avahi-0.7/avahi-autoipd/PaxHeaders.10109/dhclient-exit-hook.in0000644000000000000000000000013213130651643020763 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681851.207963246 avahi-0.7/avahi-autoipd/dhclient-exit-hook.in0000755000175000017500000000210113130651643022367 0ustar00lathiatlathiat00000000000000#!/bin/sh # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. case "$reason" in MEDIUM|ARPCHECK|ARPSEND|NBI) ;; PREINIT|BOUND|RENEW|REBIND|REBOOT|STOP|RELEASE) # Stopping avahi-autoipd is left for the enter hook ;; EXPIRE|FAIL|TIMEOUT) if [ -x @sbindir@/avahi-autoipd ] ; then @sbindir@/avahi-autoipd -wD $interface 2> /dev/null fi ;; esac avahi-0.7/avahi-autoipd/PaxHeaders.10109/iface-linux.c0000644000000000000000000000013213130651643017304 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681851.203963336 avahi-0.7/avahi-autoipd/iface-linux.c0000644000175000017500000002034213130651643020714 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef IFLA_RTA #include #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) #endif #ifndef IFA_RTA #include #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) #endif #include "iface.h" static int fd = -1; static int ifindex = -1; typedef struct Address Address; struct Address { uint32_t address; AVAHI_LLIST_FIELDS(Address, addresses); }; AVAHI_LLIST_HEAD(Address, addresses) = NULL; int iface_init(int i) { struct sockaddr_nl addr; int on = 1; if ((fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE)) < 0) { daemon_log(LOG_ERR, "socket(PF_NETLINK): %s", strerror(errno)); goto fail; } memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; addr.nl_groups = RTMGRP_LINK|RTMGRP_IPV4_IFADDR; addr.nl_pid = getpid(); if (bind(fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { daemon_log(LOG_ERR, "bind(): %s", strerror(errno)); goto fail; } if (setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { daemon_log(LOG_ERR, "SO_PASSCRED: %s", strerror(errno)); goto fail; } ifindex = i; return fd; fail: if (fd >= 0) { close(fd); fd = -1; } return -1; } static int process_nlmsg(struct nlmsghdr *n) { assert(n); if (n->nlmsg_type == RTM_NEWLINK || n->nlmsg_type == RTM_DELLINK) { /* A link appeared or was removed */ struct ifinfomsg *ifi; ifi = NLMSG_DATA(n); if (ifi->ifi_family != AF_UNSPEC || (int) ifi->ifi_index != ifindex) return 0; if (n->nlmsg_type == RTM_DELLINK) { daemon_log(LOG_ERR, "Interface vanished."); return -1; } assert(n->nlmsg_type == RTM_NEWLINK); if ((ifi->ifi_flags & IFF_LOOPBACK) || (ifi->ifi_flags & IFF_NOARP) || ifi->ifi_type != ARPHRD_ETHER) { daemon_log(LOG_ERR, "Interface not suitable."); return -1; } } else if (n->nlmsg_type == RTM_NEWADDR || n->nlmsg_type == RTM_DELADDR) { /* An address was added or removed */ struct rtattr *a = NULL; struct ifaddrmsg *ifa; int l; uint32_t address = 0; Address *i; ifa = NLMSG_DATA(n); if (ifa->ifa_family != AF_INET || (int) ifa->ifa_index != ifindex) return 0; l = NLMSG_PAYLOAD(n, sizeof(*ifa)); a = IFA_RTA(ifa); while(RTA_OK(a, l)) { switch(a->rta_type) { case IFA_LOCAL: case IFA_ADDRESS: assert(RTA_PAYLOAD(a) == 4); memcpy(&address, RTA_DATA(a), sizeof(uint32_t)); break; } a = RTA_NEXT(a, l); } if (!address || is_ll_address(address)) return 0; for (i = addresses; i; i = i->addresses_next) if (i->address == address) break; if (n->nlmsg_type == RTM_DELADDR && i) { AVAHI_LLIST_REMOVE(Address, addresses, addresses, i); avahi_free(i); } if (n->nlmsg_type == RTM_NEWADDR && !i) { i = avahi_new(Address, 1); i->address = address; AVAHI_LLIST_PREPEND(Address, addresses, addresses, i); } } return 0; } static int process_response(int wait_for_done, unsigned seq) { assert(fd >= 0); do { size_t bytes; ssize_t r; char replybuf[8*1024]; char cred_msg[CMSG_SPACE(sizeof(struct ucred))]; struct msghdr msghdr; struct cmsghdr *cmsghdr; struct ucred *ucred; struct iovec iov; struct nlmsghdr *p = (struct nlmsghdr *) replybuf; memset(&iov, 0, sizeof(iov)); iov.iov_base = replybuf; iov.iov_len = sizeof(replybuf); memset(&msghdr, 0, sizeof(msghdr)); msghdr.msg_name = (void*) NULL; msghdr.msg_namelen = 0; msghdr.msg_iov = &iov; msghdr.msg_iovlen = 1; msghdr.msg_control = cred_msg; msghdr.msg_controllen = sizeof(cred_msg); msghdr.msg_flags = 0; if ((r = recvmsg(fd, &msghdr, 0)) < 0) { daemon_log(LOG_ERR, "recvmsg() failed: %s", strerror(errno)); return -1; } if (!(cmsghdr = CMSG_FIRSTHDR(&msghdr)) || cmsghdr->cmsg_type != SCM_CREDENTIALS) { daemon_log(LOG_WARNING, "No sender credentials received, ignoring data."); return -1; } ucred = (struct ucred*) CMSG_DATA(cmsghdr); if (ucred->pid != 0) return -1; bytes = (size_t) r; for (; bytes > 0; p = NLMSG_NEXT(p, bytes)) { if (!NLMSG_OK(p, bytes) || bytes < sizeof(struct nlmsghdr) || bytes < p->nlmsg_len) { daemon_log(LOG_ERR, "Netlink packet too small."); return -1; } if (p->nlmsg_type == NLMSG_DONE && wait_for_done && p->nlmsg_seq == seq && (pid_t) p->nlmsg_pid == getpid()) return 0; if (p->nlmsg_type == NLMSG_ERROR) { struct nlmsgerr *e = (struct nlmsgerr *) NLMSG_DATA (p); if (e->error) { daemon_log(LOG_ERR, "Netlink error: %s", strerror(-e->error)); return -1; } } if (process_nlmsg(p) < 0) return -1; } } while (wait_for_done); return 0; } int iface_get_initial_state(State *state) { struct nlmsghdr *n; struct ifinfomsg *ifi; struct ifaddrmsg *ifa; uint8_t req[1024]; int seq = 0; assert(fd >= 0); assert(state); memset(&req, 0, sizeof(req)); n = (struct nlmsghdr*) req; n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); n->nlmsg_type = RTM_GETLINK; n->nlmsg_seq = seq; n->nlmsg_flags = NLM_F_REQUEST|NLM_F_DUMP; n->nlmsg_pid = 0; ifi = NLMSG_DATA(n); ifi->ifi_family = AF_UNSPEC; ifi->ifi_change = -1; if (send(fd, n, n->nlmsg_len, 0) < 0) { daemon_log(LOG_ERR, "send(): %s", strerror(errno)); return -1; } if (process_response(1, 0) < 0) return -1; n->nlmsg_type = RTM_GETADDR; n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifa)); n->nlmsg_seq = ++seq; ifa = NLMSG_DATA(n); ifa->ifa_family = AF_INET; ifa->ifa_index = ifindex; if (send(fd, n, n->nlmsg_len, 0) < 0) { daemon_log(LOG_ERR, "send(): %s", strerror(errno)); return -1; } if (process_response(1, seq) < 0) return -1; *state = addresses ? STATE_SLEEPING : STATE_START; return 0; } int iface_process(Event *event) { int b; assert(fd >= 0); b = !!addresses; if (process_response(0, 0) < 0) return -1; if (b && !addresses) *event = EVENT_ROUTABLE_ADDR_UNCONFIGURED; else if (!b && addresses) *event = EVENT_ROUTABLE_ADDR_CONFIGURED; return 0; } void iface_done(void) { Address *a; if (fd >= 0) { close(fd); fd = -1; } while ((a = addresses)) { AVAHI_LLIST_REMOVE(Address, addresses, addresses, a); avahi_free(a); } } avahi-0.7/avahi-autoipd/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016770 xustar0030 mtime=1499681699.083371116 30 atime=1499681796.805178752 30 ctime=1499681851.199963425 avahi-0.7/avahi-autoipd/Makefile.am0000644000175000017500000000551613130651643020406 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. if ENABLE_AUTOIPD if HAVE_LIBDAEMON pkgsysconfdir=$(sysconfdir)/avahi AM_CFLAGS= \ -I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' \ -DAVAHI_RUNTIME_DIR=\"$(avahi_runtime_dir)/\" \ -DAVAHI_IPCONF_SCRIPT=\"$(pkgsysconfdir)/avahi-autoipd.action\" \ -DAVAHI_IPDATA_DIR=\"$(localstatedir)/lib/avahi-autoipd\" sbin_PROGRAMS = avahi-autoipd avahi_autoipd_SOURCES = \ main.c main.h \ ../avahi-daemon/setproctitle.c ../avahi-daemon/setproctitle.h \ iface.h \ ../avahi-common/malloc.h ../avahi-common/malloc.c \ ../avahi-common/timeval.h ../avahi-common/timeval.c avahi_autoipd_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS) avahi_autoipd_LDADD = $(AM_LDADD) $(LIBDAEMON_LIBS) if TARGET_FREEBSD avahi_autoipd_SOURCES += iface-bsd.c avahi_autoipd_LDADD += -lpcap else avahi_autoipd_SOURCES += iface-linux.c endif nodist_pkgsysconf_SCRIPTS = avahi-autoipd.action if TARGET_FREEBSD avahi-autoipd.action: avahi-autoipd.action.bsd $(AM_V_GEN)cp $< $@ else avahi-autoipd.action: avahi-autoipd.action.linux $(AM_V_GEN)cp $< $@ endif if TARGET_DEBIAN noinst_SCRIPTS = dhclient-enter-hook dhclient-exit-hook dhclient-enter-hook: dhclient-enter-hook.in $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ && \ chmod +x $@ dhclient-exit-hook: dhclient-exit-hook.in $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ && \ chmod +x $@ BUILD = dhclient-exit-hook dhclient-enter-hook dhcliententerdir = $(sysconfdir)/dhcp/dhclient-enter-hooks.d dhclientexitdir = $(sysconfdir)/dhcp/dhclient-exit-hooks.d install-exec-hook: dhclient-exit-hook dhclient-enter-hook $(MKDIR_P) $(DESTDIR)$(dhcliententerdir) $(DESTDIR)$(dhclientexitdir) $(INSTALL) dhclient-enter-hook $(DESTDIR)$(dhcliententerdir)/avahi-autoipd $(INSTALL) dhclient-exit-hook $(DESTDIR)$(dhclientexitdir)/avahi-autoipd uninstall-hook: rm -f $(DESTDIR)$(dhcliententerdir)/avahi-autoipd $(DESTDIR)$(dhclientexitdir)/avahi-autoipd endif endif endif EXTRA_DIST = dhclient-enter-hook.in dhclient-exit-hook.in avahi-autoipd.action.linux avahi-autoipd.action.bsd CLEANFILES = dhclient-enter-hook dhclient-exit-hook avahi-autoipd.action avahi-0.7/avahi-autoipd/PaxHeaders.10109/main.c0000644000000000000000000000013213130651643016024 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681851.203963336 avahi-0.7/avahi-autoipd/main.c0000644000175000017500000013443613130651643017446 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #ifdef HAVE_SYS_FILIO_H #include #endif #include #include #ifdef __FreeBSD__ #include #endif #ifdef __linux__ #include #endif #include #include #ifdef __FreeBSD__ #include #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __linux__ #include #endif #include #include #include #include #include #include #include #include #include "main.h" #include "iface.h" /* An implementation of RFC 3927 */ /* Constants from the RFC */ #define PROBE_WAIT 1 #define PROBE_NUM 3 #define PROBE_MIN 1 #define PROBE_MAX 2 #define ANNOUNCE_WAIT 2 #define ANNOUNCE_NUM 2 #define ANNOUNCE_INTERVAL 2 #define MAX_CONFLICTS 10 #define RATE_LIMIT_INTERVAL 60 #define DEFEND_INTERVAL 10 #define IPV4LL_NETWORK 0xA9FE0000L #define IPV4LL_NETMASK 0xFFFF0000L #define IPV4LL_HOSTMASK 0x0000FFFFL #define IPV4LL_BROADCAST 0xA9FEFFFFL #define ETHER_ADDRLEN 6 #define ETHER_HDR_SIZE (2+2*ETHER_ADDRLEN) #define ARP_PACKET_SIZE (8+4+4+2*ETHER_ADDRLEN) typedef enum ArpOperation { ARP_REQUEST = 1, ARP_RESPONSE = 2 } ArpOperation; typedef struct ArpPacketInfo { ArpOperation operation; uint32_t sender_ip_address, target_ip_address; uint8_t sender_hw_address[ETHER_ADDRLEN], target_hw_address[ETHER_ADDRLEN]; } ArpPacketInfo; typedef struct ArpPacket { uint8_t *ether_header; uint8_t *ether_payload; } ArpPacket; static State state = STATE_START; static int n_iteration = 0; static int n_conflict = 0; static char *interface_name = NULL; static char *pid_file_name = NULL; static uint32_t start_address = 0; static char *argv0 = NULL; static int daemonize = 0; static int wait_for_address = 0; static int use_syslog = 0; static int debug = 0; static int modify_proc_title = 1; static int force_bind = 0; #ifdef HAVE_CHROOT static int no_chroot = 0; #endif static int no_drop_root = 0; static int wrote_pid_file = 0; static char *action_script = NULL; static enum { DAEMON_RUN, DAEMON_KILL, DAEMON_REFRESH, DAEMON_VERSION, DAEMON_HELP, DAEMON_CHECK } command = DAEMON_RUN; typedef enum CalloutEvent { CALLOUT_BIND, CALLOUT_CONFLICT, CALLOUT_UNBIND, CALLOUT_STOP, CALLOUT_MAX } CalloutEvent; static const char * const callout_event_table[CALLOUT_MAX] = { [CALLOUT_BIND] = "BIND", [CALLOUT_CONFLICT] = "CONFLICT", [CALLOUT_UNBIND] = "UNBIND", [CALLOUT_STOP] = "STOP" }; typedef struct CalloutEventInfo { CalloutEvent event; uint32_t address; int ifindex; } CalloutEventInfo; #define RANDOM_DEVICE "/dev/urandom" #define DEBUG(x) \ do { \ if (debug) { \ x; \ } \ } while (0) static void init_rand_seed(void) { int fd; unsigned seed = 0; /* Try to initialize seed from /dev/urandom, to make it a little * less predictable, and to make sure that multiple machines * booted at the same time choose different random seeds. */ if ((fd = open(RANDOM_DEVICE, O_RDONLY)) >= 0) { read(fd, &seed, sizeof(seed)); close(fd); } /* If the initialization failed by some reason, we add the time to the seed */ seed ^= (unsigned) time(NULL); srand(seed); } static uint32_t pick_addr(uint32_t old_addr) { uint32_t addr; do { unsigned r = (unsigned) rand(); /* Reduce to 16 bits */ while (r > 0xFFFF) r = (r >> 16) ^ (r & 0xFFFF); addr = htonl(IPV4LL_NETWORK | (uint32_t) r); } while (addr == old_addr || !is_ll_address(addr)); return addr; } static int load_address(const char *fn, uint32_t *addr) { FILE *f; unsigned a, b, c, d; assert(fn); assert(addr); if (!(f = fopen(fn, "r"))) { if (errno == ENOENT) { *addr = 0; return 0; } daemon_log(LOG_ERR, "fopen() failed: %s", strerror(errno)); goto fail; } if (fscanf(f, "%u.%u.%u.%u\n", &a, &b, &c, &d) != 4) { daemon_log(LOG_ERR, "Parse failure"); goto fail; } fclose(f); *addr = htonl((a << 24) | (b << 16) | (c << 8) | d); return 0; fail: if (f) fclose(f); return -1; } static int save_address(const char *fn, uint32_t addr) { FILE *f; char buf[32]; mode_t u; assert(fn); u = umask(0033); if (!(f = fopen(fn, "w"))) { daemon_log(LOG_ERR, "fopen() failed: %s", strerror(errno)); goto fail; } umask(u); fprintf(f, "%s\n", inet_ntop(AF_INET, &addr, buf, sizeof (buf))); fclose(f); return 0; fail: if (f) fclose(f); umask(u); return -1; } /* * Allocate a buffer with two pointers in front, one of which is * guaranteed to point ETHER_HDR_SIZE bytes into it. */ static ArpPacket* packet_new(size_t packet_len) { ArpPacket *p; uint8_t *b; assert(packet_len > 0); #ifdef __linux__ b = avahi_new0(uint8_t, sizeof(struct ArpPacket) + packet_len); p = (ArpPacket*) b; p->ether_header = NULL; p->ether_payload = b + sizeof(struct ArpPacket); #else b = avahi_new0(uint8_t, sizeof(struct ArpPacket) + ETHER_HDR_SIZE + packet_len); p = (ArpPacket*) b; p->ether_header = b + sizeof(struct ArpPacket); p->ether_payload = b + sizeof(struct ArpPacket) + ETHER_HDR_SIZE; #endif return p; } static ArpPacket* packet_new_with_info(const ArpPacketInfo *info, size_t *packet_len) { ArpPacket *p = NULL; uint8_t *r; assert(info); assert(info->operation == ARP_REQUEST || info->operation == ARP_RESPONSE); assert(packet_len != NULL); *packet_len = ARP_PACKET_SIZE; p = packet_new(*packet_len); r = p->ether_payload; r[1] = 1; /* HTYPE */ r[2] = 8; /* PTYPE */ r[4] = ETHER_ADDRLEN; /* HLEN */ r[5] = 4; /* PLEN */ r[7] = (uint8_t) info->operation; memcpy(r+8, info->sender_hw_address, ETHER_ADDRLEN); memcpy(r+14, &info->sender_ip_address, 4); memcpy(r+18, info->target_hw_address, ETHER_ADDRLEN); memcpy(r+24, &info->target_ip_address, 4); return p; } static ArpPacket *packet_new_probe(uint32_t ip_address, const uint8_t*hw_address, size_t *packet_len) { ArpPacketInfo info; memset(&info, 0, sizeof(info)); info.operation = ARP_REQUEST; memcpy(info.sender_hw_address, hw_address, ETHER_ADDRLEN); info.target_ip_address = ip_address; return packet_new_with_info(&info, packet_len); } static ArpPacket *packet_new_announcement(uint32_t ip_address, const uint8_t* hw_address, size_t *packet_len) { ArpPacketInfo info; memset(&info, 0, sizeof(info)); info.operation = ARP_REQUEST; memcpy(info.sender_hw_address, hw_address, ETHER_ADDRLEN); info.target_ip_address = ip_address; info.sender_ip_address = ip_address; return packet_new_with_info(&info, packet_len); } static int packet_parse(const ArpPacket *packet, size_t packet_len, ArpPacketInfo *info) { const uint8_t *p; assert(packet); p = (uint8_t *)packet->ether_payload; assert(p); if (packet_len < ARP_PACKET_SIZE) return -1; /* Check HTYPE and PTYPE */ if (p[0] != 0 || p[1] != 1 || p[2] != 8 || p[3] != 0) return -1; /* Check HLEN, PLEN, OPERATION */ if (p[4] != ETHER_ADDRLEN || p[5] != 4 || p[6] != 0 || (p[7] != 1 && p[7] != 2)) return -1; info->operation = p[7]; memcpy(info->sender_hw_address, p+8, ETHER_ADDRLEN); memcpy(&info->sender_ip_address, p+14, 4); memcpy(info->target_hw_address, p+18, ETHER_ADDRLEN); memcpy(&info->target_ip_address, p+24, 4); return 0; } static void set_state(State st, int reset_counter, uint32_t address) { static const char* const state_table[] = { [STATE_START] = "START", [STATE_WAITING_PROBE] = "WAITING_PROBE", [STATE_PROBING] = "PROBING", [STATE_WAITING_ANNOUNCE] = "WAITING_ANNOUNCE", [STATE_ANNOUNCING] = "ANNOUNCING", [STATE_RUNNING] = "RUNNING", [STATE_SLEEPING] = "SLEEPING" }; char buf[64]; assert(st < STATE_MAX); if (st == state && !reset_counter) { n_iteration++; DEBUG(daemon_log(LOG_DEBUG, "State iteration %s-%i", state_table[state], n_iteration)); } else { DEBUG(daemon_log(LOG_DEBUG, "State transition %s-%i -> %s-0", state_table[state], n_iteration, state_table[st])); state = st; n_iteration = 0; } if (state == STATE_SLEEPING) avahi_set_proc_title(argv0, "%s: [%s] sleeping", argv0, interface_name); else if (state == STATE_ANNOUNCING) avahi_set_proc_title(argv0, "%s: [%s] announcing %s", argv0, interface_name, inet_ntop(AF_INET, &address, buf, sizeof(buf))); else if (state == STATE_RUNNING) avahi_set_proc_title(argv0, "%s: [%s] bound %s", argv0, interface_name, inet_ntop(AF_INET, &address, buf, sizeof(buf))); else avahi_set_proc_title(argv0, "%s: [%s] probing %s", argv0, interface_name, inet_ntop(AF_INET, &address, buf, sizeof(buf))); } static int interface_up(int iface) { int fd = -1; struct ifreq ifreq; if ((fd = socket(PF_INET, SOCK_DGRAM, 0)) < 0) { daemon_log(LOG_ERR, "socket() failed: %s", strerror(errno)); goto fail; } memset(&ifreq, 0, sizeof(ifreq)); if (!if_indextoname(iface, ifreq.ifr_name)) { daemon_log(LOG_ERR, "if_indextoname() failed: %s", strerror(errno)); goto fail; } if (ioctl(fd, SIOCGIFFLAGS, &ifreq) < 0) { daemon_log(LOG_ERR, "SIOCGIFFLAGS failed: %s", strerror(errno)); goto fail; } ifreq.ifr_flags |= IFF_UP; if (ioctl(fd, SIOCSIFFLAGS, &ifreq) < 0) { daemon_log(LOG_ERR, "SIOCSIFFLAGS failed: %s", strerror(errno)); goto fail; } close(fd); return 0; fail: if (fd >= 0) close(fd); return -1; } #ifdef __linux__ /* Linux 'packet socket' specific implementation */ static int open_socket(int iface, uint8_t *hw_address) { int fd = -1; struct sockaddr_ll sa; socklen_t sa_len; if (interface_up(iface) < 0) goto fail; if ((fd = socket(PF_PACKET, SOCK_DGRAM, 0)) < 0) { daemon_log(LOG_ERR, "socket() failed: %s", strerror(errno)); goto fail; } memset(&sa, 0, sizeof(sa)); sa.sll_family = AF_PACKET; sa.sll_protocol = htons(ETH_P_ARP); sa.sll_ifindex = iface; if (bind(fd, (struct sockaddr*) &sa, sizeof(sa)) < 0) { daemon_log(LOG_ERR, "bind() failed: %s", strerror(errno)); goto fail; } sa_len = sizeof(sa); if (getsockname(fd, (struct sockaddr*) &sa, &sa_len) < 0) { daemon_log(LOG_ERR, "getsockname() failed: %s", strerror(errno)); goto fail; } if (sa.sll_halen != ETHER_ADDRLEN) { daemon_log(LOG_ERR, "getsockname() returned invalid hardware address."); goto fail; } memcpy(hw_address, sa.sll_addr, ETHER_ADDRLEN); return fd; fail: if (fd >= 0) close(fd); return -1; } static int send_packet(int fd, int iface, ArpPacket *packet, size_t packet_len) { struct sockaddr_ll sa; assert(fd >= 0); assert(packet); assert(packet_len > 0); memset(&sa, 0, sizeof(sa)); sa.sll_family = AF_PACKET; sa.sll_protocol = htons(ETH_P_ARP); sa.sll_ifindex = iface; sa.sll_halen = ETHER_ADDRLEN; memset(sa.sll_addr, 0xFF, ETHER_ADDRLEN); if (sendto(fd, packet->ether_payload, packet_len, 0, (struct sockaddr*) &sa, sizeof(sa)) < 0) { daemon_log(LOG_ERR, "sendto() failed: %s", strerror(errno)); return -1; } return 0; } static int recv_packet(int fd, ArpPacket **packet, size_t *packet_len) { int s; struct sockaddr_ll sa; socklen_t sa_len; ssize_t r; assert(fd >= 0); assert(packet); assert(packet_len); *packet = NULL; if (ioctl(fd, FIONREAD, &s) < 0) { daemon_log(LOG_ERR, "FIONREAD failed: %s", strerror(errno)); goto fail; } if (s <= 0) s = 4096; *packet = packet_new(s); sa_len = sizeof(sa); if ((r = recvfrom(fd, (*packet)->ether_payload, s, 0, (struct sockaddr*) &sa, &sa_len)) < 0) { daemon_log(LOG_ERR, "recvfrom() failed: %s", strerror(errno)); goto fail; } *packet_len = (size_t) r; return 0; fail: if (*packet) { avahi_free(*packet); *packet = NULL; } return -1; } static void close_socket(int fd) { close(fd); } #else /* !__linux__ */ /* PCAP-based implementation */ static pcap_t *__pp; static char __pcap_errbuf[PCAP_ERRBUF_SIZE]; static uint8_t __lladdr[ETHER_ADDRLEN]; #ifndef elementsof #define elementsof(array) (sizeof(array)/sizeof(array[0])) #endif static int __get_ether_addr(int ifindex, u_char *lladdr) { int mib[6]; char *buf; struct if_msghdr *ifm; char *lim; char *next; struct sockaddr_dl *sdl; size_t len; mib[0] = CTL_NET; mib[1] = PF_ROUTE; mib[2] = 0; mib[3] = 0; mib[4] = NET_RT_IFLIST; mib[5] = ifindex; if (sysctl(mib, elementsof(mib), NULL, &len, NULL, 0) != 0) { daemon_log(LOG_ERR, "sysctl(NET_RT_IFLIST): %s", strerror(errno)); return -1; } buf = avahi_malloc(len); if (sysctl(mib, elementsof(mib), buf, &len, NULL, 0) != 0) { daemon_log(LOG_ERR, "sysctl(NET_RT_IFLIST): %s", strerror(errno)); free(buf); return -1; } lim = buf + len; for (next = buf; next < lim; next += ifm->ifm_msglen) { ifm = (struct if_msghdr *)next; if (ifm->ifm_type == RTM_IFINFO) { sdl = (struct sockaddr_dl *)(ifm + 1); memcpy(lladdr, LLADDR(sdl), ETHER_ADDRLEN); } } avahi_free(buf); return 0; } #define PCAP_TIMEOUT 500 /* 0.5s */ static int open_socket(int iface, uint8_t *hw_address) { struct bpf_program bpf; char *filter; char ifname[IFNAMSIZ]; pcap_t *pp; int err; int fd; assert(__pp == NULL); if (interface_up(iface) < 0) return -1; if (__get_ether_addr(iface, __lladdr) == -1) return -1; if (if_indextoname(iface, ifname) == NULL) return -1; /* * Using a timeout for BPF is fairly portable across BSDs. On most * modern versions, using the timeout/nonblock/poll method results in * fairly sane behavior, with the timeout only coming into play during * the next_ex() call itself (so, for us, that's only when there's * data). On older versions, it may result in a PCAP_TIMEOUT busy-wait * on some versions, though, as the poll() may terminate at the * PCAP_TIMEOUT instead of the poll() timeout. */ pp = pcap_open_live(ifname, 1500, 0, PCAP_TIMEOUT, __pcap_errbuf); if (pp == NULL) { return (-1); } err = pcap_set_datalink(pp, DLT_EN10MB); if (err == -1) { daemon_log(LOG_ERR, "pcap_set_datalink: %s", pcap_geterr(pp)); pcap_close(pp); return (-1); } err = pcap_setdirection(pp, PCAP_D_IN); if (err == -1) { daemon_log(LOG_ERR, "pcap_setdirection: %s", pcap_geterr(pp)); pcap_close(pp); return (-1); } fd = pcap_get_selectable_fd(pp); if (fd == -1) { pcap_close(pp); return (-1); } /* * Using setnonblock is a portability stop-gap. Using the timeout in * combination with setnonblock will ensure on most BSDs that the * next_ex call returns in a timely fashion. */ err = pcap_setnonblock(pp, 1, __pcap_errbuf); if (err == -1) { pcap_close(pp); return (-1); } filter = avahi_strdup_printf("arp and (ether dst ff:ff:ff:ff:ff:ff or " "%02x:%02x:%02x:%02x:%02x:%02x)", __lladdr[0], __lladdr[1], __lladdr[2], __lladdr[3], __lladdr[4], __lladdr[5]); DEBUG(daemon_log(LOG_DEBUG, "Using pcap filter '%s'", filter)); err = pcap_compile(pp, &bpf, filter, 1, 0); avahi_free(filter); if (err == -1) { daemon_log(LOG_ERR, "pcap_compile: %s", pcap_geterr(pp)); pcap_close(pp); return (-1); } err = pcap_setfilter(pp, &bpf); if (err == -1) { daemon_log(LOG_ERR, "pcap_setfilter: %s", pcap_geterr(pp)); pcap_close(pp); return (-1); } pcap_freecode(&bpf); /* Stash pcap-specific context away. */ memcpy(hw_address, __lladdr, ETHER_ADDRLEN); __pp = pp; return (fd); } static void close_socket(int fd AVAHI_GCC_UNUSED) { assert(__pp != NULL); pcap_close(__pp); __pp = NULL; } /* * We trick avahi into allocating sizeof(packet) + sizeof(ether_header), * and prepend the required ethernet header information before sending. */ static int send_packet(int fd AVAHI_GCC_UNUSED, int iface AVAHI_GCC_UNUSED, ArpPacket *packet, size_t packet_len) { struct ether_header *eh; assert(__pp != NULL); assert(packet != NULL); eh = (struct ether_header *)packet->ether_header; memset(eh->ether_dhost, 0xFF, ETHER_ADDRLEN); memcpy(eh->ether_shost, __lladdr, ETHER_ADDRLEN); eh->ether_type = htons(0x0806); return (pcap_inject(__pp, (void *)eh, packet_len + sizeof(*eh))); } static int recv_packet(int fd AVAHI_GCC_UNUSED, ArpPacket **packet, size_t *packet_len) { struct pcap_pkthdr *ph; u_char *pd; ArpPacket *ap; int err; int retval; assert(__pp != NULL); assert(packet != NULL); assert(packet_len != NULL); *packet = NULL; *packet_len = 0; retval = -1; err = pcap_next_ex(__pp, &ph, (const u_char **)&pd); if (err == 1 && ph->caplen <= ph->len) { ap = packet_new(ph->caplen); memcpy(ap->ether_header, pd, ph->caplen); *packet = ap; *packet_len = (ph->caplen - sizeof(struct ether_header)); retval = 0; } else if (err >= 0) { /* * err == 1: Just drop bogus packets (>1500 for an arp packet!?) * on the floor. * * err == 0: We might have had traffic on the pcap fd that * didn't match the filter, in which case we'll get 0 packets. */ retval = 0; } else daemon_log(LOG_ERR, "pcap_next_ex(%d): %s", err, pcap_geterr(__pp)); return (retval); } #endif /* __linux__ */ int is_ll_address(uint32_t addr) { return ((ntohl(addr) & IPV4LL_NETMASK) == IPV4LL_NETWORK) && ((ntohl(addr) & 0x0000FF00) != 0x0000) && ((ntohl(addr) & 0x0000FF00) != 0xFF00); } static struct timeval *elapse_time(struct timeval *tv, unsigned msec, unsigned jitter) { assert(tv); gettimeofday(tv, NULL); if (msec) avahi_timeval_add(tv, (AvahiUsec) msec*1000); if (jitter) avahi_timeval_add(tv, (AvahiUsec) (jitter*1000.0*rand()/(RAND_MAX+1.0))); return tv; } static FILE* fork_dispatcher(void) { FILE *ret; int fds[2]; pid_t pid; if (pipe(fds) < 0) { daemon_log(LOG_ERR, "pipe() failed: %s", strerror(errno)); goto fail; } if ((pid = fork()) < 0) goto fail; else if (pid == 0) { FILE *f = NULL; int r = 1; /* Please note that the signal pipe is not closed at this * point, signals will thus be dispatched in the main * process. */ daemon_retval_done(); avahi_set_proc_title(argv0, "%s: [%s] callout dispatcher", argv0, interface_name); close(fds[1]); if (!(f = fdopen(fds[0], "r"))) { daemon_log(LOG_ERR, "fdopen() failed: %s", strerror(errno)); goto dispatcher_fail; } for (;;) { CalloutEventInfo info; char name[IFNAMSIZ], buf[64]; int k; if (fread(&info, sizeof(info), 1, f) != 1) { if (feof(f)) break; daemon_log(LOG_ERR, "fread() failed: %s", strerror(errno)); goto dispatcher_fail; } assert(info.event <= CALLOUT_MAX); if (!if_indextoname(info.ifindex, name)) { daemon_log(LOG_ERR, "if_indextoname() failed: %s", strerror(errno)); continue; } if (daemon_exec("/", &k, action_script, action_script, callout_event_table[info.event], name, inet_ntop(AF_INET, &info.address, buf, sizeof(buf)), NULL) < 0) { daemon_log(LOG_ERR, "Failed to run script: %s", strerror(errno)); continue; } if (k != 0) daemon_log(LOG_WARNING, "Script execution failed with return value %i", k); } r = 0; dispatcher_fail: if (f) fclose(f); #ifdef HAVE_CHROOT /* If the main process is trapped inside a chroot() we have to * remove the PID file for it */ if (!no_chroot && wrote_pid_file) daemon_pid_file_remove(); #endif _exit(r); } /* parent */ close(fds[0]); fds[0] = -1; if (!(ret = fdopen(fds[1], "w"))) { daemon_log(LOG_ERR, "fdopen() failed: %s", strerror(errno)); goto fail; } return ret; fail: if (fds[0] >= 0) close(fds[0]); if (fds[1] >= 0) close(fds[1]); return NULL; } static int do_callout(FILE *f, CalloutEvent event, int iface, uint32_t addr) { CalloutEventInfo info; char buf[64], ifname[IFNAMSIZ]; daemon_log(LOG_INFO, "Callout %s, address %s on interface %s", callout_event_table[event], inet_ntop(AF_INET, &addr, buf, sizeof(buf)), if_indextoname(iface, ifname)); info.event = event; info.ifindex = iface; info.address = addr; if (fwrite(&info, sizeof(info), 1, f) != 1 || fflush(f) != 0) { daemon_log(LOG_ERR, "Failed to write callout event: %s", strerror(errno)); return -1; } return 0; } #define set_env(key, value) putenv(avahi_strdup_printf("%s=%s", (key), (value))) static int drop_privs(void) { struct passwd *pw; struct group * gr; int r; mode_t u; pw = NULL; gr = NULL; /* Get user/group ID */ if (!no_drop_root) { if (!(pw = getpwnam(AVAHI_AUTOIPD_USER))) { daemon_log(LOG_ERR, "Failed to find user '"AVAHI_AUTOIPD_USER"'."); return -1; } if (!(gr = getgrnam(AVAHI_AUTOIPD_GROUP))) { daemon_log(LOG_ERR, "Failed to find group '"AVAHI_AUTOIPD_GROUP"'."); return -1; } daemon_log(LOG_INFO, "Found user '"AVAHI_AUTOIPD_USER"' (UID %lu) and group '"AVAHI_AUTOIPD_GROUP"' (GID %lu).", (unsigned long) pw->pw_uid, (unsigned long) gr->gr_gid); } /* Create directory */ u = umask(0000); r = mkdir(AVAHI_IPDATA_DIR, 0755); umask(u); if (r < 0 && errno != EEXIST) { daemon_log(LOG_ERR, "mkdir(\""AVAHI_IPDATA_DIR"\"): %s", strerror(errno)); return -1; } /* Convey working directory */ if (!no_drop_root) { struct stat st; chown(AVAHI_IPDATA_DIR, pw->pw_uid, gr->gr_gid); if (stat(AVAHI_IPDATA_DIR, &st) < 0) { daemon_log(LOG_ERR, "stat(): %s\n", strerror(errno)); return -1; } if (!S_ISDIR(st.st_mode) || st.st_uid != pw->pw_uid || st.st_gid != gr->gr_gid) { daemon_log(LOG_ERR, "Failed to create runtime directory "AVAHI_IPDATA_DIR"."); return -1; } } #ifdef HAVE_CHROOT if (!no_chroot) { if (chroot(AVAHI_IPDATA_DIR) < 0) { daemon_log(LOG_ERR, "Failed to chroot(): %s", strerror(errno)); return -1; } daemon_log(LOG_INFO, "Successfully called chroot()."); chdir("/"); /* Since we are now trapped inside a chroot we cannot remove * the pid file anymore, the helper process will do that for us. */ wrote_pid_file = 0; } #endif if (!no_drop_root) { if (initgroups(AVAHI_AUTOIPD_USER, gr->gr_gid) != 0) { daemon_log(LOG_ERR, "Failed to change group list: %s", strerror(errno)); return -1; } #if defined(HAVE_SETRESGID) r = setresgid(gr->gr_gid, gr->gr_gid, gr->gr_gid); #elif defined(HAVE_SETEGID) if ((r = setgid(gr->gr_gid)) >= 0) r = setegid(gr->gr_gid); #elif defined(HAVE_SETREGID) r = setregid(gr->gr_gid, gr->gr_gid); #else #error "No API to drop privileges" #endif if (r < 0) { daemon_log(LOG_ERR, "Failed to change GID: %s", strerror(errno)); return -1; } #if defined(HAVE_SETRESUID) r = setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid); #elif defined(HAVE_SETEUID) if ((r = setuid(pw->pw_uid)) >= 0) r = seteuid(pw->pw_uid); #elif defined(HAVE_SETREUID) r = setreuid(pw->pw_uid, pw->pw_uid); #else #error "No API to drop privileges" #endif if (r < 0) { daemon_log(LOG_ERR, "Failed to change UID: %s", strerror(errno)); return -1; } set_env("USER", pw->pw_name); set_env("LOGNAME", pw->pw_name); set_env("HOME", pw->pw_dir); daemon_log(LOG_INFO, "Successfully dropped root privileges."); } return 0; } static int loop(int iface, uint32_t addr) { enum { FD_ARP, FD_IFACE, FD_SIGNAL, FD_MAX }; int fd = -1, ret = -1; struct timeval next_wakeup; int next_wakeup_valid = 0; char buf[64]; ArpPacket *in_packet = NULL; size_t in_packet_len = 0; ArpPacket *out_packet = NULL; size_t out_packet_len; uint8_t hw_address[ETHER_ADDRLEN]; struct pollfd pollfds[FD_MAX]; int iface_fd = -1; Event event = EVENT_NULL; int retval_sent = !daemonize; State st; FILE *dispatcher = NULL; char *address_fn = NULL; const char *p; daemon_signal_init(SIGINT, SIGTERM, SIGCHLD, SIGHUP, 0); if (!(dispatcher = fork_dispatcher())) goto fail; if ((fd = open_socket(iface, hw_address)) < 0) goto fail; if ((iface_fd = iface_init(iface)) < 0) goto fail; if (drop_privs() < 0) goto fail; if (force_bind) st = STATE_START; else if (iface_get_initial_state(&st) < 0) goto fail; #ifdef HAVE_CHROOT if (!no_chroot) p = ""; else #endif p = AVAHI_IPDATA_DIR; address_fn = avahi_strdup_printf( "%s/%02x:%02x:%02x:%02x:%02x:%02x", p, hw_address[0], hw_address[1], hw_address[2], hw_address[3], hw_address[4], hw_address[5]); if (!addr) load_address(address_fn, &addr); if (addr && !is_ll_address(addr)) { daemon_log(LOG_WARNING, "Requested address %s is not from IPv4LL range 169.254/16 or a reserved address, ignoring.", inet_ntop(AF_INET, &addr, buf, sizeof(buf))); addr = 0; } if (!addr) { int i; uint32_t a = 1; for (i = 0; i < ETHER_ADDRLEN; i++) a += hw_address[i]*i; a = (a % 0xFE00) + 0x0100; addr = htonl(IPV4LL_NETWORK | (uint32_t) a); } assert(is_ll_address(addr)); set_state(st, 1, addr); daemon_log(LOG_INFO, "Starting with address %s", inet_ntop(AF_INET, &addr, buf, sizeof(buf))); if (state == STATE_SLEEPING) daemon_log(LOG_INFO, "Routable address already assigned, sleeping."); if (!retval_sent && (!wait_for_address || state == STATE_SLEEPING)) { daemon_retval_send(0); retval_sent = 1; } memset(pollfds, 0, sizeof(pollfds)); pollfds[FD_ARP].fd = fd; pollfds[FD_ARP].events = POLLIN; pollfds[FD_IFACE].fd = iface_fd; pollfds[FD_IFACE].events = POLLIN; pollfds[FD_SIGNAL].fd = daemon_signal_fd(); pollfds[FD_SIGNAL].events = POLLIN; for (;;) { int r, timeout; AvahiUsec usec; if (state == STATE_START) { /* First, wait a random time */ set_state(STATE_WAITING_PROBE, 1, addr); elapse_time(&next_wakeup, 0, PROBE_WAIT*1000); next_wakeup_valid = 1; } else if ((state == STATE_WAITING_PROBE && event == EVENT_TIMEOUT) || (state == STATE_PROBING && event == EVENT_TIMEOUT && n_iteration < PROBE_NUM-2)) { /* Send a probe */ out_packet = packet_new_probe(addr, hw_address, &out_packet_len); set_state(STATE_PROBING, 0, addr); elapse_time(&next_wakeup, PROBE_MIN*1000, (PROBE_MAX-PROBE_MIN)*1000); next_wakeup_valid = 1; } else if (state == STATE_PROBING && event == EVENT_TIMEOUT && n_iteration >= PROBE_NUM-2) { /* Send the last probe */ out_packet = packet_new_probe(addr, hw_address, &out_packet_len); set_state(STATE_WAITING_ANNOUNCE, 1, addr); elapse_time(&next_wakeup, ANNOUNCE_WAIT*1000, 0); next_wakeup_valid = 1; } else if ((state == STATE_WAITING_ANNOUNCE && event == EVENT_TIMEOUT) || (state == STATE_ANNOUNCING && event == EVENT_TIMEOUT && n_iteration < ANNOUNCE_NUM-1)) { /* Send announcement packet */ out_packet = packet_new_announcement(addr, hw_address, &out_packet_len); set_state(STATE_ANNOUNCING, 0, addr); elapse_time(&next_wakeup, ANNOUNCE_INTERVAL*1000, 0); next_wakeup_valid = 1; if (n_iteration == 0) { if (do_callout(dispatcher, CALLOUT_BIND, iface, addr) < 0) goto fail; n_conflict = 0; } } else if ((state == STATE_ANNOUNCING && event == EVENT_TIMEOUT && n_iteration >= ANNOUNCE_NUM-1)) { daemon_log(LOG_INFO, "Successfully claimed IP address %s", inet_ntop(AF_INET, &addr, buf, sizeof(buf))); set_state(STATE_RUNNING, 0, addr); next_wakeup_valid = 0; save_address(address_fn, addr); if (!retval_sent) { daemon_retval_send(0); retval_sent = 1; } } else if (event == EVENT_PACKET) { ArpPacketInfo info; assert(in_packet); if (packet_parse(in_packet, in_packet_len, &info) < 0) daemon_log(LOG_WARNING, "Failed to parse incoming ARP packet."); else { int conflict = 0; if (info.sender_ip_address == addr) { if (memcmp(hw_address, info.sender_hw_address, ETHER_ADDRLEN)) { /* Normal conflict */ conflict = 1; daemon_log(LOG_INFO, "Received conflicting normal ARP packet."); } else daemon_log(LOG_DEBUG, "Received ARP packet back on source interface. Ignoring."); } else if (state == STATE_WAITING_PROBE || state == STATE_PROBING || state == STATE_WAITING_ANNOUNCE) { /* Probe conflict */ conflict = info.target_ip_address == addr && info.sender_ip_address == 0 && memcmp(hw_address, info.sender_hw_address, ETHER_ADDRLEN); if (conflict) daemon_log(LOG_INFO, "Received conflicting probe ARP packet."); } if (conflict) { if (state == STATE_RUNNING || state == STATE_ANNOUNCING) if (do_callout(dispatcher, CALLOUT_CONFLICT, iface, addr) < 0) goto fail; /* Pick a new address */ addr = pick_addr(addr); daemon_log(LOG_INFO, "Trying address %s", inet_ntop(AF_INET, &addr, buf, sizeof(buf))); n_conflict++; set_state(STATE_WAITING_PROBE, 1, addr); if (n_conflict >= MAX_CONFLICTS) { daemon_log(LOG_WARNING, "Got too many conflicts, rate limiting new probes."); elapse_time(&next_wakeup, RATE_LIMIT_INTERVAL*1000, PROBE_WAIT*1000); } else elapse_time(&next_wakeup, 0, PROBE_WAIT*1000); next_wakeup_valid = 1; } else DEBUG(daemon_log(LOG_DEBUG, "Ignoring irrelevant ARP packet.")); } } else if (event == EVENT_ROUTABLE_ADDR_CONFIGURED && !force_bind) { daemon_log(LOG_INFO, "A routable address has been configured."); if (state == STATE_RUNNING || state == STATE_ANNOUNCING) if (do_callout(dispatcher, CALLOUT_UNBIND, iface, addr) < 0) goto fail; if (!retval_sent) { daemon_retval_send(0); retval_sent = 1; } set_state(STATE_SLEEPING, 1, addr); next_wakeup_valid = 0; } else if (event == EVENT_ROUTABLE_ADDR_UNCONFIGURED && state == STATE_SLEEPING && !force_bind) { daemon_log(LOG_INFO, "No longer a routable address configured, restarting probe process."); set_state(STATE_WAITING_PROBE, 1, addr); elapse_time(&next_wakeup, 0, PROBE_WAIT*1000); next_wakeup_valid = 1; } else if (event == EVENT_REFRESH_REQUEST && state == STATE_RUNNING) { /* The user requested a reannouncing of the address by a SIGHUP */ daemon_log(LOG_INFO, "Reannouncing address."); /* Send announcement packet */ out_packet = packet_new_announcement(addr, hw_address, &out_packet_len); set_state(STATE_ANNOUNCING, 1, addr); elapse_time(&next_wakeup, ANNOUNCE_INTERVAL*1000, 0); next_wakeup_valid = 1; } if (out_packet) { DEBUG(daemon_log(LOG_DEBUG, "sending...")); if (send_packet(fd, iface, out_packet, out_packet_len) < 0) goto fail; avahi_free(out_packet); out_packet = NULL; } if (in_packet) { avahi_free(in_packet); in_packet = NULL; } event = EVENT_NULL; timeout = -1; if (next_wakeup_valid) { usec = avahi_age(&next_wakeup); timeout = usec < 0 ? (int) (-usec/1000) : 0; } DEBUG(daemon_log(LOG_DEBUG, "sleeping %ims", timeout)); while ((r = poll(pollfds, FD_MAX, timeout)) < 0 && errno == EINTR) ; if (r < 0) { daemon_log(LOG_ERR, "poll() failed: %s", strerror(r)); goto fail; } else if (r == 0) { event = EVENT_TIMEOUT; next_wakeup_valid = 0; } else { if (pollfds[FD_ARP].revents) { if (pollfds[FD_ARP].revents == POLLERR) { /* The interface is probably down, let's recreate our socket */ close_socket(fd); if ((fd = open_socket(iface, hw_address)) < 0) goto fail; pollfds[FD_ARP].fd = fd; } else { assert(pollfds[FD_ARP].revents == POLLIN); if (recv_packet(fd, &in_packet, &in_packet_len) < 0) goto fail; if (in_packet) event = EVENT_PACKET; } } if (event == EVENT_NULL && pollfds[FD_IFACE].revents) { assert(pollfds[FD_IFACE].revents == POLLIN); if (iface_process(&event) < 0) goto fail; } if (event == EVENT_NULL && pollfds[FD_SIGNAL].revents) { int sig; assert(pollfds[FD_SIGNAL].revents == POLLIN); if ((sig = daemon_signal_next()) <= 0) { daemon_log(LOG_ERR, "daemon_signal_next() failed"); goto fail; } switch(sig) { case SIGINT: case SIGTERM: daemon_log(LOG_INFO, "Got %s, quitting.", sig == SIGINT ? "SIGINT" : "SIGTERM"); ret = 0; goto fail; case SIGCHLD: waitpid(-1, NULL, WNOHANG); break; case SIGHUP: event = EVENT_REFRESH_REQUEST; break; } } } } ret = 0; fail: if (state == STATE_RUNNING || state == STATE_ANNOUNCING) do_callout(dispatcher, CALLOUT_STOP, iface, addr); avahi_free(out_packet); avahi_free(in_packet); if (fd >= 0) close_socket(fd); if (iface_fd >= 0) iface_done(); if (daemonize && !retval_sent) daemon_retval_send(ret); if (dispatcher) fclose(dispatcher); if (address_fn) avahi_free(address_fn); return ret; } static void help(FILE *f, const char *a0) { fprintf(f, "%s [options] INTERFACE\n" " -h --help Show this help\n" " -D --daemonize Daemonize after startup\n" " -s --syslog Write log messages to syslog(3) instead of STDERR\n" " -k --kill Kill a running daemon\n" " -r --refresh Request a running daemon refresh its IP address\n" " -c --check Return 0 if a daemon is already running\n" " -V --version Show version\n" " -S --start=ADDRESS Start with this address from the IPv4LL range\n" " 169.254.0.0/16\n" " -t --script=script Action script to run (defaults to\n" " "AVAHI_IPCONF_SCRIPT")\n" " -w --wait Wait until an address has been acquired before\n" " daemonizing\n" " --force-bind Assign an IPv4LL address even if a routable address\n" " is already assigned\n" " --no-drop-root Don't drop privileges\n" #ifdef HAVE_CHROOT " --no-chroot Don't chroot()\n" #endif " --no-proc-title Don't modify process title\n" " --debug Increase verbosity\n", a0); } static int parse_command_line(int argc, char *argv[]) { int c; enum { OPTION_NO_PROC_TITLE = 256, OPTION_FORCE_BIND, OPTION_DEBUG, OPTION_NO_DROP_ROOT, #ifdef HAVE_CHROOT OPTION_NO_CHROOT #endif }; static const struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "daemonize", no_argument, NULL, 'D' }, { "syslog", no_argument, NULL, 's' }, { "kill", no_argument, NULL, 'k' }, { "refresh", no_argument, NULL, 'r' }, { "check", no_argument, NULL, 'c' }, { "version", no_argument, NULL, 'V' }, { "start", required_argument, NULL, 'S' }, { "script", required_argument, NULL, 't' }, { "wait", no_argument, NULL, 'w' }, { "force-bind", no_argument, NULL, OPTION_FORCE_BIND }, { "no-drop-root", no_argument, NULL, OPTION_NO_DROP_ROOT }, #ifdef HAVE_CHROOT { "no-chroot", no_argument, NULL, OPTION_NO_CHROOT }, #endif { "no-proc-title", no_argument, NULL, OPTION_NO_PROC_TITLE }, { "debug", no_argument, NULL, OPTION_DEBUG }, { NULL, 0, NULL, 0 } }; while ((c = getopt_long(argc, argv, "hDskrcVS:t:w", long_options, NULL)) >= 0) { switch(c) { case 's': use_syslog = 1; break; case 'h': command = DAEMON_HELP; break; case 'D': daemonize = 1; break; case 'k': command = DAEMON_KILL; break; case 'V': command = DAEMON_VERSION; break; case 'r': command = DAEMON_REFRESH; break; case 'c': command = DAEMON_CHECK; break; case 'S': if ((start_address = inet_addr(optarg)) == (uint32_t) -1) { fprintf(stderr, "Failed to parse IP address '%s'.", optarg); return -1; } break; case 't': avahi_free(action_script); action_script = avahi_strdup(optarg); break; case 'w': wait_for_address = 1; break; case OPTION_NO_PROC_TITLE: modify_proc_title = 0; break; case OPTION_DEBUG: debug = 1; #ifdef DAEMON_SET_VERBOSITY_AVAILABLE daemon_set_verbosity(LOG_DEBUG); #endif break; case OPTION_FORCE_BIND: force_bind = 1; break; case OPTION_NO_DROP_ROOT: no_drop_root = 1; break; #ifdef HAVE_CHROOT case OPTION_NO_CHROOT: no_chroot = 1; break; #endif default: return -1; } } if (command == DAEMON_RUN || command == DAEMON_KILL || command == DAEMON_REFRESH || command == DAEMON_CHECK) { if (optind >= argc) { fprintf(stderr, "Missing interface name.\n"); return -1; } interface_name = avahi_strdup(argv[optind++]); } if (optind != argc) { fprintf(stderr, "Too many arguments\n"); return -1; } if (!action_script) action_script = avahi_strdup(AVAHI_IPCONF_SCRIPT); return 0; } static const char* pid_file_proc(void) { return pid_file_name; } int main(int argc, char*argv[]) { int r = 1; char *log_ident = NULL; signal(SIGPIPE, SIG_IGN); if ((argv0 = strrchr(argv[0], '/'))) argv0 = avahi_strdup(argv0 + 1); else argv0 = avahi_strdup(argv[0]); daemon_log_ident = argv0; if (parse_command_line(argc, argv) < 0) goto finish; if (modify_proc_title) avahi_init_proc_title(argc, argv); daemon_log_ident = log_ident = avahi_strdup_printf("%s(%s)", argv0, interface_name); daemon_pid_file_proc = pid_file_proc; pid_file_name = avahi_strdup_printf(AVAHI_RUNTIME_DIR"/avahi-autoipd.%s.pid", interface_name); if (command == DAEMON_RUN) { pid_t pid; int ifindex; init_rand_seed(); if ((ifindex = if_nametoindex(interface_name)) <= 0) { daemon_log(LOG_ERR, "Failed to get index for interface name '%s': %s", interface_name, strerror(errno)); goto finish; } if (getuid() != 0) { daemon_log(LOG_ERR, "This program is intended to be run as root."); goto finish; } if ((pid = daemon_pid_file_is_running()) >= 0) { daemon_log(LOG_ERR, "Daemon already running on PID %u", pid); goto finish; } if (daemonize) { daemon_retval_init(); if ((pid = daemon_fork()) < 0) goto finish; else if (pid != 0) { int ret; /** Parent **/ if ((ret = daemon_retval_wait(20)) < 0) { daemon_log(LOG_ERR, "Could not receive return value from daemon process."); goto finish; } r = ret; goto finish; } /* Child */ } if (use_syslog || daemonize) daemon_log_use = DAEMON_LOG_SYSLOG; chdir("/"); if (daemon_pid_file_create() < 0) { daemon_log(LOG_ERR, "Failed to create PID file: %s", strerror(errno)); if (daemonize) daemon_retval_send(1); goto finish; } else wrote_pid_file = 1; avahi_set_proc_title(argv0, "%s: [%s] starting up", argv0, interface_name); if (loop(ifindex, start_address) < 0) goto finish; r = 0; } else if (command == DAEMON_HELP) { help(stdout, argv0); r = 0; } else if (command == DAEMON_VERSION) { printf("%s "PACKAGE_VERSION"\n", argv0); r = 0; } else if (command == DAEMON_KILL) { if (daemon_pid_file_kill_wait(SIGTERM, 5) < 0) { daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno)); goto finish; } r = 0; } else if (command == DAEMON_REFRESH) { if (daemon_pid_file_kill(SIGHUP) < 0) { daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno)); goto finish; } r = 0; } else if (command == DAEMON_CHECK) r = (daemon_pid_file_is_running() >= 0) ? 0 : 1; finish: if (daemonize) daemon_retval_done(); if (wrote_pid_file) daemon_pid_file_remove(); avahi_free(log_ident); avahi_free(pid_file_name); avahi_free(argv0); avahi_free(interface_name); avahi_free(action_script); return r; } avahi-0.7/avahi-autoipd/PaxHeaders.10109/dhclient-enter-hook.in0000644000000000000000000000013213130651643021127 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681851.203963336 avahi-0.7/avahi-autoipd/dhclient-enter-hook.in0000755000175000017500000000215413130651643022543 0ustar00lathiatlathiat00000000000000#!/bin/sh # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. case "$reason" in MEDIUM|ARPCHECK|ARPSEND|NBI) ;; PREINIT|BOUND|RENEW|REBIND|REBOOT|STOP|RELEASE) if [ -x @sbindir@/avahi-autoipd ] && @sbindir@/avahi-autoipd -c $interface; then @sbindir@/avahi-autoipd -k $interface 2> /dev/null fi ;; EXPIRE|FAIL|TIMEOUT) # Starting avahi-autoipd is left for the exit hook ;; esac avahi-0.7/avahi-autoipd/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016767 xustar0030 mtime=1499681801.081083095 30 atime=1499681806.860953827 30 ctime=1499681851.199963425 avahi-0.7/avahi-autoipd/Makefile.in0000644000175000017500000013356213130652011020410 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@sbin_PROGRAMS = avahi-autoipd$(EXEEXT) @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_TRUE@am__append_1 = iface-bsd.c @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_TRUE@am__append_2 = -lpcap @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_FALSE@am__append_3 = iface-linux.c subdir = avahi-autoipd ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(pkgsysconfdir)" PROGRAMS = $(sbin_PROGRAMS) am__avahi_autoipd_SOURCES_DIST = main.c main.h \ ../avahi-daemon/setproctitle.c ../avahi-daemon/setproctitle.h \ iface.h ../avahi-common/malloc.h ../avahi-common/malloc.c \ ../avahi-common/timeval.h ../avahi-common/timeval.c \ iface-bsd.c iface-linux.c @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_TRUE@am__objects_1 = avahi_autoipd-iface-bsd.$(OBJEXT) @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_FALSE@am__objects_2 = avahi_autoipd-iface-linux.$(OBJEXT) @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@am_avahi_autoipd_OBJECTS = avahi_autoipd-main.$(OBJEXT) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ avahi_autoipd-setproctitle.$(OBJEXT) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ avahi_autoipd-malloc.$(OBJEXT) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ avahi_autoipd-timeval.$(OBJEXT) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $(am__objects_1) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $(am__objects_2) avahi_autoipd_OBJECTS = $(am_avahi_autoipd_OBJECTS) am__DEPENDENCIES_1 = @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@avahi_autoipd_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = avahi_autoipd_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(avahi_autoipd_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } SCRIPTS = $(nodist_pkgsysconf_SCRIPTS) $(noinst_SCRIPTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(avahi_autoipd_SOURCES) DIST_SOURCES = $(am__avahi_autoipd_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@pkgsysconfdir = $(sysconfdir)/avahi # This cool debug trap works on i386/gcc only @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@AM_CFLAGS = -I$(top_srcdir) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ '-DDEBUG_TRAP=__asm__("int \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $$3")' \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ -DAVAHI_RUNTIME_DIR=\"$(avahi_runtime_dir)/\" \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ -DAVAHI_IPCONF_SCRIPT=\"$(pkgsysconfdir)/avahi-autoipd.action\" \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ -DAVAHI_IPDATA_DIR=\"$(localstatedir)/lib/avahi-autoipd\" @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@avahi_autoipd_SOURCES = \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ main.c main.h \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ ../avahi-daemon/setproctitle.c \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ ../avahi-daemon/setproctitle.h \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ iface.h \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ ../avahi-common/malloc.h \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ ../avahi-common/malloc.c \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ ../avahi-common/timeval.h \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ ../avahi-common/timeval.c \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $(am__append_1) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $(am__append_3) @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@avahi_autoipd_CFLAGS = $(AM_CFLAGS) $(LIBDAEMON_CFLAGS) @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@avahi_autoipd_LDADD = \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $(AM_LDADD) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $(LIBDAEMON_LIBS) \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ $(am__append_2) @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@nodist_pkgsysconf_SCRIPTS = avahi-autoipd.action @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@noinst_SCRIPTS = dhclient-enter-hook dhclient-exit-hook @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@BUILD = dhclient-exit-hook dhclient-enter-hook @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@dhcliententerdir = $(sysconfdir)/dhcp/dhclient-enter-hooks.d @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@dhclientexitdir = $(sysconfdir)/dhcp/dhclient-exit-hooks.d EXTRA_DIST = dhclient-enter-hook.in dhclient-exit-hook.in avahi-autoipd.action.linux avahi-autoipd.action.bsd CLEANFILES = dhclient-enter-hook dhclient-exit-hook avahi-autoipd.action all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-autoipd/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-autoipd/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ } \ ; done uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(sbindir)" && rm -f $$files clean-sbinPROGRAMS: @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list avahi-autoipd$(EXEEXT): $(avahi_autoipd_OBJECTS) $(avahi_autoipd_DEPENDENCIES) $(EXTRA_avahi_autoipd_DEPENDENCIES) @rm -f avahi-autoipd$(EXEEXT) $(AM_V_CCLD)$(avahi_autoipd_LINK) $(avahi_autoipd_OBJECTS) $(avahi_autoipd_LDADD) $(LIBS) install-nodist_pkgsysconfSCRIPTS: $(nodist_pkgsysconf_SCRIPTS) @$(NORMAL_INSTALL) @list='$(nodist_pkgsysconf_SCRIPTS)'; test -n "$(pkgsysconfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgsysconfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgsysconfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(pkgsysconfdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(pkgsysconfdir)$$dir" || exit $$?; \ } \ ; done uninstall-nodist_pkgsysconfSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(nodist_pkgsysconf_SCRIPTS)'; test -n "$(pkgsysconfdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(pkgsysconfdir)'; $(am__uninstall_files_from_dir) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_autoipd-iface-bsd.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_autoipd-iface-linux.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_autoipd-main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_autoipd-malloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_autoipd-setproctitle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avahi_autoipd-timeval.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< avahi_autoipd-main.o: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-main.o -MD -MP -MF $(DEPDIR)/avahi_autoipd-main.Tpo -c -o avahi_autoipd-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-main.Tpo $(DEPDIR)/avahi_autoipd-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='avahi_autoipd-main.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c avahi_autoipd-main.obj: main.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-main.obj -MD -MP -MF $(DEPDIR)/avahi_autoipd-main.Tpo -c -o avahi_autoipd-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-main.Tpo $(DEPDIR)/avahi_autoipd-main.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='avahi_autoipd-main.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` avahi_autoipd-setproctitle.o: ../avahi-daemon/setproctitle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-setproctitle.o -MD -MP -MF $(DEPDIR)/avahi_autoipd-setproctitle.Tpo -c -o avahi_autoipd-setproctitle.o `test -f '../avahi-daemon/setproctitle.c' || echo '$(srcdir)/'`../avahi-daemon/setproctitle.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-setproctitle.Tpo $(DEPDIR)/avahi_autoipd-setproctitle.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-daemon/setproctitle.c' object='avahi_autoipd-setproctitle.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-setproctitle.o `test -f '../avahi-daemon/setproctitle.c' || echo '$(srcdir)/'`../avahi-daemon/setproctitle.c avahi_autoipd-setproctitle.obj: ../avahi-daemon/setproctitle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-setproctitle.obj -MD -MP -MF $(DEPDIR)/avahi_autoipd-setproctitle.Tpo -c -o avahi_autoipd-setproctitle.obj `if test -f '../avahi-daemon/setproctitle.c'; then $(CYGPATH_W) '../avahi-daemon/setproctitle.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-daemon/setproctitle.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-setproctitle.Tpo $(DEPDIR)/avahi_autoipd-setproctitle.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-daemon/setproctitle.c' object='avahi_autoipd-setproctitle.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-setproctitle.obj `if test -f '../avahi-daemon/setproctitle.c'; then $(CYGPATH_W) '../avahi-daemon/setproctitle.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-daemon/setproctitle.c'; fi` avahi_autoipd-malloc.o: ../avahi-common/malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-malloc.o -MD -MP -MF $(DEPDIR)/avahi_autoipd-malloc.Tpo -c -o avahi_autoipd-malloc.o `test -f '../avahi-common/malloc.c' || echo '$(srcdir)/'`../avahi-common/malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-malloc.Tpo $(DEPDIR)/avahi_autoipd-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/malloc.c' object='avahi_autoipd-malloc.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-malloc.o `test -f '../avahi-common/malloc.c' || echo '$(srcdir)/'`../avahi-common/malloc.c avahi_autoipd-malloc.obj: ../avahi-common/malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-malloc.obj -MD -MP -MF $(DEPDIR)/avahi_autoipd-malloc.Tpo -c -o avahi_autoipd-malloc.obj `if test -f '../avahi-common/malloc.c'; then $(CYGPATH_W) '../avahi-common/malloc.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-common/malloc.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-malloc.Tpo $(DEPDIR)/avahi_autoipd-malloc.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/malloc.c' object='avahi_autoipd-malloc.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-malloc.obj `if test -f '../avahi-common/malloc.c'; then $(CYGPATH_W) '../avahi-common/malloc.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-common/malloc.c'; fi` avahi_autoipd-timeval.o: ../avahi-common/timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-timeval.o -MD -MP -MF $(DEPDIR)/avahi_autoipd-timeval.Tpo -c -o avahi_autoipd-timeval.o `test -f '../avahi-common/timeval.c' || echo '$(srcdir)/'`../avahi-common/timeval.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-timeval.Tpo $(DEPDIR)/avahi_autoipd-timeval.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/timeval.c' object='avahi_autoipd-timeval.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-timeval.o `test -f '../avahi-common/timeval.c' || echo '$(srcdir)/'`../avahi-common/timeval.c avahi_autoipd-timeval.obj: ../avahi-common/timeval.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-timeval.obj -MD -MP -MF $(DEPDIR)/avahi_autoipd-timeval.Tpo -c -o avahi_autoipd-timeval.obj `if test -f '../avahi-common/timeval.c'; then $(CYGPATH_W) '../avahi-common/timeval.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-common/timeval.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-timeval.Tpo $(DEPDIR)/avahi_autoipd-timeval.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../avahi-common/timeval.c' object='avahi_autoipd-timeval.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-timeval.obj `if test -f '../avahi-common/timeval.c'; then $(CYGPATH_W) '../avahi-common/timeval.c'; else $(CYGPATH_W) '$(srcdir)/../avahi-common/timeval.c'; fi` avahi_autoipd-iface-bsd.o: iface-bsd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-iface-bsd.o -MD -MP -MF $(DEPDIR)/avahi_autoipd-iface-bsd.Tpo -c -o avahi_autoipd-iface-bsd.o `test -f 'iface-bsd.c' || echo '$(srcdir)/'`iface-bsd.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-iface-bsd.Tpo $(DEPDIR)/avahi_autoipd-iface-bsd.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iface-bsd.c' object='avahi_autoipd-iface-bsd.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-iface-bsd.o `test -f 'iface-bsd.c' || echo '$(srcdir)/'`iface-bsd.c avahi_autoipd-iface-bsd.obj: iface-bsd.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-iface-bsd.obj -MD -MP -MF $(DEPDIR)/avahi_autoipd-iface-bsd.Tpo -c -o avahi_autoipd-iface-bsd.obj `if test -f 'iface-bsd.c'; then $(CYGPATH_W) 'iface-bsd.c'; else $(CYGPATH_W) '$(srcdir)/iface-bsd.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-iface-bsd.Tpo $(DEPDIR)/avahi_autoipd-iface-bsd.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iface-bsd.c' object='avahi_autoipd-iface-bsd.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-iface-bsd.obj `if test -f 'iface-bsd.c'; then $(CYGPATH_W) 'iface-bsd.c'; else $(CYGPATH_W) '$(srcdir)/iface-bsd.c'; fi` avahi_autoipd-iface-linux.o: iface-linux.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-iface-linux.o -MD -MP -MF $(DEPDIR)/avahi_autoipd-iface-linux.Tpo -c -o avahi_autoipd-iface-linux.o `test -f 'iface-linux.c' || echo '$(srcdir)/'`iface-linux.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-iface-linux.Tpo $(DEPDIR)/avahi_autoipd-iface-linux.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iface-linux.c' object='avahi_autoipd-iface-linux.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-iface-linux.o `test -f 'iface-linux.c' || echo '$(srcdir)/'`iface-linux.c avahi_autoipd-iface-linux.obj: iface-linux.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -MT avahi_autoipd-iface-linux.obj -MD -MP -MF $(DEPDIR)/avahi_autoipd-iface-linux.Tpo -c -o avahi_autoipd-iface-linux.obj `if test -f 'iface-linux.c'; then $(CYGPATH_W) 'iface-linux.c'; else $(CYGPATH_W) '$(srcdir)/iface-linux.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/avahi_autoipd-iface-linux.Tpo $(DEPDIR)/avahi_autoipd-iface-linux.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iface-linux.c' object='avahi_autoipd-iface-linux.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_autoipd_CFLAGS) $(CFLAGS) -c -o avahi_autoipd-iface-linux.obj `if test -f 'iface-linux.c'; then $(CYGPATH_W) 'iface-linux.c'; else $(CYGPATH_W) '$(srcdir)/iface-linux.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(SCRIPTS) installdirs: for dir in "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(pkgsysconfdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @ENABLE_AUTOIPD_FALSE@install-exec-hook: @HAVE_LIBDAEMON_FALSE@install-exec-hook: @TARGET_DEBIAN_FALSE@install-exec-hook: @ENABLE_AUTOIPD_FALSE@uninstall-hook: @HAVE_LIBDAEMON_FALSE@uninstall-hook: @TARGET_DEBIAN_FALSE@uninstall-hook: clean: clean-am clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-nodist_pkgsysconfSCRIPTS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-sbinPROGRAMS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) install-exec-hook install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-nodist_pkgsysconfSCRIPTS \ uninstall-sbinPROGRAMS @$(NORMAL_INSTALL) $(MAKE) $(AM_MAKEFLAGS) uninstall-hook .MAKE: install-am install-exec-am install-strip uninstall-am .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-sbinPROGRAMS cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-exec-hook install-html install-html-am \ install-info install-info-am install-man \ install-nodist_pkgsysconfSCRIPTS install-pdf install-pdf-am \ install-ps install-ps-am install-sbinPROGRAMS install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-hook \ uninstall-nodist_pkgsysconfSCRIPTS uninstall-sbinPROGRAMS .PRECIOUS: Makefile @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_TRUE@avahi-autoipd.action: avahi-autoipd.action.bsd @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_TRUE@ $(AM_V_GEN)cp $< $@ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_FALSE@avahi-autoipd.action: avahi-autoipd.action.linux @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_FREEBSD_FALSE@ $(AM_V_GEN)cp $< $@ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@dhclient-enter-hook: dhclient-enter-hook.in @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@ $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ && \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@ chmod +x $@ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@dhclient-exit-hook: dhclient-exit-hook.in @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@ $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' $< > $@ && \ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@ chmod +x $@ @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@install-exec-hook: dhclient-exit-hook dhclient-enter-hook @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@ $(MKDIR_P) $(DESTDIR)$(dhcliententerdir) $(DESTDIR)$(dhclientexitdir) @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@ $(INSTALL) dhclient-enter-hook $(DESTDIR)$(dhcliententerdir)/avahi-autoipd @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@ $(INSTALL) dhclient-exit-hook $(DESTDIR)$(dhclientexitdir)/avahi-autoipd @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@uninstall-hook: @ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@@TARGET_DEBIAN_TRUE@ rm -f $(DESTDIR)$(dhcliententerdir)/avahi-autoipd $(DESTDIR)$(dhclientexitdir)/avahi-autoipd # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/PaxHeaders.10109/avahi-compat-howl.pc.in0000644000000000000000000000013213130651643016452 xustar0030 mtime=1499681699.091370937 30 atime=1499681699.091370937 30 ctime=1499681850.023989663 avahi-0.7/avahi-compat-howl.pc.in0000644000175000017500000000043413130651643020062 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include/avahi-compat-howl/ Name: avahi-compat-howl Description: Avahi Multicast DNS Responder (HOWL Compatibility) Version: @HOWL_COMPAT_VERSION@ Libs: -L${libdir} -lhowl Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/avahi-qt4.pc.in0000644000000000000000000000013213130651643014730 xustar0030 mtime=1499681699.119370306 30 atime=1499681699.119370306 30 ctime=1499681850.019989754 avahi-0.7/avahi-qt4.pc.in0000644000175000017500000000043513130651643016341 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: avahi-qt4 Description: Avahi Multicast DNS Responder (QT4 Support) Version: @PACKAGE_VERSION@ Requires.private: QtCore >= 4.0.0 Libs: -L${libdir} -lavahi-qt4 Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/po0000644000000000000000000000013213130652073012540 xustar0030 mtime=1499681851.279961638 30 atime=1499681851.283961552 30 ctime=1499681851.279961638 avahi-0.7/po/0000755000175000017500000000000013130652073014224 5ustar00lathiatlathiat00000000000000avahi-0.7/po/PaxHeaders.10109/ro.po0000644000000000000000000000013213130651643013577 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/ro.po0000644000175000017500000006145313130651643015217 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Arthur ÈšiÈ›eică , 2014 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2014-03-15 19:22+0000\n" "Last-Translator: Arthur ÈšiÈ›eică \n" "Language-Team: Romanian (http://www.transifex.com/lennart/avahi/language/" "ro/)\n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" "2:1));\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "OperaÈ›iune eÈ™uată" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Stare greÈ™ită" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Nume de gazdă nevalid" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Nume de domeniu nevalid" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Nu este disponibil niciun protocol de reÈ›ea" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "DNS TTL nevalid" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "ÃŽnregistrarea cheie resursă este model" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Coliziune nume local" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "ÃŽnregistrare nevalidă" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Nume serviciu nevalid" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Tip serviciu nevalid" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Număr port nevalid" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Cheie înregistrare nevalidă" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Adresă nevalidă" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Timp expirat" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Prea mulÈ›i clienÈ›i" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Prea multe obiecte" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Prea multe intrări" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Eroare SO" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Acces refuzat" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "OperaÈ›ie nevalidă" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "S-a produs o eroare D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Conexiune serviciu eÈ™uată" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memorie epuizată" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Obiectul trimis nu este valid" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Serviciul nu funcÈ›ionează" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Index interfață nevalid" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "SpecificaÈ›ie de protocol nevalidă" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Marcaje nevalide" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Nu a fost găsit" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "ConfiguraÈ›ie nevalidă" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versiunea nu corespunde" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Subtip serviciu nevalid" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Pachet nevalid" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Cod DNS returnat nevalid" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Eroare DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Eroare DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Eroare DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Eroare DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Eroare DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Eroare DNS: YXDMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Eroare DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Eroare DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Eroare DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Eroare DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA nevalid" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Tip DNS nevalid" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Clasă DNS nevalidă" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Nu este suportat" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Nu este permis" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Argument nevalid" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Este gol" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "OperaÈ›ia cerută nu este validă deoarece este redundantă" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Cod de eroare nevalid" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Descoperire Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Niciun serviciu selectat." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Navigator Avahi Zeroconf" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Descoperă serviciile Zeroconf disponibile în reÈ›eaua ta" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Date TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "gol" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Tip serviciu:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Nume serviciu:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nume domeniu:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interfață:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adresă:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Navigare tipuri servicii" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "O listă terminată în NULL de servicii care să fie descoperite" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domeniu" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Domeniu pentru care să se descopere, sau NULL pentru domeniul implicit" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tip serviciu" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Tipul serviciului pentru serviciul selectat" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nume serviciu" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Numele serviciului selectat" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adresă" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Adresa serviciului rezolvat" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Numărul portului IP al serviciului rezolvat" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nume gazdă" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Numele de gazdă a serviciului rezolvat" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Date TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Datele TXT ale serviciului rezolvat" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Rezolvă serviciul" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Rezolvă automat serviciul selectat înainte de a reveni" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Rezolvă numele de gazdă a serviciului" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Rezolvă automat numele de gazdă a serviciului selectat înainte de a reveni" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Familie adresă" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Familia adresei pentru rezolvarea numelui de gazdă" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Clientul Avahi a eÈ™uat: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Eroare rezolvare Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Căutarea pentru tipul serviciului %s în domeniul %s a eÈ™uat: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Navigatorul domeniu Avahi a eÈ™uat: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "ÃŽncercare de citire domeniu Avahi eÈ™uată: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Lista tipului de serviciu este vidă!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Conectarea la serverul Avahi a eÈ™uat: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Navigare servicii în reÈ›ea locală:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Navigare servicii în domeniu %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Creare navigator a eÈ™uat pentru %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "A eÈ™uat crearea resolver-ului pentru %s de tipul %s în domeniul %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Creare navigator domeniu a eÈ™uat: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Schimbă domeniu" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Se descoperă..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Anulat.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Se iniÈ›ializează..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "LocaÈ›ie" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nume" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tip" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domeniu..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opÈ›iuni]\n" "\n" " -h --help AfiÈ™ează acest ajutor\n" " -s --ssh Navigare servere SSH\n" " -v --vnc Navigare servere VNC\n" " -S --shell Navigare SSH È™i VNC\n" " -d --domain=DOMAIN Domeniul de navigare\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Prea mulÈ›i parametri\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Alege consolă server" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Birou" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Alege server VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Alege server SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Se conectează la '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() a eÈ™uat: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Anulat.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Navigator de servere SSH Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Navighează servere SSH având activat Zeroconf" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Navigator Avahi de server VNC" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Navighează serverele VNC având activat Zeroconf" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Deocamdată atât\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Cache epuizat\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "A eÈ™uat rezolvarea serviciului „%s†de tipul „%s†din domeniul „%sâ€: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser a eÈ™uat: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() a eÈ™uat: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser a eÈ™uat: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() a eÈ™uat: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() a eÈ™uat: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Interogare È™ir versiune eÈ™uată: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Interogare nume gazdă eÈ™uată: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Versiune server: %s; Nume server: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Domeniu E Ifce Prot\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "Domeniu E Ifce Prot %-*s %-20s\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Deconectat, se reconectează...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Crearea obiectului client a eÈ™uat: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Clientul a eÈ™uat, ieÈ™ire: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Se aÈ™teaptă pentru serviciu...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help AfiÈ™ează acest ajutor\n" " -V --version AfiÈ™ează versiunia\n" " -D --browse-domains Navigare domenii de navigare în loc de servicii\n" " -a --all AfiÈ™ează toate serviciile, indiferent de tip\n" " -d --domain=DOMENIU Domeniul pentru navigare\n" " -v --verbose Activare modul detaliat\n" " -t --terminate Termină după afiÈ™area unei liste mai mult sau mai puÈ›in " "complete\n" " -c --cache Termină după afiÈ™area tuturor întrărilor din cache\n" " -l --ignore-local Ignorare servicii locale\n" " -r --resolve Rezolvă serviciile găsite\n" " -f --no-fail Nu eÈ™ua dacă serviciul nu este disponibil\n" " -p --parsable IeÈ™ire în format prelucrabil\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k ---no-db-lookup Nu căuta tipuri de servicii\n" " -b --dump-db Arată baza de date tip serviciu\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Prea puÈ›ini parametrii\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Creare obiect interogare eÈ™uată.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Sub nume stabilit „%sâ€\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "ÃŽnregistrare eÈ™uată: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Coloziune de nume, se alege nume nou „%sâ€.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Creare intrare grup eÈ™uată: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Adăugare adresă eÈ™uată: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Adăugare serviciu eÈ™uată: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Adăugare subtip „%s†eÈ™uată: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Conflict nume gazdă\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opÈ›iuni] %s []\n" "%s [opÈ›iuni] %s \n" "\n" " -h --help AfiÈ™ează acest ajutor\n" " -V --version AfiÈ™ează versiunea\n" " -s --service Publicare serviciu\n" " -a --address Publicare adresă\n" " -v --verbose Activează modul detaliat\n" " -d --domain=DOMENIU Domeniu în care se va publica serviciul\n" " -H --host=DOMENIU Gazda unde este localizat serviciul\n" " --subtype=SUBTIP Un subtip adiÈ›ional cu care va fi înregistrat acest " "serviciu\n" " -R --no-reverse Nu publica înregistrarea inversă împreună cu " "adresa\n" " -f --no-fail Nu eÈ™ua dacă serviciul nu este disponibil\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Număr incorect de parametri\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "A eÈ™uat interpretarea numărului de port: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Nicio comandă specificată.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "A eÈ™uat rezolvarea numelui de gazdă „%sâ€: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "A eÈ™uat rezolvarea adresei „%sâ€: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opÈ›iuni] %s \n" "%s [opÈ›iuni] %s \n" "\n" " -h --help AfiÈ™ează acest ajutor\n" " -V --version AfiÈ™ează versiune\n" " -n --name Rezolvare nume domeniu\n" " -a --address Rezolvare adresă\n" " -v --verbose Activare mod detaliat\n" " -6 Căutare adresă IPv6\n" " -4 Căutare adresă IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "A eÈ™uat crearea rezolvatorului de nume: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Prelucrare adresă „%s†eÈ™uată\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "A eÈ™uat crearea rezolvatorului de adresă: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opÈ›iuni] \n" "\n" " -h --help AfiÈ™ează acest ajutor\n" " -V --version AfiÈ™ează versiunea\n" " -v --verbose Activează modul detaliat\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Numărul de parametri nu este valid, se aÈ™teaptă unul singur.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Numele gazdei a fost modificat în %s\n" avahi-0.7/po/PaxHeaders.10109/zh_CN.po0000644000000000000000000000013213130651643014160 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.279961638 avahi-0.7/po/zh_CN.po0000644000175000017500000005735713130651643015610 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Christopher Meng , 2012 # Huan Chen , 2011 # nihui , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Christopher Meng \n" "Language-Team: Chinese (China) (http://www.transifex.com/lennart/avahi/" "language/zh_CN/)\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "确定" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "æ“作失败" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "错误状æ€" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "无效主机å" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "无效域å" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "没有适åˆçš„网络åè®®å¯ç”¨" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "无效 DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "资æºè®°å½•密钥是伪造的" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "本地å称冲çª" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "无效记录" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "无效æœåŠ¡åç§°" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "无效æœåŠ¡ç±»åž‹" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "无效端å£å·" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "无效记录密钥" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "无效地å€" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "已超时" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "客户端太多" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "对象太多" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "æ¡ç›®å¤ªå¤š" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "æ“作系统错误" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "访问被拒ç»" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "无效æ“作" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "å‘生一个æ„外的 D-Bus 错误" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Daemon 连接失败" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "内存已用尽" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "传入的对象无效" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Daemon ä¸åœ¨è¿è¡Œ" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "无效接å£ç´¢å¼•" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "无效å议规范" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "无效属性标志" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "没找到" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "无效é…ç½®" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "版本ä¸åŒ¹é…" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "无效æœåŠ¡å­ç±»åž‹" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "无效数æ®åŒ…" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "无效 DNS 返回代ç " #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS 失败:FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS 失败:SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS 失败:NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS 失败:NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS 失败:REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS 失败:YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS 失败:YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS 失败:NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS 失败:NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS 失败:NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "无效 RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "无效 DNS 类型" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "无效 DNS 类别" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "䏿”¯æŒ" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "ä¸å…许" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "æ— æ•ˆå‚æ•°" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "为空" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "请求的æ“作因为太多所以无效。" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "无效错误代ç " #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Discovery" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "当剿²¡æœ‰é€‰å®šçš„æœåŠ¡ã€‚" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf æµè§ˆå™¨" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "æµè§ˆç½‘络内å¯ç”¨çš„ Zeroconf æœåŠ¡" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT æ•°æ®ï¼š" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "空" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "æœåŠ¡ç±»åž‹ï¼š" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "æœåŠ¡å称:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "域å:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "接å£ï¼š" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "地å€ï¼š" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "æµè§ˆæœåŠ¡ç±»åž‹" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "ä¾›æµè§ˆçš„一个以 NULL 结尾的æœåŠ¡ç±»åž‹åˆ—è¡¨" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "域" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "è¦æµè§ˆçš„域,或用 NULL 表示默认域" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "æœåŠ¡ç±»åž‹" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "选定æœåŠ¡çš„æœåŠ¡ç±»åž‹" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "æœåŠ¡åç§°" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "选定æœåŠ¡çš„æœåŠ¡åç§°" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "地å€" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "å·²è§£æžæœåŠ¡çš„åœ°å€" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "端å£" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "å·²è§£æžæœåŠ¡çš„IP端å£å·" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "主机å" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "å·²è§£æžæœåŠ¡çš„ä¸»æœºå" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT æ•°æ®" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "å·²è§£æžæœåŠ¡çš„ TXT æ•°æ®" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "å·²è§£æžæœåŠ¡" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "返回å‰è‡ªåŠ¨è§£æžé€‰å®šæœåŠ¡" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "è§£æžæœåŠ¡ä¸»æœºå" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "返回å‰è‡ªåŠ¨è§£æžé€‰å®šæœåŠ¡çš„ä¸»æœºå" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "åœ°å€æ—" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "用于主机åè§£æžçš„åœ°å€æ—" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi 客户端失败:%s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi è§£æžå™¨å¤±è´¥ï¼š%s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "æµè§ˆåœ¨åŸŸ %s$2 中的æœåŠ¡ç±»åž‹ %s$1 失败:%s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "ä¸é€‚用" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi 域æµè§ˆå™¨å¤±è´¥ï¼š%s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "è¯»å– Avahi 域失败:%s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "æµè§ˆæœåŠ¡ç±»åž‹åˆ—è¡¨ä¸ºç©ºï¼" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "连接到 Avahi æœåŠ¡å™¨å¤±è´¥ï¼š%s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "æµè§ˆæœ¬åœ°ç½‘络上的æœåŠ¡ï¼š" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "æµè§ˆåŸŸ %s 中的æœåŠ¡ï¼š" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "为 %s 创建æµè§ˆå™¨å¤±è´¥ï¼š%s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "为域 %s$3 中的类型 %s$2 的(æœåŠ¡ï¼‰ %s$1 创建解æžå™¨å¤±è´¥ï¼š%s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "创建域æµè§ˆå™¨å¤±è´¥ï¼š%s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "更改域" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "正在æµè§ˆ..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "已喿¶ˆã€‚\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "确定" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "正在åˆå§‹åŒ–..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "ä½ç½®" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "åç§°" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "类型" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_域(D)..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [选项]\n" "\n" " -h --help 显示帮助信æ¯\n" " -s --ssh æµè§ˆ SSH æœåС噍\n" " -v --vnc æµè§ˆ VNC æœåС噍\n" " -S --shell æµè§ˆ SSH å’Œ VNC\n" " -d --domain=<域> è¦æµè§ˆçš„域å\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "傿•°å¤ªå¤š\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "选择 Shell æœåС噍" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "桌é¢" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "终端" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "选择 VNC æœåС噍" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "选择 SSH æœåС噍" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "正在连接“%sâ€...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() 失败:%s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "已喿¶ˆã€‚\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH æœåŠ¡å™¨çš„æµè§ˆå™¨" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "æµè§ˆå¯ç”¨äº† Zeroconf çš„ SSH æœåС噍" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC æœåŠ¡å™¨çš„æµè§ˆå™¨" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "æµè§ˆå¯ç”¨äº† Zeroconf 功能的 VNC æœåС噍" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ":到此为止\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ":缓存已用尽\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "è§£æžåŸŸ '%s$3' 中的 类型'%s$2' çš„æœåŠ¡ '%s$1' 失败:%s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser 失败:%s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() 失败:%s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser 失败:%s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() 失败:%s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() 失败:%s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "查询版本字符串失败:%s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "查询主机å失败:%s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "æœåŠ¡å™¨ç‰ˆæœ¬ï¼š%s;主机å:%s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot Domain\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s Domain\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "å·²æ–­å¼€ï¼Œæ­£åœ¨é‡æ–°è¿žæŽ¥...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "创建客户端对象失败:%s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "客户端失败,正在退出:%s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "正在等待 daemon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help 显示本帮助信æ¯\n" " -V --version 显示版本\n" " -D --browse-domains æµè§ˆåŸŸè€Œä¸æµè§ˆæœåŠ¡\n" " -a --all 显示所有æœåŠ¡ï¼Œä¸è€ƒè™‘类型\n" " -d --domain=<域> è¦æµè§ˆçš„域\n" " -v --verbose å¯ç”¨è¯¦ç»†æ¨¡å¼\n" " -t --terminate 在转储基本完整的列表åŽç»ˆæ­¢\n" " -c --cache 在转储缓存中的所有æ¡ç›®åŽç»ˆæ­¢\n" " -l --ignore-local 忽略本地æœåŠ¡\n" " -r --resolve è§£æžæ‰¾åˆ°çš„æœåŠ¡\n" " -f --no-fail å³ä½¿ daemon ä¸å¯ç”¨ä¹Ÿä¸é€€å‡º\n" " -p --parsable 输出å¯è§£æžçš„æ ¼å¼\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup 䏿Ÿ¥è¯¢æœåŠ¡ç±»åž‹\n" " -b --dump-db 转储æœåŠ¡ç±»åž‹æ•°æ®åº“\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "傿•°å¤ªå°‘\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "创建简å•轮询对象失败。\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "'%s' 已建立\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "注册失败:%s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "å称冲çªï¼ŒæŒ‘选了新åç§° '%s'。\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "创建æ¡ç›®ç»„失败:%s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "添加地å€å¤±è´¥ï¼š%s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "添加æœåŠ¡å¤±è´¥ï¼š%s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "添加å­ç±»åž‹ '%s' 失败:%s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "主机å冲çª\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [选项] %s <åç§°> <类型> <端å£> [<文本 ...>]\n" "%s [选项] %s <主机å> <地å€>\n" "\n" " -h --help 显示本帮助信æ¯\n" " -V --version 显示版本\n" " -s --service å‘布æœåŠ¡\n" " -a --address å‘布地å€\n" " -v --verbose å¯ç”¨è¯¦ç»†æ¨¡å¼\n" " -d --domain=DOMAIN è¦åœ¨å…¶ä¸­å‘布æœåŠ¡çš„åŸŸ\n" " -H --host=DOMAIN è¿è¡ŒæœåŠ¡çš„ä¸»æœº\n" " --subtype=SUBTYPE 用于注册此æœåŠ¡çš„é¢å¤–å­ç±»åž‹\n" " -R --no-reverse ä¸ä¸Žåœ°å€ä¸€èµ·å‘布å呿¡ç›®\n" " -f --no-fail å³ä½¿ daemon ä¸å¯ç”¨ä¹Ÿä¸é€€å‡º\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "æ— æ•ˆå‚æ•°ä¸ªæ•°\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "è§£æžç«¯å£å·å¤±è´¥ï¼š%s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "没有指定命令。\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "è§£æžä¸»æœºå '%s' 失败:%s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "è§£æžåœ°å€ '%s' 失败:%s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [选项] %s <主机å ...>\n" "%s [选项] %s <åœ°å€ ... >\n" "\n" " -h --help 显示本帮助信æ¯\n" " -V --version 显示版本\n" " -n --name è§£æžä¸»æœºå\n" " -a --address è§£æžåœ°å€\n" " -v --verbose å¯ç”¨è¯¦ç»†æ¨¡å¼\n" " -6 查询 IPv6 地å€\n" " -4 查询 IPv4 地å€\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "创建主机åè§£æžå™¨å¤±è´¥ï¼š%s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "分æžåœ°å€ '%s' 失败\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "创建地å€è§£æžå™¨å¤±è´¥ï¼š%s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [选项] <新主机å>\n" "\n" " -h --help 显示本帮助信æ¯\n" " -V --version 显示版本\n" " -v --verbose å¯ç”¨è¯¦ç»†æ¨¡å¼\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "æ— æ•ˆå‚æ•°ä¸ªæ•°ï¼ŒåªæœŸå¾…ä¸€ä¸ªå‚æ•°ã€‚\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "ä¸»æœºåæˆåŠŸæ›´æ”¹ä¸º %s\n" avahi-0.7/po/PaxHeaders.10109/ca.po0000644000000000000000000000013213130651643013542 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681851.263961998 avahi-0.7/po/ca.po0000644000175000017500000006312213130651643015155 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Robert Antoni Buj i Gelonch , 2015 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2015-10-10 10:10+0000\n" "Last-Translator: Robert Antoni Buj i Gelonch \n" "Language-Team: Catalan (http://www.transifex.com/lennart/avahi/language/" "ca/)\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "D'acord" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Ha fallat l'operació" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "L'estat és dolent" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "El nom d'amfitrió no és vàlid" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "El nom del domini no és vàlid" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "No hi ha disponible cap protocol de xarxa que s'adeqüi" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "El TTL del DNS no és vàlid" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "La clau del registre del recurs és un patró" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Col·lisió de nom local" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "El registre no és vàlid" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "El nom del servei no és vàlid" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "El tipus del servei no vàlid" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "El número del port no és vàlid" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "La clau del registre no és vàlida" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "L'adreça no és vàlida" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "S'ha superat el temps d'expiració" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Hi ha massa clients" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Hi ha massa objectes" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Hi ha massa entrades" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Error del SO" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "S'ha denegat l'accés" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "L'operació no és vàlida" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "S'ha produït un error inesperat al D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Ha fallat la connexió amb el dimoni" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "S'ha exhaurit la memòria" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "L'objecte que es va passar no era vàlid" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "El dimoni no s'està executant" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "L'índex de la interfície no és vàlid" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "L'especificació de protocol no és vàlida" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "L'indicador no és vàlid" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "No s'ha trobat" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "La configuració no és vàlida" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "La versió no coincideix" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "El subtipus del servei no és vàlid" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "El paquet no és vàlid" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "El codi retornat pel DNS no és vàlid" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Fracàs del DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Fracàs del DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Fracàs del DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Fracàs del DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Fracàs del DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Fracàs del DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Fracàs del DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Fracàs del DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Fracàs del DNS: NOAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Fracàs del DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "El RDATA no és vàlid" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "El tipus de DNS no és vàlid" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "La classe de DNS no és vàlida" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "No està admès" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "No està permès" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "L'argument no és vàlid" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Està buit" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "L'operació sol·licitada no és vàlida perquè és redundant" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "El codi d'error no és vàlid" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Descobriment de l'Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "No hi ha cap servei seleccionat." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Eina d'exploració de Zeroconf de l'Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Exploreu si hi ha disponibles serveis Zeroconf a la vostra xarxa" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Dades TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "buit" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Tipus de servei:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Nom del servei:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nom de domini:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interfície:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adreça:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Explora els tipus de serveis" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Una llista dels tipus de servei acabada en NULL per a explorar" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domini" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "El domini a explorar, o NULL per al domini predeterminat" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tipus de servei" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "El tipus de servei del servei seleccionat" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nom del servei" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "El nom del servei del servei seleccionat" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adreça" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "L'adreça del servei resolt" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "El número de port IP del servei resolt" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nom d'amfitrió" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "El nom d'amfitrió del servei resolt" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Dades TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Les dades TXT del servei resolt" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Resol el servei" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Resol el servei seleccionat automàticament abans de retornar-ho" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Resol el nom d'amfitrió del servei" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Resol el nom d'amfitrió del servei seleccionat automàticament abans de " "retornar-ho" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Família de l'adreça" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "La família de l'adreça per la resolució del nom d'amfitrió" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Fracàs del client de l'Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Fracàs de l'eina de resolució de l'Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Ha fallat la cerca del tipus de servei %s al domini %s: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "No disponible" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Fracàs de l'eina d'exploració del domini de l'Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Ha fallat la lectura del domini de l'Avahi: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "La llista d'exploració de tipus de serveis és buida!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Ha fallat la connexió al servidor de l'Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Exploració pels serveis a la xarxa local:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Exploració pels serveis al domini %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Ha fallat la creació de l'eina d'exploració per %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Ha fallat la creació de l'eina de resolució per %s del tipus %s al domini " "%s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Ha fallat la creació de l'eina d'exploració del domini: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Canvieu el domini" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Exploració..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancel·lat.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "D'acord" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inicialització..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Ubicació" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nom" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tipus" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domini..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opcions]\n" "\n" " -h --help Mostra aquesta ajuda\n" " -s --ssh Explora els servidors SSH\n" " -v --vnc Explora els servidors VNC\n" " -S --shell Explora SSH i VNC\n" " -d --domain=DOMAIN El domini on cercar\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Massa arguments\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Trieu el servidor de Shell" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Escriptori" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Trieu el servidor de VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Trieu el servidor de SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "S'està connectant a «%s»...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Ha fallat l'execlp(): %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancel·lat.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Eina d'exploració de servidors de SSH de l'Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Exploreu si hi ha servidors de SSH amb Zeroconf habilitat" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Eina d'exploració de servidors de VNC de l'Avahi" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Exploreu si hi ha servidors de VNC amb Zeroconf habilitat" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Això és tot per ara\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Memòria cau exhaurida\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Ha fallat la resolució del servei «%s» del tipus «%s» al domini «%s»: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser ha fallat: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() ha fallat: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser ha fallat: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() ha fallat: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() ha fallat: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Ha fallat la consulta de la cadena de la versió: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Ha fallat la consulta del nom d'amfitrió: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Versió del servidor: %s; Nom d'amfitrió: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Inter Prot Domini\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Inter Prot %-*s %-20s Domini\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Es va desconnectar, s'està tornant a connectar...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Ha fallat la creació de l'objecte client: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Fracàs del client i se surt: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "A l'espera del dimoni...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Mostra aquesta ajuda\n" " -V --version Mostra la versió\n" " -D --browse-domains Mostra els dominis en lloc dels serveis\n" " -a --all Mostra tots els serveis, independentment del tipus\n" " -d --domain=DOMINI El domini a cercar\n" " -v --verbose Habilita el mode verbós\n" " -t --terminate Finalitza després d'emmagatzemar una llista més o " "menys completa\n" " -c --cache Acaba després de bolcar totes les entrades de la " "memòria cau\n" " -l --ignore-local Ignora els serveis locals\n" " -r --resolve Resol els serveis trobats\n" " -f --no-fail No fallis si el dimoni no està disponible\n" " -p --parsable Imprimeix en un format analitzable\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup No cerquis tipus de serveis\n" " -b --dump-db Bolca la base de dades del tipus de servei\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Molt pocs arguments\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Ha fallat la creació de l'objecte d'enquestes simple.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "S'estableix sota el nom «%s»\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Ha fallat el registre: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Conflicte de noms, s'agafa un nou nom «%s».\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Ha fallat la creació del grup buit: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Ha fallat l'afegiment de l'adreça: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Ha fallat l'afegiment del servei: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Ha fallat l'afegiment del subtipus «%s»: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Conflicte amb el nom d'amfitrió\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opcions] %s []\n" "%s [opcions] %s \n" "\n" " -h --help Mostra aquesta ajuda\n" " -V --version Mostra la versió\n" " -s --service Publica el servei\n" " -a --address Publica l'adreça\n" " -v --verbose Habilita el mode verbós\n" " -d --domain=DOMINI El domini per publicar-hi el servei\n" " -H --host=DOMINI L'amfitrió on resideix el servei\n" " --subtype=SUBTIPUS Un subtipus addicional amb què registrar el " "servei\n" " -f --no-fail No fracassis si el dimoni no està disponible\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Nombre erroni d'arguments\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Ha fallat l'anàlisi del número de port: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "No s'ha especificat cap ordre.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Ha fallat la resolució del nom d'amfitrió «%s»: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Ha fallat la resolució de l'adreça «%s»: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opcions] %s \n" "%s [options] %s \n" "\n" " -h --help Mostra aquesta ajuda\n" " -V --version Mostra la versió\n" " -n --name Resol el nom d'amfitrió\n" " -a --address Resol l'adreça\n" " -v --verbose Habilita el mode verbós\n" " -6 Cerca a les adreces IPv6\n" " -4 Cerca a les adreces IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Ha fallat la creació de l'eina de resolució del nom d'amfitrió: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Ha fallat l'anàlisi de l'adreça «%s»\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Ha fallat la creació de l'eina de resolució de l'adreça: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opcions] \n" "\n" " -h --help Mostra aquesta ajuda\n" " -V --version Mostra la versió\n" " -v --verbose Habilita el mode verbós\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Nombre d'arguments incorrecte, s'esperava un exactament.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "S'ha canviat correctament el nom d'amfitrió a %s\n" avahi-0.7/po/PaxHeaders.10109/en_GB.po0000644000000000000000000000013213130651643014131 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/en_GB.po0000644000175000017500000006027513130651643015552 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Bruce Cowan , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Bruce Cowan \n" "Language-Team: English (United Kingdom) (http://www.transifex.com/lennart/" "avahi/language/en_GB/)\n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operation failed" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Bad state" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Invalid host name" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Invalid domain name" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "No suitable network protocol available" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Invalid DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Resource record key is pattern" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Local name collision" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Invalid record" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Invalid service name" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Invalid service type" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Invalid port number" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Invalid record key" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Invalid address" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Timeout reached" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Too many clients" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Too many objects" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Too many entries" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS Error" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Access denied" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Invalid operation" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "An unexpected D-Bus error occurred" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Daemon connection failed" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memory exhausted" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "The object passed in was not valid" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Daemon not running" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Invalid interface index" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Invalid protocol specification" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Invalid flags" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Not found" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Invalid configuration" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Version mismatch" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Invalid service subtype" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Invalid packet" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Invalid DNS return code" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS failure: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS failure: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS failure: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS failure: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS failure: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS failure: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS failure: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS failure: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS failure: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS failure: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Invalid RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Invalid DNS type" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Invalid DNS class" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Not supported" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Not permitted" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Invalid argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Is empty" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "The requested operation is invalid because redundant" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Invalid Error Code" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Discovery" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "No service currently selected." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf Browser" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Browse for Zeroconf services available on your network" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT Data:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "empty" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Service Type:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Service Name:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Domain Name:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interface:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Address:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Browse Service Types" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "A NULL terminated list of service types to browse for" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domain" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "The domain to browse in, or NULL for the default domain" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Service Type" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "The service type of the selected service" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Service Name" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "The service name of the selected service" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Address" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "The address of the resolved service" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "The IP port number of the resolved service" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Host Name" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "The host name of the resolved service" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT Data" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "The TXT data of the resolved service" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Resolve Service" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Resolve the selected service automatically before returning" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Resolve Service Host Name" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Resolve the host name of the selected service automatically before returning" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Address family" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "The address family for host name resolution" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi client failure: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi resolver failure: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Browsing for service type %s in domain %s failed: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi domain browser failure: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Failed to read Avahi domain: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Browse service type list is empty!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Failed to connect to Avahi server: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Browsing for services on local network:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Browsing for services in domain %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Failed to create browser for %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Failed to create resolver for %s of type %s in domain %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Failed to create domain browser: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Change domain" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Browsing..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancelled.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Initialising..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Location" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Name" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Type" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domain..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Too many arguments\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Choose Shell Server" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Desktop" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Choose VNC server" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Choose SSH server" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Connecting to '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() failed: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancelled.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH Server Browser" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Browse for Zeroconf-enabled SSH Servers" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC Server Browser" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Browse for Zeroconf-enabled VNC Servers" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": All for now\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Cache exhausted\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser failed: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() failed: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser failed: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() failed: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() failed: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Failed to query version string: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Failed to query host name: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Server version: %s; Host name: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot Domain\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s Domain\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Disconnected, reconnecting ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Failed to create client object: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Client failure, exiting: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Waiting for daemon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Too few arguments\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Failed to create simple poll object.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Established under name '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Failed to register: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Name collision, picking new name '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Failed to create entry group: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Failed to add address: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Failed to add service: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Failed to add subtype '%s': %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Host name conflict\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Bad number of arguments\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Failed to parse port number: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "No command specified.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Failed to resolve host name '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Failed to resolve address '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Failed to create host name resolver: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Failed to parse address '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Failed to create address resolver: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Invalid number of arguments, expecting exactly one.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Host name successfully changed to %s\n" avahi-0.7/po/PaxHeaders.10109/de.po0000644000000000000000000000013213130651643013547 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.263961998 avahi-0.7/po/de.po0000644000175000017500000006230713130651643015166 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Fabian Affolter , 2011 # Mario Blättermann , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Mario Blättermann \n" "Language-Team: German (http://www.transifex.com/lennart/avahi/language/de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operation fehlgeschlagen" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Ungültiger Zustand" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Ungültiger Rechnername" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Ungültiger Domainname" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Kein passendes Netzwerkprotokoll verfügbar" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Ungültige DNS-TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Datensatzschlüssel ist Muster" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Lokale Namenskollision" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Ungültiger Datensatz" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Ungültiger Dienstname" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Ungültiger Diensttyp" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Ungültige Port-Nummer" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Ungültiger Datensatzschlüssel" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Ungültige Adresse" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Auszeit erreicht" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Zu viele Clients" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Zu viele Objekte" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Zu viele Einträge" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Betriebssystemfehler" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Zugriff verweigert" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Ungültige Operation" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Ein unerwarteter DBus-Fehler ist aufgetreten" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Verbindung zum Daemon fehlgeschlagen" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Verfügbarer Speicher ausgeschöpft" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Das übergebene Objekt ist nicht gültig" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Daemon läuft nicht" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ungültiger Schnittstellenindex" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Ungültige Protokollspezifikation" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Ungültige Flags" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Nicht gefunden" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Ungültige Konfiguration" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Unpassende Version" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Ungültiger Dienst-Untertyp" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Ungültiges Paket" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Ungültiger DNS-Rückgabewert" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS-Fehler: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS-Fehler: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS-Fehler: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS-Fehler: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS-Fehler: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS-Fehler: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS-Fehler: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS-Fehler: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS-Fehler: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS-Fehler: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Ungültige RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Ungültiger DNS-Typ" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Ungültige DNS-Klasse" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Nicht unterstützt" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Nicht erlaubt" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Ungültiges Argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "ist leer" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Die angeforderte Operation ist ungültig, da sie redundant ist" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Ungültiger Fehlercode" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Discovery" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Momentan ist kein Dienst ausgewählt." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf Browser" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Durchsuchen nach Zeroconf-aktivierten Diensten in Ihrem Netzwerk" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT-Daten:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "leer" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Diensttyp:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Dienstname:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Domainname:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Schnittstelle:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adresse:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Dienst-Typen durchsuchen" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Eine mit NULL abgeschlossene Liste der Dienst-Typen zum Durchsuchen " #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domain" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Die Domain zum Durchsuchen oder NULL für die Standard-Domain" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Diensttyp" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Der Service-Type des gewählten Diensts" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Dienstname" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Der Dienst-Name des gewählten Diensts" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adresse" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Die Adresse des Auflösungsdiensts" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Die IP-Port-Nummer des Auflösungsdienst" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Rechner-Name" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Der Rechner-Name des aufgelösten Dienstes" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT-Daten" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Die TXT-Daten des aufgelösten Dienstes" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Auflösungsdienst" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Vor dem Rücksprung den ausgewählten Dienst automatisch auflösen" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Dienst-Rechner-Name auflösen" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Vor dem Rücksprung den Hostname des ausgewählten Dienstes\n" "automatisch auflösen" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Adress-Familie" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Die Adress-Familie zum Auflösen der Rechner-Namen" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi-Client-Fehler: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi-Auflösungsfehler: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Durchsuchen nach Dienst-Typen %s in Domain %s fehlgeschlagen: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "k.A." #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi-Domainbrowser-Fehler: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Fehler beim Lesen der Avahi-Domain: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Die Liste der Service-Typen ist leer!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Verbindung zu Avahi-Server fehlgeschlagen: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Lokales Netzwerk wird nach Diensten durchsucht:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Domain %s wird nach Diensten durchsucht:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Browser-Erzeugung für %s fehlgeschlagen: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Erzeugen eines Resolvers für %s vom Typ %s in Domain %s fehlgeschlagen: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Erzeugen eines Domainbrowsers fehlgeschlagen: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Domain ändern" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Durchsuchen …" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Abgebrochen.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Initialisieren …" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Standort" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Name" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Typ" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domain ..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [options]\n" "\n" " -h --help Zeigt diese Hilfe an\n" " -s --ssh Durchsuchen nach SSH-Servern\n" " -v --vnc Durchsuchen nach VNC-Server\n" " -S --shell Durchsuchen nach beiden (SSH und VNC)\n" " -d --domain=DOMAIN Die Domain zum Durchsuchen\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Zu viele Argumente\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Shell-Server auswählen" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Desktop" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "VNC-Server auswählen" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "SSH-Dienst auswählen" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Verbinden zu »%s« …\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() fehlgeschlagen: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Abgebrochen.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH-Server-Browser" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Durchsuchen nach Zeroconf-aktivierten SSH-Servern" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC-Server-Browser" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Durchsuchen nach Zeroconf-aktivierten VNC-Servern" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Alle Einträge bisher\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Datencache erschöpft\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Fehler beim Auflösen des Dienstes »%s« des Typs »%s« in Domain »%s«: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Versionsstring-Abfrage fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Hostname-Abfrage fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Server-Version: %s; Rechnername: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot-Domain\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s-Domain\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Nicht verbunden, neu verbinden …\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Clientobjekt-Erzeugung fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Client-Fehler, wird beendet: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Auf Daemon warten …\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Zeigt diese Hilfe an\n" " -V --version Zeigt die Version an\n" " -D --browse-domains Nach suchenden Domains statt nach Diensten " "durchsuchen\n" " -a --all Zeigt alle Dienste, ohne Rücksicht auf die Typen\n" " -d --domain=DOMAIN Die Domain zum Durchsuchen\n" " -v --verbose Aktiviert detaillierten Modus\n" " -t --terminate Beenden nach Ausgeben einer mehr oder weniger " "kompletten Liste\n" " -c --cache Beenden nach Ausgeben aller Einträge aus dem Cache\n" " -l --ignore-local Lokale Dienste ignorieren\n" " -r --resolve Gefundene Dienste auflösen\n" " -f --no-fail Schlägt nicht fehl, wenn der Daemon nicht verfügbar " "ist\n" " -p --parsable Ausgabe in parsbaren Format\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Dienst-Typen nicht nachschlagen\n" " -b --dump-db Anzeigen der Dienst-Typen-Datenbank\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Zu wenige Argumente\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Fehler beim Erzeugen eines einfachen Abfrage-Objekts: \n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Eingerichtet unter dem Namen »%s«\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Registrierung fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Namenskollision, neuer Name »%s« wird gewählt.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Fehler bei der Erzeugung der Einstiegsgruppe: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Fehler beim Hinzufügen der Adresse: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Fehler beim Hinzufügen des Dienstes: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Fehler beim Hinzufügen des Untertyps: »%s«: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Rechnername-Konflikt\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [Optionen] %s []\n" "%s [Optionen] %s \n" "\n" " -h --help Diese Hilfe anzeigen\n" " -V --version Version anzeigen\n" " -s --service Dienst veröffentlichen\n" " -a --address Adresse veröffentlichen\n" " -v --verbose Ausführlichen Modus aktivieren\n" " -d --domain=DOMAIN Domain zur Dienstveröffentlichung\n" " -H --host=DOMAIN Host des Dienstes\n" " --subtype=SUBTYPE Zusätzlicher Untertyp zur Registrierung des " "Dienstes \n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Schlägt nicht fehl, wenn der Daemon nicht verfügbar " "ist\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Ungültige Anzahl von Argumenten\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Parsen der Port-Nummer fehlgeschlagen: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Kein Befehl angegeben.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Fehler beim Auflösen des Rechnernamens »%s«: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Fehler beim Auflösen der Adresse »%s«: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [Optionen] %s \n" "%s [Optionen] %s \n" "\n" " -h --help Zeigt diese Hilfe an\n" " -V --version Zeigt die Version an\n" " -n --name Löst Hostname auf\n" " -a --address Löst Addresse auf\n" " -v --verbose Aktiviert detaillierten Modus\n" " -6 Schlägt IPv6-Addresse nach\n" " -4 Schlägt IPv4-Addresse nach\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Fehler beim Erzeugen des Rechneramen-Auflösers: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Fehler beim Parsen der Adresse »%s«\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Fehler beim Erzeugen des Adress-Auflösers: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [Optionen] \n" "\n" " -h --help Zeigt diese Hilfe an\n" " -V --version Zeigt die Version an\n" " -v --verbose Aktiviert detaillierten Modus\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Ungültige Anzahl von Argumenten, erwartet wird genau eines.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Rechnername erfolgreich geändert auf %s\n" avahi-0.7/po/PaxHeaders.10109/gl.po0000644000000000000000000000013213130651643013561 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/gl.po0000644000175000017500000006364013130651643015201 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Fran Diéguez , 2012 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Fran Diéguez \n" "Language-Team: Galician (http://www.transifex.com/lennart/avahi/language/" "gl/)\n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Aceptar" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Produciuse un fallo na operación" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Estado incorrecto" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "O nome do servidor é incorrecto" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "O nome do dominio é incorrecto" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Non hai dispoñíbel ningún protocolo de rede apropiado" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "TTL do DNS incorrecto" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "A chave do rexistro do recurso é un patrón" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Hai un conflito de nomes locais" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Rexistro incorrecto" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "O nome do servizo é incorrecto" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "O tipo de servizo é incorrecto" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "O número de porto é incorrecto" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "A chave do rexistro é incorrecta" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "O enderezo é incorrecto" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Rematou o tempo de espera" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Demasiados clientes" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Demasiados obxectos" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Demasiadas entradas" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Prodicuse un erro do SO" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Acceso denegado" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Operación incorrecta" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Produciuse un erro inesperado de D-BUS" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Produciuse un fallo na conexión co daemon" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memoria esgotada" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "O obxecto indicado non é correcto" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "O daemon non está executándose" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "O índice de interface é incorrecto" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "A especificación do protocolo é incorrecta" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Marcas incorrectas" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Non encontrado" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "A configuración é incorrecta" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versións non coincidentes" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "O subtipo de servizo é incorrecto" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "O paquete é incorrecto" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "O código de retorno do DNS é incorrecto" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Produciuse un erro no DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Produciuse un erro no DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Produciuse un erro no DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Produciuse un erro no DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Produciuse un erro no DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Produciuse un erro no DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Produciuse un erro no DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Produciuse un erro no DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Produciuse un erro no DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Produciuse un erro no DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA incorrecto" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Tipo de DNS incorrecto" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Clase de DNS incorrecta" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Non admitido" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Non permitido" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Argumento incorrecto" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Está baleiro" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "A operación solicitada non é correcta por ser redundante" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Código do erro incorrecto" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Descubrimento de Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Non hai ningún servizo seleccionado actualmente." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Navegador Zeroconf de Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Navegar na busca de servizos Zeroconf dispoñíbeis na súa rede" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Datos TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "baleiro" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Tipo do servizo:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Nome do servizo:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nome do dominio:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interface:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Enderezo:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Navegar polos tipos de servizo" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Unha lista rematada en NULL de tipos de servizo polos que navegar" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Dominio" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" "O dominio polo que navegar, ou NULL para empregar o dominio predefinido" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tipo de servizo" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "O tipo de servizo do servizo seleccionado" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nome do servizo" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "O nome de servizo do servizo seleccionado" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Enderezo" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "O enderezo do servizo localizado" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Porto" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "O número de porto IP do servizo localizado" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nome do servidor" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "O nome do servidor do servizo localizado" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Datos TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Os datos TXT do servizo localizado" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Resolver servizo" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" "Resolver o servizo seleccionado de maneira automática antes da devolución" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Resolver o nome do equipo do servizo" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Resolver o nome do equipo do servizo seleccionado de maneira automática " "antes da devolución" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Familia de enderezos" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "A familia de enderezos para a localización de nomes de servidor" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Produciuse un erro no cliente Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Produciuse un erro no localizador Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" "Produciuse un erro ao navegar polo tipo de servizo %s no dominio %s: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/d" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Produciuse un erro no navegador de dominios Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Non foi posíbel ler o dominio de Avahi: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "A lista de navegación por tipo de servizo está baleira!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Non foi posíbel conectar co servidor Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Navegando polos servizos na rede local:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Navegando polos servizos no dominio %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Produciuse un erro ao crear un navegador para %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Produciuse un erro ao crear un localizador para %s do tipo %s no dominio %s: " "%s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Produciuse un erro ao crear un navegador de dominios: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Cambiar o dominio" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Navegando..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancelado.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Aceptar" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inicializando..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Localización" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nome" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tipo" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Dominio..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opcións]\n" "\n" " -h --help Mostra esta axuda\n" " -s --ssh Navegar polos servidores SSH\n" " -v --vnc Navegar polos servidores VNC\n" " -S --shell Navegar por ambos, SSH e VNC\n" " -d --domain=DOMINIO O dominio polo que navegar\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Demasiados argumentos\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Seleccione o servidor de intérprete de ordes" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Escritorio" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Escolla o servidor VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Escolla o servidor SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Conectando a '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Produciuse un erro con execlp(): %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancelado.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Navegador de servidores SSH de Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Navegar por servidores SSH con Zeroconf activado" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Navegador de servidores VNC de Avahi" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Navegar por servidores VNC con Zeroconf activado" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Todo por agora\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Cache esgotada\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Produciuse un erro ao resolver o servizo «%s» do tipo «%s» no dominio «%s»: " "%s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Produciuse un erro con service_browser: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Produciuse un erro con avahi_service_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Produciuse un erro con service_type_browser: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Produciuse un erro con avahi_service_type_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Produciuse un erro con avahi_domain_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Produciuse un erro ao consultar a cadea de versión: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Produciuse un erro ao consultar o nome do servidor: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Versión do servidor: %s; Nome do servidor: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Dominio E Ifce Prot\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "Dominio E Ifce Prot %-*s %-20s \n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Desconectado, reconectando...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Produciuse un erro ao crear o obxecto cliente: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Produciuse un erro no cliente, saíndo: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Esperando polo daemon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Mostra esta axuda\n" " -V --version Mostra a versión\n" " -D --browse-domains Navegar polos dominios de navegación no canto de " "polos servizos\n" " -a --all Mostra todos os servizos, sen importar o tipo\n" " -d --domain=DOMINIO O dominio polo que navegar\n" " -v --verbose Activar o modo detallado\n" " -t --terminate Rematar despois de envorcar unha lista máis ou " "menos completa\n" " -c --cache Rematar despois de envorcar todas as entradas dende " "a caché\n" " -l --ignore-local Ignorar servizos locais\n" " -r --resolve Localizar os servizos encontrados\n" " -f --no-fail Non producir erro se o daemon non está dispoñíbel\n" " -p --parsable Producir unha saída en formato procesábel\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Non buscar tipos de servizo\n" " -b --dump-db Envorcar a base de datos de tipos de servizo\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Poucos argumentos\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Produciuse un erro ao crear un obxecto simple de consulta.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Estabelecido baixo o nome '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Produciuse un erro ao rexistrar: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Conflito de nomes, escollendo o novo nome '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Produciuse un erro ao crear o grupo de entradas: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Produciuse un erro ao engadir o enderezo: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Produciuse un erro ao engadir o servizo: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Produciuse un erro ao engadir o subtipo «%s»: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Conflito de nomes de servidor\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opcións] %s []\n" "%s [opcións] %s \n" "\n" " -h --help Mostrar esta axuda\n" " -V --version Mostrar a versión\n" " -s --service Publicar un servizo\n" " -a --address Publicar un enderezo\n" " -v --verbose Activar o modo detallado\n" " -d --domain=DOMINIO Dominio no que publicar o servizo\n" " -H --host=DOMINIO Computador no que reside o servizo\n" " --subtype=SUBTIPO Un subtipo adicional co que rexistrar este servizo\n" " -f --no-fail Non producir un erro se o daemon non está " "dispoñíbel\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "O número de argumento é erróneo\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Produciuse un erro ao procesar o número de porto: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Non se especificou ningunha orde.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Produciuse un erro ao localizar o nome de servidor «%s»: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Produciuse un erro ao localizar o enderezo «%s»: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opcións] %s \n" "%s [opcións] %s \n" "\n" " -h --help Mostrar esta axuda\n" " -V --version Mostrar a versión\n" " -n --name Localizar o nome de computador\n" " -a --address Localizar o enderezo\n" " -v --verbose Activar o modo detallado\n" " -6 Buscar enderezos IPv6\n" " -4 Buscar enderezos IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" "Produciuse un erro ao crear o proceso de localización de nomes de servidor: " "%s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Produciuse un erro ao procesar o enderezo «%s»\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Produciuse un erro ao crear o localizador de enderezos: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opcións] \n" "\n" " -h --help Mostrar esta axuda\n" " -V --version Mostrar a versión\n" " -v --verbose Activar o modo detallado\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "O número de argumentos non é correcto, esperábase exactamente un.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Cambiouse o nome de servidor correctamente a %s\n" avahi-0.7/po/PaxHeaders.10109/sr.po0000644000000000000000000000013213130651643013603 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/sr.po0000644000175000017500000007305513130651643015224 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # МироÑлав Ðиколић , 2013 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: МироÑлав Ðиколић \n" "Language-Team: Serbian (http://www.transifex.com/lennart/avahi/language/" "sr/)\n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "У реду" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Операција није уÑпела" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Лоше Ñтање" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "ÐеиÑправан назив домаћина" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "ÐеиÑправан назив домена" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Одговарајући мрежни протокол није доÑтупан" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "ÐеиÑправан ДÐС ТТЛ" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Кључ запиÑа изворишта је шаблон" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Сукоб меÑних назива" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "ÐеиÑправан запиÑ" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "ÐеиÑправан назив уÑлуге" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "ÐеиÑправна врÑта уÑлуге" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "ÐеиÑправан број прикључника" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "ÐеиÑправан кључ запиÑа" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "ÐеиÑправна адреÑа" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Време је иÑтекло" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Превише клијената" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Превише објеката" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Превише уноÑа" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Грешка оперативног ÑиÑтема" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "ПриÑтуп је забрањен" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "ÐеиÑправна радња" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Дошло је до неочекиване грешке Д-Ñабирнице" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Ðије уÑпело повезивање ÑиÑтемÑке уÑлуге" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Меморија је иÑтрошена" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "ПроÑлеђени објекат није био иÑправан" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "СиÑтемÑка уÑлуга није покренута" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "ÐеиÑправан региÑтар уређаја" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "ÐеиÑправна одредба протокола" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "ÐеиÑправне опције" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "ÐиÑам нашао" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "ÐеиÑправно подешавање" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "ÐеÑлагање издања" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "ÐеиÑправна подврÑта уÑлуге" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "ÐеиÑправан пакет" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "ÐеиÑправан повратни код ДÐС-а" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "ÐеуÑпех ДÐС-а: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "ÐеуÑпех ДÐС-а: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "ÐеуÑпех ДÐС-а: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "ÐеуÑпех ДÐС-а: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "ÐеуÑпех ДÐС-а: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "ÐеуÑпех ДÐС-а: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "ÐеуÑпех ДÐС-а: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "ÐеуÑпех ДÐС-а: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "ÐеуÑпех ДÐС-а: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "ÐеуÑпех ДÐС-а: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "ÐеиÑправни Ñу РПОДÐЦИ" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "ÐеиÑправна врÑта ДÐС-а" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "ÐеиÑправан разред ДÐС-а" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ðије подржано" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Ðије дозвољено" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "ÐеиÑправан аргумент" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Празно" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Тражена радња је неиÑправна јер је Ñувишна" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "ÐеиÑправан код грешке" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Ðвахијево откривање" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Ðиједна уÑлуга тренутно није изабрана." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Ðвахијев Зероконф прегледник" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Прегледам доÑтупне Зероконф уÑлуге на вашој мрежи" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "ТЕКСТ" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "ТекÑтуални подаци:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "празно" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Ð’Ñ€Ñта уÑлуге:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Ðазив уÑлуге:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Ðазив домена:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Уређај:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "ÐдреÑа:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Прегледај врÑте уÑлуга" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "СпиÑак врÑта уÑлуга за прегледање ограничен Ñа „NULL“" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Домен" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Домен за прегледање, или „NULL“ за подразумевани домен" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Ð’Ñ€Ñта уÑлуге" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Ð’Ñ€Ñта изабране уÑлуге" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Ðазив уÑлуге" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Ðазив изабране уÑлуге" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "ÐдреÑа" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "ÐдреÑа решене уÑлуге" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Прикључник" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Број ИП прикључника решене уÑлуге" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Ðазив домаћина" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Ðазив домаћина решене уÑлуге" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "ТекÑтуални подаци" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "ТекÑтуални подаци решене уÑлуге" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Реши уÑлугу" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "СамоÑтално решава изабрану уÑлугу пре повраћаја" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Реши назив домаћина уÑлуге" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "СамоÑтално решава назив домаћина изабране уÑлуге пре повраћаја" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Породица адреÑа" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Породица адреÑа за разрешавање назива домаћина" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Квар Ðвахијевог клијента: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Квар Ðвахијевог решавача: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" "ÐиÑам уÑпео да потражим врÑту уÑлуге „%s“ у домену „%s“\n" "%s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "н/д" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "ÐеуÑпех Ðвахијевог прегледника домена: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "ÐиÑам уÑпео да прочитам Ðвахијев домен: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "СпиÑак врÑта уÑлуга за преглед је празан!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "ÐиÑам уÑпео да Ñе повежем на Ðвахијев Ñервер: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Тражим уÑлугу на меÑној мрежи:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Тражим уÑлугу у домену %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "ÐиÑам уÑпео да направим прегледника за „%s“: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "ÐиÑам уÑпео да направим решавача за „%s“ врÑте %s у домену %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "ÐиÑам уÑпео да направим прегледника домена: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Промени домен" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Разгледам..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Отказано.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "У реду" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Покрећем..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "МеÑто" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Ðазив" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Ð’Ñ€Ñта" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Домен..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [могућноÑти]\n" "\n" " -h --help Приказује ову помоћ\n" " -s --ssh Разгледа Ñервере безбедне шкољке\n" " -v --vnc Разгледа Ð’ÐЦ Ñервере\n" " -S --shell Разгледа Ñервере и безбедне шкољке и Ð’ÐЦ-а\n" " -d --domain=ДОМЕРДомен у коме ће Ñе вршити разгледање\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Превише аргумената\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Изаберите Ñервер шкољке" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Радна површ" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Терминал" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Изаберите Ð’ÐЦ Ñервер" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Изаберите Ñервер безбедне шкољке" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Повезујем Ñе на „%s“ ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Ðије уÑпела функција „execlp()“: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Отказано.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Прегледник Ðвахијевог Ñервера безбедне шкољке" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Потражите Ñервере безбедне шкољке Ñа укљученим Зероконфом" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Прегледник Ðвахијевог Ð’ÐЦ Ñервера" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Потражите Ð’ÐЦ Ñервере Ñа укљученим Зероконфом" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": За Ñада Ñве\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": ОÑтава је препуњена\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "ÐиÑам уÑпео да решим уÑлугу „%s“ врÑте „%s“ у домену „%s“: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Ðије уÑпела функција „service_browser“: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Ðије уÑпела функција „avahi_service_browser_new()“: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Ðије уÑпела функција „service_type_browser“: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Ðије уÑпела функција „avahi_service_type_browser_new()“: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Ðије уÑпела функција „avahi_domain_browser_new()“: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "ÐиÑам уÑпео да пропитам ниÑку издања: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "ÐиÑам уÑпео да пропитам назив домаћина: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Издање Ñервера: %s; назив домаћина: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Д МСуч Прот Домен\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "Д МСуч Прот %-*s %-20s Домен\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Веза је прекинута, поново Ñе повезујем ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "ÐиÑам уÑпео да направим објекат клијента: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "ÐеуÑпех клијента, излазим: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Чекам на ÑиÑтемÑку уÑлугу ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Приказује ову помоћ\n" " -V --version Приказује издање\n" " -D --browse-domains Разгледа домене који Ñе могу претраживати умеÑто " "уÑлуга\n" " -a --all Приказује Ñве уÑлуге, без обзира на врÑту\n" " -d --domain=ДОМЕРДомен за претраживање\n" " -v --verbose Укључује режим опширног иÑпиÑа\n" " -t --terminate Прекида поÑле избацивања више или мање завршене " "лиÑте\n" " -c --cache Прекида поÑле избацивања Ñвих запиÑа из оÑтаве\n" " -l --ignore-local Занемарује меÑне уÑлуге\n" " -r --resolve Решава пронађене уÑлуге\n" " -f --no-fail Ðе отказује ако ÑиÑтемÑка уÑлуга није доÑтупна\n" " -p --parsable Даје излаз у запиÑу који Ñе може обрадити\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Ðе тражи врÑте уÑлуге\n" " -b --dump-db Избацује базу података врÑте уÑлуге\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Сувише мало аргумената\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "ÐиÑам уÑпео да направим објекат једноÑтавне анкете.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "УÑпоÑтављено под називом „%s“\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "ÐиÑам уÑпео да забележим: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Сукоб назива, узимам нови назив „%s“.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "ÐиÑам уÑпео да направим ÑƒÐ½Ð¾Ñ Ð³Ñ€ÑƒÐ¿Ðµ: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "ÐиÑам уÑпео да додам адреÑу: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "ÐиÑам уÑпео да додам уÑлугу: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "ÐиÑам уÑпео да додам подврÑту „%s“: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Сукоб назива домаћина\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [могућноÑти] %s <назив> <врÑта> <порт> []\n" "%s [могућноÑти] %s <назив-домаћина> <адреÑа>\n" "\n" " -h --help Приказује ову помоћ\n" " -V --version Приказује издање\n" " -s --service Објављује уÑлугу\n" " -a --address Објављује адреÑу\n" " -v --verbose Укључује режим опширног иÑпиÑа\n" " -d --domain=ДОМЕРДомен у којем ће Ñе објавити уÑлуге\n" " -H --host=ДОМЕРДомаћин на којем Ñе налазе уÑлуге\n" " --subtype=ПОДВРСТРДодатна подврÑта Ñа којом ће Ñе забележити ова " "уÑлуга\n" " -R --no-reverse Ðе објављује обрнуте уноÑе Ñа адреÑом\n" " -f --no-fail Ðеће отказати ако ÑиÑтемÑка уÑлуга није доÑтупна\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Лош број аргумената\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "ÐиÑам уÑпео да обрадим број прикључника: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Ðаредба није наведена.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "ÐиÑам уÑпео да обрадим назив домаћина „%s“: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "ÐиÑам уÑпео да обрадим адреÑу „%s“: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [могућноÑти] %s <назив домаћина ...>\n" "%s [могућноÑти] %s <адреÑа ... >\n" "\n" " -h --help Приказује ову помоћ\n" " -V --version Приказује издање\n" " -n --name Решава назив домаћина\n" " -a --address Решава адреÑу\n" " -v --verbose Укључује режим опширног иÑпиÑа\n" " -6 Тражи ИПв6 адреÑу\n" " -4 Тражи ИПв4 адреÑу\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "ÐиÑам уÑпео да направим решавача назива домаћина: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "ÐиÑам уÑпео да обрадим адреÑу „%s“\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "ÐиÑам уÑпео да направим решавача адреÑе: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [могућноÑти] <нови назив домаћина>\n" "\n" " -h --help Приказује ову помоћ\n" " -V --version Приказује издање\n" " -v --verbose Укључује режим опширног иÑпиÑа\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "ÐеиÑправан број аргумената, очекујем тачно један.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Ðазив домаћина је уÑпешно промењен у „%s“\n" avahi-0.7/po/PaxHeaders.10109/lv.po0000644000000000000000000000013213130651643013600 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.271961818 avahi-0.7/po/lv.po0000644000175000017500000006141613130651643015217 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # RÅ«dolfs Mazurs , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: RÅ«dolfs Mazurs \n" "Language-Team: Latvian (http://www.transifex.com/lennart/avahi/language/" "lv/)\n" "Language: lv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " "2);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Labi" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "DarbÄ«ba neizdevÄs" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Slikts stÄvoklis" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "NederÄ«gs datora nosaukums" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "NederÄ«gs domÄ“na nosaukums" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Nav pieejams piemÄ“rots tÄ«kla protokols" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "NederÄ«gs DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Resursa ieraksta atslÄ“ga ir Å¡ablons" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "LokÄlÄ vÄrda kolÄ«zija" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "NederÄ«gs ieraksts" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "NederÄ«gs servisa nosaukums" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "NederÄ«gs servisa veids" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "NederÄ«gs porta numurs" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "NederÄ«ga ieraksta atslÄ“ga" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "NederÄ«ga adrese" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Tika sasniegta noildze" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "PÄrÄk daudz klientu" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "PÄrÄk daudz objektu" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "PÄrÄk daudz ierakstu" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS kļūda" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Pieeja liegta" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "NederÄ«ga darbÄ«ba" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Notika negaidÄ«ta D-Bus kļūda" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "NeizdevÄs savienoties ar dÄ“monu" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Atmiņa izsmelta" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Padotais objekts nav derÄ«gs" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "DÄ“mons nedarbojas" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "NederÄ«gs saskarnes indekss" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "NederÄ«ga protokola specifikÄcija" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "NederÄ«gs karogs" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Nav atrasts" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "NederÄ«ga konfigurÄcija" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versiju nesakritÄ«ba" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "NederÄ«gs servisa apakÅ¡tips" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "NederÄ«ga pakete" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "NederÄ«gs DNS atgrieztais kods" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS kļūme: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS kļūme: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS kļūme: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS kļūme: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS kļūme: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS kļūme: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS kļūme: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS kļūme: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS kļūme: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS kļūme: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "NederÄ«gs RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "NederÄ«gs DNS tips" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "NederÄ«ga DNS klase" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Nav atbalstÄ«ts" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Nav atļauts" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "NederÄ«gs parametrs" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Ir tukÅ¡s" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "PieprasÄ«tÄ darbÄ«ba nav derÄ«ga, jo ir lieka" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "NederÄ«gs kļūdas kods" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi atklÄÅ¡ana" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Neviens serviss paÅ¡laik nav izvÄ“lÄ“ts." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf pÄrlÅ«ks" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "PÄrlÅ«kot Zeroconf pakalpojumus, kas pieejami Å¡ajÄ tÄ«klÄ" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT dati:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "tukÅ¡s" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Servisa tips:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Servisa nosaukums:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "DomÄ“na nosaukums:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Saskarne:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adrese:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "PÄrlÅ«kot servisa tipus" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Ar NULL pabeigts saraksts ar servisu veidiem, ko pÄrlÅ«kot" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "DomÄ“ns" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "DomÄ“ns, kurÄ pÄrlÅ«kot, vai NULL noklusÄ“tajam domÄ“nam" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Servisa tips" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Servisa tips izvÄ“lÄ“tajam servisam" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Servisa nosaukums" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "IzvÄ“lÄ“tÄ servisa nosaukums" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adrese" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "AtrastÄ servisa adrese" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Ports" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "IP porta skaitlis atrastajam servisam" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Servera nosaukums" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "AtrastÄ servisa servera nosaukums" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT dari" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "AtrastÄ servisa TXT dati" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Atrast servisu" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Pirms atgriezties, atrast izvÄ“lÄ“to servisu automÄtiski" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Atrast servisa datora nosaukumu" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Pirms atgriezties, atrast izvÄ“lÄ“tÄ servisa datora nosaukumu automÄtiski" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "AdreÅ¡u saime" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "AdreÅ¡u saime datora nosaukuma atradumam" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi klienta kļūme: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi atradÄ“ja kļūme: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Servisa tipa %s pÄrlÅ«koÅ¡ana domÄ“nÄ %s neizdevÄs: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/p" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi domÄ“na pÄrlÅ«ka kļūme: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "NeizdevÄs nolasÄ«t Avahi domÄ“nu: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "PÄrlÅ«ka servisa tipu saraksts ir tukÅ¡s!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "NeizdevÄs savienoties ar Avahi serveri: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "PÄrlÅ«kot servisus lokÄlajÄ tÄ«klÄ:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "PÄrlÅ«kot servisus domÄ“nÄ%s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "NeizdevÄs izveidot %s pÄrlÅ«ku: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "NeizdevÄs izveidot %s atradÄ“ju tipam %s domÄ“nÄ %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "NeizdevÄs izveidot domÄ“na pÄrlÅ«ku: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "MainÄ«t domÄ“nu" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "PÄrlÅ«ko..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Atcelts.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Labi" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "InicializÄ“..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Vieta" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nosaukums" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tips" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_DomÄ“ns..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opcijas]\n" "\n" " -h --help RÄdÄ«t Å¡o palÄ«dzÄ«bu\n" " -s --ssh PÄrlÅ«kot SSH serverus\n" " -v --vnc PÄrlÅ«kot VNC serverus\n" " -S --shell PÄrlÅ«kot gan SSH, gan VNC\n" " -d --domain=DOMÄ’NS DomÄ“ns, kurÄ pÄrlÅ«kot\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "PÄrÄk daudz parametru\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "IzvÄ“lieties Äaulas serveri" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Darbvirsma" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "TerminÄlis" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "IzvÄ“lieties VNC serveri" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "IzvÄ“lieties SSH serveri" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Savienojas ar '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() neizdevÄs: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Atcelts.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH serveru pÄrlÅ«ks" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "PÄrlÅ«kot Zeroconf aktivÄ“tus SSH serverus" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC serveru pÄrlÅ«ks" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "PÄrlÅ«kot Zeroconf aktivÄ“tus VNC serverus" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": PagaidÄm viss\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": KeÅ¡s izsmelts\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "NeizdevÄs atrast servisu '%s' ar tipu '%s' domÄ“nÄ '%s': %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser neizdevÄs: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() neizdevÄs: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser neizdevÄs: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() neizdevÄs: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() neizdevÄs: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "NeizdevÄs vaicÄt versijas virkni: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "NeizdevÄs vaicÄt datora nosaukumu: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Servera versija: %s; Datora nosaukums: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot domÄ“ns\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s domÄ“ns\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "AtvienojÄs, atkal savienojas ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "NeizdevÄs izveidot klienta objektu: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Klienta kļūme, iziet: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Gaida uz dÄ“monu ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help RÄdÄ«t Å¡o palÄ«dzÄ«bu\n" " -V --version RÄdÄ«t versiju\n" " -D --browse-domains PÄrlÅ«kot pÄrlÅ«kojamos domÄ“nus, nevis servisus\n" " -a --all RÄdÄ«t visus servisus, neskatoties uz tipiem\n" " -d --domain=DOMÄ’NS DomÄ“ns, kurÄ pÄrlÅ«kot\n" " -v --verbose AktivÄ“t detalizÄ“tu režīmu\n" " -t --terminate ApturÄ“t pÄ“c daudz maz pilnÄ«ga saraksta izmeÅ¡anas\n" " -c --cache ApturÄ“t pÄ“c visu ierakstu izmeÅ¡anas no keÅ¡a\n" " -l --ignore-local IgnorÄ“t lokÄlos servisus\n" " -r --resolve Atrastie meklēšanas servisi\n" " -f --no-fail NeavarÄ“t, ja nav atrasts dÄ“mons\n" " -p --parsable Izvade parsÄ“jamÄ formÄ\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup NeuzmeklÄ“t servisu tipus\n" " -b --dump-db Izmest servisu tipu datubÄzi\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "PÄrÄk maz parametru\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "NeizdevÄs izveidot vienkÄrÅ¡u aptaujas objektu.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Izveido ar nosaukumu '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "NeizdevÄs reÄ£istrÄ“t: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Nosaukumu kolÄ«zija, izvÄ“lieties jaunu nosaukumu '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "NeizdevÄs izveidot ierakstu grupu: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "NeizdevÄs pievienot adresi: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "NeizdevÄs pievienot servisu: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "NeizdevÄs pievienot apakÅ¡tipu '%s': %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Datoru nosaukumu konflikts\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opcijas] %s []\n" "%s [opcijas] %s \n" "\n" " -h --help RÄdÄ«t Å¡o palÄ«dzÄ«bu\n" " -V --version RÄdÄ«t versiju\n" " -s --service PublicÄ“t servisu\n" " -a --address PublicÄ“t adresi\n" " -v --verbose AktivÄ“t detalizÄ“to režīmu\n" " -d --domain=DOMÄ’NS DomÄ“ns, kurÄ publicÄ“t servisu\n" " -H --host=DOMÄ’NS Kur atrodas serviss\n" " --subtype=APAKÅ TIPS Papildu apakÅ¡tips, ar ko reÄ£istrÄ“t Å¡o servisu\n" " -R --no-reverse NepublicÄ“t apgriezto ierakstu ar adresi\n" " -f --no-fail NeavarÄ“t, ja dÄ“mons nav pieejams\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Slikts parametru saraksts\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "NeizdevÄs parsÄ“t porta numuru: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Nav norÄdÄ«ta komanda.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "NeizdevÄs atrast datora nosaukumu '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "NeizdevÄs atrast adresi '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opcijas] %s \n" "%s [opcijas] %s \n" "\n" " -h --help RÄdÄ«t Å¡o palÄ«dzÄ«bu\n" " -V --version RÄdÄ«t versiju\n" " -n --name Atrast datora nosaukumu\n" " -a --address Atrast adresi\n" " -v --verbose AktivÄ“t detalizÄ“to režīmi\n" " -6 UzmeklÄ“t IPv6 adreses\n" " -4 UzmeklÄ“t IPv4 adreses\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "NeizdevÄs izveidot datoru nosaukumu atradÄ“ju: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "NeizdevÄs parsÄ“t adresi '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "NeizdevÄs izveidot adreÅ¡u atradÄ“ju: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opcijas] \n" "\n" " -h --help RÄdÄ«t Å¡o palÄ«dzÄ«bu\n" " -V --version RÄdÄ«t versiju\n" " -v --verbose AktivÄ“t detalizÄ“to režīmi\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "NederÄ«gs parametru skaits, tiek gaidÄ«ts tieÅ¡i viens.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Datora nosaukums ir veiksmÄ«gi nomainÄ«ts uz %s\n" avahi-0.7/po/PaxHeaders.10109/da.po0000644000000000000000000000013213130651643013543 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.263961998 avahi-0.7/po/da.po0000644000175000017500000006064513130651643015165 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Danish (http://www.transifex.com/lennart/avahi/language/da/)\n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "O.k." #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Handling mislykkedes" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Ugyldig tilstand" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Ugyldigt værtsnavn" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Ugyldigt domænenavn" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Ingen egnet netværksprotokol tilgængelig" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Ugyldig DNS-TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Ressourcepostnøgle er mønster" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Lokal navnekollision" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Ugyldig post" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Ugyldigt tjenestenavn" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Ugyldig tjenestetype" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Ugyldigt portnummer" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Ugyldig postnøgle" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Ugyldig adresse" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Tiden løb ud" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "For mange klienter" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "For mange objekter" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "For mange punkter" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS-fejl" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Adgang nægtet" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Ugyldig handling" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Der opstod en uventet D-Bus-fejl" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Dæmonforbindelse mislykkedes" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Hukommelse opbrugt" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Objektet, der blev sat ind, var ikke gyldigt" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Dæmon kører ikke" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ugyldigt grænsefladeindeks" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Ugyldig protokolspecifikation" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Ugyldige flag" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ikke fundet" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Ugyldig konfiguration" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Forskellige versioner" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Ugyldig tjenesteundertype" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Ugyldig pakke" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Ugyldig DNS-returkode" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS-fejl: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS-fejl: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS-fejl: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS-fejl: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS-fejl: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS-fejl: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS-fejl: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS-fejl: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS-fejl: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS-fejl: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Ugyldige RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Ugyldig DNS-type" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Ugyldig DNS-klasse" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ikke understøttet" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Ikke tilladt" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Ugyldigt argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Er tom" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Den forespurgte handling er ugyldig pÃ¥ grund af redundans" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Ugyldig fejlkode" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Discovery" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Ingen tjeneste valgt i øjeblikket." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf-browser" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Kig efter tilgængelige Zeroconftjenester pÃ¥ dit netværk" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT-data:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "tom" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Tjenestetype:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Tjenestenavn:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Domænenavn:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Grænseflade:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adresse:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Kig efter tjenestetyper" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "En NULL-afgrænset liste af tjenestetyper at kigge efter" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domæne" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Domænet som der skal kigges i, eller NULL for standarddomænet" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tjenestetype" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Tjenestetypen pÃ¥ den valgte tjeneste" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Tjenestenavn" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Tjenestenavnet pÃ¥ den valgte tjeneste" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adresse" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Adressen pÃ¥ den klarlagte tjeneste" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "IP-portnummeret pÃ¥ den klarlagte tjeneste" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Værtsnavn" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Værtsnavnet pÃ¥ den klarlagte tjeneste" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT-data" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "TXT-dataene pÃ¥ den klarlagte tjeneste" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Opløs tjeneste" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Opløs den valgte tjeneste automatisk før returnering" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Opløs tjenesteværtsnavn" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "Opløs værtsnavnet pÃ¥ den valgte tjeneste automatisk før returnering" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Adressefamilie" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Adressefamilien for værtsnavnsopløsning" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Klientfejl for Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Opløserfejl for Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Kunne ikke gennemse domæne $%2s for tjenestetype $%1s: $%3s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "-" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Domænebrowserfejl for Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Kunne ikke læse Avahidomæne: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Listen over typer af gennemsynstjenester er tom!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Kunne ikke forbinde til Avahiserver: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Gennemser for tjenester pÃ¥ lokalnetværk:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Gennemser efter tjenester i domæne %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Kunne ikke oprette browser for %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Kunne ikke oprette opløser for %s af typen %s i domæne %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Kunne ikke oprette domænebrowser: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Ændr domæne" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Gennemser..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Afbrudt.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "O.k." #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Initialiserer..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Sted" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Navn" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Type" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domæne..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [tilvalg]\n" "\n" " -h --help Vis denne hjælp\n" " -s --ssh Gennemse SSH-servere\n" " -v --vnc Gennemse VNC-servere\n" " -S --shell Gennemse bÃ¥de SSH og VNC\n" " -d --domain=DOMÆNE Domænet der skal gennemses\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "For mange argumenter\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Vælg skalserver" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Skrivebord" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Vælg VNC-server" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Vælg SSH-server" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Forbinder til '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() mislykkedes: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Afbrudt.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahibrowser for SSH-server" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Gennemse for Zeroconf-aktiverede SSH-servere" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahibrowser for VNC-server" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Gennemse for Zeroconf-aktiverede VNC-servere" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Alt for nu\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Mellemlager opbrugt\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Kunne ikke løse tjeneste '%s' af typen '%s' i domæne '%s': %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser mislykkedes: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() mislykkedes: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser mislykkedes: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() mislykkedes: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() mislykkedes: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Kunne ikke forespørge versionsstreng: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Kunne ikke forespørge værtsnavn: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Serverversion: %s; værtsnavn: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot-domæne\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s domæne\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Afbrudt, forbinder igen ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Kunne ikke oprette klientobjekt: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Klientfejl, afslutter: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Venter pÃ¥ dæmon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Vis denne hjælp\n" " -V --version Vis version\n" " -D --browse-domains Gennemse efter browsingdomæner i steden for " "tjenester\n" " -a --all Vis alle tjenester, uanset typen\n" " -d --domain=DOMÆNE Domænet der skal gennemses i\n" " -v --verbose Aktiver uddybende tilstand\n" " -t --terminate Afslut efter dumpning af en mere eller mindre " "fuldstændig liste\n" " -c --cache Afslut efter dumpning af alle punkter i " "mellemlageret\n" " -l --ignore-local Ignorer lokale tjenester\n" " -r --resolve Løs fundne tjenester\n" " -f --no-fail Giv ikke fejl hvis dæmonen ikke er tilgængelig\n" " -p --parsable Uddata i fortolkeligt format\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup SlÃ¥ ikke tjenestetyper op\n" " -b --dump-db Dump tjenestetypedatabase\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "For fÃ¥ argumenter\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Kunne ikke oprette simpelt poll-objekt.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Etableret under navnet '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Kunne ikke registrere: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Navnesammenstød, vælger nyt navn '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Kunne ikke oprette punktgruppe: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Kunne ikke tilføje adresse: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Kunne ikke tilføje tjeneste: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Kunne ikke tilføje undertype '%s': %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Værtsnavnskonflikt\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [tilvalg] %s []\n" "%s [tilvalg] %s \n" "\n" " -h --help Vis denne hjælp\n" " -V --version Vis version\n" " -s --service Udgiv tjeneste\n" " -a --address Udgiv adresse\n" " -v --verbose Aktiver uddybende tilstand\n" " -d --domain=DOMÆNE Domæne hvor tjeneste skal udgives i\n" " -H --host=DOMÆNE Vært hvor tjeneste residerer\n" " --subtype=UNDERTYPE En ekstra undertype til at registrere denne\n" " tjeneste med\n" " -R --no-reverse Udgiv ikke modsat punkt med adresse\n" " -f --no-fail Fejl ikke hvis dæmonen ikke er tilgængelig\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Ugyldigt antal argumenter\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Kunne ikke fortolke portnummer: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Ingen kommando angivet.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Kunne ikke løse værtsnavn '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Kunne ikke løse adresse '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [tilvalg] %s \n" "%s [tilvalg] %s \n" "\n" " -h --help Vis denne hjælp\n" " -V --version Vis version\n" " -n --name Løs værtsnavn\n" " -a --address Løs adresse\n" " -v --verbose Vis uddybende tilstand\n" " -6 SlÃ¥ IPv6-adresse op\n" " -4 SlÃ¥ IPv4-adresse op\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Kunne ikke oprette værtsnavnsopløser: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Kunne ikke fortolke adresse '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Kunne ikke oprette adresseopløser: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [tilvalg] \n" "\n" " -h --help Vis denne hjælp\n" " -V --version Vis version\n" " -v --verbose Aktiver uddybende tilstand\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Ugyldigt antal argumenter, forventede præcist et.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Værtsnavn ændret til %s\n" avahi-0.7/po/PaxHeaders.10109/ru.po0000644000000000000000000000013213130651643013605 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/ru.po0000644000175000017500000007110513130651643015220 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Russian (http://www.transifex.com/lennart/avahi/language/" "ru/)\n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" "%100>=11 && n%100<=14)? 2 : 3);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "ОК" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Сбой операции" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Ðеверное ÑоÑтоÑние" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Ðеверное Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð°" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Ðеверное Ð¸Ð¼Ñ Ð´Ð¾Ð¼ÐµÐ½Ð°" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Ðе найден подходÑщий Ñетевой протокол" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Ðеверный TTL DNS" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Ключ запиÑи реÑурÑа ÑвлÑетÑÑ ÑˆÐ°Ð±Ð»Ð¾Ð½Ð¾Ð¼" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Перекрытие локальных имён" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "ÐÐµÐ²ÐµÑ€Ð½Ð°Ñ Ð·Ð°Ð¿Ð¸ÑÑŒ" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Ðеверное Ð¸Ð¼Ñ Ñлужбы" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Ðеверный тип Ñлужбы" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Ðеверный номер порта" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Ðеверный ключ запиÑи" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Ðеверный адреÑ" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Ð’Ñ€ÐµÐ¼Ñ Ð¾Ð¶Ð¸Ð´Ð°Ð½Ð¸Ñ Ð¸Ñтекло" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Слишком много клиентов" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Слишком много объектов" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Слишком много Ñлементов" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Ошибка ОС" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "ДоÑтуп запрещён" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "ÐÐµÐ²ÐµÑ€Ð½Ð°Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ñ" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "ÐÐµÐ¾Ð¶Ð¸Ð´Ð°Ð½Ð½Ð°Ñ Ð¾ÑˆÐ¸Ð±ÐºÐ° D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Ðе удалоÑÑŒ ÑоединитьÑÑ Ñо Ñлужбой" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "ПамÑть иÑчерпана" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Переданный объект недейÑтвителен" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Служба не запущена" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ðеверный Ð¸Ð½Ð´ÐµÐºÑ Ð¸Ð½Ñ‚ÐµÑ€Ñ„ÐµÐ¹Ñа" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "ÐÐµÐ²ÐµÑ€Ð½Ð°Ñ ÑÐ¿ÐµÑ†Ð¸Ñ„Ð¸ÐºÐ°Ñ†Ð¸Ñ Ð¿Ñ€Ð¾Ñ‚Ð¾ÐºÐ¾Ð»Ð°" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Ðеверные флаги" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ðе найден" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "ÐÐµÐ²ÐµÑ€Ð½Ð°Ñ ÐºÐ¾Ð½Ñ„Ð¸Ð³ÑƒÑ€Ð°Ñ†Ð¸Ñ" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "ÐеÑоответÑтвие верÑий" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Ðеверный подтип Ñлужбы" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Ðеверный пакет" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Ðеверный код возврата DNS" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Ошибка DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Ошибка DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Ошибка DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Ошибка DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Ошибка DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Ошибка DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Ошибка DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Ошибка DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Ошибка DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Ошибка DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Ðеверный формат RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Ðеверный тип DNS" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Ðеверный клаÑÑ DNS" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ðе поддерживаетÑÑ" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Ðе разрешено" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Ðеверный аргумент" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "ПуÑÑ‚Ð°Ñ Ð³Ñ€ÑƒÐ¿Ð¿Ð°" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Ð—Ð°Ð¿Ñ€Ð¾ÑˆÐµÐ½Ð½Ð°Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ñ Ð½ÐµÐ²ÐµÑ€Ð½Ð°, поÑкольку ÑвлÑетÑÑ Ð¸Ð·Ð»Ð¸ÑˆÐ½ÐµÐ¹" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Ðеверный код ошибки" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Discovery" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Служба не выбрана." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Обозреватель Avahi Zeroconf" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "ПоиÑк Ñлужб Zeroconf в локальной Ñети" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Данные TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "пуÑто" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Тип Ñлужбы:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Ð˜Ð¼Ñ Ñлужбы:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Ðазвание домена:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "ИнтерфейÑ:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "ÐдреÑ:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Типы иÑкомых Ñлужб" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "СпиÑок типов иÑкомых Ñлужб, завершающийÑÑ NULL" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Домен" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Домен поиÑка или домен по умолчанию, еÑли NULL" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Тип Ñлужбы" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Тип выбранной Ñлужбы" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Ð˜Ð¼Ñ Ñлужбы" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Ð˜Ð¼Ñ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ð¾Ð¹ Ñлужбы" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "ÐдреÑ" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "ÐÐ´Ñ€ÐµÑ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»Ñ‘Ð½Ð½Ð¾Ð³Ð¾ уÑтройÑтва" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Порт" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Ðомер порта протокола IP определённого уÑтройÑтва" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Ð˜Ð¼Ñ ÑƒÐ·Ð»Ð°" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Ð˜Ð¼Ñ ÑƒÐ·Ð»Ð° определённого уÑтройÑтва" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Данные TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Данные TXT определённого уÑтройÑтва" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Определение Ñлужбы" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "ÐвтоматичеÑки определить выбранную Ñлужбу перед возвратом" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Определить Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð° Ñлужбы" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "ÐвтоматичеÑки определить Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð° выбранной Ñлужбы перед возвратом" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "ÐдреÑное ÑемейÑтво" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Определение адреÑного ÑемейÑтва Ð´Ð»Ñ Ð¸Ð¼ÐµÐ½Ð¸ узла" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Ошибка клиента Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Ошибка Ð¿Ñ€ÐµÐ¾Ð±Ñ€Ð°Ð·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð¸Ð¼Ñ‘Ð½ Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Ðе удалоÑÑŒ выполнить поиÑк Ñлужбы %s в домене %s: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "н/д" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Ошибка Ð¾Ð±Ð¾Ð·Ñ€ÐµÐ²Ð°Ñ‚ÐµÐ»Ñ Ð´Ð¾Ð¼ÐµÐ½Ð¾Ð² Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Ðе удалоÑÑŒ открыть домен Avahi: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "СпиÑок типов иÑкомых Ñлужб пуÑÑ‚!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Ðе удалоÑÑŒ подключитьÑÑ Ðº Ñерверу Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "ПоиÑк Ñлужб в локальной Ñети:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "ПоиÑк Ñлужб в домене %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Ðе удалоÑÑŒ Ñоздать обозреватель Ð´Ð»Ñ %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Ðе удалоÑÑŒ Ñоздать преобразователь имён Ð´Ð»Ñ %s типа %s в домене %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Ðе удалоÑÑŒ Ñоздать обозреватель доменов: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Изменить домен" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "ПоиÑк..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Отменено.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "ОК" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "ИнициализациÑ..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "РаÑположение" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "ИмÑ" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Тип" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Домен..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [параметры]\n" "\n" " -h --help Показать Ñту Ñправку\n" " -s --ssh ВывеÑти ÑпиÑок доÑтупных Ñерверов SSH\n" " -v --vnc ВывеÑти ÑпиÑок доÑтупных Ñерверов VNC\n" " -S --shell ВывеÑти ÑпиÑок доÑтупных Ñерверов SSH и VNC\n" " -d --domain=ДОМЕРДомен поиÑка Ñерверов\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Слишком много аргументов\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Выберите Ñервер оболочки" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Рабочий Ñтол" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Терминал" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Выберите VNC-Ñервер" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Выберите SSH-Ñервер" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Соединение Ñ Â«%s»...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Сбой Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ execlp(): %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Отменено.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Ðавигатор Avahi по Ñерверам SSH" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "ПроÑмотр ÑпиÑка Ñерверов SSH Ñ Ð²ÐºÐ»ÑŽÑ‡Ñ‘Ð½Ð½Ð¾Ð¹ Ñлужбой Zeroconf" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Ðавигатор Avahi по Ñерверам VNC" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "ПроÑмотр ÑпиÑка Ñерверов VNC Ñ Ð²ÐºÐ»ÑŽÑ‡Ñ‘Ð½Ð½Ð¾Ð¹ Ñлужбой Zeroconf" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Больше ничего на данный момент\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": КÑш иÑчерпан\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Ðе удалоÑÑŒ преобразовать Ñлужбу «%s» типа «%s» в домене «%s»: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Ошибка в service_browser: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Сбой Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ avahi_service_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Ошибка в service_type_browser: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Сбой Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ avahi_service_type_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Сбой Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ avahi_domain_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Ðе удалоÑÑŒ запроÑить Ñтроку верÑии: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Ðе удалоÑÑŒ запроÑить Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð°: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "ВерÑÐ¸Ñ Ñервера: %s; Ð˜Ð¼Ñ ÑƒÐ·Ð»Ð°: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "РИнтр Прот Домен\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "РИнтр Прот %-*s %-20s Домен\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Соединение разорвано, повторное подключение...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Ðе удалоÑÑŒ Ñоздать объект клиента: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Ошибка клиента, завершение работы: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Ожидание демона...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help ВывеÑти данную Ñправку\n" " -V --version ВывеÑти верÑию\n" " -D --browse-domains ИÑкать домены вмеÑто Ñлужб\n" " -a --all Показывать вÑе Ñлужбы вне завиÑимоÑти от типа\n" " -d --domain=DOMAIN ИÑкать в домене\n" " -v --verbose Включить подробный режим\n" " -t --terminate Показать более или менее полный ÑпиÑок и выйти\n" " -c --cache Показать вÑе Ñлементы в кÑше и выйти\n" " -l --ignore-local Игнорировать локальные Ñлужбы\n" " -r --resolve Преобразовывать найденные Ñлужбы\n" " -f --no-fail Ðе завершать работу, еÑли демон недоÑтупен\n" " -p --parsable Выводить в машинном формате\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Ðе иÑкать типы Ñлужб\n" " -b --dump-db ВывеÑти базу типов Ñлужб\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Слишком мало аргументов\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Ðе удалоÑÑŒ Ñоздать объект проÑтого опроÑа.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Образована под именем «%s»\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Ðе удалоÑÑŒ зарегиÑтрировать: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "ÐšÐ¾Ð»Ð»Ð¸Ð·Ð¸Ñ Ð¸Ð¼Ñ‘Ð½, выбрано новое Ð¸Ð¼Ñ Â«%s».\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Ðе удалоÑÑŒ Ñоздать группу Ñлементов: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Ðе удалоÑÑŒ добавить адреÑ: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Ðе удалоÑÑŒ добавить Ñлужбу: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Ðе удалоÑÑŒ добавить подтип «%s»: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Конфликт имени узла\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [параметры] %s <имÑ> <тип> <порт> [<текÑÑ‚...>]\n" "%s [параметры] %s <Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð°> <адреÑ>\n" "\n" " -h --help ВывеÑти Ñту Ñправку\n" " -V --version ВывеÑти верÑию\n" " -s --service Опубликовать Ñлужбу\n" " -a --address Опубликовать адреÑ\n" " -v --verbose Включить подробный режим\n" " -d --domain=ДОМЕРДомен Ð´Ð»Ñ Ð¿ÑƒÐ±Ð»Ð¸ÐºÐ°Ñ†Ð¸Ð¸ Ñлужбы\n" " -H --host=ДОМЕРУзел, на котором размещаетÑÑ Ñлужба\n" " --subtype=ПОДТИП Дополнительный подтип Ð´Ð»Ñ Ñ€ÐµÐ³Ð¸Ñтрации Ñтой Ñлужбы\n" " -R --no-reverse Ðе опубликовывать Ñлемент обратного адреÑа\n" " -f --no-fail Ðе завершать работу, еÑли процеÑÑ Ñлужбы " "недоÑтупен\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Ðеверное количеÑтво аргументов\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Ошибка разбора номера порта: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Ðе указана команда.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Ðе удалоÑÑŒ преобразовать Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð° «%s»: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Ðе удалоÑÑŒ преобразовать Ð°Ð´Ñ€ÐµÑ Â«%s»: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [параметры] %s <Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð°...>\n" "%s [параметры] %s <адреÑ... >\n" "\n" " -h --help ВывеÑти данную Ñправку\n" " -V --version ВывеÑти верÑию\n" " -n --name Преобразовать Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð°\n" " -a --address Преобразовать адреÑ\n" " -v --verbose Включить подробный режим\n" " -6 ИÑкать Ð°Ð´Ñ€ÐµÑ IPv6\n" " -4 ИÑкать Ð°Ð´Ñ€ÐµÑ IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Ðе удалоÑÑŒ Ñоздать преобразователь имён узлов: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Ðе удалоÑÑŒ разобрать Ð°Ð´Ñ€ÐµÑ Â«%s»\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Ðе удалоÑÑŒ Ñоздать преобразователь адреÑов: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [параметры] <новое Ð¸Ð¼Ñ ÑƒÐ·Ð»Ð°>\n" "\n" " -h --help ВывеÑти данную Ñправку\n" " -V --version ВывеÑти верÑию\n" " -v --verbose Включить подробный режим\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Ðеверное чиÑло аргументов, ожидаетÑÑ Ñ€Ð¾Ð²Ð½Ð¾ один.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Ð˜Ð¼Ñ ÑƒÐ·Ð»Ð° уÑпешно изменено на %s\n" avahi-0.7/po/PaxHeaders.10109/it.po0000644000000000000000000000013213130651643013573 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.271961818 avahi-0.7/po/it.po0000644000175000017500000006236013130651643015211 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Italian (http://www.transifex.com/lennart/avahi/language/" "it/)\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operazione non riuscita" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Stato errato" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Nome host non valido" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Nome di dominio non valido" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Nessun protocollo di rete adatto disponibile" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "DNS TTL non valido" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "La risorsa key record è un pattern" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Collisione nomi locale" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Record non valido" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Nome di servizio non valido" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Tipo di servizio non valido" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Numero di porta non valido" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Chiave di record non valida" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Indirizzi non validi" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Raggiunto il timeout" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Troppi client" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Troppi oggetti" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Troppe voci" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Errore di SO" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Accesso negato" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Operazione non valida" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Si è verificato un errore D-Bus inatteso" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Connessione al demone non riuscita" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memoria terminata" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "L'oggetto dato in ingresso non è valido" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Demone non in esecuzione" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Indice di interfaccia non valido" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Specifica di protocollo non valida" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Flag non validi" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Non trovato" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "configurazione non valida" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Discrepanza di versione" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Sottotipo di servizio non valido" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Pacchetto non valido" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Codice di ritorno DNS non valido" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Insuccesso DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Insuccesso DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Insuccesso DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Insuccesso DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Insuccesso DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Insuccesso DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Insuccesso DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Insuccesso DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Insuccesso DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Insuccesso DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA non valido" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Tipo di DNS non valido" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Classe di DNS non valida" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Non supportato" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Non permesso" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Argomento non valido" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "È vuoto" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "L'operazione richiesta non è valida in quanto ridondante" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Codice di errore non valido" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Discovery" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Nessun servizio attualmente selezionato." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Esploratore Zeroconf Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Esplora i servizi Zeroconf disponibili sulla propria rete" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Dati TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "vuoto" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Tipo di servizio:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Nome del servizio:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nome del dominio:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interfaccia:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Indirizzo:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Esplora tipi di servizio" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Un elenco terminato da NULL dei tipi di servizio da esplorare" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Dominio" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Il dominio da esplorare, oppure NULL per il dominio predefinito" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tipo di servizio" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Il tipo di servizio del servizio selezionato" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nome di servizio" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Il nome di servizio del servizio selezionato" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Indirizzo" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "L'indirizzo del servizio risolto" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Porta" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Il numero di porta IP del servizio risolto" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nome host" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Il nome host del servizio risolto" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Dati TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "I dati TXT del servizio risolto" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Risoluzione del servizio" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Risolve automaticamente il servizio selezionato prima di uscire" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Risoluzione del nome host del servizio" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Risolve automaticamente il l'hostname del servizio selezionato prima di " "uscire" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Famiglia indirizzi" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "La famiglia di indirizzi per la risoluzione dei nomi host" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Fallimento client avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Fallimento risolutore Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Esplorazione del tipo di servizio %s nel dominio %s non riuscita: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/d" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Fallimento esploratore di domini Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Lettura del dominio di Avahi non riuscita: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "L'elenco esplora tipo di servizio è vuoto." #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Connessione al server Avahi non riuscita: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Esplorazione dei servizi su rete locale:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Esplorazione dei servizi nel dominio %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Creazione dell'esploratore per %s non riuscita: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Creazione del risolutore per %s di tipo %s nel dominio %s non riuscita: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Creazione dell'esploratore di domini non riuscita: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Cambia dominio" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Esplorazione..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancellato.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inizializzazione..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Posizione" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nome" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tipo" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Dominio..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [OPZIONE...]\n" "\n" " -h --help Mostra questo aiuto\n" " -s --ssh Esplora i server SSH\n" " -v --vnc Esplora i server VNC\n" " -S --shell Esplora sia SSH che VNC\n" " -d --domain=DOMINIO Il dominio da esplorare\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Troppi argomenti\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Scegliere il server shell" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Desktop" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminale" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Scegliere il server VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Scegliere il server SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Connessione a «%s» ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() non riuscita: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancellato.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Esploratore Avahi per server SSH" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Esplora i server SSH con Zeroconf abilitato" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Esploratore Avahi per server VNC" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Esplora i server VNC con Zeroconf abilitato" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Tutto per ora\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Cache esaurita\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Risoluzione del servizio «%s» di tipo «%s» nel dominio «%s» non riuscita: " "%s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser non riuscita: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() non riuscita: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser non riuscita: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() non riuscita: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() non riuscita: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Interrogazione della stringa di versione non riuscita: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Interrogazione del nome host non riuscita: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Versione server: %s; Nome host: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Inte Prot Dominio\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Inte Prot %-*s %-20s Dominio\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Disconnessi, riconnessione...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Creazione dell'oggetto client non riuscita: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Fallimento client, uscita: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "In attesa del demone...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Mostra questo aiuto\n" " -V --version Mostra la versione\n" " -D --browse-domains Esplora per domini di esplorazione invece\n" " che per servizi\n" " -a --all Mostra tutti i servizi, indifferentemente dal tipo\n" " -d --domain=DOMINIO Il dominio da esplorare\n" " -v --verbose Abilita la modalità prolissa\n" " -t --terminate Termina dopo aver riversato un elenco più\n" " o meno completo\n" " -c --cache Termina dopo aver riversato tutte le voci dalla " "cache\n" " -l --ignore-local Ignora i servizi locali\n" " -r --resolve Risolve i servizi trovati\n" " -f --no-fail Non fallisce se il demone non è disponibile\n" " -p --parsable Output nel formato analizzabile\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Non controlla i tipi di servizi\n" " -b --dump-db Scarica il database dei tipi di servizi\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Troppo pochi argomenti\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Creazione oggetto simple poll non riuscita.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Stabilito sotto il nome «%s»\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Registrazione non riuscita: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Collisione di nome, selezionato il nuovo nome «%s».\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Creazione del gruppo di voci non riuscita: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Aggiunta dell'indirizzo non riuscita: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Aggiunta del servizio non riuscita: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Aggiunta del sottotipo «%s» non riuscita: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Conflitto di nome host\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [OPZIONE...] %s []\n" "%s [OPZIONE...] %s \n" "\n" " -h --help Mostra questo aiuto\n" " -V --version Mostra la versione\n" " -s --service Pubblica il servizio\n" " -a --address Pubblica l'indirizzo\n" " -v --verbose Abilita la modalità verbosa\n" " -d --domain=DOMAIN Dominio in cui pubblicare servizi\n" " -H --host=DOMAIN L'host dove risiedono i servizi\n" " --subtype=SUBTYPE Un sottotipo addizionale con cui registrare questo\n" " servizio\n" " -R --no-reverse Non pubblica le voci invertite con l'indirizzo\n" " -f --no-fail Non fallisce se il demone non è disponibile\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Numero di argomenti non valido\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Analisi del numero di porta non riuscita: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Nessun comando specificato.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Risoluzione del nome host «%s» non riuscita: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Risoluzione dell'indirizzo «%s» non riuscita: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [OPZIONE...] %s \n" "%s [OPZIONE...] %s \n" "\n" " -h --help Mostra questo aiuto\n" " -V --version Mostra la versione\n" " -n --name Risolve il nome host\n" " -a --address Risolve l'indirizzo\n" " -v --verbose Abilita la modalità verbosa\n" " -6 Cerca indirizzi IPv6\n" " -4 Cerca indirizzi IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Creazione del risolutore di nome host non riuscita: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Analisi dell'indirizzo «%s» non riuscita\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Creazione del risolutore di indirizzi non riuscita: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [OPZIONE...] \n" "\n" " -h --help Mostra questo aiuto\n" " -V --version Mostra la versione\n" " -v --verbose Abilita la modalità verbosa\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Numero di argomenti non valido, ne è atteso esattamente uno.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Nome host cambiato con successo in %s\n" avahi-0.7/po/PaxHeaders.10109/ach.po0000644000000000000000000000013213130651643013712 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681851.263961998 avahi-0.7/po/ach.po0000644000175000017500000004376613130651643015341 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Acoli (http://www.transifex.com/lennart/avahi/language/ach/)\n" "Language: ach\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "" avahi-0.7/po/PaxHeaders.10109/ko.po0000644000000000000000000000013213130651643013570 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.143369767 30 ctime=1499681851.271961818 avahi-0.7/po/ko.po0000644000175000017500000004400013130651643015175 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Korean (Korea) (http://www.transifex.com/lennart/avahi/" "language/ko_KR/)\n" "Language: ko_KR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "" avahi-0.7/po/PaxHeaders.10109/zh_TW.po0000644000000000000000000000013213130651643014212 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.279961638 avahi-0.7/po/zh_TW.po0000644000175000017500000005772613130651643015642 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Jeff Huang , 2015 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2015-08-13 02:16+0000\n" "Last-Translator: Jeff Huang \n" "Language-Team: Chinese (Taiwan) (http://www.transifex.com/lennart/avahi/" "language/zh_TW/)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "確定" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "æ“作失敗" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "狀態ä¸è‰¯" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "無效的主機å稱" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "無效的網域å稱" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "沒有åˆé©çš„網路å”定å¯ç”¨" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "無效的 DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "資æºè¨˜éŒ„金鑰為一模å¼" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "本機å稱è¡çª" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "無效的紀錄" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "無效的æœå‹™å稱" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "無效的æœå‹™é¡žåž‹" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "無效的連接埠編號" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "無效的紀錄金鑰" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "無效的ä½å€" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "å·²é”逾時é™åˆ¶" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "éŽå¤šç”¨æˆ¶ç«¯" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "éŽå¤šç‰©ä»¶" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "éŽå¤šæ¢ç›®" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS 錯誤" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "拒絕存å–" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "無效的æ“作" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "é­é‡åˆ°æœªé æœŸçš„ D-Bus 錯誤" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "幕後程å¼é€£ç·šå¤±æ•—" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "記憶體已耗盡" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "傳入的物件無效" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "å¹•å¾Œç¨‹å¼æ²’有在執行中" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "無效的介é¢ç´¢å¼•" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "無效的å”å®šè¦æ ¼" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "無效的旗標" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "找ä¸åˆ°" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "無效的組態" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "版本ä¸ç¬¦" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "無效的æœå‹™å­é¡žåž‹" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "無效的å°åŒ…" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "無效的 DNS 回傳碼" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS 失敗:FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS 失敗:SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS 失敗:NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS 失敗:NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS 失敗:REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS 失敗:YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS 失敗:YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS 失敗:NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS 失敗:NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS 失敗:NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "無效的 RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "無效的 DNS 類型" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "無效的 DNS 類別" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "未支æ´" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "未許å¯" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "無效的引數" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "是空的" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "請求的æ“作無效,因為é‡è¤‡" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "無效的錯誤代碼" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi 探索" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "ç›®å‰æœªé¸å–æœå‹™ã€‚" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf ç€è¦½å™¨" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "在您的網路上ç€è¦½å¯ç”¨çš„ Zeroconf æœå‹™" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT 資料:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "空的" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "æœå‹™é¡žåž‹ï¼š" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "æœå‹™å稱:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "網域å稱:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "介é¢ï¼š" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "ä½å€ï¼š" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "ç€è¦½æœå‹™é¡žåž‹" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "ç©ºçš„çµæŸæœå‹™é¡žåž‹åˆ—表,在ç€è¦½" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "網域" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "è¦ç€è¦½çš„網域,或是留空為é è¨­çš„網域" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "æœå‹™é¡žåž‹" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "æ‰€é¸æœå‹™çš„æœå‹™é¡žåž‹" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "æœå‹™å稱" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "æ‰€é¸æœå‹™çš„æœå‹™å稱" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "ä½å€" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "è§£æžæœå‹™çš„ä½å€" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "連接埠" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "è§£æžæœå‹™çš„ IP 連接埠號碼" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "主機å稱" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "è§£æžæœå‹™çš„主機å稱" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT 資料" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "è§£æžæœå‹™çš„ TXT 資料" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "è§£æžæœå‹™" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "在回傳之å‰è‡ªå‹•è§£æžæ‰€é¸çš„æœå‹™" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "è§£æžæœå‹™ä¸»æ©Ÿå稱" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "在回傳之å‰è‡ªå‹•è§£æžæ‰€é¸æœå‹™çš„主機å稱" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "ä½å€å®¶æ—" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "主機å稱解æžçš„ä½å€å®¶æ—" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi 用戶端失敗:%s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi è§£æžå¤±æ•—:%s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "ç€è¦½æœå‹™é¡žåž‹ %s 在網域 %s 失敗:%s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "無法使用" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi 網域ç€è¦½å™¨å¤±æ•—:%s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "ç„¡æ³•è®€å– Avahi 網域:%s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "ç€è¦½æœå‹™é¡žåž‹æ¸…單是空白的ï¼" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "無法連接至 Avahi 伺æœå™¨ï¼š%s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "正在ç€è¦½æœ¬åœ°ç«¯ç¶²è·¯çš„æœå‹™ï¼š" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "正在ç€è¦½ç¶²åŸŸ %s çš„æœå‹™ï¼š" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "無法建立 %s çš„ç€è¦½å™¨ï¼š%s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "建立 %s 類型 %s 在網域 %s 中的解法器失敗:%s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "無法建立網域ç€è¦½å™¨ï¼š%s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "變更網域" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "正在ç€è¦½..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "已喿¶ˆã€‚\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "確定" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "正在åˆå§‹åŒ–..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "ä½ç½®" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "å稱" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "類型" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "網域(_D)..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [é¸é …]\n" "\n" " -h --help 顯示這個說明\n" " -s --ssh ç€è¦½ SSH 伺æœå™¨\n" " -v --vnc ç€è¦½ VNC 伺æœå™¨\n" " -S --shell åŒæ™‚ç€è¦½ SSH 與 VNC\n" " -d --domain=DOMAIN è¦ç€è¦½çš„域å\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "éŽå¤šå¼•數\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "鏿“‡ Shell 伺æœå™¨" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "桌é¢" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "終端機" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "鏿“‡ VNC 伺æœå™¨" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "鏿“‡ SSH 伺æœå™¨" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "正在連接到「%sã€...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() 失敗:%s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "已喿¶ˆã€‚\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH 伺æœå™¨ç€è¦½å™¨" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "ç€è¦½å•Ÿç”¨ Zeroconf çš„ SSH 伺æœå™¨" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC 伺æœå™¨ç€è¦½å™¨" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "ç€è¦½å•Ÿç”¨ Zeroconf çš„ VNC 伺æœå™¨" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": ç¾åœ¨æ˜¯å…¨éƒ¨\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": å¿«å–已耗盡\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "æœå‹™ã€Œ%sã€é¡žåž‹ã€Œ%sã€åœ¨ç¶²åŸŸã€Œ%sã€ä¸­è§£æ±ºå¤±æ•—:%s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser 失敗:%s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() 失敗:%s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser 失敗:%s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() 失敗:%s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() 失敗:%s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "無法查詢版本字串:%s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "無法查詢主機å稱:%s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "伺æœå™¨ç‰ˆæœ¬ï¼š%s;主機å稱:%s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot 網域\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s 網域\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "å·²æ–·ç·šï¼Œæ­£åœ¨é‡æ–°é€£æŽ¥...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "無法建立客戶端物件:%s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "用戶端失敗,正在退出:%s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "正在等候幕後程å¼...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help 顯示本說明\n" " -V --version 顯示版本\n" " -D --browse-domains 顯示除了æœå‹™ä»¥å¤–çš„ç€è¦½ç¶²åŸŸ\n" " -a --all 顯示所有æœå‹™ï¼Œç„¡è«–類型\n" " -d --domain=DOMAIN ç€è¦½çš„網域\n" " -v --verbose 啟用冗餘模å¼\n" " -t --terminate 在傾å°å‡ºè¼ƒå®Œæ•´æˆ–較ä¸å®Œæ•´çš„åˆ—è¡¨å¾ŒçµæŸ\n" " -c --cache 在傾å°å‡ºæ‰€æœ‰å¾žå¿«å–è€Œä¾†çš„é …ç›®å¾ŒçµæŸ\n" " -l --ignore-local 忽略本機æœå‹™\n" " -r --resolve 解決找到的æœå‹™\n" " -f --no-fail 若守護行程ä¸å¯ç”¨æ™‚ä¸è¦å¤±æ•—\n" " -p --parsable 以å¯è§£æžçš„æ ¼å¼è¼¸å‡º\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup ä¸è¦æŸ¥è©¢æœå‹™é¡žåž‹\n" " -b --dump-db 傾尿œå‹™é¡žåž‹è³‡æ–™åº«\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "éŽå°‘引數\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "建力簡易投票物件失敗。\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "已於å稱「%sã€å»ºç«‹\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "註冊失敗:%s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "å稱è¡çªï¼Œæ€é¸æ–°å稱 '%s'。\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "無法建立æ¢ç›®ç¾¤çµ„:%s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "無法加入ä½å€ï¼š%s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "無法加入æœå‹™ï¼š%s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "無法加入å­é¡žåž‹ã€Œ%sã€ï¼š%s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "主機å稱è¡çª\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [é¸é …] %s <å稱> <類型> <埠> []\n" "%s [é¸é …] %s <主機å稱> <地å€>\n" "\n" " -h --help 顯示此說明\n" " -V --version 顯示版本\n" " -s --service 發佈æœå‹™\n" " -a --address 發佈地å€\n" " -v --verbose 啟用冗餘模å¼\n" " -d --domain=DOMAIN è¦ç™¼ä½ˆæœå‹™çš„網域\n" " -H --host=DOMAIN æœå‹™æ‰€åœ¨çš„主機\n" " --subtype=SUBTYPE 該æœå‹™æ‰€è¨»å†Šçš„é¡å¤–å­é¡žåž‹\n" " -R --no-reverse ä¸è¦ä»¥åœ°å€é€†å‘發佈項目\n" " -f --no-fail 若守護行程ä¸å¯ç”¨æ™‚ä¸è¦å¤±æ•—\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "引數數目ä¸è‰¯\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "無法解æžé€£æŽ¥åŸ è™Ÿï¼š%s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "未指定指令。\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "無法解æžä¸»æ©Ÿå稱「%sã€ï¼š%s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "無法解æžä½å€ã€Œ%sã€ï¼š%s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [é¸é …] %s <主機å稱 ...>\n" "%s [é¸é …] %s <åœ°å€ ... >\n" "\n" " -h --help 顯示此説明\n" " -V --version 顯示版本\n" " -n --name 解決主機å稱\n" " -a --address 解決地å€\n" " -v --verbose 啟用冗餘模å¼\n" " -6 查詢 IPv6 地å€\n" " -4 查詢 IPv4 地å€\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "無法建立主機å稱解æžå™¨ï¼š%s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "無法解æžä½å€ã€Œ%sã€\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "無法建立ä½å€è§£æžå™¨ï¼š%s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [é¸é …] <新主機å稱>\n" "\n" " -h --help 顯示此説明\n" " -V --version 顯示版本\n" " -v --verbose 啟用冗餘模å¼\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "無效的引數數目,åªé æœŸä¸€å€‹ã€‚\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "主機å稱æˆåŠŸè®Šæ›´ç‚º %s\n" avahi-0.7/po/PaxHeaders.10109/fo.po0000644000000000000000000000013213130651643013563 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/fo.po0000644000175000017500000005157213130651643015204 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Faroese (http://www.transifex.com/lennart/avahi/language/" "fo/)\n" "Language: fo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Atgerð miseydaðist" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Ringur standur" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Ógildugt vertsnavn" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Ógildugt økisnavn" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Ógildugt DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Ógildugt tænastunavn" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Ógildug tænastuslag" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Ógildugt portursnummar" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Ógildugt atsetur" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Ov nógvir viðskiftarir" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Ov nógvir lutir" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Atgongd noktað" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Ógildug atgerð" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Ein óvantað D-BUS villa hendi" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Demónsambinding miseydnaðist" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Demónin koyrir ikki" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ógildugt markamótsskrá" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Ógildug fløgg" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ikki funnið" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Ógildug samanseting" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Útgávur samsvara ikki" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Ógildugt tænastu undirslag" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Ógildugir pakki" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS svíkur: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS svíkur: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS svíkur: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS svíkur: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS svíkur: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS svíkur: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS svíkur: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS svíkur: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS svíkur: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS svíkur: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Ógildugt RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Ógildugt DNS-slag" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Ógildigur DNS-flokkur" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ikki stuðlað" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Ikki loyvt" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Ógildugt ávirki" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Er tómt" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Umbidna atgerðin er ógildug, tí hon er óneyðug" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Ógildug villukota" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Eingin tænasta er vald í løtuni." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf kagi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Kaga eftir Zeroconf-tænastum, tøkar á tínum neti" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT Dáta:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "tómt" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Tænastuslag:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Tænastunavn:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Økisnavn:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Markamót:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Atsetur:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Kaga eftir tænastusløgum" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Øki:" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tænastuslag:" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Tænastuslagið á valdu tænastuni" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Tænastunavn:" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Tænastunavnið á valdu tænastuni" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Atsetur:" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Atsetur á avgjørdu tænastuni" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Portur:" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "IP-portursnummarið á avgjørdu tænastuni" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Vertsnavn" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Vertsnavnið á avgjørdu tænastuni" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT Dáta" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "TXT-dáta á avgjørdu tænastuni" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Avgerð tænastu" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Avgerð vertsnavn á tænastu" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Atsetursfamilja" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Atseturfamiljan til at avgera vertsnavn" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi viðskiftara svíkur: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi avgerara svíkur: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Kagan eftir tænastuslagnum %s í økinum %s miseydnaðist: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi økiskagari svíkur: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Miseydnaðist at lesa Avahi-øki: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Miseydnaðist at sambinda við Avahi-ambætaran: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Kagi eftir tænastum á nærnet:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Kagi eftir tænastum í økinum %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Miseydnaðist at stovna kagara fyri %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Miseydnaðist at stovna økiskagara: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Skift øki" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Kagi..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Ógildað.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Innleiði..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Staður" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Navn" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Slag" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Øki..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [kostir]\n" "\n" " -h --help Sýn hesa hjálp\n" " -s --ssh Kaga eftir SSH ambætarum\n" " -v --vnc Kaga eftir VNC ambætarum\n" " -S --shell Kaga bæði eftir SSH og VNC\n" " -d --domain=DOMAIN Øki at kaga í\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Ov nógv ávirki\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Vel skelambætara" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Skriviborð" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Útstøð" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Vel VNC-ambætara" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Vel SSH-ambætara" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Sambindi við '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() miseydnaðist: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Ógildað.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH-tænastu kagi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Kaga eftir Zeroconf-virkjaðum SSH-ambætarum" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC-tænastu kagi" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Kaga eftir Zeroconf-virkjaðum VNC-ambætarum" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Tað var so tað\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Kovin er tømdur\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "tænastu_kagari miseydnaðist: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Ov fá ávirki\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Miseydnaðist at skráseta: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Navnasamanstoytur, velji nýtt navn '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Miseydnaðist at greina atseturin '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [kostir] \n" "\n" " -h --help Sýn hesa hjálp\n" " -V --version Sýn útgávunummar\n" " -v --verbose Sýn orðamiklan stand\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Ógildugt tal av ávirkjum, vænti akkurát eitt.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Vertsnavn broytt til %s\n" avahi-0.7/po/PaxHeaders.10109/en_AU.po0000644000000000000000000000013213130651643014146 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.263961998 avahi-0.7/po/en_AU.po0000644000175000017500000004407413130651643015566 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: English (Australia) (http://www.transifex.com/lennart/avahi/" "language/en_AU/)\n" "Language: en_AU\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancelled.\n" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Initialising..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancelled.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "" avahi-0.7/po/PaxHeaders.10109/pt_BR.po0000644000000000000000000000013213130651643014165 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/pt_BR.po0000644000175000017500000006212313130651643015600 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # nullck , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: nullck \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/lennart/avahi/" "language/pt_BR/)\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "A operação falhou" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Estado inválido" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Nome de máquina inválido" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Nome de domínio inválido" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Não há nenhum protocolo de rede apropriado disponível" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "DNS TTL Inválido" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Chave de gravação de recurso é a padrão" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Conflito de nome local" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Registro inválido" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Nome de serviço inválido" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Tipo de serviço inválido" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Número de porta inválido" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Chave de gravação inválida" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Endereço inválido" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Tempo limite esgotado" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Muitos clientes simultâneos" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Muitos objetos simultâneos" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Muitas entradas simultâneas" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Erro do SO" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Acesso negado" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Operação inválida" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Ocorreu um erro inesperado do D-BUS" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "A conexão com o daemon falhou" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memória esgotada" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "O objeto submetido não é válido" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "O daemon não está em execução" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ãndice de interface inválido" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Especificação do protocolo inválida" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Sinalizadores inválidos" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Não encontrado" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Configuração inválida" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Incompatibilidade de versões" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Subtipo de serviço inválido" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Pacote inválido" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Código de retorno de DNS inválido" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Falha de DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Falha de DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Falha de DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Falha de DNS: NO TIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Falha de DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Falha de DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Falha de DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Falha de DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Falha de DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Falha de DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA inválido" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Tipo de DNS inválido" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Classe de DNS inválida" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Não suportado(a)" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Não permitido(a)" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Argumento inválido" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Está vazio" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "A operação de requisição é inválida porque é redundante" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Código de Erro Inválido" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Discovery" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Nenhum serviço selecionado atualmente." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Navegador Zeroconf do Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Procurar por serviços Zeroconf disponíveis em sua rede" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT Dado:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "vazio" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Tipo de Serviço:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Name do Serviço:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nome de Dominio:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interface:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Endereço:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Procurar tipos de serviços" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Uma lista NÃO terminada dos tipos de serviços para navegar" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domínio" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "O domínio a navegar ou ZERO para o domínio padrão" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tipo do serviço" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "O tipo de serviço do serviço selecionado" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nome do serviço" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "O nome do serviço selecionado" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Endereço" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "O endereço do serviço resolvido" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Porta" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "O número IP da porta do serviço resolvido" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nome da máquina" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "O nome da máquina do serviço resolvido" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Dados TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Os dados TXT do serviço resolvido" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Serviço de Resolução" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Resolver o serviço selecionado automaticamente antes de retornar" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Serviço de Resolução de Nome de Host" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Resolver o nome do host do serviço selecionado automaticamente antes de " "retornar" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Família do endereço" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "A família do endereço para o resolução de nome da máquina" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Falha no cliente do Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Falha no resolvedor do Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "A navegação pelo serviço %s no domínio %s falhou: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Falha no navegador de domínios do Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Falha ao ler o domínio do Avahi: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "A lista de tipos de serviços está vazia!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Falha ao conectar no servidor do Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Procurando por serviços na Rede local:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Procurando por serviços no domínio %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Falha ao criar navegador para %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Falha ao criar um resolvedor para %s do tipo %s no domínio %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Falha ao criar o navegador de domínios: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Alterar domínio" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Procurando..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancelado.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inicializando..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Localização" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nome" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Type" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domínio..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opções]\n" "\n" " -h --help Mostra essa ajuda\n" " -s --ssh Procura por servidores SSH\n" " -v --vnc Procura por servidores VNC\n" " -S --shell Procura por servidores SSH e VNC\n" " -d --domain=DOMAIN O domínio no qual se deseja que seja procurado\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Muitos argumentos\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Escolha um servidor de shell" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Ãrea de trabalho" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Escolha um servidor VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Escolha um servidor SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Conectando a \"%s\" ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() falhou: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancelado.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Navegador de servidores SSH do Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Procurar por Servidores SSH com o Zeroconf Habilitado" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Navegador de servidores VNC do Avahi" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Procurar por Servidores VNC com Zeroconf Habilitado" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Tudo por enquanto\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Cache esgotado\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Falha ao resolver o serviço \"%s\" do tipo \"%s\" no domínio \"%s\": %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser falhou: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() falhou: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser falhou: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() falhou: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() falhou: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Falha ao consultar a string de versão: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Falha ao consultar o nome de máquina: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Versão do servidor: %s; Nome de máquina: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Inter Prot Domínio\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Inter Prot %-*s %-20s Domínio\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Desconectado, reconectando...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Falha ao criar objeto cliente: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Falha no cliente, saindo: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Esperando pelo daemon...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Mostra essa ajuda\n" " -V --version Mostra a versão\n" " -D --browse-domains Procura por domínios de navegação no lugar de " "serviços\n" " -a --all Mostra todos os serviços, independente do tipo\n" " -d --domain=DOMAIN Nome do domínio em que será procurado\n" " -v --verbose Habilita o modo detalhado\n" " -t --terminate Terminar após compilar a lista de more/less\n" " -c --cache Terminar após compilar todas as entradas do cache\n" " -l --ignore-local Ignorar serviços locais\n" " -r --resolve Resolver serviços encontrados\n" " -f --no-fail Não falhar se o daemon não estiver disponível\n" " -p --parsable Saída em formato analisável\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Ignorar tipos de serviços\n" " -b --dump-db Compilar base de dados de tipos de serviço\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Poucos argumentos\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Falha ao criar objeto de enquete simples.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Estabelecida no nome \"%s\"\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Falha ao registrar: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Colisão de nomes, escolhendo um novo nome \"%s\".\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Falha ao criar entrada de grupo: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Falha ao adicionar endereço: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Falha ao adicionar serviço: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Falha ao adicionar subtipo \"%s\": %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Conflito de nome de máquina\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opções] %s [] \n" "%s [opções] %s \n" "-h --help Mostra essa ajuda \n" "-V --version Mostra a versão \n" "-s --service Publica o serviço \n" "-a --address Publica o endereço \n" "-v --verbose Habilita o modo detalhado \n" "-d --domain=DOMAIN Domínio onde se quer publicar o serviço \n" "-H --host=DOMAIN Máquina onde o serviço está \n" "--subtype=SUBTYPE Subtipo adicional para registrar junto ao serviço \n" "-R --no-reverse Não publica endereço reverso\n" "-f --no-fail Não falha se o daemon não estiver disponível \n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Número de argumentos inválido\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Falha ao analisar o número da porta: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Nenhum comando especificado.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Falha ao resolver o nome da máquina \"%s\": %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Falha ao resolver o endereço \"%s\": %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opções] %s \n" "%s [opções] %s \n" "\n" " -h --help Mostra essa ajuda\n" " -V --version Mostra a versão\n" " -n --name Resolve o nome de máquina fornecido\n" " -a --address Resolve o endereço fornecido\n" " -v --verbose Habilita o modo detalhado\n" " -6 Procura por endereços IPv6\n" " -4 Procura por endereços IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Falha ao criar o resolvedor de nomes de máquina: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Falha ao analisar o endereço \"%s\"\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Falha ao criar o resolvedor de endereços: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opções] \n" "\n" " -h --help Mostra essa ajuda\n" " -V --version Mostra a versão\n" " -v --verbose Habilita o modo detalhado\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Número de argumentos inválido, esperando exatamente um.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Nome de máquina alterado para %s com sucesso\n" avahi-0.7/po/PaxHeaders.10109/POTFILES.skip0000644000000000000000000000013213130651643014734 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681851.279961638 avahi-0.7/po/POTFILES.skip0000644000175000017500000000020613130651643016341 0ustar00lathiatlathiat00000000000000avahi-ui/bssh.desktop.in avahi-ui/bvnc.desktop.in tests/c-plus-plus-test-gen.py avahi-python/avahi-discover/avahi-discover.desktop.in avahi-0.7/po/PaxHeaders.10109/LINGUAS0000644000000000000000000000013213130651643013644 xustar0030 mtime=1499681699.139369856 30 atime=1499681807.468940231 30 ctime=1499681851.279961638 avahi-0.7/po/LINGUAS0000644000175000017500000000023513130651643015253 0ustar00lathiatlathiat00000000000000ach ar bg ca cs da de el en_AU en_CA en_GB en_NZ eo es et fa fi fo fr gl he hu id it ja ko lv ms nl oc pl pt_BR ro ru sk sl sr sr@latin sv tr uk zh_CN zh_TW avahi-0.7/po/PaxHeaders.10109/he.po0000644000000000000000000000013213130651643013553 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.271961818 avahi-0.7/po/he.po0000644000175000017500000005161013130651643015165 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # elad, 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: elad\n" "Language-Team: Hebrew (http://www.transifex.com/lennart/avahi/language/he/)\n" "Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "×ישור" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "הפעולה נכשלה" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "מצב בעייתי" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "×©× ×”×ž×רח שגוי" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "×©× ×”×ž×ª×—× ×©×’×•×™" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "×ין פרוטוקול תו×× ×–×ž×™×Ÿ" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "זמן תחיית ×”-DNS שגוי" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "מפתח הקלטת המש×ב הינו תבנית" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "התנגשות ×©× ×ž×§×•×ž×™×ª" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "רשומה שגויה" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "×©× ×”×©×™×¨×•×ª שגוי" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "סוג השירות שגוי" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "מספר הפתחה שגוי" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "מפתח הרשומה שגוי" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "הכתובת שגויה" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "×”×’×™×¢ ×ª×•× ×”×–×ž×Ÿ" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "יותר מדי לקוחות" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "יותר מדי פריטי×" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "יותר מדי רשומות" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "שגי×ת מערכת ההפעלה" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "הגישה נדחתה" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "פעולה שגויה" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "×רעה שגי×ת D-Bus ×œ× ×™×“×•×¢×”" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "החיבור לסוכן נכשל" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "הזכרון הותש" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "הפריט שהועבר פנימה שגוי" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "הסוכן ×ינו פעיל" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "מפתח תוכן המנשק שגוי" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "×פיון פרוטוקול שגוי" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "×“×’×œ×•× ×™× ×©×’×•×™×™×" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "×œ× × ×ž×¦×" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "הגדרות שגויות" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "חוסר תי××•× ×’×™×¨×¡×ות" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "תת-סוג השירות שגוי" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "מנה שגויה" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "קוד תגובה שגוי מה-DNS" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "שגי×ת DNS: FORMER" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "שגי×ת DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "שגי×ת DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "שגי×ת DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "שגי×ת DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS שגי×ת: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "שגי×ת DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "שגי×ת DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "שגי×ת DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "שגי×ת DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA שגוי" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "סוג ×”-DNS שגוי" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "רמת ×”-DNS שגויה" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "×œ× × ×ª×ž×š" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "×œ× ×ž×•×¨×©×”" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "×רגומנט שגוי" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "הינו ריק" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "הפעולה המבוקשת שגויה כיוון ×©×”×™× ×ž×™×•×ª×¨×ª" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "קוד שגי××” שגוי" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "גילוי Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "×œ×‘×™× ×ª×™×™× ×œ× × ×‘×—×¨ ××£ שירות." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "סייר ×”Ö¾Zeroconf של â€Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "סיור ×חר שירותי Zeroconf ×”×–×ž×™× ×™× ×‘×¨×©×ª שלך" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "נתוני TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "ריק" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "סוג השירות:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "×©× ×”×©×™×¨×•×ª:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "×©× ×”×ž×ª×—×:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "מנשק:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "כתובת:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "סיור בסוגי השירותי×" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "מתח×" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "×”×ž×ª×—× ×œ×¡×™×•×¨, ×ו NULL ×œ×ž×ª×—× ×‘×¨×™×¨×ª המחדל" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "סוג השירות" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "סוג השירות של השירות הנבחר" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "×©× ×”×©×™×¨×•×ª" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "×©× ×”×©×™×¨×•×ª של השירות הנבחר" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "כתובת" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "כתובת השירות שנפתר" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "פתחה" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "מספר פתחת ×”Ö¾IP של השירות שנפתר" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "×©× ×”×ž×רח" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "×©× ×”×ž×רח של השירות שנפתר" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "נתוני TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "נתוני ×”Ö¾TXT של השירות שנפתר" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "שירות הפתירה" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "×©× ×ž×רח שירות הפתירה" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "משפחת כתובות" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "כשל בלקוח Avahi:%s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "×œ× ×–×ž×™×Ÿ" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "כשל בדפדפן ×”×ž×ª×—×ž×™× Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "החלפת מתח×" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "בעיון..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "בוטל.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "×ישור" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "בהליכי הפעלה..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "מיקו×" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "סוג" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_מתח×..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "יותר מדי ×רגומנטי×\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "שולחן העבודה" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "מסוף" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "בחירת שרת VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "בחירת שרת SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "מתבצע חיבור ×ל '%s'...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "בוטל.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "×©× ×”×ž×רח השתנה בהצלחה ל־%s\n" avahi-0.7/po/PaxHeaders.10109/id.po0000644000000000000000000000013213130651643013553 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.271961818 avahi-0.7/po/id.po0000644000175000017500000006041313130651643015166 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2017-02-13 16:59+0700\n" "Last-Translator: Andika Triwidada \n" "Language-Team: Indonesian (http://www.transifex.com/lennart/avahi/language/" "id/)\n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operasi gagal" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Keadaan buruk" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Nama host tak valid" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Nama domain tak valid" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Tak ada protokol jaringan yang cocok" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "TTL DNS tak valid" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Kunci resource record adalah pola" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Tabrakan nama lokal" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Record tak valid" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Nama layanan tak valid" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Jenis layanan tak valid" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Nomor port tak valid" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Kunci record tak valid" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Alamat tidak valid" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Waktu tunggu habis" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Terlalu banyak klien" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Terlalu banyak objek" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Terlalu banyak entri" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Galat OS" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Akses ditolak" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Operasi tidak valid" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Terjadi galat D-Bus yang tak diharapkan" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Koneksi daemon gagal" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Kehabisan memori" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Objek yang dilewatkan tak valid" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Daemon tak berjalan" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Indeks antarmuka tak valid" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Spesifikasi protokol tak valid" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Flag tak valid" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Tidak ditemukan" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Konfigurasi tak valid" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versi tak cocok" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Sub jenis layanan tak valid" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Paket tak valid" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Kode balikan DNS tak valid" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Kegagalan DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Kegagalan DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Kegagalan DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Kegagalan DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Kegagalan DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Kegagalan DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Kegagalan DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Kegagalan DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Kegagalan DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Kegagalan DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA tak valid" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Jenis DNS tak valid" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Kelas DNS tak valid" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Tidak didukung" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Tidak diijinkan" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Argumen tidak valid" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Kosong" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Operasi yang diminta tak valid karena redundan" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Kode Galat Tak Valid" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Penemuan Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Tak ada layanan yang kini dipilih." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Peramban Zeroconf Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Ramban layanan Zeroconf yang tersedia pada jaringan Anda" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Data TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "kosong" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Jenis Layanan:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Nama Layanan:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nama Domain:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Antarmuka:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Alamat:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Ramban Jenis Layanan" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Suatu daftar berakhiran NULL dari jenis layanan untuk diramban" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domain" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Domain untuk diramban, atau NULL untuk domain bawaan" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Jenis Layanan" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Jenis layanan dari layanan yang dipilih" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nama Layanan" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Nama layanan dari layanan yang dipilih" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Alamat" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Alamat dari layanan yang di-resolve" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Nomor port IP dari layanan yang di-resolve" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nama Host" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Nama host dari layanan yang di-resolve" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Data TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Data TXT dari layanan yang di-resolve" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Resolve Layanan" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Resolve layanan yang dipilih secara otomatis sebelum kembali" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Resolve Nama Host Layanan" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Resolve nama host dari layanan yang dipilih secara otomatis sebelum kembali" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Famili alamat" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Famili alamat bagi resolusi nama host" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Kegagalan klien Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Kegagalan resolver Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Meramban jenis layanan %s pada domain %s gagal: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Kegagalan peramban domain Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Gagal membaca domain Avahi: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Daftar jenis layanan ramban kosong!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Gagal menyambung ke server Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Meramban layanan pada jaringan lokal:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Meramban layanan pada domain %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Gagal membuat peramban bagi %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Gagal membuat resolver bagi %s dengan jenis %s pada domain %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Gagal membuat peramban domain: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Ubah domain" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Meramban..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "_Batal" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "_OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Menginisialisasi..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Lokasi" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nama" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Jenis" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domain..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opsi]\n" "\n" " -h --help Tampilkan bantuan ini\n" " -s --ssh Ramban server SSH\n" " -v --vnc Ramban server VNC\n" " -S --shell Ramban SSH dan VNC\n" " -d --domain=DOMAIN Domain untuk diramban\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Terlalu banyak argumen\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Pilih Server Shell" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "_Sambung" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Desktop" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Pilih server VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Pilih server SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Menyambung ke '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() gagal: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Dibatalkan.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Peramban Server SSH Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Meramban Server SSH Teraktifkan-Zeroconf" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Peramban Server VNC Avahi" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Meramban Server VNC Teraktifkan-Zeroconf" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Semua untuk saat ini\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Singgahan habis\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Gagal meresolve layanan '%s' dengan jenis '%s' pada domain '%s': %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser gagal: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() gagal: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser gagal: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() gagal: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() gagal: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Gagal meng-query string versi: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Gagal meng-query nama host: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Versi server: %s; Nama host: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot Domain\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s Domain\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Diputus, sedang menyambung ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Gagal membuat objek klien: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Kegagalan klien, keluar: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Menunggu daemon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Tampilkan bantuan ini\n" " -V --version Tampilkan versi\n" " -D --browse-domains Meramban domain ramban sebagai ganti layanan\n" " -a --all Tampilkan semua layanan, tak peduli jenisnya\n" " -d --domain=DOMAIN Domain yang akan diramban\n" " -v --verbose Aktifkan mode verbose\n" " -t --terminate Akhiri setelah membongkar daftar yang kurang lebih " "lengkap\n" " -c --cache Akhiri setelah membongkar semua entri dari " "singgahan\n" " -l --ignore-local Abaikan layanan lokal\n" " -r --resolve Layanan resolve ditemukan\n" " -f --no-fail Jangan gagal bila daemon tak tersedia\n" " -p --parsable Keluaran dalam bentuk yang dapat diurai\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Jangan lihat jenis layanan\n" " -b --dump-db Bongkar basis data jenis layanan\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Argumen terlalu sedikit\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Gagal membuat objek poll sederhana.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Terjalin dengan nama '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Gagal mendaftar: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Tabrakan nama, mengambil nama baru '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Gagal membuat grup entri: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Gagal menambah alamat: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Gagal menambah layanan: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Gagal menambah sub jenis '%s' %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Nama host konflik\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opsi] %s []\n" "%s [opsi] %s \n" "\n" " -h --help Tampilkan bantuan ini\n" " -V --version Tampilkan versi\n" " -s --service Publikasikan layanan\n" " -a --address Publikasikan alamat\n" " -v --verbose Aktifkan mode verbose\n" " -d --domain=DOMAIN Domain tempat mempublikasikan layanan\n" " -H --host=DOMAIN Host tempat layanan berada\n" " --subtype=SUBTYPE Sub jenis tambahan yang disertakan saat mendaftar " "layanan ini\n" " -R --no-reverse Jangan publikasikan entri balikan dengan alamat\n" " -f --no-fail Jangan gagal bila daemon tak tersedia\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Cacah argumen salah\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Gagal mengurai nomor port: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Tak ada perintah yang dinyatakan.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Gagal meresolve nama host '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Gagal meresolve alamat '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opsi] %s \n" "%s [opsi] %s \n" "\n" " -h --help Tampilkan bantuan ini\n" " -V --version Tampilkan versi\n" " -n --name Resolve nama host\n" " -a --address Resolve alamat\n" " -v --verbose Aktifkan mode verbose\n" " -6 Lihat alamat IPv6\n" " -4 Lihat alamat IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Gagal membuat resolver nama host: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Gagal mengurai alamat '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Gagal membuat resolver alamat: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opsi] \n" "\n" " -h --help Tampilkan bantuan ini\n" " -V --version Tampilkan versi\n" " -v --verbose Aktifkan mode verbose\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Cacah argumen tak valid, hanya perlu satu.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Nama host sukses diubah menjadi %s\n" avahi-0.7/po/PaxHeaders.10109/sl.po0000644000000000000000000000013213130651643013575 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/sl.po0000644000175000017500000006225213130651643015213 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Martin Srebotnjak , 2011 # Matej UrbanÄiÄ , 2010 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Matej UrbanÄiÄ <>\n" "Language-Team: Slovenian (http://www.transifex.com/lennart/avahi/language/" "sl/)\n" "Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" "%100==4 ? 2 : 3);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "V redu" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Dejanje je spodletelo" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Slabo stanje" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Neveljavno ime gostitelja" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Neveljavno ime domene" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Na voljo ni nobenega ustreznega omrežnega protokola" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Neveljaven DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "KljuÄ zapisa vira je vzorec" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Krajevno poimenovanje je v sporu" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Neveljaven zapis" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Neveljavno ime storitve" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Neveljavna vrsta storitve" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Neveljavna Å¡tevilka vrat" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Neveljaven kljuÄ zapisa" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Neveljaven naslov" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "ÄŒas je potekel" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "PreveÄ odjemalcev" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "PreveÄ predmetov" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "PreveÄ vnosov" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Napaka operacijskega okolja" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Dostop je zavrnjen" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Neveljavno dejanje" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "PriÅ¡lo je do nepriÄakovane napake vodila D-Bus." #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Povezava z ozadnjim programom je spodletela" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Pomnilnik je izÄrpan" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Poslan predmet ni veljaven" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Ozadnji program ni zagnan" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Neveljavno kazalo vmesnika" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Neveljavna specifikacija protokola" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Neveljavne zastavice" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ni zadetkov" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Neveljavna nastavitev" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Neskladje razliÄic" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Neveljavna podvrsta storitve" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Neveljaven paket" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Neveljavna DNS vrnitvena koda" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Spodletel odziv DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Spodletel odziv DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Spodletel odziv DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Spodletel odziv DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Spodletel odziv DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Spodletel odziv DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Spodletel odziv DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Spodletel odziv DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Spodletel odziv DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Spodletel odziv DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Neveljaven podatek RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Neveljavna vrsta DNS" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Neveljaven razred DNS" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ni podprto" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Ni dovoljeno" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Neveljaven argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Je prazno" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Zahtevana operacija je zaradi odveÄnosti neveljavna" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Neveljavna koda napake" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Odkrivanje storitev Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Trenutno ni izbrane storitve." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Brskalnik Avahi Zeroconf" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Brskanje med razpoložljivimi storitvami Zeroconf v omrežju" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Podatki TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "prazno" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Vrsta storitve:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Ime storitve:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Ime domene:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Vmesnik:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Naslov:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Brskanje med vrstami storitev" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "NiÄno zakljuÄen seznam vrst storitev za brskanje" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domena" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Domena za brskanje oziroma NULL za privzeto domeno" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Vrsta storitve" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Vrsta izbrane storitve" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Ime storitve" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Ime izbrane storitve" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Naslov" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Naslov razreÅ¡ene storitve" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Vrata" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Å tevilka vrat IP za razreÅ¡eno storitev" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Ime gostitelja" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Ime gostitelja razreÅ¡ene storitve" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Podatki TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Podatki TXT razreÅ¡ene storitve" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "RazreÅ¡ene storitve" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Samodejno razreÅ¡i izbrano storitev pred povrnitvijo" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Ime gostitelja storitve razreÅ¡evanja" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "Samodejno razreÅ¡i ime gostitelja izbrane storitve pred povratkom" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Družina naslova" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Družina naslova za razreÅ¡evanje imena gostitelja" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Dejanje odjemalca Avahi je spodletelo: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "RazreÅ¡evanje podatkov Avahi je spodletelo: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Brskanje za storitev vrste %s v domeni %s je spodletela: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "ni na voljo" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Dejanje domenskega brskalnika Avahi je spodletelo: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Branje domene Avahi je spodletelo: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Seznam brskanja vrst storitev je prazen!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Povezovanje s strežnikom Avahi je spodletelo: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Brskanje za storitvami na krajevnem omrežju:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Brskanje za storitvami v domeni %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Ustvarjanje brskalnika za %s je spodletelo: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Ustvarjanje razreÅ¡evalnika za %s vrste %s v domeni %s je spodletelo: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Ustvarjanje brskalnika domen je spodletelo: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Spremeni domeno" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Brskanje ..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Preklicano.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "V redu" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "ZaÄenjanje ..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Mesto" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Ime" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Vrsta" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domena ..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [možnosti]\n" "\n" " -h --help Pokaže to pomoÄ\n" " -s --ssh Brskanje za SSH strežniki\n" " -v --vnc Brskanje za VNC strežniki\n" " -S --shell Brskanje za SSH in VNC strežniki\n" " -d --domain=DOMENA Domena za brskanje\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "PreveÄ argumentov\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Izbor lupinskega strežnika" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Namizje" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Izbor strežnika VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Izbor strežnika SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Povezovanje z '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "ukaz execlp() je spodletel: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Preklicano.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi brskalnik strežnika SSH" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Brskanje med omogoÄenimi strežniki Zeroconf SSH" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi brskalnik strežnika VNC" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Brskanje med omogoÄenimi strežniki Zeroconf VNC" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Vse za zdaj\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Predpomnilnik je izÄrpan\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "RazreÅ¡evanje storitve '%s' vrste '%s' v domeni '%s' je spodletelo: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "brskalnik storitev je spodletel: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "ukaz avahi_service_browser_new() spodletel: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "ukaz service_type_browser spodletel: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "ukaz avahi_service_type_browser_new() je spodletel: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "ukaz avahi_domain_browser_new() je spodletel: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Poizvedovanje niza razliÄice je spodletelo: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Poizvedovanje imena gostitelja je spodletelo: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "RazliÄica strežnika: %s; ime gostitelja: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Domena Ifce Prot\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s domena\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Povezava je prekinjena; poteka ponovno povezovanje ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Ustvarjanje predmeta odjemalca je spodletelo: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Spodletelo izvajanje odjemalca, zato bo dejanje konÄano: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "ÄŒakanje na ozadnji program ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Pokaži pomoÄ\n" " -V --version Pokaži razliÄico\n" " -D --browse-domains Prebrskaj brskalne domene namesto storitev\n" " -a --all Pokaži vse storitve, ne glede na vrsto\n" " -d --domain=DOMENA Domena za brskanje\n" " -v --verbose OmogoÄi podroben naÄin\n" " -t --terminate ZakljuÄi po izmetu bolj ali manj popolnega seznama\n" " -c --cache ZakljuÄi po izmetu vseh vnosov iz medpomnilnika\n" " -l --ignore-local Prezri krajevne storitve\n" " -r --resolve RazloÄi najdene storitve\n" " -f --no-fail Ne spodleti, Äe ozadnji program ni na voljo\n" " -p --parsable Izhod v razÄlenljivi obliki\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Ne poizveduj o vrstah storitve\n" " -b --dump-db Izvrzi zbirko podatkov vrst storitev\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Premalo argumentov\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Ustvarjanje predmeta enostavne ankete je spodletelo.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Vzpostavljeno pod imenom '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Vpisovanje je spodletelo: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Poimenovanje je v sporu, zato bo izbrano novo ime '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Ustvarjanje skupine vnosa je spodletelo: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Dodajanje naslova je spodletelo: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Dodajanje storitve je spodletelo: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Dodajanje podvrste '%s' je spodletelo: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Ime gostitelja je v sporu\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [možnosti] %s []\n" "%s [možnosti] %s \n" "\n" " -h --help Pokaži pomoÄ\n" " -V --version Pokaži razliÄico\n" " -s --service Objavi storitev\n" " -a --address Objavi naslov\n" " -v --verbose OmogoÄi podrobni naÄin\n" " -d --domain=DOMENA Domena, kjer bo objavljena storitev\n" " -H --host=DOMENA Gostitelj, kjer je doma storitev\n" " --subtype=PODVRSTA Dodatna podvrsta za registracijo te storitve\n" " -R --no-reverse Ne objavi obratnega vnosa z naslovom\n" " -f --no-fail Ne spodleti, Äe ozadnji program ni na voljo\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "NapaÄno Å¡tevilo argumentov.\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "RazreÅ¡evanje Å¡tevilke vrat je spodletelo: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Ni doloÄenega ukaza.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "RazreÅ¡evanje imena gostitelja '%s' je spodletelo: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "RazreÅ¡evanje naslova '%s' je spodletelo: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [možnosti] %s \n" "%s [možnosti] %s \n" "\n" " -h --help Pokaži pomoÄ\n" " -V --version Pokaži razliÄico\n" " -n --name RazloÄi ime gostitelja\n" " -a --address RazloÄi naslov\n" " -v --verbose OmogoÄi zgovoren naÄin\n" " -6 Poizvedi o naslovu IPv6\n" " -4 Poizvedi o naslovu IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Ustvarjanje razreÅ¡evalnika gostiteljskih imen je spodletelo: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "RazÄlenjevanje naslova '%s' je spodletelo\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Ustvarjanje naslovnega razreÅ¡evalnika je spodletelo: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [možnosti] \n" "\n" " -h --help Pokaži pomoÄ\n" " -V --version Pokaži razliÄico\n" " -v --verbose OmogoÄi podrobni naÄin\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Neveljavno Å¡tevilo argumentov, saj je priÄakovan le en.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Ime gostitelja je uspeÅ¡no spremenjeno v %s\n" avahi-0.7/po/PaxHeaders.10109/ar.po0000644000000000000000000000013213130651643013561 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681851.263961998 avahi-0.7/po/ar.po0000644000175000017500000005140213130651643015172 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # mohammad Alhargan , 2011 # mohammad alhargan , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: mohammad alhargan \n" "Language-Team: Arabic (http://www.transifex.com/lennart/avahi/language/ar/)\n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "مواÙÙ‚" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "ÙØ´Ù„ت العملية" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "حاله سيئة" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "اسم المضي٠غير صالح" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "اسم مجال غير صالح" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "لا يوجد بروتوكول شبكة مناسبة متاحة" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "DNS TTL غير صالح" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "المورد الرئيسي Ù„Ù„Ù…ÙØªØ§Ø­ موثوق" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "تضارب الاسماء المحلية" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "سجل غير صالح" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "اسم الخدمة غير صالح" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "نوع الخدمة غير صالحة" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "عدد Ø§Ù„Ù…Ù†Ø§ÙØ° غير صالح" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "سجل Ø§Ù„Ù…ÙØªÙŠØ­ غير صالح" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "عنوان غير صالح" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "انتهت المهلة" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "عدد العملاء كبير" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "عناصر كثيرة جدا" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "مدخلات كثيرة جدا" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "خطأ نظام التشغيل" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Ø±ÙØ¶ الوصول" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "عملية غير صالحة" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "خطأ denied غير متوقع" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "ÙØ´Ù„ اتصال Ø§Ù„Ø¹ÙØ±ÙŠØª" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Ø§Ø³ØªÙ†ÙØ°Øª الذاكرة" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "الهد٠غير صالح" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Ø§Ù„Ø¹ÙØ±ÙŠØª لا تعمل" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "مؤشر الواجهة غير صالحة" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Ù…ÙˆØ§ØµÙØ§Øª البروتوكول غير صالحة" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "علامة غير صالحة" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "لم يتم العثور" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "التكوين غير صالحة" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "إصدار غير مطابق" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "الخدمة Ø§Ù„ÙØ±Ø¹ÙŠØ© غير صالحة" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "الحزمة غير صالحة" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "أسماء رموز نطاقات العودة غير صالحة" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "غير معتمد" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "غير مسموح" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "وسيط غير صالحة" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "ÙØ§Ø±Øº" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "العملية المطلوبة غير صالحه لأنها مكررة" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "رمز الخطأ غير صالح" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "لم يتم تحديد خدمة." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "خدمة Ø§Ù„ØªØµÙØ­ Zeroconf متاحة على الشبكة" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "النص" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "بيانات النص :" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "ÙØ§Ø±ØºØ©" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "نوع الخدمة :" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "اسم الخدمة :" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "اسم النطاق :" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "الواجهة :" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "العنوان :" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "أستعرض أنواع الخدمة" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "المجال" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "نوع الخدمة" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "نوع الخدمة من الخدمات المختارة" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "اسم الخدمة" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "اسم الخدمة من الخدمات المختارة" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "عنوان" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "عنوان خدمة الحل" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Ø§Ù„Ù…Ù†ÙØ°" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "اسم المضيÙ" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "اسم مضي٠خدمة حل" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT Data" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "خدمة الحل" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "حل الخدمات المحددة تلقائيا قبل الرجوع" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "خدمة حل اسم المضي٠" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "عائلة العنوان" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "غير متاح" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "تغيير النطاق" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "ØªØµÙØ­..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "ألغيت.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "مواÙÙ‚" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "تهيئة..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "المكان" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "اسم" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "نوع" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_نطاق..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "حجج كثيرة جدا\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "اختر خادم شل" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "سطح المكتب" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "الطرÙيه" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "الاتصال ب '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "ألغيت.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": كل ​​الآن\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Ø§Ø³ØªÙ†ÙØ¯Øª الكاش\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "ÙØ´Ù„ ÙÙŠ التسجيل: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "ÙØ´Ù„ ÙÙŠ إنشاء مجموعة الإدخال: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "ÙØ´Ù„ ÙÙŠ Ø¥Ø¶Ø§ÙØ© عنوان: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "ÙØ´Ù„ ÙÙŠ Ø¥Ø¶Ø§ÙØ© خدمة: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "ÙØ´Ù„ تحليل رقم Ø§Ù„Ù…Ù†ÙØ°: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "لم يتم تحديد أمر.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "تم تغيير اسم المضي٠بنجاح إلى %s\n" avahi-0.7/po/PaxHeaders.10109/hu.po0000644000000000000000000000013213130651643013573 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.271961818 avahi-0.7/po/hu.po0000644000175000017500000006314213130651643015210 0ustar00lathiatlathiat00000000000000# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Gabor Kelemen , 2016. msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-09-20 08:58+0200\n" "PO-Revision-Date: 2016-09-20 08:59+0200\n" "Last-Translator: Gabor Kelemen \n" "Language-Team: Hungarian \n" "hu/)\n" "Language: hu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Lokalize 1.5\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "A művelet meghiúsult" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Hibás állapot" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Érvénytelen gépnév" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Érvénytelen tartománynév" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Nem áll rendelkezésre megfelelÅ‘ hálózati protokoll" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Érvénytelen DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Az erÅ‘forrásrekord kulcsa minta" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Helyi névütközés" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Érvénytelen rekord" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Érvénytelen szolgáltatásnév" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Érvénytelen szolgáltatástípus" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Érvénytelen portszám" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Érvénytelen rekordkulcs" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Érvénytelen cím" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "IdÅ‘túllépés" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Túl sok kliens" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Túl sok objektum" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Túl sok bejegyzés" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS hiba" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Hozzáférés megtagadva" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Érvénytelen művelet" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Váratlan D-Bus hiba történt" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "A csatlakozás meghiúsult a démonhoz" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Elfogyott a memória" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Az átadott objektum érvénytelen volt" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "A démon nem fut" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Érvénytelen felületindex" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Érvénytelen protokollmeghatározás" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Érvénytelen jelzÅ‘k" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Nem található" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Érvénytelen konfiguráció" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Verzióeltérés" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Érvénytelen szolgáltatásaltípus" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Érvénytelen csomag" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Érvénytelen DNS visszatérési érték" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS hiba: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS hiba: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS hiba: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS hiba: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS hiba: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS hiba: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS hiba: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS hiba: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS hiba: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS hiba: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Érvénytelen RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Érvénytelen DNS-típus" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Érvénytelen DNS-osztály" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Nem támogatott" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Nem engedélyezett" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Érvénytelen paraméter" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Üres" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "A kért művelet érvénytelen, mivel redundáns" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Érvénytelen hibakód" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi feltérképezés" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:77 msgid "No service currently selected." msgstr "Nincs kiválasztva szolgáltatás." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf-böngészÅ‘" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Zeroconf szolgáltatások keresése a hálózaton" #: ../avahi-python/avahi-discover/avahi-discover.py:225 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "TXT Data:" msgstr "TXT adat:" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "empty" msgstr "üres" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Type:" msgstr "Szolgáltatástípus:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Service Name:" msgstr "Szolgáltatásnév:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Domain Name:" msgstr "Tartománynév:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Interface:" msgstr "Csatoló:" #: ../avahi-python/avahi-discover/avahi-discover.py:233 msgid "Address:" msgstr "Cím:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Szolgáltatástípusok tallózása" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "A tallózandó szolgáltatástípusok NULL végű listája" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Tartomány" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "A tallózandó tartomány, vagy NULL az alapértelmezetthez" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Szolgáltatástípus" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "A kiválasztott szolgáltatás típusa" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Szolgáltatásnév" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "A kiválasztott szolgáltatás neve" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Cím" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "A feloldott szolgáltatás címe" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "A feloldott szolgáltatás IP portszáma" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Gépnév" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "A feloldott szolgáltatás gépneve" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT adat" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "A feloldott szolgáltatás TXT adatai" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Szolgáltatás feloldása" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "A kiválasztott szolgáltatás automatikus feloldása visszatérés elÅ‘tt" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Szolgáltatás gépnevének feloldása" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "A kiválasztott szolgáltatás gépnevének automatikus feloldása visszatérés " "elÅ‘tt" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Címcsalád" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Címcsalád a gépnév-feloldáshoz" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi klienshiba: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi feloldási hiba: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "A szolgáltatástípus (%s) tallózása a tartományban (%s) meghiúsult: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "ismeretlen" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi tartományböngészÅ‘-hiba: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Az Avahi tartomány olvasása meghiúsult: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "A tallózandó szolgáltatástípusok listája üres." #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "A csatlakozás meghiúsult az Avahi kiszolgálóhoz: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Szolgáltatások tallózása a helyi hálózaton:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Szolgáltatások tallózása a(z) %s tartományban:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Nem sikerült tallózót létrehozni a következÅ‘höz: %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Nem sikerült $%2s típusú feloldót létrehozni a következÅ‘höz: $%1s a(z) $%3s " "tartományban: $%4s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Nem sikerült tartománytallózót létrehozni: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Tartomány módosítása" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Tallózás…" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "Mé_gse" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "_OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "ElÅ‘készítés…" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Hely" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Név" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Típus" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Tartomány…" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [kapcsolók]\n" "\n" " -h --help Ezen súgó megjelenítése\n" " -s --ssh SSH kiszolgálók tallózása\n" " -v --vnc VNC kiszolgálók tallózása\n" " -S --shell SSH és VNC kiszolgálók tallózása\n" " -d --domain=TARTOMÃNY A tallózandó tartomány\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Túl sok paraméter\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Válassza ki a shell kiszolgálót" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "Kapcs_olódás" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Asztal" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminál" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Válasszon VNC kiszolgálót" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Válasszon SSH kiszolgálót" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Csatlakozás ehhez: „%s†…\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Az execlp() meghiúsult: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Megszakítva.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH-kiszolgálóböngészÅ‘" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Zeroconf-képes SSH kiszolgálók keresése" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC-kiszolgálóböngészÅ‘" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Zeroconf-képes VNC kiszolgálók keresése" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": most mind\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": a gyorsítótár elfogyott\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "A(z) $%2s típusú $%1s szolgáltatás feloldása meghiúsult a(z) $%3s " "tartományban: $%4s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "a service_browser sikertelen: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "az avahi_service_browser_new() sikertelen: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "a service_type_browser sikertelen: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "az avahi_service_type_browser_new() sikertelen: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "az avahi_domain_browser_new() sikertelen: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "A verzió-karakterlánc lekérdezése meghiúsult: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "A gépnév lekérdezése meghiúsult: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Kiszolgálóverzió: %s; gépnév: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Csat Prot Tartom\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Csat Prot %-*s %-20s Tartom\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Leválasztva, újracsatlakozás…\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Kliensobjektum létrehozása meghiúsult: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Klienshiba, kilépés: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Várakozás a démonra…\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Ezen súgó megjelenítése\n" " -V --version Verziószám megjelenítése\n" " -D --browse-domains Szolgáltatások helyett tartományok tallózása\n" " -a --all Minden szolgáltatás megjelenítése, " "típusfüggetlenül\n" " -d --domain=TARTOMÃNY A tallózandó tartomány\n" " -v --verbose Részletes mód engedélyezése\n" " -t --terminate Befejezés a többé-kevésbé teljes lista kiírása " "után\n" " -c --cache Befejezés a gyorsítótár bejegyzéseinek kiírása " "után\n" " -l --ignore-local Helyi szolgáltatások figyelmen kívül hagyása\n" " -r --resolve Talált szolgáltatások feloldása\n" " -f --no-fail Ne hibázzon, ha a démon nem érhetÅ‘ el\n" " -p --parsable Kimenet feldolgozható formában\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Ne keresse ki a szolgáltatástípusokat\n" " -b --dump-db Szolgáltatástípus-adatbázis kiírása\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Túl kevés paraméter\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Az egyszerű lekérdezési objektum létrehozása meghiúsult.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Létrehozva ezen név alatt: „%sâ€\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "A regisztráció meghiúsult: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Névütközés, új név választása: „%sâ€.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "A bejegyzéscsoport létrehozása meghiúsult: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "A cím hozzáadása meghiúsult: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "A szolgáltatás hozzáadása meghiúsult: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Az altípus („%sâ€) hozzáadása meghiúsult: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Gépnévütközés\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [kapcsolók] %s []\n" "%s [kapcsolók] %s \n" "\n" " -h --help Ezen súgó megjelenítése\n" " -V --version Verziószám megjelenítése\n" " -s --service Szolgáltatás közzététele\n" " -a --address Cím közzététele\n" " -v --verbose Részletes mód engedélyezése\n" " -d --domain=TARTOMÃNY Szolgáltatás közzététele ebben a tartományban\n" " -H --host=TARTOMÃNY A szolgáltatás ezen a gépen található\n" " --subtype=ALTÃPUS További altípus, amellyel a szolgáltatás " "regisztrálandó\n" " -f --no-fail Ne hibázzon, ha a démon nem érhetÅ‘ el\n" " -R --no-reverse Ne tegye közzé a fordított bejegyzést címmel\n" " -f --no-fail Ne hibázzon, ha a démon nem érhetÅ‘ el\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "A paraméterek száma nem megfelelÅ‘\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "A portszám feldolgozása meghiúsult: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Nincs megadva parancs.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "A gépnév („%sâ€) feloldása meghiúsult: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "A cím („%sâ€) feloldása meghiúsult: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [kapcsolók] %s \n" "%s [kapcsolók] %s \n" "\n" " -h --help Ezen súgó megjelenítése\n" " -V --version Verziószám megjelenítése\n" " -n --name Gépnév feloldása\n" " -a --address Cím feloldása\n" " -v --verbose Részletes mód engedélyezése\n" " -6 IPv6 cím kikeresése\n" " -4 IPv4 cím kikeresése\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "A gépnévfeloldó létrehozása meghiúsult: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "A cím („%sâ€) feldolgozása meghiúsult\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "A címfeloldó létrehozása meghiúsult: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [kapcsolók] <új gépnév>\n" "\n" " -h --help Ezen súgó megjelenítése\n" " -V --version Verziószám megjelenítése\n" " -v --verbose Részletes mód engedélyezése\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Érvénytelen számú argumentum, pontosan egy szükséges.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "A gépnév sikeresen módosítva a következÅ‘re: %s\n" avahi-0.7/po/PaxHeaders.10109/sv.po0000644000000000000000000000013213130651643013607 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/sv.po0000644000175000017500000006153713130651643015232 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Josef Andersson , 2015, 2017. msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: https://github.com/lathiat/avahi/issues\n" "POT-Creation-Date: 2017-03-01 15:24+0000\n" "PO-Revision-Date: 2017-03-19 21:18+0100\n" "Language-Team: Swedish (http://www.transifex.com/lennart/avahi/language/" "sv/)\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "Last-Translator: Josef Andersson \n" "X-Generator: Poedit 1.8.9\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Ã…tgärden misslyckades" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Felaktigt tillstÃ¥nd" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Ogiltigt värdnamn" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Ogiltigt domännamn" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Inget lämpligt nätverksprotokoll tillgängligt" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Ogiltigt DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Resursens postnyckel är mönster" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Lokal namnkollision" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Ogiltig post" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Ogiltigt tjänstenamn" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Ogiltig tjänstetyp" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Ogiltigt portnummer" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Ogiltig postnyckel" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Ogiltig adress" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Tidsgräns nÃ¥ddes" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "För mÃ¥nga klienter" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "För mÃ¥nga objekt" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "För mÃ¥nga poster" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Operativsystemsfel" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Ã…tkomst nekad" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Ogiltig Ã¥tgärd" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Ett oväntat D-Bus-fel har inträffat" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Anslutning till demon misslyckades" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Minnet är slut" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Objektet som skickades in var inte giltigt" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Demonen är inte igÃ¥ng" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ogiltigt gränssnittsindex" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Ogiltig protokollspecifikation" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Ogiltiga flaggor" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Hittades inte" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Ogiltig konfiguration" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versionen stämmer inte" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Ogiltig undertyp för tjänst" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Ogiltigt paket" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Ogiltig DNS-svarskod" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS-fel: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS-fel: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS-fel: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS-fel: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS-fel: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS-fel: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS-fel: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS-fel: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS-fel: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS-fel: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Ogiltig RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Ogiltig DNS-typ" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Ogiltig DNS-klass" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Stöds inte" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Inte tillÃ¥ten" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Ogiltigt argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Är tom" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Den begärda Ã¥tgärden är ogiltig därför den är redundant" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Ogiltig felkod" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi-upptäckning" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:77 msgid "No service currently selected." msgstr "Ingen tjänst har markerats." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf-bläddrare" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Bläddra efter Zeroconf-tjänster tillgängliga pÃ¥ ditt nätverk" #: ../avahi-python/avahi-discover/avahi-discover.py:225 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "TXT Data:" msgstr "TXT Data:" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "empty" msgstr "tom" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Type:" msgstr "Tjänstetyp:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Service Name:" msgstr "Tjänstenamn:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Domain Name:" msgstr "Domännamn:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Interface:" msgstr "Gränssnitt:" #: ../avahi-python/avahi-discover/avahi-discover.py:233 msgid "Address:" msgstr "Adress:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Bläddra efter tjänstetyper" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "En NULL-terminerad lista över tjänstetyper att bläddra efter" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domän" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Domänen att bläddra i, eller NULL för standarddomänen" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tjänstetyp" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Tjänstetypen för den markerade tjänsten" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Tjänstenamn" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Tjänstenamnet för den markerade tjänsten" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adress" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Adressen för den uppslagna tjänsten" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "IP-portnumret för den uppslagna tjänsten" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Värdnamn" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Värdnamnet för den uppslagna tjänsten" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT Data" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "TXT-data för den uppslagna tjänsten" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "SlÃ¥ upp tjänst" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "SlÃ¥ upp den valda tjänsten automatiskt före Ã¥tergÃ¥ng" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "SlÃ¥ upp tjänstens värdnamn" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "SlÃ¥ upp värdnamnet för den valda tjänsten automatiskt före Ã¥tergÃ¥ng" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Adressfamilj" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Adressfamiljen för värdnamnets uppslag" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Fel i Avahi-klient: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Fel i Avahi-uppslag: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Bläddring efter tjänstetypen %s i domänen %s misslyckades: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "Inte tillgänglig" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Fel i Avahi-domänbläddrare: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Misslyckades att läsa Avahi-domän: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Listan över tjänstetyper är tom!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Misslyckades att ansluta till Avahi-server: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Bläddrar efter tjänster pÃ¥ lokalt nätverk:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Bläddring efter tjänster i domänen %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Misslyckades med att skapa bläddrare för %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Misslyckades med att skapa uppslagare för %s av typen %s i domänen %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Misslyckades med att skapa domänbläddrare: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Byt domän" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Bläddrar..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "_Avbryt" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "_OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Initierar..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Plats" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Namn" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Typ" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domän..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [flaggor]\n" "\n" " -h --help Visa denna hjälp\n" " -s --ssh Bläddra bland SSH-servrar\n" " -v --vnc Bläddra bland VNC-servrar\n" " -S --shell Bläddra bland bÃ¥de SSH och VNC\n" " -d --domain=DOMÄN Domänen att bläddra i\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "För mÃ¥nga argument\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Välj skalserver" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "_Anslut" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Skrivbord" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Välj VNC-server" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Välj SSH-server" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Ansluter till \"%s\"...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() misslyckades: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Avbruten.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH-serverbläddrare" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Bläddra efter Zeroconf-aktiverade SSH-servrar" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC-serverbläddrare" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Bläddra efter Zeroconf-aktiverade VNC-servrar" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Alla just nu\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Cachen är full\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Misslyckades med att slÃ¥ upp tjänsten \"%s\" av typen \"%s\" i domänen \"%s" "\": %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser misslyckades: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() misslyckades: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser misslyckades: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() misslyckades: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() misslyckades: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Misslyckades med att frÃ¥ga efter versionssträng: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Misslyckades med att frÃ¥ga efter värdnamn: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Serverversion: %s; Värdnamn: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "H Grän Prot Domän\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "H Grän Prot %-*s %-20s Domän\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "FrÃ¥nkopplad, Ã¥teransluter ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Misslyckades med att skapa klientobjekt: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Klientfel, avslutar: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Väntar pÃ¥ demon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the " "cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Visa denna hjälp\n" " -V --version Visa version\n" " -D --browse-domains Bläddra efter bläddringsdomäner istället för " "tjänster\n" " -a --all Visa alla tjänster, oavsett typen\n" " -d --domain=DOMÄN Domänen att bläddra i\n" " -v --verbose Aktivera informativt läge\n" " -t --terminate Avsluta efter dumpning av en mer eller mindre " "komplett lista\n" " -c --cache Avsluta efter dumpning av alla poster frÃ¥n cachen\n" " -l --ignore-local Ignorera lokala tjänster\n" " -r --resolve SlÃ¥ upp tjänster som hittats\n" " -f --no-fail Misslycka inte om demonen inte är tillgänglig\n" " -p --parsable Skriv ut i tolkningsbart format\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup SlÃ¥ inte upp tjänstetyper\n" " -b --dump-db Dumpa databasen över tjänstetyper\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "För fÃ¥ argument\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Misslyckades med att skapa enkelt poll-objekt.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Etablerad under namnet \"%s\"\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Misslyckades att registrera: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Namnkollision, väljer nytt namn \"%s\".\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Misslyckades med att skapa postgrupp: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Misslyckades att lägga till adress: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Misslyckades att lägga till tjänst: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Misslyckades med att lägga till undertypen \"%s\": %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Värdnamnskonflikt\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [flaggor] %s []\n" "%s [flaggor] %s \n" "\n" " -h --help Visa denna hjälp\n" " -V --version Visa version\n" " -s --service Publicera tjänst\n" " -a --address Publicera adress\n" " -v --verbose Aktivera informativt läge\n" " -d --domain=DOMÄN Domän att publicera tjänst i\n" " -H --host=DOMÄN Värd där tjänsten finns\n" " --subtype=UNDERTYP En ytterligare undertyp att registrera denna " "tjänst med\n" " -R --no-reverse Publicera inte baklängespost med address\n" " -f --no-fail Misslycka inte om demonen inte är tillgänglig\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Dåligt antal argument\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Misslyckades med att tolka portnummer: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Inget kommando specificerat.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Misslyckades med att slå upp värdnamnet \"%s\": %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Misslyckades med att slå upp adressen \"%s\": %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [flaggor] %s \n" "%s [flaggor] %s \n" "\n" " -h --help Visa denna hjälp\n" " -V --version Visa version\n" " -n --name SlÃ¥ upp värdnamn\n" " -a --address SlÃ¥ upp adress\n" " -v --verbose Aktivera informativt läge\n" " -6 SlÃ¥ upp IPv6-adress\n" " -4 SlÃ¥ upp IPv4-adress\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Misslyckades med att skapa uppslagare för värdnamn: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Misslyckades med att tolka adressen \"%s\"\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Misslyckades med att skapa adressuppslagare: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [flaggor] \n" "\n" " -h --help Visa denna hjälp\n" " -V --version Visa version\n" " -v --verbose Aktivera informativt läge\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Ogiltigt antal argument, exakt ett argument förväntas.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Värdnamnet ändrades till %s\n" avahi-0.7/po/PaxHeaders.10109/cs.po0000644000000000000000000000013213130651643013564 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.139369856 30 ctime=1499681851.263961998 avahi-0.7/po/cs.po0000644000175000017500000005645013130651643015205 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Jiří Vírava , 2012 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Jiří Vírava \n" "Language-Team: Czech (http://www.transifex.com/lennart/avahi/language/cs/)\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Budiž" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operace selhala" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Nevyhovující stav" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Neplatný název poÄítaÄe" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Neplatný název domény" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Žádný vyhovující síťový protokol není dostupný" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Neplatné DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Kolize lokálního jména" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Neplatný záznam" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Neplatný název služby" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Neplatný typ služby" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Neplatné Äíslo portu" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Neplatný klÃ­Ä záznamu" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Neplatná adresa" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Dosaženo Äasového limitu" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "PříliÅ¡ mnoho klientů" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "PříliÅ¡ mnoho objektů" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "PříliÅ¡ mnoho položek" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Chyba OS " #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Přístup zamítnut" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Neplatná operace" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "NeoÄekávaná chyba D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "PÅ™ipojení démona selhalo" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Paměť vyÄerpána" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "PÅ™edaný objekt nebyl platný" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Démon neběží" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Neplatný index rozhraní" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Neplatná specifikace protokolu" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Neplatné vlajky" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Nebylo nalezeno" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Neplatná konfigurace" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Neshoda verzí" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Neplatný podtyp služby" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Neplatný paket" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Neplatný návratový kód DNS" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Selhání DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Selhání DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Selhání DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Selhání DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Selhání DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Selhání DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Selhání DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Selhání DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Selhání DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Selhání DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Neplatné RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Neplatný typ DNS" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Neplatná třída DNS" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Nepodporováno" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Není povoleno" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Neplatný argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Je prázdné" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Požadovaná operace je neplatná, protože nadbyteÄná" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Neplatný kód chyby" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Zjišťování pÅ™es Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Žádná služba není aktuálnÄ› vybrána." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf ProhlížeÄ" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Procházet Zeroconf služeby dostupné na síti" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT Data:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "prázdné" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Typ služby:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Jméno služby:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Jméno domény:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Rozhraní:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adresa:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Procházet typy služeb" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Doména" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Typ služby" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Typ služby vybrané službÄ›" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Jméno služby" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Jméno služby vybrané služby" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adresa" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Adressa rozpoznané služby" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Číslo IP portu rozpoznané služby" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Jméno hostitele" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT Data" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Rozpoznat službu" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Automaticky pÅ™ed návratem rozpoznat vybranou službu" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi klient selhal: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi rozpoznávaÄ selahl: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "-" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Selhalo Ätení Avahi domény: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Selhalo pÅ™ipojení na Avahi server: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Procházení služeb na místní síti:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Procházení služeb v doménÄ› %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "ZmÄ›nit doménu" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Procházení..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "ZruÅ¡eno.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Budiž" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inicializace..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "UmístÄ›ní" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Jméno" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Typ" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Doména..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [options]\n" "\n" " -h --help Zobrazit tuto nápovÄ›du\n" " -s --ssh Procházet SSH servery\n" " -v --vnc Procházet VNC servery\n" " -S --shell Procházet SSH a VNC servery\n" " -d --domain=DOMAIN Zadání domény k procházení\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "PříliÅ¡ mnoho argumentů\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Vyberte Shell Server" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Plocha" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminál" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Vyberte VNC server" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Vyberte SSH server" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "PÅ™ipojování k '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() selhalo: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "ZruÅ¡eno.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" ": Cache vaÄerpána\n" "\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Selhalo rozpoznání služby '%s' typu '%s' v doménÄ› '%s': %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "NepodaÅ™il se dotaz na Å™etÄ›zec verze: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "NepodaÅ™il se dotaz na název hostitele: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" "Server verze: %s; Jméno hostitele: %s\n" "\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Odpojeno, pÅ™ipojuji znovu ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "NepodaÅ™il se vytvoÅ™it objekt klienta: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Klient selhal, ukonÄení: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "ÄŒekání na démona ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Zobrazit tuto nápovÄ›du\n" " -V --version Zobrazit verzi\n" " -D --browse-domains Procházet zadané domény místo služeb\n" " -a --all Zobrazit vÅ¡echny služeby, bez ohledu na typ\n" " -d --domain=DOMAIN Zadání domény k procházení\n" " -v --verbose Povolit podrobný režim\n" " -t --terminate UkonÄit, až po dumpingu více Äi ménÄ› úplného seznamu\n" " -c --cache UkonÄit, až po výpisu vÅ¡ech položek z mezipamÄ›ti\n" " -l --ignore-local Ignorovat místní služby\n" " -r --resolve RozliÅ¡ovat nalezené služby\n" " -f --no-fail Zamezit selhání v případÄ›, že démon není k " "dispozici\n" " -p --parsable Výstup v rozloženém formátu\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Nezjišťovat typ služby databáze\n" " -b --dump-db Vypsat typ služby databáze\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "PříliÅ¡ málo argumentů\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Založeno pod jménem '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "NepodaÅ™ilo se zaregistrovat: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Kolize jmen, vyberte nové jméno '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "NepodaÅ™ilo se vytvoÅ™it zadanou skupinu: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "NepodaÅ™ilo se pÅ™idat adresu: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "NepodaÅ™ilo se pÅ™idat službu: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Selhalo pÅ™idání podtypu '%s': %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Konflikt jména hostitele\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [options] %s []\n" "%s [options] %s \n" "\n" " -h --help Zobrazit tuto nápovÄ›du\n" " -V --version Zobrazit verzi\n" " -s --service ZveÅ™ejnit službu\n" " -a --address ZveÅ™ejnit adresu\n" " -v --verbose Povolit podrobný režim\n" " -d --domain=DOMAIN ZveÅ™ejnit doménu ve službÄ›\n" " -H --host=DOMAIN UmístÄ›ní hostitele služby\n" " --subtype=SUBTYPE Zaregistrovat další podtyp na tuto službu\n" " -R --no-reverse NezveÅ™ejňovat reverzní záznam s adresou\n" " -f --no-fail Nenechat selhat, pokud není démon " "dostupný\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Å patný poÄet argumentů\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "NepodaÅ™ilo se zpracovat Äíslo portu: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Nebyl zadán žádný příkaz.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Selhalo rozpoznání adresy '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "NepodaÅ™ilo se zpracovat adresu '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [options] \n" "\n" " -h --help Zobratit tutu nápovÄ›du\n" " -V --version Zobrazit verzi\n" " -v --verbose Povolit podrobný režim\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Chybný poÄet argumentů, oÄekáván pÅ™esnÄ› jeden.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Název hostitele úspěšnÄ› zmÄ›nÄ›n na %s\n" avahi-0.7/po/PaxHeaders.10109/et.po0000644000000000000000000000013213130651643013567 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/et.po0000644000175000017500000005242113130651643015202 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # ischafer , 2011 # Mattias Põldaru , 2011, 2012 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Mattias Põldaru \n" "Language-Team: Estonian (http://www.transifex.com/lennart/avahi/language/" "et/)\n" "Language: et\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Olgu" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Toiming nurjus" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Vigane olek" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Sobimatu hostinimi" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Sobimatu domeeninimi" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Sobiv võrguprotokoll pole saadaval" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Sobimatu DNS-i TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Allika salvestusvõti on muster" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Kohaliku nime kokkupõrge" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Sobimatu kirje" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Sobimatu teenuse nimi" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Sobimatu teenuse liik" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Sobimatu pordi number" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Sobimatu salvestusvõti" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Sobimatu aadress" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Saabus ajapiirang" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Liiga palju kliente" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Liiga palju objekte" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Liiga palju sissekandeid" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Operatsioonisüsteemi viga" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Ligipääs keelatud" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Sobimatu toiming" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Esines ootamatu D-Busi viga" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Deemoniga ühendumine nurjus" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Mälu lõppes" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Sisestatud objekt ei olnud sobiv" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Deemon ei tööta" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Sobimatu liideste loend" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Sobimatu protokolli määrang" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Sobimatud lipud" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ei leitud" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Sobimatu seadistus" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versioonid ei sobi" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Sobimatu teenuse alamliik" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Sobimatu pakett" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Sobimatu DNS-i tagastuskood" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS-i viga: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS-i viga: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS-i viga: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS-i viga: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS-i viga: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS-i viga: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS-i viga: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS-i viga: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS-i viga: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS-i viga: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Sobimatu RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Sobimatu DNS-i liik" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Sobimatu DNS-i klass" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Pole toetatud" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Pole lubatud" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Sobimatu argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "On tühi" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Sobimatu veakood" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi avastaja" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Ühtegi teenust pole valitud." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf brauser" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Sinu võrgus olevate Zeroconf teenuste sirvimine" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT andmed:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "tühi" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Serveri liik:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Teenuse nimi:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Domeeninimi:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Liides:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Aadress:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Teenuse tüüpide sirvimine" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domeen" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Sirvitav domeen, vaikimisi domeeni jaoks NULL" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Teenuse liik" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Valitud teenuse liik" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Teenuse nimi" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Valitud teenuse nimi" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Aadress" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Lahendatud teenuse aadress" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Lahendatud teenuse IP pordi number" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Hostinimi" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Lahendatud teenuse hostinimi" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT andmed" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Lahendatud teenuse TXT andmed" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Teenuse lahendamine" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Enne vastamist teenuse automaatne lahendamine" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Teenuse hostinime lahendamine" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "Enne vastamist teenuse hostinime automaatne lahendamine" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Aadressiperekond" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Hostinime lahendamise aadressiperekond" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "puudub" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi domeeni sirvija tõrge: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Tõrge Avahi domeeni lugemisel: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Domeenisirvija loomine nurjus: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Muuda domeeni" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Sirvimine..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Katkestatud.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Olgu" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Lähtestamine..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Asukoht" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nimi" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Liik" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domeen..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [valikud]\n" "\n" " -h --help Selle abi kuvamine\n" " -s --ssh SSH serverite sirvimine\n" " -v --vnc VNC serverite sirvimine\n" " -S --shell SSH ja VNC serverite sirvimine\n" " -d --domain=DOMEEN Domeen, mida sirvida\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Liiga palju argumente\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Kesta serveri valimine" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Töölauaarvuti" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Vali VNC server" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "SSH serveri valimine" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Ühendusmine serveriga '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() nurjus: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Katkestatud.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH serverite brauser" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Zeroconf toega SSH serverite sirvimine" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC serverite brauser" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Zeroconf toega VNC serverite sirvimine" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Praeguseks kõik\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Puhver lõppes\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Liiga vähe argumente\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Regisreerimine nurjus: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Nimede kokkupõrge, valitakse uus nimi '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Aadressi lisamine nurjus: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Teenuse lisamine nurjus: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Pordi numbri parsimine nurjus: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Ühtegi käsku pole määratud.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Hostinime '%s' lahendamine nurjus: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Aadressi '%s' lahendamine nurjus: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Hostinime lahendaja loomine nurjus: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Aadressi '%s' parsimine nurjus\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Aadressi lahendaja loomine nurjus: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [valikud] \n" "\n" " -h --help Selle abi kuvamine\n" " -V --version Versiooni kuvamine\n" " -v --verbose Jutuka režiimi lubamine\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Sobimatu argumentide arv, oodatakse täpselt ühte.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Hostinimeks määrati edukalt %s\n" avahi-0.7/po/PaxHeaders.10109/bg.po0000644000000000000000000000013213130651643013547 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681851.263961998 avahi-0.7/po/bg.po0000644000175000017500000007237313130651643015172 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Alexander Shopov , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Alexander Shopov \n" "Language-Team: Bulgarian (http://www.transifex.com/lennart/avahi/language/" "bg/)\n" "Language: bg\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Добре" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "ÐеуÑпешна операциÑ" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Лошо ÑÑŠÑтоÑние" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Ðеправилно име на машина" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Ðеправилно име на домейн" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "ЛипÑва подходÑщ мрежови протокол" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Ðеправилно време за живот за DNS" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Ключът за Ð·Ð°Ð¿Ð¸Ñ Ð½Ð° реÑÑƒÑ€Ñ Ðµ шаблон" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Съвпадение на локални имена" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Ðеправилен запиÑ" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Ðеправилно име на уÑлуга" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Ðеправилен вид уÑлуга" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Ðеправилен номер на порт" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Ðеправилен ключ за запиÑ" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Ðеправилен адреÑ" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Времето изтече" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Прекалено много клиенти" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Прекалено много обекти" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Прекалено много запиÑи" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Грешка на операционната ÑиÑтема" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "ДоÑтъпът е отказан" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Ðеправилна операциÑ" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Ðеочаквана грешка от D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "ÐеуÑпешна връзка Ñ Ð´ÐµÐ¼Ð¾Ð½Ð°" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "ÐедоÑтатъчно памет" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "ПодадениÑÑ‚ обект е неправилен" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Демонът не е Ñтартиран" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ðеправилен Ð¸Ð½Ð´ÐµÐºÑ Ð½Ð° интерфейÑ" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Ðеправилно указан протокол" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Ðеправилни флагове" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ðе е намерено" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Ðеправилни наÑтройки" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Разлика във верÑиите" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Ðеправилен подвид на уÑлугата" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Ðеправилен пакет" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Ðеправилен код върнат от DNS" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Грешка от DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Грешка от DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Грешка от DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Грешка от DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Грешка от DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Грешка от DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Грешка от DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Грешка от DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Грешка от DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Грешка от DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Ðеправилни данни RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Ðеправилен вид DNS" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Ðеправилен ÐºÐ»Ð°Ñ DNS" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ðе Ñе поддържа" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Ðе е позволено" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Ðеправилен аргумент" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Е празно" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "ЗаÑвената Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ñ Ðµ излишна и затова неправилна" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Ðеправилен код на грешка" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Откриване Ñ Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Ðе е избрана уÑлуга." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Преглед на улеÑнените уÑлуги Ñ Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Преглед на улеÑнените уÑлуги (Zeroconf) в мрежата ви" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Данни Ñ Ð²Ð¸Ð´ TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "нÑма" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Вид уÑлуга:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Име на уÑлугата:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Домейн:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "ИнтерфейÑ:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "ÐдреÑ:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Преглед на видовете уÑлуги" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "СпиÑък завършващ Ñ NULL на видовете уÑлуги, които да Ñе прегледат" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Домейн" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Домейнът, в който да е прегледът. NULL означава ÑÑ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ð¸Ñ Ð´Ð¾Ð¼ÐµÐ¹Ð½" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Вид уÑлуга" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Видът на избраната уÑлуга" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Име на уÑлугата" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Име на избраната уÑлуга" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "ÐдреÑ" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "ÐдреÑÑŠÑ‚ на откритата уÑлуга" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Порт" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Портът по IP на откритата уÑлуга" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Име на машина" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Името на машината на откритата уÑлуга" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Данни Ñ Ð²Ð¸Ð´ TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Данни Ñ Ð²Ð¸Ð´ TXT за откритата уÑлуга" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Откриване на уÑлуга" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Ðвтоматично откриване на избраната уÑлуга преди връщане от функциÑта" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Откриване на името на машината Ñ ÑƒÑлугата" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Ðвтоматично откриване на името на машината Ñ Ð¸Ð·Ð±Ñ€Ð°Ð½Ð°Ñ‚Ð° уÑлуга преди връщане " "от функциÑта" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Ð¤Ð°Ð¼Ð¸Ð»Ð¸Ñ Ð°Ð´Ñ€ÐµÑи" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "ФамилиÑта адреÑи за откриване на име на машина" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Проблем Ñ ÐºÐ»Ð¸ÐµÐ½Ñ‚Ð° на Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Проблем Ñ Ð¾Ñ‚ÐºÑ€Ð¸Ð²Ð°Ð½ÐµÑ‚Ð¾ на Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "ÐеуÑпешен преглед за уÑлуга от вида %s в домейна %s: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "нÑма" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Проблем Ñ Ð¿Ñ€ÐµÐ³Ð»ÐµÐ´Ð° на домейна Ñ Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Проблем Ñ Ð¿Ñ€Ð¾Ñ‡Ð¸Ñ‚Ð°Ð½ÐµÑ‚Ð¾ на домейна Ñ Avahi: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "СпиÑъкът Ñ ÑƒÑлуги за преглед е празен!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "ÐеуÑпех при Ñвързването ÑÑŠÑ Ñървър на Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Преглед на уÑлугите в локалната мрежа:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Преглед на уÑлугите в домейна %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "ÐеуÑпешно Ñъздаване на компонент за преглед на %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "ÐеуÑпешно Ñъздаване на компонент за откриване на %s от вида %s в домейна %s: " "%s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "ÐеуÑпешно Ñъздаване на компонент за преглед на домейн: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "СмÑна на домейна" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Преглед…" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "ОтмÑна.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Добре" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Инициализиране…" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "МеÑтоположение" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Име" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Вид" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Домейн…" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [опции]\n" "\n" " -h --help Извеждане на тази помощ\n" " -s --ssh Преглед на Ñървърите за SSH\n" " -v --vnc Преглед на Ñървърите за VNC\n" " -S --shell Преглед на Ñървърите за VNC и SSH\n" " -d --domain=ДОМЕЙРДомейнът, който да Ñе разгледа\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Прекалено много аргументи\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Избор на Ñървър за доÑтъп" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "С графична Ñреда" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "За команден ред" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Избор на Ñървър за VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Избор на Ñървър за SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Свързване към „%s“…\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "ÐеуÑпешно изпълнение на execlp(): %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "ОтмÑна.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Преглед Ñ Avahi на Ñървърите за SSH" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Преглед на Ñървърите за SSH Ñ ÑƒÐ»ÐµÑнение" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Преглед Ñ Avahi на Ñървърите за VNC" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Преглед на Ñървърите за VNC Ñ ÑƒÐ»ÐµÑнение" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": вÑички за Ñега\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": кешът е изчерпан\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "УÑлуга „%s“ Ñ Ð²Ð¸Ð´ „%s“ не е открита в домейна „%s“: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Проблем ÑÑŠÑ service_browser: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Проблем Ñ avahi_service_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Проблем Ñ service_type_browser: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Проблем Ñ avahi_service_type_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Проблем Ñ avahi_domain_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "ÐеуÑпешно запитване за низа за верÑиÑта: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "ÐеуÑпешно запитване за името на машината: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "ВерÑÐ¸Ñ Ð½Ð° Ñървъра: %s. Име на машината: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Сбт Ð˜Ð½Ñ„Ñ ÐŸÑ€Ñ‚Ðº Домейн\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "Сбт Ð˜Ð½Ñ„Ñ ÐŸÑ€Ñ‚Ðº %-*s %-20s Домейн\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "ПрекъÑната връзка, подновÑване…\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "ÐеуÑпех при Ñъздаване на клиентÑки обект: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Грешка в клиента, изход: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Изчакване на демона…\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Извеждане на тази помощ\n" " -V --version Извеждане на верÑиÑта\n" " -D --browse-domains Преглед на възможните домейни, а не на уÑлугите\n" " -a --all Показване на вÑички уÑлуги\n" " -d --domain=ДОМЕЙРДомейнът, който да Ñе разгледа\n" " -v --verbose Включване на подробен режим\n" " -t --terminate Изход Ñлед извеждането на възможно пълен ÑпиÑък\n" " -c --cache Изход Ñлед извеждането на вÑички запиÑи в кеша\n" " -l --ignore-local Без локалните уÑлуги\n" " -r --resolve Откриване на адреÑите на намерените уÑлуги\n" " -f --no-fail Продължаване на работа дори и без демон\n" " -p --parsable Изходът да може да Ñе анализира\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Без преглед на видовете уÑлуги\n" " -b --dump-db Извеждане на различните видове уÑлуги\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Прекалено малко аргументи\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "ÐеуÑпех при Ñъздаването на проÑÑ‚ обект за запитване.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "УÑтановен под име „%s“\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "ÐеуÑпешно региÑтриране: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Съвпадение на имена. Избира Ñе ново име: „%s“.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "ÐеуÑпешно Ñъздаване на група запиÑи: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "ÐеуÑпешно добавÑне на адреÑ: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "ÐеуÑпешно добавÑне на уÑлуга: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "ÐеуÑпешно добавÑне на подтип „%s“: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Съвпадение на имена на машини\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [опции] %s <име> <вид> <порт> []\n" "%s [fm[rr] %s <име-на-машина> <адреÑ>\n" "\n" " -h --help Извеждане на тази помощ\n" " -V --version Извеждане на верÑиÑта\n" " -s --service Публикуване на уÑлуга\n" " -a --address Публикуване на адреÑ\n" " -v --verbose Включване на подробен режим\n" " -d --domain=ДОМЕЙРДомейн за публикуване на уÑлугата\n" " -H --host=ДОМЕЙРМашина, на коÑто е уÑлугата\n" " --subtype=ПОДТИП Допълнителен подтип за региÑтриране на уÑлугата\n" " -R --no-reverse Без публикуване на обратен Ð·Ð°Ð¿Ð¸Ñ Ð·Ð° адреÑа\n" " -f --no-fail Продължаване на работа дори и без демон\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Ðеправилен брой аргументи\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "ÐеуÑпешно разпознаване на номер на порт: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Ðе е указана команда.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "ÐеуÑпешно откриване на името „%s“: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "ÐеуÑпешно откриване на Ð°Ð´Ñ€ÐµÑ â€ž%s“: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [опции] %s <име на машина…>\n" "%s [опции] %s <адреÑ… >\n" "\n" " -h --help Извеждане на тази помощ\n" " -V --version Извеждане на верÑиÑта\n" " -n --name Откриване на име на машина\n" " -a --address Откриване на адреÑ\n" " -v --verbose Включване на подробен режим\n" " -6 Откриване на Ð°Ð´Ñ€ÐµÑ Ð¿Ð¾ IPv6\n" " -4 Откриване на Ð°Ð´Ñ€ÐµÑ Ð¿Ð¾ IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "ÐеуÑпешно Ñъздаване на компонент за откриване на имена: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "ÐдреÑÑŠÑ‚ „%s“ не може да Ñе анализира.\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "ÐеуÑпешно Ñъздаване на компонент за откриване на имена: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [опции] <ново име на машината>\n" "\n" " -h --help Извеждане на тази помощ\n" " -V --version Извеждане на верÑиÑта\n" " -v --verbose Включване на подробен режим\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Ðеправилен брой аргументи. Очаква Ñе точно един.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Името на машината е променено на %s\n" avahi-0.7/po/PaxHeaders.10109/ja.po0000644000000000000000000000013213130651643013551 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.271961818 avahi-0.7/po/ja.po0000644000175000017500000006555213130651643015175 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Japanese (http://www.transifex.com/lennart/avahi/language/" "ja/)\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "æ“作ã«å¤±æ•—ã—ã¾ã—ãŸ" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "䏿­£ãªçŠ¶æ…‹ã§ã™" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "䏿­£ãªãƒ›ã‚¹ãƒˆåã§ã™" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "䏿­£ãªãƒ‰ãƒ¡ã‚¤ãƒ³åã§ã™" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "é©åˆ‡ãªãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ãƒ—ロトコルãŒè¦‹ã¤ã‹ã‚Šã¾ã›ã‚“" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "䏿­£ãª DNS TTL 値ã§ã™" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "リソースレコードキーãŒç¹°ã‚Šè¿”ã—ã«ãªã£ã¦ã„ã¾ã™" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "ローカルåã®è¡çªãŒç™ºç”Ÿã—ã¾ã—ãŸ" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "䏿­£ãªãƒ¬ã‚³ãƒ¼ãƒ‰ã§ã™" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "䏿­£ãªã‚µãƒ¼ãƒ“スåã§ã™" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "䏿­£ãªã‚µãƒ¼ãƒ“スタイプã§ã™" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "䏿­£ãªãƒãƒ¼ãƒˆç•ªå·ã§ã™" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "䏿­£ãªãƒ¬ã‚³ãƒ¼ãƒ‰ã‚­ãƒ¼ã§ã™" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "䏿­£ãªã‚¢ãƒ‰ãƒ¬ã‚¹ã§ã™" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "タイムアウトã«é”ã—ã¾ã—ãŸ" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "クライアントãŒå¤šã™ãŽã¾ã™" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "オブジェクトãŒå¤šã™ãŽã¾ã™" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "エントリãŒå¤šã™ãŽã¾ã™" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS エラー" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "ã‚¢ã‚¯ã‚»ã‚¹ãŒæ‹’å¦ã•れã¾ã—ãŸ" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "䏿­£ãªæ“作ã§ã™" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "予期ã—ãªã„ D-Bus ã®ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ã¾ã—ãŸ" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "ãƒ‡ãƒ¼ãƒ¢ãƒ³ã®æŽ¥ç¶šãŒå¤±æ•—ã—ã¾ã—ãŸ" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "メモリä¸è¶³ã§ã™" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "䏿­£ãªã‚ªãƒ–ã‚¸ã‚§ã‚¯ãƒˆãŒæ¸¡ã•れã¾ã—ãŸ" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "デーモンãŒå‹•作ã—ã¦ã„ã¾ã›ã‚“" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "䏿­£ãªã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ェイス一覧ã§ã™" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "䏿­£ãªãƒ—ロトコル定義ã§ã™" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "䏿­£ãªãƒ•ラグã§ã™" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "見ã¤ã‹ã‚Šã¾ã›ã‚“" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "䏿­£ãªè¨­å®šã§ã™" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãŒä¸€è‡´ã—ã¾ã›ã‚“" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "サービスã®ã‚µãƒ–タイプãŒä¸æ­£ã§ã™" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "䏿­£ãªãƒ‘ケットã§ã™" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "DNS ã®ãƒªã‚¿ãƒ¼ãƒ³ã‚³ãƒ¼ãƒ‰ãŒä¸æ­£ã§ã™" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: NOAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS ãŒå¤±æ•—ã—ã¾ã—ãŸ: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "䏿­£ãª RDATA ã§ã™" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "䏿­£ãª DNS タイプã§ã™" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "䏿­£ãª DNS クラスã§ã™" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "サãƒãƒ¼ãƒˆã•れã¦ã„ã¾ã›ã‚“" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "許å¯ã•れã¦ã„ã¾ã›ã‚“" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "引数ãŒä¸æ­£ã§ã™" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "グループãŒç©ºã§ã™" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "è¦æ±‚ã•ã‚ŒãŸæ“作ãŒéŽå‰°ã§ã‚ã£ãŸç‚ºã€æ“作ãŒç•°å¸¸ã‚’èµ·ã“ã—ã¾ã—ãŸ" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "䏿­£ãªã‚¨ãƒ©ãƒ¼ã‚³ãƒ¼ãƒ‰" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi 検索" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "ç¾åœ¨ã¯ã©ã®ã‚µãƒ¼ãƒ“ã‚¹ã‚‚é¸æŠžã•れã¦ã„ã¾ã›ã‚“。" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf ブラウザ" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "ãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ä¸Šã®åˆ©ç”¨å¯èƒ½ãª Zeroconf サービスを検索" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT データ" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "空" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "サービスタイプ:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "サービスå:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "ドメインå:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "インターフェイス:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "アドレス:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "ã‚µãƒ¼ãƒ“ã‚¹ã‚¿ã‚¤ãƒ—ã®æ¤œç´¢" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "NULL ã§çµ‚端ã•ã‚ŒãŸæ¤œç´¢å¯¾è±¡ã®ã‚µãƒ¼ãƒ“スタイプã®ãƒªã‚¹ãƒˆ" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "ドメイン" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" "検索ã™ã‚‹ãƒ‰ãƒ¡ã‚¤ãƒ³ã‚’入力ã™ã‚‹ã‹ã€ãƒ‡ãƒ•ォルトã®ãƒ‰ãƒ¡ã‚¤ãƒ³ã¨ã—㦠NULL を指定ã™ã‚‹" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "サービスタイプ" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "é¸æŠžã•れãŸã‚µãƒ¼ãƒ“スã®ã‚µãƒ¼ãƒ“スタイプ" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "サービスå" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "é¸æŠžã•れãŸã‚µãƒ¼ãƒ“スã®ã‚µãƒ¼ãƒ“スå" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "アドレス" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "解決ã•れãŸã‚µãƒ¼ãƒ“スã®ã‚¢ãƒ‰ãƒ¬ã‚¹" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "ãƒãƒ¼ãƒˆ" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "解決ã•れãŸã‚µãƒ¼ãƒ“ス㮠IP ãƒãƒ¼ãƒˆç•ªå·" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "ホストå" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "解決ã•れãŸã‚µãƒ¼ãƒ“スã®ãƒ›ã‚¹ãƒˆå" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT データ" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "解決ã•れãŸã‚µãƒ¼ãƒ“ス㮠TXT データ" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "サービスã®è§£æ±º" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "戻るå‰ã«é¸æŠžã—ãŸã‚µãƒ¼ãƒ“スを自動的ã«è§£æ±º" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "サービスホストåã®è§£æ±º" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "戻るå‰ã«é¸æŠžã—ãŸã‚µãƒ¼ãƒ“スã®ãƒ›ã‚¹ãƒˆåを自動的ã«è§£æ±º" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "アドレスファミリ" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "ホストå解決ã«åˆ©ç”¨ã™ã‚‹ã‚¢ãƒ‰ãƒ¬ã‚¹ãƒ•ァミリ" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi クライアントãŒå¤±æ•—ã—ã¾ã—ãŸ: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi リゾルãƒãŒå¤±æ•—ã—ã¾ã—ãŸ: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "ドメイン %2$s ã«ã¦ã‚µãƒ¼ãƒ“スタイプ %1$s ã®æ¤œç´¢ã«å¤±æ•—ã—ã¾ã—ãŸ: %3$s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi ドメインブラウザãŒå¤±æ•—ã—ã¾ã—ãŸ: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Avahi ドメインã®èª­ã¿è¾¼ã¿ã«å¤±æ•—ã—ã¾ã—ãŸ: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "検索サービスタイプã®ãƒªã‚¹ãƒˆãŒç©ºã§ã™!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Avahi サーãƒã¸ã®æŽ¥ç¶šãŒå¤±æ•—ã¾ã—ãŸ: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "ローカルãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ã§ã®ã‚µãƒ¼ãƒ“ス検索:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "ドメイン %s ã§ã®ã‚µãƒ¼ãƒ“ス検索:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "%1$s ã®ãƒ–ラウザ作æˆã«å¤±æ•—ã—ã¾ã—ãŸ: %2$s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "ドメイン %3$s ã®ã‚¿ã‚¤ãƒ— %2$s ã® %1$s ã®ãƒªã‚¾ãƒ«ãƒä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ: %4$s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "ドメインブラウザã®ä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "ドメインã®å¤‰æ›´" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "検索中…" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "キャンセルã•れã¾ã—ãŸã€‚\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "åˆæœŸåŒ–中…" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "場所" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "åå‰" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "タイプ" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "ドメイン(_D)…" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [オプション]\n" "\n" " -h --help ã“ã®ãƒ˜ãƒ«ãƒ—を表示ã™ã‚‹\n" " -s --ssh SSH サーãƒã®æ¤œç´¢\n" " -v --vnc VNC サーãƒã®æ¤œç´¢\n" " -S --shell SSH 㨠VNC を検索ã™ã‚‹\n" " -d --domain=DOMAIN 検索ã™ã‚‹ãƒ‰ãƒ¡ã‚¤ãƒ³ã‚’指定\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "引数ãŒå¤šã™ãŽã¾ã™\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "シェルサーãƒã‚’é¸æŠž" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "デスクトップ" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "ターミナル" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "VNC サーãƒã‚’é¸æŠž" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "SSH サーãƒã‚’é¸æŠž" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "'%s' ã¸æŽ¥ç¶šä¸­â€¦\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() ãŒå¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "キャンセルã•れã¾ã—ãŸã€‚\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH サーãƒã®æ¤œç´¢" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Zeroconf を有効ã«ã—㟠SSH サーãƒã‚’検索" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC サーãƒã®æ¤œç´¢" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Zeroconf を有効ã«ã—㟠VNC サーãƒã‚’検索" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": ã¨ã‚Šã‚ãˆãšå…¨ã¦\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": キャッシュãŒä¸è¶³ã—ã¦ã„ã¾ã™\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "ドメイン '%3$s' ã®ã‚¿ã‚¤ãƒ— '%2$s' ã®ã‚µãƒ¼ãƒ“ス '%1$s' ã®è§£æ±ºã«å¤±æ•—ã—ã¾ã—ãŸ: " "%4$s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser ãŒå¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() ãŒå¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser ãŒå¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() ãŒå¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() ãŒå¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "ãƒãƒ¼ã‚¸ãƒ§ãƒ³æ–‡å­—列ã®ã‚¯ã‚¨ãƒªã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "ホストåã®ã‚¯ã‚¨ãƒªã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "サーãƒã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³: %1$s; ホストå: %2$s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot ドメイン\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s ドメイン\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "切断ã•れã¾ã—ãŸã€‚å†æŽ¥ç¶šã—ã¦ã„ã¾ã™â€¦\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "クライアントオブジェクトã®ä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "クライアントãŒå¤±æ•—ã—ã¾ã—ãŸã€‚終了ã—ã¦ã„ã¾ã™: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "デーモンを待ã£ã¦ã„ã¾ã™...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help ã“ã®ãƒ˜ãƒ«ãƒ—を表示ã™ã‚‹\n" " -V --version ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’表示ã™ã‚‹\n" " -D --browse-domains サービスã§ã¯ãªãドメインを検索\n" " -a --all タイプã§ã¯ãªãã€å…¨ã¦ã®ã‚µãƒ¼ãƒ“スを表示ã™ã‚‹\n" " -d --domain=DOMAIN 検索ã™ã‚‹ãƒ‰ãƒ¡ã‚¤ãƒ³ã‚’指定\n" " -v --verbose 冗長出力モードを有効ã«ã™ã‚‹\n" " -t --terminate ã»ã¼å®Œå…¨ãªãƒªã‚¹ãƒˆã‚’出力ã—ãŸå¾Œã§çµ‚了ã™ã‚‹\n" " -c --cache キャッシュã‹ã‚‰å…¨ã¦ã®ã‚¨ãƒ³ãƒˆãƒªã‚’出力ã—ã¦çµ‚了ã™ã‚‹\n" " -l --ignore-local ローカルサービスを無視ã™ã‚‹\n" " -r --resolve 見ã¤ã‘ãŸã‚µãƒ¼ãƒ“スを解決ã™ã‚‹\n" " -f --no-fail デーモンãŒåˆ©ç”¨ã§ããªã„éš›ã€fail ã—ãªã„\n" " -p --parsable パース処ç†ãŒå¯èƒ½ãªå½¢å¼ã§å‡ºåŠ›ã™ã‚‹\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup サービスタイプを検索ã—ãªã„\n" " -b --dump-db サービスタイプã®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚’出力ã™ã‚‹\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "引数ãŒå°‘ãªã™ãŽã¾ã™\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "simple poll オブジェクトã®ä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "åå‰ '%s' ã§æŽ¥ç¶šã‚’ç¢ºç«‹ã—ã¾ã™\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "登録ã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "åå‰ãŒè¡çªã—ã¾ã—ãŸã€‚æ–°ã—ã„åå‰ '%s' を利用ã—ã¾ã™ã€‚\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "エントリグループã®ä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "アドレスã®è¿½åŠ ã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "サービスã®è¿½åŠ ã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "サブタイプ '%1$s' ã®è¿½åŠ ã«å¤±æ•—ã—ã¾ã—ãŸ: %2$s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "ホストåã®è¡çª\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [オプション] %s <åå‰> <タイプ> <ãƒãƒ¼ãƒˆ> []\n" "%s [オプション] %s <ホストå> <アドレス>\n" "\n" " -h --help ã“ã®ãƒ˜ãƒ«ãƒ—を表示ã™ã‚‹\n" " -V --version ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’表示ã™ã‚‹\n" " -s --service サービスを公開ã™ã‚‹\n" " -a --address アドレスを公開ã™ã‚‹\n" " -v --verbose 冗長出力モードを有効ã«ã™ã‚‹\n" " -d --domain=DOMAIN サービスを公開ã™ã‚‹ãƒ‰ãƒ¡ã‚¤ãƒ³ã‚’指定\n" " -H --host=DOMAIN サービスãŒå­˜åœ¨ã™ã‚‹ãƒ›ã‚¹ãƒˆã‚’指定\n" " --subtype=SUBTYPE ã“ã®ã‚µãƒ¼ãƒ“スを登録ã™ã‚‹è¿½åŠ ã‚µãƒ–ã‚¿ã‚¤ãƒ—ã‚’æŒ‡å®š\n" " -R --no-reverse アドレスã®é€†å¼•ãエントリを公開ã—ãªã„\n" " -f --no-fail デーモンãŒåˆ©ç”¨ã§ããªã„際㫠fail ã—ãªã„\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "å¼•æ•°ã®æ•°ãŒé–“é•ã£ã¦ã„ã¾ã™\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "ãƒãƒ¼ãƒˆç•ªå·ã‚’パースã™ã‚‹ã®ã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "ã‚³ãƒžãƒ³ãƒ‰ãŒæŒ‡å®šã•れã¦ã„ã¾ã›ã‚“。\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "ホストå '%1$s' ã®è§£æ±ºã«å¤±æ•—ã—ã¾ã—ãŸ: %2$s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "アドレス '%1$s' ã®è§£æ±ºã«å¤±æ•—ã—ã¾ã—ãŸ: %2$s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [オプション] %s <ホストå ...>\n" "%s [オプション] %s <アドレス ... >\n" "\n" " -h --help ã“ã®ãƒ˜ãƒ«ãƒ—を表示\n" " -V --version ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’表示\n" " -n --name ホストåを解決\n" " -a --address アドレスを解決\n" " -v --verbose 冗長出力モードを有効ã«ã™ã‚‹\n" " -6 IPv6 ã‚¢ãƒ‰ãƒ¬ã‚¹ã§æ¤œç´¢\n" " -4 IPv4 ã‚¢ãƒ‰ãƒ¬ã‚¹ã§æ¤œç´¢\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "ホストåã®ãƒªã‚¾ãƒ«ãƒä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "アドレス '%s' ã®å‡¦ç†ã«å¤±æ•—ã—ã¾ã—ãŸ\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "アドレスã®ãƒªã‚¾ãƒ«ãƒä½œæˆã«å¤±æ•—ã—ã¾ã—ãŸ: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [オプション] <æ–°ã—ã„ホストå>\n" "\n" " -h --help ã“ã®ãƒ˜ãƒ«ãƒ—を表示\n" " -V --version ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’表示\n" " -v --verbose 冗長出力モードを有効ã«ã™ã‚‹\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "å¼•æ•°ã®æ•°ãŒä¸æ­£ã§ã™ã€ä¸€ã¤ã ã‘を指定ã—ã¦ãã ã•ã„。\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "ホストå㯠%s ã«å¤‰æ›´ã•れã¾ã—ãŸ\n" avahi-0.7/po/PaxHeaders.10109/ms.po0000644000000000000000000000013213130651643013576 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.271961818 avahi-0.7/po/ms.po0000644000175000017500000004510413130651643015211 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2010-11-29 23:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Malay (http://www.transifex.com/lennart/avahi/language/ms/)\n" "Language: ms\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operasi gagal" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Terlalu banyak klien" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Terlalu banyak objek" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Ralat OS" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Tidak dijumpai" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Tidak disokong" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Data TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "kosong" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Jenis Servis:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Nama Servis:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nama Domain:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Alamat:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domain" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Jenis Servis" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nama Servis" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Alamat" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nama Hos" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Data TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Tukar domain" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Lokasi" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nama" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Jenis" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domain..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Pilih Pelayan Shell" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Desktop" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Pilih Pelayan VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Pilih Pelayan SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Menyambung ke %s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Gagal untuk menambah alamat: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Gagal untuk menambah servis: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Gagal untuk menambah sub jenis '%s': %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Konflik nama hos\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Jumlah hujah tidak tepat\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Tiada arahan dinyatakan.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Gagal untuk menyelesai alamat '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Gagal untuk menghurai alamat '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "" avahi-0.7/po/PaxHeaders.10109/fa.po0000644000000000000000000000013213130651643013545 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/fa.po0000644000175000017500000005042013130651643015155 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Sadid Sahami , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Sadid Sahami \n" "Language-Team: Persian (http://www.transifex.com/lennart/avahi/language/" "fa/)\n" "Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "عملیات شکست خورد" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "حالت بد" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "نام میزبان نامعتبر" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "نام دامنه اشتباه" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "پروتکل شبکه‌ی مناسبی در دسترسی نیست" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Invalid DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "کلید رکورد منبع همان الگو است" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "تصادم نام محلی" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "رکورد نامعتبر" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "نام سرویس نامعتبر" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "نوع سرویس نامعتبر" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "شماره‌ی پورت نامعتبر" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "کلید رکورد نامعتبر" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "آدرس نامعتبر" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "اتمام مهلت" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "مشتریان بیش از حد" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "اشیاء بیش از حد" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "ورودی‌های بیش از حد" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "خطای سیستم‌عامل" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "امکان دسترسی وجود ندارد" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "عملیات نامعتبر" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "خطای غیرمنتظره‌ی D-BUS رخ داده" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "ارتباط شبح (ویزارد) شکست خورد" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "کمبود Ø­Ø§ÙØ¸Ù‡" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "شیء واردشده معتبر نبود" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "شبح در حال اجرا نیست" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "شاخص رابط نامعتبر" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "خصوصیات پروتکل نامعتبر" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "پرچم های نامعتبر" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "موردی ÛŒØ§ÙØª نشد." #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "تنظیمات نامعتبر" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "عدم تطبیق نسخه" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "زیرنوع سرویس نامعتبر" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "پاکت نامعتبر" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "کد برگشتی DNS نامعتبر" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS failure: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS failure: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS failure: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS failure: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS failure: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS failure: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS failure: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS failure: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS failure: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS failure: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA نامعتبر" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "نوع DNS نامعتبر" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "کلاس DNS نامعتبر" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "پشتیبانی نمی شود" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "مجاز نیست" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "شناسه نامعتبر است" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "خالی است" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "عمل درخواست شده به خاطر زائد بودن نامعتبر است" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "کد خطای نامعتبر" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Ú©Ø´Ù" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "در حال حاضر سرویسی انتخاب نشده است" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi مرورگر Zeroconf" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "خدمات Zeroconf موجود در شبکه‌تان را مرور کنید" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT Data:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "خالی" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "نوع خدمات :" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "نام سرویس :" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "نام دامنه :" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "رابط :" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "آدرس:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "انواع سرویس را مرور کنید" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "یک لیست با NULL خاتمه ÛŒØ§ÙØªÙ‡â€ŒÛŒ انواع سرویس‌ها برای مرور کردن" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "دامنه" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "برای دامنه‌‌ای Ú©Ù‡ قرار است مرور شود یا NULL برای دامنه‌ی Ù¾ÛŒØ´ÙØ±Ø¶" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "نوع سرویس" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "نوع خدمات سرویس انتخاب شده" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "نام سرویس" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "" avahi-0.7/po/PaxHeaders.10109/Makefile.in.in0000644000000000000000000000013213130652004015261 xustar0030 mtime=1499681796.889176873 30 atime=1499681796.893176783 30 ctime=1499681851.259962087 avahi-0.7/po/Makefile.in.in0000644000175000017500000001575613130652004016706 0ustar00lathiatlathiat00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # Copyright (C) 2004-2008 Rodney Dawes # # This file may be copied and used freely without restrictions. It may # be used in projects which are not available under a GNU Public License, # but which still want to provide support for the GNU gettext functionality. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize # # - Modified by Rodney Dawes for use with intltool # # We have the following line for use by intltoolize: # INTLTOOL_MAKEFILE GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = @SHELL@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ datarootdir = @datarootdir@ libdir = @libdir@ localedir = @localedir@ subdir = po install_sh = @install_sh@ # Automake >= 1.8 provides @mkdir_p@. # Until it can be supposed, use the safe fallback: mkdir_p = $(install_sh) -d INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot ALL_LINGUAS = @ALL_LINGUAS@ PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi) USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi) USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) DISTFILES = Makefile.in.in POTFILES.in $(POFILES) EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS POTFILES = \ # This comment gets stripped out CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) .SUFFIXES: .SUFFIXES: .po .pox .gmo .mo .msg .cat AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V)) INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY)) INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@; .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $* $(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $< .po.gmo: $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && gencat $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(GETTEXT_PACKAGE).pot: $(POTFILES) $(GENPOT) install: install-data install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $$dir; \ if test -r $$lang.gmo; then \ $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \ else \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ echo "installing $(srcdir)/$$lang.gmo as" \ "$$dir/$(GETTEXT_PACKAGE).mo"; \ fi; \ if test -r $$lang.gmo.m; then \ $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ if test -r $(srcdir)/$$lang.gmo.m ; then \ $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \ $$dir/$(GETTEXT_PACKAGE).mo.m; \ echo "installing $(srcdir)/$$lang.gmo.m as" \ "$$dir/$(GETTEXT_PACKAGE).mo.m"; \ else \ true; \ fi; \ fi; \ done # Empty stubs to satisfy archaic automake needs dvi info ctags tags CTAGS TAGS ID: # Define this as empty until I found a useful application. install-exec installcheck: uninstall: linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ done check: all $(GETTEXT_PACKAGE).pot rm -f missing notexist srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m if [ -r missing -o -r notexist ]; then \ exit 1; \ fi mostlyclean: rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp rm -f .intltool-merge-cache clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES stamp-it rm -f *.mo *.msg *.cat *.cat.m *.gmo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f Makefile.in.in distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(DISTFILES) dists="$(DISTFILES)"; \ extra_dists="$(EXTRA_DISTFILES)"; \ for file in $$extra_dists; do \ test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \ done; \ for file in $$dists; do \ test -f $$file || file="$(srcdir)/$$file"; \ ln $$file $(distdir) 2> /dev/null \ || cp -p $$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ linguas="$(USE_LINGUAS)"; \ for lang in $$linguas; do \ echo "$$lang:"; \ result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ if $$result; then \ if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.gmo failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done Makefile POTFILES: stamp-it @if test ! -f $@; then \ rm -f stamp-it; \ $(MAKE) stamp-it; \ fi stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/po/PaxHeaders.10109/fi.po0000644000000000000000000000013213130651643013555 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/fi.po0000644000175000017500000006064513130651643015177 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Ville Skyttä \n" "Language-Team: Finnish (http://www.transifex.com/lennart/avahi/language/" "fi/)\n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Toiminto epäonnistui" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Huono tila" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Kelvoton verkkonimi" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Kelvoton verkkoalueen nimi" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Sopivaa verkkoyhteyskäytäntöä ei ole saatavilla" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Virheellinen DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Resurssin tietueavain on lauseke" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Paikallinen nimien yhteentörmäys" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Virheellinen tietue" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Virheellinen palvelun nimi" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Virheellinen palvelun tyyppi" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Virheellinen porttinumero" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Virheellinen tietueavain" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Virheellinen osoite" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Tapahtui aikakatkaisu" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Liian monta asiakasta" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Liian monta objektia" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Liian monta kohdetta" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS-virhe" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Pääsy evätty" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Virheellinen toiminto" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Tapahtui odottamaton D-Bus-virhe" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Taustaprosessiyhteys epäonnistui" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Muisti loppui" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Annettu objekti ei ollut kelvollinen" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Taustaprosessi ei käynnissä" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Virheellinen liitännän järjestysnumero" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Virheellinen yhteyskäytännön määrittely" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Virheelliset liput" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ei löytynyt" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Virheelliset asetukset" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versioristiriita" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Virheellinen palvelun alatyyppi" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Virheellinen paketti" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Virheellinen DNS-palautuskoodi" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS-toimintahäiriö: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS-toimintahäiriö: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS-toimintahäiriö: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS-toimintahäiriö: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS-toimintahäiriö: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS-toimintahäiriö: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS-toimintahäiriö: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS-toimintahäiriö: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS-toimintahäiriö: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS-toimintahäiriö: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Virheellinen RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Virheellinen DNS-tyyppi" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Virheellinen DNS-luokka" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ei tuettu" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Ei sallittu" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Virheellinen argumentti" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "On tyhjä" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Pyydetty toiminto on tarpeettomuudesta johtuen virheellinen" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Kelvoton virhekoodi" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi-löytäjä" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Palvelua ei tällä hetkellä ole valittu." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahin Zeroconf-selain" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Selaa verkossa saatavilla olevia Zeroconf-palveluita" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT-data:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "tyhjä" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Palvelun tyyppi:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Palvelun nimi:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Verkkotunnus:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Verkkoliitäntä:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Osoite:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Selaa palvelutyyppejä" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "NULL-päätetty luettelo selattavista palvelutyypeistä" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Verkkoalue" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Selattava verkkoalue, tai NULL oletusverkkoalueen valitsemiseksi" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Palvelun tyyppi" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Valitun palvelun palvelutyyppi" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Palvelun nimi" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Valitun palvelun palvelunimi" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Osoite" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Selvitetyn palvelun osoite" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Portti" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Selvitetyn palvelun IP-porttinumero" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Verkkonimi" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Selvitetyn palvelun verkkonimi" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT-data" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Selvitetyn palvelun TXT-data" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Selvitä palvelu" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Selvitä valittu palvelu automaattisesti ennen palaamista" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Selvitä palvelun verkkonimi" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "Selvitä valitun palvelun verkkonimi automaattisesti ennen palaamista" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Osoiteperhe" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Osoiteperhe verkkonimen selvittämistä varten" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi-asiakkaan toimintahäiriö: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi-selvittimen toimintahäiriö: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Palvelutyypin %s selaaminen verkkoalueessa %s epäonnistui: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "-" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi-verkkoalueselaimen toimintahäiriö: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Avahi-verkkoaluetta ei voi lukea: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Selattavien palvelutyyppien luettelo on tyhjä." #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Avahi-palvelimeen ei voi yhdistää: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Selataan palveluita paikallisessa verkossa:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Selataan palveluita verkkoalueessa %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Selainta ei voi luoda kohteelle %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Kohteelle %s ei voi luoda selvitintyyppiä %s verkkoalueessa %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Verkkoalueselainta ei voi luoda: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Vaihda verkkoaluetta" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Selataan..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Peruttu.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Alustetaan..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Sijainti" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nimi" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tyyppi" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Verkkoalue..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [valitsimet]\n" "\n" " -h --help Näytä tämä ohje\n" " -s --ssh Selaa SSH-palvelimia\n" " -v --vnc Selaa VNC-palvelimia\n" " -S --shell Selaa sekä SSH- että VNC-palvelimia\n" " -d --domain=DOMAIN Selattava verkkoalue\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Liian monta argumenttia\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Valitse päätepalvelin" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Työpöytä" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Pääte" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Valitse VNC-palvelin" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Valitse SSH-palvelin" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Yhdistetään kohteeseen \"%s\"...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() epäonnistui: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Peruttu.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahin SSH-palvelinselain" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Selaa Zeroconf-varustettuja SSH-palvelimia" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahin VNC-palvelinselain" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Selaa Zeroconf-varustettuja VNC-palvelimia" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Kaikki toistaiseksi\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Välimuisti kulutettu loppuun\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Palvelua \"%s\", tyypiltään \"%s\", ei voi selvittää verkkoalueessa \"%s\": " "%s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser epäonnistui: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() epäonnistui: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser epäonnistui: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() epäonnistui: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() epäonnistui: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Versiomerkkijonon pyyntö epäonnistui: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Verkko-osoitteen pyyntö epäonnistui: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Palvelimen versio: %s, verkkonimi: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "T Liit Yhtk Verkkonimi\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "T Liit Yhtk %-*s %-20s Verkkonimi\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Yhteys katkaistiin, yhdistetään uudelleen...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Asiakasobjektia ei voi luoda: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Asiakkaan toimintahäiriö, poistutaan: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Odotetaan taustaprosessia...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Näytä tämä ohje\n" " -V --version Näytä versio\n" " -D --browse-domains Selaa selaavia verkkoalueita palveluiden sijaan\n" " -a --all Näytä kaikki palvelut tyypistä riippumatta\n" " -d --domain=DOMAIN Selattava verkkoalue\n" " -v --verbose Ota käyttöön suulaampi tila\n" " -t --terminate Poistu enemmän tai vähemmän täydellisen luettelon " "tulostuksen jälkeen\n" " -c --cache Poistu kun kaikki kohteet tulostettu välimuistista\n" " -l --ignore-local Jätä paikalliset palvelut huomiotta\n" " -r --resolve Selvitä löydetyt palvelut\n" " -f --no-fail Älä epäonnistu jos taustaprosessia ei saatavilla\n" " -p --parsable Tulosta jäsennettävissä olevassa muodossa\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Älä etsi palvelutyyppejä\n" " -b --dump-db Tulosta palvelutyyppien tietokanta\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Liian vähän argumentteja\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Yksinkertaisen kyselyobjektin luonti epäonnistui.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Muodostettiin nimellä \"%s\"\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Rekisteröiminen epäonnistui: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Nimien yhteentörmäys, valitaan uusi nimi \"%s\".\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Kohderyhmän luominen epäonnistui: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Osoitteen lisääminen epäonnistui: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Palvelun lisääminen epäonnistui: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Alatyypin \"%s\" lisääminen epäonnistui: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Palvelinnimen ristiriita\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Virheellinen argumenttien lukumäärä\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Porttinumeron jäsentäminen epäonnistui: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Komentoa ei määritelty.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Verkko-osoitteen \"%s\" selvittäminen epäonnistui: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Osoitteen \"%s\" selvittäminen epäonnistui: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [valitsimet] %s \n" "%s [valitsimet] %s \n" "\n" " -h --help Näytä ohje\n" " -V --version Näytä versio\n" " -n --name Selvitä verkkonimi\n" " -a --address Selvitä osoite\n" " -v --verbose Ota suulaampi tila käyttöön\n" " -6 Etsi IPv6-osoite\n" " -4 Etsi IPv4-osoite\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Verkko-osoitteen selvittimen luonti epäonnistui: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Osoitetta \"%s\" ei voi jäsentää\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Osoitteen selvittimen luonti epäonnistui: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [valitsimet] \n" "\n" " -h --help Näytä tämä ohje\n" " -V --version Näytä versio\n" " -v --verbose Ota suulaampi tila käyttöön\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Virheellinen argumenttien lukumäärä, odotettiin täsmälleen yhtä.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Verkko-osoite muutettiin onnistuneesti nimelle %s\n" avahi-0.7/po/PaxHeaders.10109/tr.po0000644000000000000000000000013213130651643013604 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/tr.po0000644000175000017500000006207513130651643015225 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # H. İbrahim Güngör , 2011-2012 # Necdet Yücel , 2014 # Muhammet Kara , 2011, 2016. # msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: https://github.com/lathiat/avahi/issues\n" "POT-Creation-Date: 2016-06-24 13:30+0000\n" "PO-Revision-Date: 2016-11-29 23:36+0300\n" "Last-Translator: Muhammet Kara \n" "Language-Team: Türkçe \n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Gtranslator 2.91.7\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Tamam" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "İşlem başarısız" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Bozuk durum" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Geçersiz makine adı" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Geçersiz alan adı" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Kullanılabilir, uygun bir ağ protokolü yok" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Geçersiz DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Kaynak kayıt anahtarı bir desen" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Yerel ad çakışması" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Geçersiz kayıt" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Geçersiz hizmet adı" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Geçersiz hizmet türü" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Geçersiz port numarası" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Geçersiz kayıt anahtarı" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Geçersiz adres" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Zaman aşımına ulaşıldı" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Çok fazla istemci" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Çok fazla nesne" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Çok fazla girdi" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "İşletim Sistemi Hatası" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Erişim reddedildi" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Geçersiz işlem" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Beklenmedik bir D-Bus hatası oluştu" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Artalan süreci bağlantısı başarısız oldu" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Bellek tükendi" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Verilen nesne geçerli değil" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Artalan süreci çalışır değil" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Geçersiz arayüz dizini" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Geçersiz protokol belirtimi" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Geçersiz bayraklar" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Bulunamadı" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Geçersiz yapılandırma" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Sürüm uyumsuzluğu" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Geçersiz hizmet alt türü" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Geçersiz paket" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Geçersiz DNS dönüş kodu" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS hatası: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS hatası: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS hatası: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS hatası: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS hatası: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS hatası: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS hatası: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS hatası: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS hatası: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS hatası: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Geçersiz RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Geçersiz DNS türü" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Geçersiz DNS sınıfı" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Desteklenmiyor" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Izin verilmiyor" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Geçersiz argüman" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Boş" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "İstenen işlem geçersiz çünkü gereksiz" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Geçersiz Hata Kodu" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Kaşifi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:77 msgid "No service currently selected." msgstr "Hiçbir hizmet seçili değil." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf Tarayıcı" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Ağınızda kullanılabilir Zeroconf hizmetlerine gözatın" #: ../avahi-python/avahi-discover/avahi-discover.py:225 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "TXT Data:" msgstr "TXT Verileri:" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "empty" msgstr "boş" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Type:" msgstr "Hizmet Türü:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Service Name:" msgstr "Hizmet Adı:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Domain Name:" msgstr "Alan Adı:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Interface:" msgstr "Arayüz:" #: ../avahi-python/avahi-discover/avahi-discover.py:233 msgid "Address:" msgstr "Adres:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Hizmet Türlerine Gözat" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Gözatılacak servis türlerinin sonlandırılmış bir BOŞ listesi" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Etki Alanı" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Gözatılacak etki alanı veya varsayılan alan için NULL" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Hizmet Türü" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Seçilen hizmetin hizmet türü" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Hizmet Adı" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Seçilen hizmetin hizmet adı" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adres" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Çözümlenen servisin adresi" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Bağlantı noktası" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Çözümlenen servisin IP bağlantı noktası" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Makine Adı" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Çözümlenen servisin makine adı" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT Verisi" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Çözümlenen servisin TXT verisi" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Servisi Çözümle" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Döndürmeden önce seçilen servisi otomatik olarak çözümle" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Servis Makine Adını Çözümle" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "Döndürmeden önce seçilen servisin makine adını otomatik olarak çözümle" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Adres ailesi" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Makine adı çözümlemesi için adres ailesi" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi istemcisi başarısız oldu: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi çözümleyici başarısız oldu: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "%s servis türünün %s etki alanında taranması başarısız oldu: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi etki alanı tarayıcısı başarısız oldu: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Avahi etki alanı okunamadı: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Tarama servis türü listesi boş!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Avahi sunucusuna bağlanılamadı: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Yerel ağ üzerindeki servisler taranıyor:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "%s etki alanı üzerindeki servisler taranıyor:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "%s için tarayıcı oluşturulamadı: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "%s için %s türünde çözümleyici %s alanında oluşturulamadı: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Etki alanı tarayıcısı oluşturulamadı: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Etki alanını değiştir" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Taranıyor..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "_İptal" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "_Tamam" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Başlatılıyor..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Konum" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "İsim" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tür" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Etki alanı..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [seçenekler]\n" "\n" " -h --help Bu yardımı göster\n" " -s --ssh SSH sunucularına gözat\n" " -v --vnc VNC sunucularına gözat\n" " -S --shell SSH ve VNC sunucularına gözat\n" " -d --domain=ALAN Gözatılacak alan\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Çok fazla parametre\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Kabuk Sunucusunu Seç" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "_Bağlan" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Masaüstü" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Uçbirim" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "VNC sunucusunu seç" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "SSH sunucusunu seç" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "'%s' sunucusuna bağlanılıyor ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() başarısız oldu: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "İptal edildi.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH Sunucu Tarayıcısı" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Sıfır yapılandırma uyumlu SSH Sunucularını Tara" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC Sunucu Tarayıcısı" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Sıfır yapılandırma uyumlu VNC Sunucularını Tara" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Tümü şimdi\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Önbellek tükendi\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "%s için %s türünde servis '%s' alanında oluşturulamadı: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser başarısız oldu: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() başarısız oldu: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser başarısız oldu: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() başarısız oldu: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() başarısız oldu: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Sürüm dizisini sorgulama başarısız oldu: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Makine adını sorgulama başarısız oldu: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Sunucu sürümü: %s; Makine adı: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot Alanı\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s Alanı\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Bağlantı kesildi, yeniden bağlanılıyor ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "İstemci nesnesi oluşturulamadı: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "İstemci hatası, çıkılıyor: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Artalan süreci bekleniyor ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Bu yardımı göster\n" " -V --version Sürüm bilgisini göster\n" " -D --browse-domains Servisleri değil gözatma alanlarına gözat\n" " -a --all Türü ne olursa olsun tüm servisleri göster\n" " -d --domain=ALAN Gözatılacak alan\n" " -v --verbose Ayrıntılı kipi etkinleştir\n" " -t --terminate Tam liste dökümünden sonra sonlandır\n" " -c --cache Ön bellekteki tüm girdilerin dökümünden sonra " "sonlandır\n" " -l --ignore-local Yerel servisleri yoksay\n" " -r --resolve Bulunan servisleri çözümle\n" " -f --no-fail Artalan süreci kullanılamaz olduğunda kapanma\n" " -p --parsable Ayrıştırılabilir biçimde çıktı\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Servis türlerini arama\n" " -b --dump-db Servis türü veritabanının dökümünü al\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Çok az parametre\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Basit anket nesnesi oluşturulamadı.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "'%s' adı altında kuruldu\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Kayıt başarısız: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "İsim çakışması, yeni isim olarak '%s' seçiliyor.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Grup girdisi oluşturulamadı: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Adres eklenemedi: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Servis eklenemedi: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "'%s' alt türü eklenemedi: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Makine adı çakışması\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [seçenekler] %s []\n" "%s [seçenekler] %s \n" "\n" " -h --help Bu yardımı göster\n" " -V --version Sürüm bilgisini göster\n" " -s --service Servisi yayınla\n" " -a --address Adresi yayınla\n" " -v --verbose Ayrıntılı kipi etkinleştir\n" " -d --domain=ALAN Servisin yayınlanacağı etki alanı\n" " -H --host=ALAN Servisin bulunduğu istemci\n" " --subtype=ALTTÜR Bu servise kaydolacak ek alt tür\n" " -R --no-reverse Ters girdileri adresle yayınlama\n" " -f --no-fail Artalan süreci kullanılamaz olduğunda kapanma\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Bağımsız değişken sayısı yanlış\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Bağlantı noktası ayrıştırılamadı: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Komut belirtilmedi.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "'%s' makine adı çözümlenemedi: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "'%s' adresi çözümlenemedi: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [seçenekler] %s \n" "%s [seçenekler] %s \n" "\n" " -h --help Bu yardımı göster\n" " -V --version Sürümü göster\n" " -n --name Makine adını çözümle\n" " -a --address Adresi çözümle\n" " -v --verbose Ayrıntılı kipi etkinleştir\n" " -6 IPv6 adresine bak\n" " -4 IPv4 adresine bak\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Makine adı çözümleyici oluşturulamadı: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "'%s' adresi ayrıştırılamadı\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Adres çözümleyici oluşturulamadı: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [seçenekler] \n" "\n" " -h --help Bu yardımı göster\n" " -V --version Sürüm bilgisini göster\n" " -v --verbose Ayrıntılı kipi etkinleştir\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Geçersiz değişken sayısı, bir bekleniyordu.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Makine adı başarıyla %s olarak değiştirildi\n" avahi-0.7/po/PaxHeaders.10109/oc.po0000644000000000000000000000013213130651643013560 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.271961818 avahi-0.7/po/oc.po0000644000175000017500000006243613130651643015202 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Translators: # # Cédric VALMARY , 2016. msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: https://github.com/lathiat/avahi/issues\n" "POT-Creation-Date: 2016-09-22 02:24+0000\n" "PO-Revision-Date: 2016-10-11 16:17+0200\n" "Last-Translator: Cédric VALMARY \n" "Language-Team: Tot en òc (totenoc.eu)\n" "Language: oc\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Virtaal 0.7.1\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "D'acòrdi" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "L'operacion a fracassat" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Marrit estat" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Nom d'òste invalid" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Nom de domeni invalid" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Pas de protocòl de ret apropriat de disponible" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "TTL DNS invalid" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "La clau de l'enregistrament de la ressorsa seguís un motiu" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Conflicte de noms locals" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Enregistrament invalid" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Nom de servici invalid" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Tipe de servici invalid" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Numèro de pòrt invalid" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Clau d'enregistrament invalida" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Adreça invalida" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Temps d'espèra passat" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Tròp de clients" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Tròp d'objèctes" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Tròp d'entradas" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Error del sistèma operatiu" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Accès refusat" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Operacion invalida " #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Una error inesperada de D-Bus s'es produita" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "La connexion al demòni a fracassat" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memòria saturada" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "L'objècte transmés èra pas valid" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Lo demòni es pas en cors d'execucion" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Indèx d'interfàcia invalid" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Especificacion de protocòl invalid" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Bandièras invalidas" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Pas trobat" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Configuracion invalida" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Las versions correspondon pas" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Sostipe de servici invalid" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Paquet invalid" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Còdi de retorn DNS invalid" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Fracàs DNS : FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Fracàs DNS  : SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Fracàs DNS  : NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Fracàs DNS  : NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Fracàs DNS  : REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Fracàs DNS  : YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Fracàs DNS  : YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Fracàs DNS  : NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Fracàs DNS  : NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Fracàs DNS  : NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA invalid" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Tipe de DNS invalid" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Classa de DNS invalida" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Pas pres en carga" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Pas autorizat" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Argument invalid" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Es void" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "L'operacion demandada es invalida perque es redondanta" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Còdi d'error invalid" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Descoberta Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:77 msgid "No service currently selected." msgstr "Cap de servici actualament pas seleccionat" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Explorador Zeroconf d'Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Explorar los servicis Zeroconf disponibles sus vòstra ret" #: ../avahi-python/avahi-discover/avahi-discover.py:225 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "TXT Data:" msgstr "Donadas TXT :" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "empty" msgstr "void" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Type:" msgstr "Tipe de servici :" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Service Name:" msgstr "Nom del servici :" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Domain Name:" msgstr "Nom de domeni :" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Interface:" msgstr "Interfàcia :" #: ../avahi-python/avahi-discover/avahi-discover.py:233 msgid "Address:" msgstr "Adreça :" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Percórrer los tipes de servici" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Una lista, acabada per NULL, de tipe de servicis de percórrer" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domeni" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Lo domeni de percórrer, o NULL pel domeni per defaut" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tipe de servici" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Lo tipe de servici per lo qu'es seleccionat" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nom de servici" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Nom del servici seleccionat" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adreça" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "L'adreça del servici resolgut" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Pòrt" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Lo numèro del pòrt IP del servici resolgut" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nom d'òste" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Lo nom d'òste del servici resolgut" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Donadas TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Las donadas TXT del servici resolgut" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Resòlvre lo servici" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Resòlvre automaticament lo servici seleccionat abans renviament" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Resolucion del nom d'òste del servici" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Resòlvre automaticament del nom d'òste del servici seleccionat abans " "renviament" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Familha d'adreças" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "La familha d'adreças per la resolucion del nom d'òste" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Fracàs del client Avahi  : %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Fracàs de resolucion Avahi  : %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Fracàs de l'exploracion de tipe de servici %s dins lo domeni %s  : %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/d" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Fracàs de l'explorador de domeni Avahi  : %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Fracàs de la lectura del domeni Avahi  : %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "La lista dels tipes de servicis d'explorar es voida !" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Fracàs de la connexion al servidor Avahi  : %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Explorar los servicis sus la ret locala :" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Explorar los servicis del domeni %s :" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Fracàs de creacion de l'explorador per %s  : %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Fracàs de la creacion del resolvedor per %s de tipe %s dins lo domeni %s  : " "%s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Fracàs de creacion de l'explorador de domeni  : %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Cambiar de domeni" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Exploracion..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "A_nullar" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "_D'acòrdi" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inicializacion..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Emplaçament" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nom" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tipe" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domeni..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [options]\n" "\n" " -h --help Aficha aquesta ajuda\n" " -s --ssh Explòra los servidors SSH\n" " -v --vnc Explòra los servidors VNC\n" " -S --shell Explòra SSH e VNC\n" " -d --domain=DOMAIN Lo domeni d'explorar\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Tròp d'arguments\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Causir un servidor Shell" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "C_onnectar" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Burèu" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Causir un servidor VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Causir un servidor SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Connexion a « %s »...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Fracàs de execlp()  : %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Anullat.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Explorador de servidor SSH Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Explorar los servidors SSH amb Zeroconf activat" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Explorador de servidors VNC Avahi " #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Explorar los servidors VNC amb Zeroconf activat" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr " : Res mai pel moment\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr " : memòria cache saturada\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Fracàs de resolucion del servici « %s » de tipe « %s » dins lo domeni « %s » " " : %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Fracàs de service_browser : %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Fracàs de avahi_service_browser_new()  : %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Fracàs de service_tipe_browser : %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Fracàs de avahi_service_tipe_browser_new() : %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Fracàs de avahi_domain_browser_new() : %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Fracàs de la demanda de la cadena de version  : %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Fracàs de la demanda de nom d'òste  : %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Version del servidor  : %s ; nom d'òste  : %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Domeni E Ifce Prot\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "Domeni E Ifce Prot %-*s %-20s\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Desconnectat, reconnexion...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Fracàs de la creacion de l'objècte* client  : %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Fracàs del client, arrèst  : %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "En espèra del demòni...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Aficha aquesta ajuda\n" " -V --version Aficha la version\n" " -D --browse-domains Explòra los domenis al luòc dels servicis\n" " -a --all Explòra totes los servicis, sens se tracassar del " "tipe\n" " -d --domain=DOMAIN Lo domeni d'explorar\n" " -v --verbose Active lo mòde verbós\n" " -t --terminate Arrèst aprèp aver recuperat una lista mai o mens " "completa\n" " -c --cache Arrèst aprèp aver recuperat totas las entradas del " "cache\n" " -l --ignore-local Ignòra los servicis locals\n" " -r --resolve Resòlv los servicis trobats\n" " -f --no-fail Fracassa pas se lo demòni es pas disponible\n" " -p --parsable Sortida en format analisable\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Cèrca pas los tipes de servici\n" " -b --dump-db Recupèra la basa de donadas dels tipes de servici\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Pas pro d'arguments\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Fracàs de creacion d'un objècte d'interrogacion simple\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Establit jol nom « %s »\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Fracàs d'enregistrament : %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Conflicte de noms, causida d'un novèl nom « %s ».\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Fracàs de creacion de l'entrada de grop  : %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Fracàs de l'apondon de l'adreça  : %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Fracàs de l'apondon de servici  : %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Fracàs de l'apondon del sostipe « %s »  : %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Conflicte de noms d'òstes\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [options] %s []\n" "%s [options] %s \n" "\n" " -h --help Aficha aquesta ajuda\n" " -V --version Aficha la version\n" " -s --servici Publica lo servici\n" " -a --address Publica l'adreça\n" " -v --verbose Active lo mòde verbós\n" " -d --domain=DOMAIN Domeni dins lo qual publicar lo servici\n" " -H --host=DOMAIN Òste ont lo servici residís\n" " --subtipe=SUBTYPE Un sostipe addicional amb lo qual enregistrar lo " "servici\n" " -f --no-fail Fracassa pas se lo demòni es pas disponible\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Nombre d'arguments erronèu\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Fracàs de l'analisi del numèro de pòrt  : %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Pas cap de comanda especificada.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Fracàs de la resolucion del nom d'òste « %s »  : %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Fracàs de la resolucion de l'adreça « %s »  : %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [options] %s \n" "%s [options] %s \n" "\n" " -h --help Aficha aquesta ajuda\n" " -V --version Aficha la version\n" " -n --name Resòlv lo nom d'òste\n" " -a --address Resòlv l'adreça\n" " -v --verbose Active lo mòde verbós\n" " -6 Cèrca l'adreça IPv6\n" " -4 Cèrca l'adreça IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Fracàs de la creacion del resolvedor de nom d'òste  : %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Fracàs de l'analisi de l'adreça « %s »\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Fracàs de la creacion del resolvedor d'adreça  : %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [options] \n" "\n" " -h --help Aficha aquesta ajuda\n" " -V --version Aficha la version\n" " -v --verbose Active lo mòde verbós\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Nombre d'arguments invalid, ne cal exactament un.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Nom d'òste cambiat amb succès per %s\n" avahi-0.7/po/PaxHeaders.10109/el.po0000644000000000000000000000013213130651643013557 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.263961998 avahi-0.7/po/el.po0000644000175000017500000007332513130651643015200 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Alexandra Sarma , 2011 # ΔΗΜΗΤΡΗΣ ΣΠΙΓΓΟΣ , 2014 # Panos Bouklis , 2012 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2014-05-05 03:28+0000\n" "Last-Translator: ΔΗΜΗΤΡΗΣ ΣΠΙΓΓΟΣ \n" "Language-Team: Greek (http://www.transifex.com/lennart/avahi/language/el/)\n" "Language: el\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Εντάξει" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Η λειτουÏγία απέτυχε" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Κακή κατάσταση" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Λανθασμένο όνομα εξυπηÏετητή" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Λανθασμένο όνομα τομέα" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Δεν υπάÏχει διαθέσιμο Ï€Ïωτόκολλο δικτÏου" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "ΆκυÏο DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Το κλειδί εγγÏαφής πόÏου είναι μοτίβο" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "ΣÏγκÏουση Ï„Î¿Ï€Î¹ÎºÎ¿Ï Î¿Î½ÏŒÎ¼Î±Ï„Î¿Ï‚" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Μη έγκυÏη καταγÏαφή" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Μη έγκυÏο όνομα υπηÏεσίας" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Μη έγκυÏος Ï„Ïπος υπηÏεσίας" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Μη έγκυÏος αÏιθμός θÏÏας" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Μη έγκυÏη καταγÏαφή κλειδιοÏ" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Μη έγκυÏη διεÏθυνση" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Λήξη χÏÎ¿Î½Î¹ÎºÎ¿Ï Î¿Ïίου" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Μεγάλος αÏιθμός πελατών" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Μεγάλος αÏιθμός αντικειμένων" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Μεγάλος αÏιθμός καταχωÏήσεων" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Σφάλμα OS" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Αποτυχία Ï€Ïόσβασης" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Μη έγκυÏη λειτουÏγία" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Συνέβη ένα απÏοσδόκητο σφάλμα D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Η σÏνδεση με το δαίμονα απέτυχε" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Η μνήμη εξαντλήθηκε" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Το αντικείμενο που πέÏασε δεν ήταν έγκυÏο" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Ο δαίμονας δεν εκτελείται" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "ΆκυÏος δείκτης διεπαφής" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "ΆκυÏη Ï€ÏοδιαγÏαφή Ï€Ïωτοκόλλου" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "ΆκυÏες σημαίες" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Δε βÏέθηκε" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "ΆκυÏη ÏÏθμιση" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Ασυμφωνία έκδοσης" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "ΆκυÏος υποτÏπος υπηÏεσίας" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "ΆκυÏο πακέτο" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "ΆκυÏος κώδικα επιστÏοφής DNS" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Αποτυχία DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Αποτυχία DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Αποτυχία DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Αποτυχία DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Αποτυχία DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Αποτυχία DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Αποτυχία DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Αποτυχία DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Αποτυχία DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Αποτυχία DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "ΆκυÏο RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "ΆκυÏος Ï„Ïπος DNS" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "ΆκυÏη κλάση DNS" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Δεν υποστηÏίζεται" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Δεν επιτÏέπεται" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "ΆκυÏο ÏŒÏισμα" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Είναι κενό" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Η ζητοÏμενη λειτουÏγία είναι άκυÏη επειδή πλεονάζει" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "ΆκυÏος κώδικας σφάλματος" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Εντοπισμός Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Δεν επιλέχθηκε υπηÏεσία." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "ΠεÏιηγητής Avahi Zeroconf" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "ΕξεÏεÏνηση υπηÏεσιών Zeroconf που είναι διαθέσιμες στο δίκτυό σας" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Δεδομένα ΤΧΤ:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "κενό" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "ΤÏπος υπηÏεσίας:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Όνομα υπηÏεσίας:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Όνομα τομέα:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Διεπαφή:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "ΔιεÏθυνση:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "ΕξεÏεÏνηση Ï„Ïπων υπηÏεσιών" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Ένα NULL τεÏμάτισε τη λίστα Ï„Ïπων υπηÏεσιών για εξεÏεÏνηση" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Τομέας" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Ο τομέας για πεÏιήγηση, ή NULL για τον Ï€Ïοεπιλεγμένο τομέα" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "ΤÏπος υπηÏεσίας" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Ο Ï„Ïπος υπηÏεσίας για την επιλεγμένη συσκευή" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Όνομα ΥπηÏεσίας" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Το όνομα υπηÏεσίας για την επιλεγμένη συσκευή" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "ΔιεÏθυνση" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Η διεÏθυνση της επιλυμένης υπηÏεσίας" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "ΘÏÏα" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Ο αÏιθμός θÏÏας IP της επιλυμένης υπηÏεσίας" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Όνομα υπολογιστή" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Το όνομα οικοδεσπότη της επιλυμένης υπηÏεσίας" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Δεδομένα TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Τα δεδομένα TXT της επιλυμένης υπηÏεσίας" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Επίλυση υπηÏεσίας" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Επίλυση της επιλεγμένης υπηÏεσίας αυτόματα Ï€Ïιν την επιστÏοφή" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Επίλυση του ονόματος οικοδεσπότη της υπηÏεσίας" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Επίλυση του ονόματος οικοδεσπότη της επιλεγμένης υπηÏεσίας αυτόματα Ï€Ïιν την " "επιστÏοφή" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Οικογένεια διευθÏνσεων" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Η οικογένεια διευθÏνσεων για την ανάλυση ονόματος οικοδεσπότη" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Αποτυχία πελάτη Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Αποτυχία επιλÏτη Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Αποτυχία πεÏιήγησης για Ï„Ïπο υπηÏεσίας %s στον τομέα %s: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "μη διαθέσιμο" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Αποτυχία πεÏιηγητή τομέα Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Αποτυχία ανάγνωσης τομέα Avahi: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Ο κατάλογος Ï„Ïπων υπηÏεσιών πεÏιήγησης είναι κενός!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Αδυναμία σÏνδεσης με τον εξυπηÏετητή Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "ΕξεÏεÏνηση υπηÏεσιών στο τοπικό δίκτυο:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "ΠεÏιήγηση για υπηÏεσίες στον τομέα %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Αδυναμία δημιουÏγίας πεÏιηγητή για %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Αποτυχία δημιουÏγίας επιλÏτη για το %s του Ï„Ïπου %s στον τομέα %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Αποτυχία δημιουÏγίας πεÏιηγητή τομέα: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Αλλαγή τομέα" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "ΕξεÏεÏνηση..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "ΑκυÏώθηκε.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Εντάξει" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "ΑÏχικοποίηση..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Τοποθεσία" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Όνομα" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "ΤÏπος" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Τομέας..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [options]\n" "\n" " -h --help Εμφάνιση της βοήθειας\n" " -s --ssh ΠεÏιήγηση εξυπηÏετητών SSH\n" " -v --vnc ΠεÏιήγηση εξυπηÏετητών VNC\n" " -S --shell ΠεÏιήγηση και SSH και VNC\n" " -d --domain=ΤΟΜΕΑΣ Ο τομέας για πεÏιήγηση\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Πολλά οÏίσματα\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Επιλογή εξυπηÏετητή κελÏφους" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Επιφάνεια εÏγασίας" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "ΤεÏματικό" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Επιλογή εξυπηÏετητή VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Επιλογή εξυπηÏετητή SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "ΣÏνδεση με '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() απέτυχε: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "ΑκυÏώθηκε.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi πεÏιηγητής εξυπηÏετητών SSH" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "ΕξεÏεÏνηση για εξυπηÏετητές SSH με ενεÏγοποιημένο Zeroconf" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi πεÏιηγητής εξυπηÏετητών VNC" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "ΕξεÏεÏνηση για εξυπηÏετητές VNC με ενεÏγοποιημένο Zeroconf" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Όλα για τώÏα\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Η κÏυφή μνήμη εξαντλήθηκε\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Αποτυχία επίλυσης υπηÏεσίας '%s' του Ï„Ïπου '%s' στον τομέα '%s': %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Αποτυχία service_browser: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Αποτυχία avahi_service_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Αποτυχία service_type_browser: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Αποτυχία avahi_service_type_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Αποτυχία avahi_domain_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Αποτυχία εÏωτήματος συμβολοσειÏάς έκδοσης: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Αποτυχία εÏωτήματος ονόματος οικοδεσπότη: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Έκδοση εξυπηÏετητή: %s; Όνομα οικοδεσπότη: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Τομέας E Ifce Prot\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "Τομέας E Ifce Prot %-*s %-20s\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "ΑποσÏνδεση, γίνεται επανασÏνδεση ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Αδυναμία δημιουÏγίας αντικειμένου πελάτη: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Αποτυχία πελάτη, έξοδος: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Αναμονή δαίμονα ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Εμφάνιση αυτής της βοήθειας\n" " -V --version Εμφάνιση έκδοσης\n" " -D --browse-domains ΠεÏιήγηση για τομείς πεÏιήγησης αντί για υπηÏεσίες\n" " -a --all Εμφάνιση όλων των υπηÏεσιών, ανεξάÏτητα από τον " "Ï„Ïπο\n" " -d --domain=ΤΟΜΕΑΣ Ο τομέας για πεÏιήγηση\n" " -v --verbose ΕνεÏγοποίηση αναλυτικής κατάστασης\n" " -t --terminate ΤεÏματισμός μετά την αποτÏπωση ενός πεÏισσότεÏο ή " "λιγότεÏο πλήÏους καταλόγου\n" " -c --cache ΤεÏματισμός μετά την αποτÏπωση όλων των " "καταχωÏίσεων από την κÏυφή μνήμη\n" " -l --ignore-local ΠαÏάβλεψη τοπικών υπηÏεσιών\n" " -r --resolve Επίλυση των υπηÏεσιών που βÏέθηκαν\n" " -f --no-fail Îα μην αποτυγχάνει αν ο δαίμονας δεν είναι " "διαθέσιμος\n" " -p --parsable Έξοδος σε αναλÏσιμη μοÏφή\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Îα μην αναζητοÏνται Ï„Ïποι υπηÏεσιών\n" " -b --dump-db ΑποτÏπωση βάσης δεδομένων Ï„Ïπου υπηÏεσιών\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Λίγα οÏίσματα\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Αποτυχία δημιουÏγίας Î±Ï€Î»Î¿Ï Î±Î½Ï„Î¹ÎºÎµÎ¹Î¼Î­Î½Î¿Ï… σταθμοσκόπησης.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "ΔημιουÏγήθηκε με όνομα '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Αποτυχία εγγÏαφής: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "ΣÏγκÏουση ονομάτων, επιλογή νέου ονόματος '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Αποτυχία δημιουÏγίας ομάδας καταχώÏισης: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Αδυναμία Ï€Ïοσθήκης διεÏθυνσης: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Αδυναμία Ï€Ïοσθήκης υπηÏεσίας: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Αποτυχία Ï€Ïοσθήκης υποτÏπου '%s': %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "ΣÏγκÏουση ονομάτων υπολογιστών\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Εμφάνιση αυτής της βοήθειας\n" " -V --version Εμφάνιση έκδοσης\n" " -s --service Δημοσίευση υπηÏεσίας\n" " -a --address Δημοσίευση διεÏθυνσης\n" " -v --verbose ΕνεÏγοποίηση αναλυτικής κατάστασης\n" " -d --domain=ΤΟΜΕΑΣ Ο τομέας για δημοσίευση υπηÏεσίας\n" " -H --host=ΤΟΜΕΑΣ Ο οικοδεσπότης όπου βÏίσκεται η υπηÏεσία\n" " --subtype=ΥΠΟΤΥΠΟΣ Ένας Ï€Ïόσθετος υποτÏπος για καταχώÏιση αυτής της " "υπηÏεσίας\n" " -R --no-reverse Îα μην δημοσιευτεί αντίστÏοφη καταχώÏιση με " "διεÏθυνση\n" " -f --no-fail Îα μην αποτυγχάνει αν ο δαίμονας δεν είναι " "διαθέσιμος\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Κακός αÏιθμός οÏισμάτων\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Αποτυχία ανάλυσης αÏÎ¹Î¸Î¼Î¿Ï Î¸ÏÏας: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Δεν οÏίστηκε εντολή.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Αποτυχία επίλυσης ονόματος οικοδεσπότη '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Αποτυχία επίλυσης διεÏθυνσης '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Εμφάνιση αυτής τηςβοήθειας\n" " -V --version Εμφάνιση έκδοσης\n" " -n --name ΜετάφÏαση ονόματος υπολογιστή\n" " -a --address ΜετάφÏαση διεÏθυνσης\n" " -v --verbose ΕνεÏγοποίηση αναλυτικής κατάστασης\n" " -6 Αναζήτηση διεÏθυνσης IPv6\n" " -4 Αναζήτηση διεÏθυνσης IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Αποτυχία δημιουÏγίας επιλÏτη ονόματος οικοδεσπότη: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Αποτυχία ανάλυσης διεÏθυνσης '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Αποτυχία δημιουÏγίας επιλÏτη διεÏθυνσης: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [options] \n" "\n" " -h --help Εμφάνιση βοήθειας\n" " -V --version Εμφάνιση έκδοσης\n" " -v --verbose ΕνεÏγοποίηση αναλυτικής κατάστασης\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "ΆκυÏος αÏιθμός οÏισμάτων, αναμένεται μόνο ένα.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Επιτυχής αλλαγή του ονόματος υπολογιστή σε %s\n" avahi-0.7/po/PaxHeaders.10109/es.po0000644000000000000000000000013213130651643013566 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/es.po0000644000175000017500000006250113130651643015201 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Adolfo Jayme Barrientos, 2013 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Adolfo Jayme Barrientos\n" "Language-Team: Spanish (http://www.transifex.com/lennart/avahi/language/" "es/)\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Aceptar" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Falló la operación" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Estado incorrecto" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Nombre de equipo no válido" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Nombre de dominio no válido" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "No hay disponible ningún protocolo de red apropiado" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "El TTL del DNS no es válido" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "La clave del recurso de registro es un patrón" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Colisión de nombre local" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Registro no válido" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Nombre de servicio no válido" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Tipo de servicio no válido" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Número de puerto no válido" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Clave de registro no válida" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Dirección no válida" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Se ha alcanzado el tiempo de espera establecido" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Demasiados clientes" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Demasiados objetos" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Demasiadas entradas" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Error del SO" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Acceso denegado" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Operación no válida" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Ocurrió un error de D-Bus no esperado" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Falló la conexión con el demonio" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memoria agotada" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "El objeto pasado no era válido" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "El demonio no se está ejecutando" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ãndice de interfaz no válido" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Especificación de protocolo no válida" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Opciones no válidas" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "No encontrado" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Configuración no válida" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Incompatibilidad de versiones" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Subtipo de servicio no válido" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Paquete no válido" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Código de retorno de DNS no válido" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Fallo de DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Fallo de DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Fallo de DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Fallo de DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Fallo de DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Fallo de DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Fallo de DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Fallo de DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Fallo de DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Fallo de DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA no válido" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Tipo de DNS no válido" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Clase de DNS no válida" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "No compatible" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "No permitido" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Argumento no válido" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Está vacío" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "La operación solicitada no es válida porque es redundante" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Código de error no válido" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Descubrimiento de Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "No hay ningún servicio seleccionado actualmente." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Navegador Zeroconf de Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Navegar en busca de servicios Zeroconf disponibles en su red" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Datos TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "vacío" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Tipo de servicio:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Nombre del servicio:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nombre del dominio:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interfaz:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Dirección:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Tipos de servicio a examinar" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Una lista terminada en NULL con los tipos de servicios a buscar" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Dominio" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "El dominio a examinar, o NULL para el dominio predeterminado" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Tipo de servicio" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "El tipo del servicio seleccionado" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nombre del servicio" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "El nombre del servicio seleccionado" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Dirección" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "La dirección del servicio resuelto" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Puerto" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "El número de puerto IP del servicio resuelto" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nombre de equipo" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "El nombre de equipo del servicio resuelto" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Datos TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Los datos TXT del servicio resuelto" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Resolver servicio" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" "Resolver el servicio seleccionado de manera automática antes de la devolución" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Resolver el nombre de equipo del servicio" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Resolver el nombre del equipo del servicio seleccionado de manera automática " "antes de la devolución" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Familia de direcciones" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "La familia de direcciones para la resolución de nombre de equipo" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Fallo del cliente de Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Fallo del resolutor de Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Falló la exploración del tipo de servicio %s en el dominio %s: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/d" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Fallo de exploración de dominios de Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Falló al leer el dominio de Avahi: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "La lista de tipos de servicios está vacía." #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Falló al conectar con el servidor de Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Examinando los servicios en la red local:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Examinando los servicios en el dominio %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Falló al crear el examinador para %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Falló al crear el resolutor para %s de tipo %s en el dominio %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Falló al crear el dominio de exploración: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Cambiar el dominio" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Examinando…" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancelado.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Aceptar" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inicializando…" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Ubicación" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nombre" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tipo" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Dominio…" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opciones]\n" "\n" " -h --help Mostrar esta ayuda\n" " -s --ssh Examinar servidores SSH\n" " -v --vnc Examinar servidores VNC\n" " -S --shell Examinar servidores SSH y VNC\n" " -d --domain=DOMINIO El dominio a examinar\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Demasiados argumentos\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Elija el servidor de intérprete de órdenes" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Escritorio" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Elija el servidor VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Elija el servidor SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Conectando con «%s»…\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() falló: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancelado.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Examinador de servidores SSH de Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Examinar servidores SSH con zeroconf activado" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Examinador de servidores VNC de Avahi" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Examinar servidores VNC con zeroconf activado" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Todo por ahora\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Caché agotada\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Error al resolver el servicio «%s» de tipo «%s» en el dominio «%s»: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Falló service_browser: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Falló avahi_service_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Falló service_type_browser: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Falló avahi_service_type_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Falló avahi_domain_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Error al consultar la cadena de versión: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Error al consultar el nombre del equipo: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Versión del servidor: %s; Nombre del equipo: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifaz Prot Dominio\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifaz Prot %-*s %-20s Dominio\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Desconectado; volviendo a conectar…\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Falló al crear el objeto cliente: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Fallo del cliente; saliendo: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Esperando al demonio…\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Muestra esta ayuda\n" " -V --version Muestra la versión\n" " -D --browse-domains Explora dominios de búsqueda en lugar de servicios\n" " -a --all Muestra todos los servicios independientemente del " "tipo.\n" " -d --domain=DOMAIN El dominio que examinar\n" " -v --verbose Activa el modo detallado\n" " -t --terminate Terminar al volcar una lista más o menos completa\n" " -c --cache Terminar después de volcar todas las entradas de la " "cache\n" " -l --ignore-local Ignorar los servicios locales\n" " -r --resolve Resolver servicios encontrados\n" " -f --no-fail No fallar si el demonio no está disponible\n" " -p --parsable Salida en formato analizable\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup No busca los tipos de servicios\n" " -b --dump-db Vuelva la base de datos de tipos de servicios\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Muy pocos argumentos\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Falló al crear un objeto de encuesta simple.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Establecido bajo el nombre «%s»\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Falló al registrar: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Colisión de nombres; se usa el nombre nuevo «%s».\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Falló al crear el grupo de la entrada: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Falló al añadir la dirección: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Falló al añadir el servicio: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Falló al añadir el subtipo «%s»: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Conflicto de nombres de equipo\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opciones] %s []\n" "%s [opciones] %s \n" "\n" " -h --help Mostrar esta ayuda\n" " -V --version Mostrar la versión\n" " -s --service Publicar el servicio\n" " -a --address Publicar la dirección\n" " -v --verbose Activar el modo detallado\n" " -d --domain=DOMINIO Dominio donde publicar el servicio\n" " -H --host=DOMINIO Equipo donde reside el servicio\n" " --subtype=SUBTIPO Un subtipo adicional con el que registrar este " "servicio\n" " -R --no-reverse No publicar entrada de reverso con esta dirección\n" " -f --no-fail No fallar en caso que el demonio no esté " "disponible\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Número de argumentos incorrecto\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Falló al analizar el número de puerto: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "No se especificó ninguna orden.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Error al resolver el nombre del equipo «%s»: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Error al resolver la dirección «%s»: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opciones] %s \n" "%s [opciones] %s \n" "\n" " -h --help Mostrar esta ayuda\n" " -V --version Mostrar la versión\n" " -n --name Resolver el nombre del servidor\n" " -a --address Resolver la dirección\n" " -v --vervose Activar el modo detallado\n" " -6 Buscar dirección IPv6\n" " -4 Buscar dirección IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Falló al crear el resolutor de nombres de equipo: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Falló al analizar la dirección «%s»\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Falló al crear el resolutor de direcciones: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opciones] \n" "\n" " -h --help Mostrar esta ayuda\n" " -V --version Mostrar la versión\n" " -v --verbose Activar el modo detallado\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Número de argumentos incorrecto; se esperaba exactamente uno.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "El nombre del equipo se ha cambiado a %s correctamente\n" avahi-0.7/po/PaxHeaders.10109/nl.po0000644000000000000000000000013213130651643013570 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.271961818 avahi-0.7/po/nl.po0000644000175000017500000006074013130651643015206 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Geert Warrink , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Geert Warrink \n" "Language-Team: Dutch (http://www.transifex.com/lennart/avahi/language/nl/)\n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Bewerking mislukte" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Slechte toestand" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Ongeldige hostnaam" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Ongeldige domeinnaam" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Geen geschikt netwerkprotocol beschikbaar" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Ongeldige DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Bronrecord sleutel is een patroon" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Lokale naam botsing" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Ongeldige record" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Ongeldige servicenaam" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Ongeldig service type" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Ongeldig poortnummer" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Ongeldige record sleutel" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Ongeldig adres" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Time-out bereikt" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Te veel clienten" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Te veel objecten" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Te veel ingangen" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS fout" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Toegang geweigerd" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Ongeldige bewerking" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Een onverwachte D-Bus fout trad op" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Daemon verbinding mislukte" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Geen geheugen beschikbaar" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Het doorgegeven object was niet geldig" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Daemon draait niet" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ongeldige interface index" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Ongeldige protocol specificatie" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Ongeldige vlaggen" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Niet gevonden" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Ongeldige configuratie" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versie mismatch" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Ongeldige service subtype" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Ongeldige pakket" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Ongeldige DNS return code" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS-fout: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS-fout: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS-fout: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS-fout: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS-fout: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS-fout: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS-fout: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS-fout: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS-fout: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS-fout: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Ongeldige RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Ongeldig DNS type" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Ongeldige DNS klasse" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Niet ondersteund" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Niet toegestaan" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Ongeldig argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Is leeg" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "De gevraagde bewerking is ongeldig omdat deze overbodig is" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Ongeldige foutcode" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi ontdekking" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "momenteel geen service geselecteerd." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi zeroconf browser" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Browse voor Zeroconf services beschikbaar op jouw netwerk" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT data:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "leeg" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Service type:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Service naam:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Domeinnaam:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interface:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adres:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Browse service types" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Een met NULL afgesloten lijst van de service types om te browsen" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domein" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Het te browsen domein, of NULL voor het standaard domein" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Service type" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Het service type van de geselecteerde service" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Service naam" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "De service naam van de geselecteerde service" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adres" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Het adres van de opgeloste service" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Poort" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Het IP poortnummer van de opgeloste service" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Hostnaam" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "De hostnaam van de opgeloste service" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT data" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "De TXT data van de opgeloste service" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Service oplossen" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Los de geselecteerde service automatisch op voordat teruggekeerd wordt" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Los service hostnaam op" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Loss de hostnaam van de geselecteerde service automatisch op voordat " "teruggekeerd wordt" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Adres familie" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "De adres familie voor hostnaam oplossing" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi client mislukking: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi oplossing mislukking: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Browsen voor service type %s in domein %s is mislukt: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n.v.t." #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi domein browser mislukking: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Avahi domein lezen mislukte: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Blader service type lijst is leeg!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Verbinden met Avahi server mislukte: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Browsen voor services op het lokale netwerk:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Browsen voor services in het domein %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Aanmaken browser voor %s mislukte: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Aanmaken van oplosser voor %s van het type %s in domein %s mislukte: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Aanmaken van domein browser mislukte: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Wijzig domein" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Browsen..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Geannuleerd.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Initialiseren..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Locatie" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Naam" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Type" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domein..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opties]\n" "\n" " -h --help Toon deze hulptekst\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse zowel SSH als VNC\n" " -d --domain=DOMEIN Het te browsen domein\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Te veel argumenten\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Kies shell server" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Bureaublad" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Kies VNC server" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Kies SSH server" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Verbinden met '%s'...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() mislukte: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Geannuleerd.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH server browser" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Browse voor Zeroconf-enabled SSH servers" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC server browser" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Browse voor Zeroconf-enabled VNC servers" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Alles voor dit moment\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Cache is vol\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Dervice '%s' van type '%s' oplossen in domein '%s' mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Versie string bevragen mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Hostnaam bevragen mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Server versie: %s; Hostnaam: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot domein\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s domein\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Losgekoppeld, opnieuw aansluiten ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Cliënt object aanmaken mislukte: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Cliënt fout, afsluiten: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Wachten op daemon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Toon deze hulptekst\n" " -V --version Toon versie\n" " -D --browse-domains Browse voor domeinen in plaats van services\n" " -a -all Toon alle services, ongeacht het type\n" " -d --domein=DOMEIN Het te browsen domein\n" " -v --verbose Zet breedsprakige mode aan\n" " -t --terminate Beëindig na het dumpen van een min of meer complete " "lijst\n" " -c --cache Beëindig na het dumpen van alle ingangen uit de " "cache\n" " -l --ignore-local Negeer lokale services\n" " -r --resolve Los alle gevonden services op\n" " -f --no-fail Misluk niet als de daemon niet beschikbaar is\n" " -p --parsable Output in ontleedbaar formaat\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Zoek geen service types op\n" " -b --dump-db Dump service type database\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Te weinig argumenten\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Aanmaken van eenvoudig poll object mislukte.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Opgericht met de naam '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Registreren mislukte: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Naam botsing, kies nieuwe naam '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Aanmaken van ingang groep mislukte: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Adres toevoegen mislukte: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Service toevoegen mislukte: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Subtype '%s' toevoegen mislukte: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Hostnaam conflict\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opties] %s []\n" "%s [opties] %s \n" "\n" " -h --help Toon deze hulptekst\n" " -V --version Toon versie\n" " -s --service Publiceer service\n" " -a -address Publiceer adres\n" " -v --verbose Zet breedsprakige mode aan\n" " -d --domain=DOMEIN Domein waarin service gepubliceerd wordt\n" " - H --host=DOMEIN Host waarop service zich bevindt\n" " --subtype= SUBTYPE Een extra subtype om met deze service te " "registreren\n" " -R --no-reverse Publiceer geen omgekeerde ingangen met adres\n" " -f --no-fail Misluk niet als de daemon niet beschikbaar is\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Verkeerd aantal argumenten\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Poortnummer ontleden mislukte: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Geen commando gegeven.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Hostnaam '%s' oplossen mislukte: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Adres '%s' oplossen mislukte: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opties] %s \n" "%s [opties] %s \n" "\n" " -h --help Toon deze hulptekst\n" " -V --version Toon versie\n" " -n --name Op te lossen hostnaam\n" " -a --address Op te lossen adres\n" " -v --verbose Zet breedsprakige mode aan\n" " -6 Zoek IPv6 adressen op\n" " -4 Zoek IPv4 adressen op\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Hostnaam oplosser aanmaken mislukte: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Adres '%s' ontleden mislukte\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "NAdres oplosser aanmaken mislukte: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opties] \n" "\n" " -h --help Toon deze hulptekst\n" " -V --version Toon versie\n" " -v --verbose Zet breedsprakige mode aan\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Ongeldig aantal argumenten, precies een wordt verwacht.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Hostnaam succesvol veranderd naar %s\n" avahi-0.7/po/PaxHeaders.10109/fr.po0000644000000000000000000000013213130651643013566 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/fr.po0000644000175000017500000006307113130651643015204 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Alexandre Franke , 2012 # Boris BARNIER , 2011 # Bruno_Patri , 2010 # Martin-Gomez Pablo , 2008 # Matthieu Rondeau , 2008 # Martin-Gomez Pablo , 2008 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: Alexandre Franke \n" "Language-Team: French (http://www.transifex.com/lennart/avahi/language/fr/)\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Ok" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "L'opération a échoué " #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Mauvais état" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Nom d'hôte invalide" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Nom de domaine invalide" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Pas de protocole réseau approprié disponible" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "TTL DNS invalide" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "La clef de l'enregistrement de la ressource suit un motif" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Conflit de noms locaux" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Enregistrement invalide" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Nom de service invalide" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Type de service invalide" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Numéro de port invalide" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Clé d'enregistrement invalide" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Adresse invalide" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Temps d'attente écoulé" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Trop de clients" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Trop d'objets" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Trop d'entrées" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Erreur du système d'exploitation" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Accès refusé" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Opération invalide " #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Une erreur inattendue de D-Bus s'est produite" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "La connexion au démon a échoué " #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Mémoire saturée" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "L'objet transmis n'était pas valide " #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Le démon n'est pas en cours d'exécution" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Index d'interface invalide " #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Spécification de protocole invalide" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Drapeaux invalides" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Non trouvé" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Configuration invalide" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Les versions ne correspondent pas" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Sous-type de service invalide" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Paquet invalide" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Code de retour DNS invalide" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Échec DNS : FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Échec DNS  : SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Échec DNS  : NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Échec DNS  : NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Échec DNS  : REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Échec DNS  : YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Échec DNS  : YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Échec DNS  : NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Échec DNS  : NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Échec DNS  : NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "RDATA invalide" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Type de DNS invalide" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Classe de DNS invalide" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Non pris en charge" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Non autorisé" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Argument invalide" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Est vide" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "L'opération demandée est invalide car redondante" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Code d'erreur invalide" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Découverte Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Aucun service actuellement sélectionné" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Explorateur Zeroconf d'Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Explorer les services Zeroconf disponibles sur votre réseau" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Données TXT :" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "vide" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Type de service :" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Nom du service :" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Nom de domaine :" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interface :" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adresse :" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Parcourir les types de service" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Une liste, terminée par NULL, de type de services à parcourir" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domaine" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Le domaine à parcourir, ou NULL pour le domaine par défaut" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Type de service" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Le type de service pour celui sélectionné" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nom de service" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Nom du service sélectionné" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adresse" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "L'adresse du service résolu" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Le numéro du port IP du service résolu" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nom d'hôte" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Le nom d'hôte du service résolu" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Données TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Les données TXT du service résolu" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Résoudre le service" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Résoudre automatiquement du service sélectionné avant renvoi" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Résolution du nom d'hôte du service" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "Résoudre automatiquement du nom d'hôte du service sélectionné avant renvoi" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Famille d'adresses" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "La famille d'adresses pour la résolution du nom d'hôte" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Échec du client Avahi  : %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Échec de résolution Avahi  : %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Échec de l'exploration de type de service %s dans le domaine %s  : %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Échec de l'explorateur de domaine Avahi  : %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Échec de la lecture du domaine Avahi  : %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "La liste des types de services à explorer est vide !" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Échec de la connexion au serveur Avahi  : %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Explorer les services sur le réseau local :" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Explorer les services du domaine %s :" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Échec de création de l'explorateur pour %s  : %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Échec de la création du résolveur pour %s de type %s dans le domaine %s  : %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Échec de création de l'explorateur de domaine  : %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Changer de domaine" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Exploration..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Annulé.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Ok" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Initialisation..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Emplacement" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nom" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Type" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domaine..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [options]\n" "\n" " -h --help Affiche cette aide\n" " -s --ssh Explore les serveurs SSH\n" " -v --vnc Explore les serveurs VNC\n" " -S --shell Explore SSH et VNC\n" " -d --domain=DOMAIN Le domaine à explorer\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Trop d'arguments\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Choisir un serveur Shell" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Bureau" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Choisir un serveur VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Choisir un serveur SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Connexion à « %s »...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Échec de execlp()  : %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Annulé.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Explorateur de serveur SSH Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Explorer les serveurs SSH avec Zeroconf activé" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Explorateur de serveurs VNC Avahi " #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Explorer les serveurs VNC avec Zeroconf activé" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr " : c'est tout pour le moment\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr " : mémoire cache saturée\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "Échec de résolution du service « %s » de type « %s » dans le domaine « %s » " " : %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Échec de service_browser : %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Échec de avahi_service_browser_new()  : %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Échec de service_type_browser : %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Échec de avahi_service_type_browser_new() : %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Échec de avahi_domain_browser_new() : %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Échec de la demande de la chaîne de version  : %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Échec de la demande de nom d'hôte  : %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Version du serveur  : %s ; nom d'hôte  : %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Domaine E Ifce Prot\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "Domaine E Ifce Prot %-*s %-20s\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Déconnecté, reconnexion...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Échec de la création de l'objet client  : %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Échec du client, arrêt  : %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "En attente du démon...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Affiche cette aide\n" " -V --version Affiche la version\n" " -D --browse-domains Explore les domaines au lieu des services\n" " -a --all Explore tous les services, sans se soucier du type\n" " -d --domain=DOMAIN Le domaine à explorer\n" " -v --verbose Active le mode verbeux\n" " -t --terminate Arrêt après avoir récupéré une liste plus ou moins " "complète\n" " -c --cache Arrêt après avoir récupéré toutes les entrées du " "cache\n" " -l --ignore-local Ignore les services locaux\n" " -r --resolve Résout les services trouvés\n" " -f --no-fail N'échoue pas si le démon n'est pas disponible\n" " -p --parsable Sortie en format analysable\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Ne cherche pas les types de service\n" " -b --dump-db Récupère la base de données des types de service\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Trop peu d'arguments\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Échec de création d'un objet d'interrogation simple\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Établi sous le nom « %s »\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Échec d'enregistrement  : %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Conflit de noms, choix d'un nouveau nom « %s ».\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Échec de création de l'entrée de groupe  : %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Échec de l'ajout de l'adresse  : %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Échec de l'ajout de service  : %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Échec de l'ajout du sous-type « %s »  : %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Conflit de noms d'hôtes\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [options] %s []\n" "%s [options] %s \n" "\n" " -h --help Affiche cette aide\n" " -V --version Affiche la version\n" " -s --service Publie le service\n" " -a --address Publie l'adresse\n" " -v --verbose Active le mode verbeux\n" " -d --domain=DOMAIN Domaine dans lequel publier le service\n" " -H --host=DOMAIN Hôte où le service réside\n" " --subtype=SUBTYPE Un sous-type additionnel avec lequel enregistrer le " "service\n" " -f --no-fail N'échoue pas si le démon n'est pas disponible\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Nombre d'arguments erroné\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Échec de l'analyse du numéro de port  : %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Aucune commande spécifiée.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Échec de la résolution du nom d'hôte « %s »  : %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Échec de la résolution de l'adresse « %s »  : %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [options] %s \n" "%s [options] %s \n" "\n" " -h --help Affiche cette aide\n" " -V --version Affiche la version\n" " -n --name Résout le nom d'hôte\n" " -a --address Résout l'adresse\n" " -v --verbose Active le mode verbeux\n" " -6 Cherche l'adresse IPv6\n" " -4 Cherche l'adresse IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Échec de la création du résolveur de nom d'hôte  : %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Échec de l'analyse de l'adresse « %s »\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Échec de la création du résolveur d'adresse  : %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [options] \n" "\n" " -h --help Affiche cette aide\n" " -V --version Affiche la version\n" " -v --verbose Active le mode verbeux\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Nombre d'arguments invalide, il en faut exactement un.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Nom d'hôte changé avec succès pour %s\n" avahi-0.7/po/PaxHeaders.10109/uk.po0000644000000000000000000000013213130651643013576 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/uk.po0000644000175000017500000007302613130651643015215 0ustar00lathiatlathiat00000000000000# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Yuri Chornoivan , 2016. msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2016-10-02 09:22+0300\n" "Last-Translator: Yuri Chornoivan \n" "Language-Team: Ukrainian \n" "uk/)\n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Lokalize 1.5\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Гаразд" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Спроба Ð²Ð¸ÐºÐ¾Ð½Ð°Ð½Ð½Ñ Ð´Ñ–Ñ— була невдалою" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Стан помилки" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Ðекоректна назва вузла" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Ðекоректна назва домену" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Ðе знайдено відповідного мережевого протоколу" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Ðекоректне TTL DNS" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Ключ запиÑу реÑурÑу Ñ” шаблоном" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Збіг локальних назв" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Ðекоректний запиÑ" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Ðекоректна назва Ñлужби" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Ðекоректний тип Ñлужби" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Ðекоректний номер порту" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Ðекоректний ключ запиÑу" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Ðекоректна адреÑа" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Перевищено Ñ‡Ð°Ñ Ð¾Ñ‡Ñ–ÐºÑƒÐ²Ð°Ð½Ð½Ñ" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Забагато клієнтів" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Забагато об’єктів" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Забагато запиÑів" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Помилка ОС" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Заборонено доÑтуп" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Ðекоректна діÑ" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "СталаÑÑ Ð½ÐµÐ¿ÐµÑ€ÐµÐ´Ð±Ð°Ñ‡ÐµÐ½Ð° помилка D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Спроба вÑÑ‚Ð°Ð½Ð¾Ð²Ð»ÐµÐ½Ð½Ñ Ð·Ð²â€™Ñзку з фоновою Ñлужбою завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Пам’Ñть вичерпано" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Переданий об’єкт Ñ” некоректним" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Фонову Ñлужбу не запущено" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Ðекоректний Ñ–Ð½Ð´ÐµÐºÑ Ñ–Ð½Ñ‚ÐµÑ€Ñ„ÐµÐ¹Ñу" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Ðекоректна ÑÐ¿ÐµÑ†Ð¸Ñ„Ñ–ÐºÐ°Ñ†Ñ–Ñ Ð¿Ñ€Ð¾Ñ‚Ð¾ÐºÐ¾Ð»Ñƒ" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "некоректні прапорці" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ðе знайдено" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Ðекоректне налаштуваннÑ" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "ÐевідповідніÑть верÑій" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Ðекоректний підтип Ñлужби" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Ðекоректний пакет" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Ðекоректний код Ð¿Ð¾Ð²ÐµÑ€Ð½ÐµÐ½Ð½Ñ DNS" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Помилка DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Помилка DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Помилка DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Помилка DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Помилка DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Помилка DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Помилка DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Помилка DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Помилка DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Помилка DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Ðекоректне Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Ðекоректний тип DNS" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Ðекоректний ÐºÐ»Ð°Ñ DNS" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ðе підтримуєтьÑÑ" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Заборонено" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Ðекоректний аргумент" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "порожній" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Бажана Ð´Ñ–Ñ Ñ” некоректною через Ñвою невизначеніÑть" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Ðекоректний код помилки" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Служба виÑÐ²Ð»ÐµÐ½Ð½Ñ Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Ðе обрано жодної Ñлужби." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "ПереглÑдач Zeroconf Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "" "ПереглÑнути Ñлужби Zeroconf, доÑтуп до Ñких можна отримати у вашій мережі" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Дані TXT:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "порожній" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Тип Ñлужби:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Ðазва Ñлужби:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Ðазва домену:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "ІнтерфейÑ:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "ÐдреÑа:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "ПереглÑд типів Ñлужб" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Завершений NULL ÑпиÑок типів Ñлужб, Ñкі можна переглÑдати" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Домен" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Домен Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ³Ð»Ñду (NULL — типовий домен)" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Тип Ñлужби" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Тип позначеної Ñлужби" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Ðазва Ñлужби" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Ðазва позначеної Ñлужби" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "ÐдреÑа" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "ÐдреÑа виÑвленої Ñлужби" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Порт" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Ðомер порту IP виÑвленої Ñлужби" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Ðазва вузла" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Ðазва вузла виÑвленої Ñлужби" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Дані TXT" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Дані TXT виÑвленої Ñлужби" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Визначити Ñлужбу" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Визначити параметри вибраної Ñлужби автоматично перед поверненнÑм" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Визначити назву вузла Ñлужби" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "Визначити назву вузла вибраної Ñлужби автоматично перед поверненнÑм" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "СімейÑтво адреÑ" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "СімейÑтво Ð°Ð´Ñ€ÐµÑ Ð´Ð»Ñ Ð²Ð¸Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð½Ð°Ð·Ð²Ð¸ вузла" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Помилка клієнта Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Помилка інÑтрументу Ð²Ð¸Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Помилка переглÑду типу Ñлужби %s у домені %s: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "н/д" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Помилка переглÑду домену Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Спроба Ñ‡Ð¸Ñ‚Ð°Ð½Ð½Ñ Ð´Ð¾Ð¼ÐµÐ½Ñƒ Avahi завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "СпиÑок типів переглÑду Ñлужб порожній!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Ðе вдалоÑÑ Ð·â€™Ñ”Ð´Ð½Ð°Ñ‚Ð¸ÑÑ Ð· Ñервером Avahi: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "ПереглÑд Ñлужб у локальній мережі:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "ПереглÑд Ñлужб у домені %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Ðе вдалоÑÑ Ñтворити заÑіб переглÑду Ð´Ð»Ñ %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Спроба ÑÑ‚Ð²Ð¾Ñ€ÐµÐ½Ð½Ñ Ð·Ð°Ñобу Ð²Ð¸Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð´Ð»Ñ %s типу %s у домені %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Спроба ÑÑ‚Ð²Ð¾Ñ€ÐµÐ½Ð½Ñ Ð·Ð°Ñобу переглÑду домену зазнала невдачі: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Змінити домен" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "ÐавігаціÑ..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "_СкаÑувати" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "_Гаразд" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "ІніціалізаціÑ..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "ÐдреÑа" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Ðазва" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Тип" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Домен:" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [параметри]\n" "\n" " -h --help Показати цю довідку\n" " -s --ssh ПереглÑнути Ñервери SSH\n" " -v --vnc ПереглÑнути Ñервери VNC\n" " -S --shell ПереглÑнути Ñервери SSH Ñ– VNC\n" " -d --domain=ДОМЕРДомен Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ³Ð»Ñду\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Занадто багато аргументів\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Оберіть Ñервер оболонки" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "З’_єднати" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "СтільницÑ" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Термінал" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Вибір Ñервера VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Вибір Ñервера SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Ð’ÑÑ‚Ð°Ð½Ð¾Ð²Ð»ÐµÐ½Ð½Ñ Ð·â€™Ñ”Ð´Ð½Ð°Ð½Ð½Ñ Ð· «%s»...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Помилка execlp(): %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "СкаÑовано.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "ПереглÑдач Ñерверів SSH Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "ПереглÑд Ñерверів SSH з увімкненим Zeroconf" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "ПереглÑдач Ñерверів VNC Avahi" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "ПереглÑд Ñерверів VNC з увімкненим Zeroconf" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": вÑÑ– на цей момент\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": кеш вичерпано\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Ðе вдалоÑÑ Ð²Ð¸Ð·Ð½Ð°Ñ‡Ð¸Ñ‚Ð¸ Ñлужбу «%s» типу «%s» у домені «%s»: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Помилка service_browser: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Помилка avahi_service_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Помилка service_type_browser: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Помилка avahi_service_type_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Помилка avahi_domain_browser_new(): %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Спроба запиту запиту щодо Ñ€Ñдка верÑÑ–Ñ— була невдалою: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Спроба запиту щодо назви вузла була невдалою: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "ВерÑÑ–Ñ Ñервера: %s; назва вузла: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "Домен E Ifce Prot\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "Домен E Ifce Prot %-*s %-20s\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Ð—â€™Ñ”Ð´Ð½Ð°Ð½Ð½Ñ Ñ€Ð¾Ð·Ñ–Ñ€Ð²Ð°Ð½Ð¾, повторна Ñпроба з’єднаннÑ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Спроба ÑÑ‚Ð²Ð¾Ñ€ÐµÐ½Ð½Ñ ÐºÐ»Ñ–Ñ”Ð½Ñ‚Ñького об’єкта завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Ðварійне Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð½Ñ ÐºÐ»Ñ–Ñ”Ð½Ñ‚Ñької програми, вихід: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "ÐžÑ‡Ñ–ÐºÑƒÐ²Ð°Ð½Ð½Ñ Ð½Ð° Ð¿Ñ–Ð´Ñ‚Ð²ÐµÑ€Ð´Ð¶ÐµÐ½Ð½Ñ Ñ„Ð¾Ð½Ð¾Ð²Ð¾ÑŽ Ñлужбою...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Показати цю довідку\n" " -V --version Показати дані щодо верÑÑ–Ñ—\n" " -D --browse-domains ПереглÑдати домени заміÑть Ñлужб\n" " -a --all Показати вÑÑ– Ñлужби вÑÑ–Ñ… типів\n" " -d --domain=ДОМЕРДомен Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ³Ð»Ñду\n" " -v --verbose Увімкнути докладний режим\n" " -t --terminate Перервати роботу піÑÐ»Ñ Ð¾Ñ‚Ñ€Ð¸Ð¼Ð°Ð½Ð½Ñ Ð±Ñ–Ð»ÑŒÑˆÐ¾ÑŽ чи меншою " "мірою повного ÑпиÑку\n" " -c --cache Перервати роботу піÑÐ»Ñ Ð¾Ñ‚Ñ€Ð¸Ð¼Ð°Ð½Ð½Ñ Ð²ÑÑ–Ñ… запиÑів з " "кешу\n" " -l --ignore-local Ігнорувати локальні Ñлужби\n" " -r --resolve Визначати адреÑи Ñ– назви знайдених Ñлужб\n" " -f --no-fail Ðе переривати роботу, Ñкщо не буде знайдено фонової " "Ñлужби\n" " -p --parsable ВивеÑти дані у придатному Ð´Ð»Ñ Ð¾Ð±Ñ€Ð¾Ð±ÐºÐ¸ форматі\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Ðе визначати типи Ñлужб\n" " -b --dump-db Створити дамп бази даних типів Ñлужб\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Занадто мало аргументів\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Ðе вдалоÑÑ Ñтворити проÑтий об’єкт опитуваннÑ.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Ð’Ñтановлено під назвою «%s»\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Спроба реєÑтрації завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Збіг назв, обрано нову назву «%s».\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Спроба ÑÑ‚Ð²Ð¾Ñ€ÐµÐ½Ð½Ñ Ð³Ñ€ÑƒÐ¿Ð¸ запиÑів завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Спроба Ð´Ð¾Ð´Ð°Ð²Ð°Ð½Ð½Ñ Ð°Ð´Ñ€ÐµÑи завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Спроба Ð´Ð¾Ð´Ð°Ð²Ð°Ð½Ð½Ñ Ñлужби завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Спроба Ð´Ð¾Ð´Ð°Ð²Ð°Ð½Ð½Ñ Ð¿Ñ–Ð´Ñ‚Ð¸Ð¿Ñƒ «%s» завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Конфлікт назв вузлів\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [параметри] %s <назва> <тип> <порт> []\n" "%s [параметри] %s <назва вузла> <адреÑа>\n" "\n" " -h --help Показати цю верÑÑ–ÑŽ\n" " -V --version Показати дані щодо верÑÑ–Ñ—\n" " -s --service Оприлюднити Ñлужбу\n" " -a --address Оприлюднити адреÑу\n" " -v --verbose Увімкнути докладний режим\n" " -d --domain=ДОМЕРДомен Ð´Ð»Ñ Ð¾Ð¿Ñ€Ð¸Ð»ÑŽÐ´Ð½ÐµÐ½Ð½Ñ Ñлужби\n" " -H --host=ДОМЕРВузол, на Ñкому працює Ñлужба\n" " --subtype=ПІДТИП Додатковий підтип Ð´Ð»Ñ Ñ€ÐµÑ”Ñтрації цієї Ñлужби\n" " -R --no-reverse Ðе оприлюднювати зворотний Ð·Ð°Ð¿Ð¸Ñ Ñ€Ð°Ð·Ð¾Ð¼ з адреÑою\n" " -f --no-fail Ðе завершувати роботу, Ñкщо не вдаÑтьÑÑ Ð¾Ñ‚Ñ€Ð¸Ð¼Ð°Ñ‚Ð¸ " "доÑтуп до фонової Ñлужби\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Ðеправильна кількіÑть аргументів\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Ðе вдалоÑÑ Ð¾Ð±Ñ€Ð¾Ð±Ð¸Ñ‚Ð¸ номер порту: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Ðе вказано команди.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Спроба Ð²Ð¸Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð½Ð°Ð·Ð²Ð¸ вузла «%s» завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Спроба Ð²Ð¸Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð°Ð´Ñ€ÐµÑи «%s» завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [параметри] %s <назва вузла ...>\n" "%s [параметри] %s <адреÑа ... >\n" "\n" " -h --help Показати цю довідку\n" " -V --version Показати дані щодо верÑÑ–Ñ—\n" " -n --name Визначити назву вузла\n" " -a --address Визначити адреÑу\n" " -v --verbose Увімкнути докладний режим\n" " -6 Визначити адреÑу IPv6\n" " -4 Визначити адреÑу IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" "Спроба ÑÑ‚Ð²Ð¾Ñ€ÐµÐ½Ð½Ñ Ð·Ð°Ñобу Ð²Ð¸Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð½Ð°Ð·Ð²Ð¸ вузла завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Спроба обробки адреÑи «%s» завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Спроба ÑÑ‚Ð²Ð¾Ñ€ÐµÐ½Ð½Ñ Ð·Ð°Ñобу Ð²Ð¸Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ñ Ð°Ð´Ñ€ÐµÑи завершилаÑÑ Ð½ÐµÐ²Ð´Ð°Ð»Ð¾: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [параметри] <нова назва вузла>\n" "\n" " -h --help Показати цю довідку\n" " -V --version Показати дані щодо верÑÑ–Ñ—\n" " -v --verbose Увімкнути докладний режим\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Ðекоректна кількіÑть аргументів, Ñлід вказати рівно один аргумент.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Ðазву вузла уÑпішно змінено на %s\n" avahi-0.7/po/PaxHeaders.10109/pl.po0000644000000000000000000000013213130651643013572 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.271961818 avahi-0.7/po/pl.po0000644000175000017500000006265013130651643015212 0ustar00lathiatlathiat00000000000000# translation of pl.po to Polish # Piotr DrÄ…g , 2007-2016. # msgid "" msgstr "" "Project-Id-Version: avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-06-04 15:08+0200\n" "PO-Revision-Date: 2016-06-04 15:09+0200\n" "Last-Translator: Piotr DrÄ…g \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "DziaÅ‚anie siÄ™ nie powiodÅ‚o" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Błędny stan" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "NieprawidÅ‚owa nazwa komputera" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "NieprawidÅ‚owa nazwa domeny" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Brak dostÄ™pnych odpowiednich protokołów sieciowych" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "NieprawidÅ‚owe TTL serwera DNS" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Klucz wpisu zasobu jest wzorem" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Kolizja nazwy lokalnej" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "NieprawidÅ‚owy wpis" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "NieprawidÅ‚owa nazwa usÅ‚ugi" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "NieprawidÅ‚owy typ usÅ‚ugi" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "NieprawidÅ‚owy numer portu" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "NieprawidÅ‚owy klucz wpisu" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "NieprawidÅ‚owy adres" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Przekroczono czas oczekiwania" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Za dużo klientów" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Za dużo obiektów" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Za dużo wpisów" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Błąd systemu operacyjnego" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Brak dostÄ™pu" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "NieprawidÅ‚owe dziaÅ‚anie" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "WystÄ…piÅ‚ nieoczekiwany błąd usÅ‚ugi D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Połączenie z usÅ‚ugÄ… siÄ™ nie powiodÅ‚o" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Wyczerpano pamięć" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Przepuszczony obiekt nie byÅ‚ prawidÅ‚owy" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "UsÅ‚uga nie jest uruchomiona" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "NieprawidÅ‚owy indeks interfejsu" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "NieprawidÅ‚owa specyfikacja protokoÅ‚u" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "NieprawidÅ‚owe flagi" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Nie odnaleziono" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "NieprawidÅ‚owa konfiguracja" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Wersje siÄ™ nie zgadzajÄ…" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "NieprawidÅ‚owy podtyp usÅ‚ugi" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "NieprawidÅ‚owy pakiet" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "NieprawidÅ‚owy kod zwrotny DNS" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Niepowodzenie DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Niepowodzenie DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Niepowodzenie DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Niepowodzenie DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Niepowodzenie DNS: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Niepowodzenie DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Niepowodzenie DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Niepowodzenie DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Niepowodzenie DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Niepowodzenie DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "NieprawidÅ‚owe RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "NieprawidÅ‚owy typ DNS" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "NieprawidÅ‚owa klasa DNS" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "NieobsÅ‚ugiwane" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Niedozwolone" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "NieprawidÅ‚owy parametr" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Jest puste" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Żądane dziaÅ‚anie jest nieprawidÅ‚owe, ponieważ jest nadmiarowe" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "NieprawidÅ‚owy kod błędu" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Wykrywanie Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:77 msgid "No service currently selected." msgstr "Nie wybrano żadnej usÅ‚ugi." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "PrzeglÄ…darka Zeroconf Avahi" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "PrzeglÄ…danie usÅ‚ug Zeroconf dostÄ™pnych w sieci" #: ../avahi-python/avahi-discover/avahi-discover.py:225 msgid "TXT" msgstr "Tekst" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "TXT Data:" msgstr "Dane tekstowe:" #: ../avahi-python/avahi-discover/avahi-discover.py:227 msgid "empty" msgstr "puste" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Type:" msgstr "Typ usÅ‚ugi:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Service Name:" msgstr "Nazwa usÅ‚ugi:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Domain Name:" msgstr "Nazwa domeny:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Interface:" msgstr "Interfejs:" #: ../avahi-python/avahi-discover/avahi-discover.py:233 msgid "Address:" msgstr "Adres:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "PrzeglÄ…danie typów usÅ‚ug" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Lista typów usÅ‚ug do przeglÄ…dania zakoÅ„czona NULL" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domena" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Domena do przeglÄ…dania lub NULL dla domyÅ›lnej domeny" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Typ usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Typ wybranej usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Nazwa usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Nazwa wybranej usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adres" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Adres rozwiÄ…zanej usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Numer portu IP rozwiÄ…zanej usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Nazwa komputera" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Nazwa komputera rozwiÄ…zanej usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Dane tekstowe" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Dane tekstowe rozwiÄ…zanej usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "RozwiÄ…zywanie usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "RozwiÄ…zywanie wybranej usÅ‚ugi automatycznie przed zwracaniem" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "RozwiÄ…zywanie nazwy komputera usÅ‚ugi" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" "RozwiÄ…zywanie nazwy komputera wybranej usÅ‚ugi automatycznie przed zwracaniem" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Rodzina adresów" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Rodzina adresów do rozwiÄ…zywania nazwy komputera" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Niepowodzenie klienta Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Niepowodzenie rozwiÄ…zywania Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "PrzeglÄ…danie typu usÅ‚ug %s w domenie %s siÄ™ nie powiodÅ‚o: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "Nie dotyczy" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Niepowodzenie przeglÄ…darki domen Avahi: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Odczytanie domeny Avahi siÄ™ nie powiodÅ‚o: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "PrzeglÄ…dana lista typów usÅ‚ug jest pusta." #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Połączenie z serwerem Avahi siÄ™ nie powiodÅ‚o: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "PrzeglÄ…danie usÅ‚ug w lokalnej sieci:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "PrzeglÄ…danie usÅ‚ug w domenie %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Utworzenie przeglÄ…darki dla %s siÄ™ nie powiodÅ‚o: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" "Utworzenie rozwiÄ…zania dla %s typu %s w domenie %s siÄ™ nie powiodÅ‚o: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Utworzenie przeglÄ…darki domen siÄ™ nie powiodÅ‚o: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Zmiana domeny" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "PrzeglÄ…danie…" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "_Anuluj" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "_OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inicjowanie…" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "PoÅ‚ożenie" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nazwa" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Typ" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domena…" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [opcje]\n" "\n" " -h --help WyÅ›wietla tÄ™ pomoc\n" " -s --ssh PrzeglÄ…da serwery SSH\n" " -v --vnc PrzeglÄ…da serwery VNC\n" " -S --shell PrzeglÄ…da SSH i VNC\n" " -d --domain=DOMENA Domena do przeglÄ…dania\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Za dużo parametrów\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Wybór serwera powÅ‚oki" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "_Połącz" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Pulpit" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Wybór serwera VNC" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Wybór serwera SSH" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "ÅÄ…czenie z „%sâ€â€¦\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "„execlp()†siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Anulowano.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "PrzeglÄ…darka serwerów SSH Avahi" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "PrzeglÄ…danie serwerów SSH z włączonym Zeroconf" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "PrzeglÄ…darka serwerów VNC Avahi" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "PrzeglÄ…danie serwerów VNC z włączonym Zeroconf" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Wszystko\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Wyczerpano pamięć podrÄ™cznÄ…\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" "RozwiÄ…zanie usÅ‚ugi „%s†typu „%s†w domenie „%s†siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "„service_browser†siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "„avahi_service_browser_new()†siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "„service_type_browser†siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "„avahi_service_type_browser_new()†siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "„avahi_domain_browser_new()†siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Odpytanie ciÄ…gu wersji siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Odpytanie nazwy komputera siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Wersja serwera: %s; nazwa komputera: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Interfejs Protokół Domena\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Interfejs Protokół %-*s %-20s Domena\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Rozłączono, łączenie ponownie…\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Utworzenie obiektu klienta siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Niepowodzenie klienta, koÅ„czenie dziaÅ‚ania: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Oczekiwanie na usÅ‚ugę…\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help WyÅ›wietla tÄ™ pomoc\n" " -V --version WyÅ›wietla wersjÄ™\n" " -D --browse-domains PrzeglÄ…da domeny zamiast usÅ‚ug\n" " -a --all WyÅ›wietla wszystkie usÅ‚ugi, niezależnie od ich\n" " typu\n" " -d --domain=DOMENA Domena do przeglÄ…dania\n" " -v --verbose WyÅ›wietla wiÄ™cej informacji\n" " -t --terminate Wyłącza po zrzuceniu bardziej lub mniej\n" " peÅ‚nej listy\n" " -c --cache Wyłącza po zrzuceniu wszystkich wpisów z pamiÄ™ci\n" " podrÄ™cznej\n" " -l --ignore-local Ignoruje lokalne usÅ‚ugi\n" " -r --resolve RozwiÄ…zuje odnalezione usÅ‚ugi\n" " -f --no-fail Nie wyłącza, jeÅ›li usÅ‚uga nie jest dostÄ™pna\n" " -p --parsable WyjÅ›cie w formacie do przetwarzania\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Nie przeszukuje typów usÅ‚ug\n" " -b --dump-db Zrzuca bazÄ™ danych typów usÅ‚ug\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Za maÅ‚o parametrów\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Utworzenie prostego obiektu typu „poll†siÄ™ nie powiodÅ‚o.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Ustanowiono pod nazwÄ… „%sâ€\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Zarejestrowanie siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Kolizja nazw, wybieranie nowej nazwy „%sâ€.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Utworzenie grupy wpisów siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Dodanie adresu siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Dodanie usÅ‚ugi siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Dodanie podtypu „%s†siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Konflikt nazw komputerów\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [opcje] %s []\n" "%s [opcje] %s \n" "\n" " -h --help Wyświetla tę pomoc\n" " -V --version Wyświetla wersję\n" " -s --service Publikuję usługę\n" " -a --address Publikuje adres\n" " -v --verbose Wyświetla więcej informacji\n" " -d --domain=DOMENA Domena, w której opublikować usługę\n" " -H --host=DOMENA Komputer, na jakim znajduje się usługa\n" " --subtype=PODTYP Dodatkowy podtyp do zarejestrowania tej usługi\n" " -R --no-reverse Nie publikuje odwróconego wpisu z adresem\n" " -f --no-fail Nie wyłącza, jeśli usługa nie jest dostępna\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Błędna liczba parametrów\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Przetworzenie numeru portu się nie powiodło: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Nie podano polecenia.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Rozwiązanie nazwy komputera „%s†się nie powiodło: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Rozwiązanie adresu „%s†się nie powiodło: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [opcje] %s \n" "%s [opcje] %s \n" "\n" " -h --help WyÅ›wietla tÄ™ pomoc\n" " -V --version WyÅ›wietla wersjÄ™\n" " -n --name RozwiÄ…zuje nazwÄ™ komputera\n" " -a --address RozwiÄ…zuje adres\n" " -v --verbose WyÅ›wietla wiÄ™cej informacji\n" " -6 Przeszukuje adresy IPv6\n" " -4 Przeszukuje adresy IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Utworzenie rozwiÄ…zania nazwy komputera siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Przetworzenie adresu „%s†siÄ™ nie powiodÅ‚o\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Utworzenie rozwiÄ…zania adresu siÄ™ nie powiodÅ‚o: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [opcje] \n" "\n" " -h --help WyÅ›wietla tÄ™ pomoc\n" " -V --version WyÅ›wietla wersjÄ™\n" " -v --verbose WyÅ›wietla wiÄ™cej informacji\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "NieprawidÅ‚owa liczba parametrów, oczekiwano dokÅ‚adnie jednego.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "PomyÅ›lnie zmieniono nazwÄ™ komputera na %s\n" avahi-0.7/po/PaxHeaders.10109/sr@latin.po0000644000000000000000000000013213130651643014733 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/sr@latin.po0000644000175000017500000006253713130651643016357 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # МироÑлав Ðиколић , 2013 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: МироÑлав Ðиколић \n" "Language-Team: Serbian (Latin) (http://www.transifex.com/lennart/avahi/" "language/sr@latin/)\n" "Language: sr@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "U redu" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operacija nije uspela" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "LoÅ¡e stanje" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Neispravan naziv domaćina" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Neispravan naziv domena" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Odgovarajući mrežni protokol nije dostupan" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Neispravan DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "KljuÄ zapisa izvoriÅ¡ta je Å¡ablon" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Sukob mesnih naziva" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Neispravan zapis" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Neispravan naziv usluge" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Neispravna vrsta usluge" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Neispravan broj prikljuÄnika" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Neispravan kljuÄ zapisa" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Neispravna adresa" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Vreme je isteklo" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "PreviÅ¡e klijenata" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "PreviÅ¡e objekata" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "PreviÅ¡e unosa" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "GreÅ¡ka operativnog sistema" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Pristup je zabranjen" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Neispravna radnja" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "DoÅ¡lo je do neoÄekivane greÅ¡ke D-sabirnice" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Nije uspelo povezivanje sistemske usluge" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memorija je istroÅ¡ena" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "ProsleÄ‘eni objekat nije bio ispravan" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Sistemska usluga nije pokrenuta" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Neispravan registar ureÄ‘aja" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Neispravna odredba protokola" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Neispravne opcije" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Nisam naÅ¡ao" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Neispravno podeÅ¡avanje" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Neslaganje izdanja" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Neispravna podvrsta usluge" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Neispravan paket" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Neispravan povratni kod DNS-a" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Neuspeh DNS-a: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Neuspeh DNS-a: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Neuspeh DNS-a: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Neuspeh DNS-a: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Neuspeh DNS-a: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Neuspeh DNS-a: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Neuspeh DNS-a: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Neuspeh DNS-a: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Neuspeh DNS-a: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Neuspeh DNS-a: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Neispravni su RPODACI" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Neispravna vrsta DNS-a" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Neispravan razred DNS-a" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Nije podržano" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Nije dozvoljeno" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Neispravan argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Prazno" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Tražena radnja je neispravna jer je suviÅ¡na" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Neispravan kod greÅ¡ke" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahijevo otkrivanje" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Nijedna usluga trenutno nije izabrana." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahijev Zerokonf preglednik" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Pregledam dostupne Zerokonf usluge na vaÅ¡oj mreži" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TEKST" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "Tekstualni podaci:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "prazno" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Vrsta usluge:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Naziv usluge:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Naziv domena:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "UreÄ‘aj:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adresa:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Pregledaj vrste usluga" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Spisak vrsta usluga za pregledanje ograniÄen sa „NULL“" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domen" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Domen za pregledanje, ili „NULL“ za podrazumevani domen" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Vrsta usluge" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Vrsta izabrane usluge" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Naziv usluge" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Naziv izabrane usluge" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adresa" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Adresa reÅ¡ene usluge" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "PrikljuÄnik" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Broj IP prikljuÄnika reÅ¡ene usluge" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Naziv domaćina" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Naziv domaćina reÅ¡ene usluge" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "Tekstualni podaci" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "Tekstualni podaci reÅ¡ene usluge" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "ReÅ¡i uslugu" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Samostalno reÅ¡ava izabranu uslugu pre povraćaja" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "ReÅ¡i naziv domaćina usluge" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "Samostalno reÅ¡ava naziv domaćina izabrane usluge pre povraćaja" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Porodica adresa" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Porodica adresa za razreÅ¡avanje naziva domaćina" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Kvar Avahijevog klijenta: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Kvar Avahijevog reÅ¡avaÄa: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" "Nisam uspeo da potražim vrstu usluge „%s“ u domenu „%s“\n" "%s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/d" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Neuspeh Avahijevog preglednika domena: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Nisam uspeo da proÄitam Avahijev domen: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Spisak vrsta usluga za pregled je prazan!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Nisam uspeo da se povežem na Avahijev server: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Tražim uslugu na mesnoj mreži:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Tražim uslugu u domenu %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Nisam uspeo da napravim preglednika za „%s“: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Nisam uspeo da napravim reÅ¡avaÄa za „%s“ vrste %s u domenu %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Nisam uspeo da napravim preglednika domena: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Promeni domen" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Razgledam..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Otkazano.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "U redu" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Pokrećem..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Mesto" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Naziv" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Vrsta" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domen..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [mogućnosti]\n" "\n" " -h --help Prikazuje ovu pomoć\n" " -s --ssh Razgleda servere bezbedne Å¡koljke\n" " -v --vnc Razgleda VNC servere\n" " -S --shell Razgleda servere i bezbedne Å¡koljke i VNC-a\n" " -d --domain=DOMEN Domen u kome će se vrÅ¡iti razgledanje\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "PreviÅ¡e argumenata\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Izaberite server Å¡koljke" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Radna povrÅ¡" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Izaberite VNC server" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Izaberite server bezbedne Å¡koljke" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Povezujem se na „%s“ ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Nije uspela funkcija „execlp()“: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Otkazano.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Preglednik Avahijevog servera bezbedne Å¡koljke" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Potražite servere bezbedne Å¡koljke sa ukljuÄenim Zerokonfom" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Preglednik Avahijevog VNC servera" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Potražite VNC servere sa ukljuÄenim Zerokonfom" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Za sada sve\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Ostava je prepunjena\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Nisam uspeo da reÅ¡im uslugu „%s“ vrste „%s“ u domenu „%s“: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "Nije uspela funkcija „service_browser“: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Nije uspela funkcija „avahi_service_browser_new()“: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "Nije uspela funkcija „service_type_browser“: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Nije uspela funkcija „avahi_service_type_browser_new()“: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Nije uspela funkcija „avahi_domain_browser_new()“: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Nisam uspeo da propitam nisku izdanja: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Nisam uspeo da propitam naziv domaćina: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Izdanje servera: %s; naziv domaćina: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "D MSuÄ Prot Domen\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "D MSuÄ Prot %-*s %-20s Domen\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Veza je prekinuta, ponovo se povezujem ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Nisam uspeo da napravim objekat klijenta: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Neuspeh klijenta, izlazim: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "ÄŒekam na sistemsku uslugu ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Prikazuje ovu pomoć\n" " -V --version Prikazuje izdanje\n" " -D --browse-domains Razgleda domene koji se mogu pretraživati umesto " "usluga\n" " -a --all Prikazuje sve usluge, bez obzira na vrstu\n" " -d --domain=DOMEN Domen za pretraživanje\n" " -v --verbose UkljuÄuje režim opÅ¡irnog ispisa\n" " -t --terminate Prekida posle izbacivanja viÅ¡e ili manje zavrÅ¡ene " "liste\n" " -c --cache Prekida posle izbacivanja svih zapisa iz ostave\n" " -l --ignore-local Zanemaruje mesne usluge\n" " -r --resolve ReÅ¡ava pronaÄ‘ene usluge\n" " -f --no-fail Ne otkazuje ako sistemska usluga nije dostupna\n" " -p --parsable Daje izlaz u zapisu koji se može obraditi\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Ne traži vrste usluge\n" " -b --dump-db Izbacuje bazu podataka vrste usluge\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "SuviÅ¡e malo argumenata\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Nisam uspeo da napravim objekat jednostavne ankete.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Uspostavljeno pod nazivom „%s“\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Nisam uspeo da zabeležim: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Sukob naziva, uzimam novi naziv „%s“.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Nisam uspeo da napravim unos grupe: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Nisam uspeo da dodam adresu: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Nisam uspeo da dodam uslugu: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Nisam uspeo da dodam podvrstu „%s“: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Sukob naziva domaćina\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [mogućnosti] %s []\n" "%s [mogućnosti] %s \n" "\n" " -h --help Prikazuje ovu pomoć\n" " -V --version Prikazuje izdanje\n" " -s --service Objavljuje uslugu\n" " -a --address Objavljuje adresu\n" " -v --verbose UkljuÄuje režim opÅ¡irnog ispisa\n" " -d --domain=DOMEN Domen u kojem će se objaviti usluge\n" " -H --host=DOMEN Domaćin na kojem se nalaze usluge\n" " --subtype=PODVRSTA Dodatna podvrsta sa kojom će se zabeležiti ova " "usluga\n" " -R --no-reverse Ne objavljuje obrnute unose sa adresom\n" " -f --no-fail Neće otkazati ako sistemska usluga nije dostupna\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "LoÅ¡ broj argumenata\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Nisam uspeo da obradim broj prikljuÄnika: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Naredba nije navedena.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Nisam uspeo da obradim naziv domaćina „%s“: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Nisam uspeo da obradim adresu „%s“: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [mogućnosti] %s \n" "%s [mogućnosti] %s \n" "\n" " -h --help Prikazuje ovu pomoć\n" " -V --version Prikazuje izdanje\n" " -n --name ReÅ¡ava naziv domaćina\n" " -a --address ReÅ¡ava adresu\n" " -v --verbose UkljuÄuje režim opÅ¡irnog ispisa\n" " -6 Traži IPv6 adresu\n" " -4 Traži IPv4 adresu\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Nisam uspeo da napravim reÅ¡avaÄa naziva domaćina: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Nisam uspeo da obradim adresu „%s“\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Nisam uspeo da napravim reÅ¡avaÄa adrese: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [mogućnosti] \n" "\n" " -h --help Prikazuje ovu pomoć\n" " -V --version Prikazuje izdanje\n" " -v --verbose UkljuÄuje režim opÅ¡irnog ispisa\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Neispravan broj argumenata, oÄekujem taÄno jedan.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Naziv domaćina je uspeÅ¡no promenjen u „%s“\n" avahi-0.7/po/PaxHeaders.10109/eo.po0000644000000000000000000000013213130651643013562 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/eo.po0000644000175000017500000004610313130651643015175 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # kristjan , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2013-11-20 09:58+0000\n" "Last-Translator: kristjan \n" "Language-Team: Esperanto (http://www.transifex.com/lennart/avahi/language/" "eo/)\n" "Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "Bone" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operacio fiaskis" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Malbona stato" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Nevalida retnodnomo" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Nevalida domajnnomo" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Nevalida DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Nevalida servonomo" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Nevalida servotipo" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Nevalida pordnumero" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Nevalida adreso" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Tro da klientoj" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Tro da objektoj" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Operaciuma eraro" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Aliro malpermesita" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Nevalida operacio" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memoro elĉerpita" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Demono ne rulanta" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Nevalidaj indikoj" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Ne trovite" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Nevalida agordo" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Versia malkongruo" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Nevalida RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Nevalida DNS-tipo" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Nevalida DNS-klaso" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Ne subtenate" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Ne permesite" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Nevalida argumento" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Estas malplena" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Nevalida erarkodo" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Neniu servo aktuale elektita." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT-datumoj:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "malplene" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Servotipo:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Servonomo:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Domajnnomo:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Interfaco:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adreso:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Foliumi servotipojn" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domajno" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Servotipo" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "La servotipo de la elektita servo" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Servonomo" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "La servonomo de la elektita servo" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adreso" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "La adreso de la solvita servo" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Pordo" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "La IP-pordnumero de la solvita servo" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Gastigonomo" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "La gastigonomo de la solvita sevo" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT-datumoj" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "La TXT-datumoj de la solvita servo" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "Solvi servon" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Adresfamilio" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/d" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "ÅœanÄi domajnon" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Foliumante..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 msgid "_Cancel" msgstr "" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "Bone" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Loko" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Nomo" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Tipo" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domajno..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Tro da argumentoj\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Labortablo" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminalo" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Elekti VNC-servilon" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Elekti SSH-servilon" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Konektante al '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "" avahi-0.7/po/PaxHeaders.10109/sk.po0000644000000000000000000000013213130651643013574 xustar0030 mtime=1499681699.147369677 30 atime=1499681699.147369677 30 ctime=1499681851.275961729 avahi-0.7/po/sk.po0000644000175000017500000006256213130651643015216 0ustar00lathiatlathiat00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # DuÅ¡an Kazik , 2015 # Peter Mráz , 2011 msgid "" msgstr "" "Project-Id-Version: Avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2015-09-26 17:10+0000\n" "Last-Translator: DuÅ¡an Kazik \n" "Language-Team: Slovak (http://www.transifex.com/lennart/avahi/language/sk/)\n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operácia zlyhala" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Chybný stav" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Neplatný názov hostiteľskej stanice" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Neplatný názov domény" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "Nie je dostupný žiadny vhodný sieÅ¥ový protokol " #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Neplatný TTL údaj systému DNS" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "KÄ¾ÃºÄ zdrojového záznamu je vzor" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Kolízia miestnych názvov" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Neplatný záznam" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Neplatný názov služby" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Neplatný typ služby" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Neplatné Äíslo portu" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Neplatný kÄ¾ÃºÄ záznamu" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Neplatná adresa" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Dosiahnutý Äasový limit" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "PríliÅ¡ mnoho klientov" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "PríliÅ¡ mnoho objektov" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "PríliÅ¡ mnoho záznamov" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "Chyba OS" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Prístup zamietnutý" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Neplatná operácia" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "Nastala neoÄakávaná chyba D-Bus" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Pripojenie démona zlyhalo" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "VyÄerpaná pamäť" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "Predaný objekt nie je platný" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Démon nebeží" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Neplatný index rozhrania" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Neplatná Å¡pecifikácia protokolu" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Neplatné príznaky" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Nenájdené" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Neplatné nastavenie" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Nesúlad verzií" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Neplatný podtyp služby" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Neplatný paket" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Neplatný návratový kód systému DNS" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "Zlyhanie DNS: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "Zlyhanie DNS: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "Zlyhanie DNS: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "Zlyhanie DNS: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "Zlyhanie DNS: NOTIMP" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "Zlyhanie DNS: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "Zlyhanie DNS: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "Zlyhanie DNS: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "Zlyhanie DNS: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "Zlyhanie DNS: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Neplatné údaje RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Neplatný typ DNS" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Neplatná trieda DNS" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Nepodporované" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Nepovolené" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Neplatný parameter" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Prázdne" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "Požadovaná operácia je neplatná kvôli nadbytoÄnosti" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Neplatný kód chyby" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Objavovanie pomocou Avahi" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "Nie je oznaÄená žiadna služba." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi - prieskumník služieb Zeroconf" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Preskúma služby typu Zeroconf dostupné vo vaÅ¡ej sieti" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "TXT" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "TXT Údaj:" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "prázdny" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "Typ služby:" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "Názov služby:" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "Názov domény:" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "Rozhranie:" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "Adresa:" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Skúmané typy služieb" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "Zoznam typov služieb, ktoré sa majú skúmaÅ¥, ukonÄený znakom NULL" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Doména" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "Doména, v ktorej sa má skúmaÅ¥, alebo NULL pre predvolenú doménu" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Typ služby" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "Typ služby vybranej služby" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Názov služby" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "Názov služby vybranej služby" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Adresa" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "Adresa rozpoznanej služby" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "Port IP protokolu rozpoznanej služby" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Názov hostiteľa" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "Názov hostiteľskej stanice rozpoznanej služby" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT údaj" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "TXT údaj rozpoznanej služby" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "RozpoznaÅ¥ službu" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "Pred návratom automaticky rozpozná vybranú službu" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "Rozpozná názov hostiteľa služby" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "Pred návratom automaticky zistí názov hostiteľa vybranej služby" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Rodina adresy" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "Rodina adresy pre rozpoznávanie názvu hostiteľa" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Zlyhanie klienta Avahi: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Zlyhanie rozpoznávaÄa Avahi: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Vyhľadávanie služieb typu %s v doméne %s zlyhalo: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "-" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Prieskumník domény zlyhal: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Nepodarilo sa preÄítaÅ¥ Avahi doménu: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Zoznam skúmaných typov služieb je prázdny!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Nepodarilo sa pripojiÅ¥ na Avahi server: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Skúmanie služieb v miestnej sieti:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Skúmanie služieb v doméne %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Nepodarilo sa vytvoriÅ¥ prieskumníka pre %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Nepodarilo sa vytvoriÅ¥ rozpoznávaÄ pre %s typu %s v doméne %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Nepodarilo sa vytvoriÅ¥ prieskumníka domény: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "ZmeniÅ¥ doménu" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Skúma sa..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "ZruÅ¡ené.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Inicializuje sa..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Umiestnenie" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Názov" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Typ" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Doména..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [voľby]\n" "\n" " -h --help Zobrazí tohto pomocníka\n" " -s --ssh Preskúma SSH servery\n" " -v --vnc Preskúma VNC servery\n" " -S --shell Preskúma SSH aj VNC severy\n" " -d --domain=DOMÉNA Doména, v ktorej sa má skúmaÅ¥\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "PríliÅ¡ mnoho parametrov\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Zvoľte shell server" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Pracovné prostredie" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminál" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Voľba VNC servera" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Zvoľte SSH server" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Pripája sa k „%s“ ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "Operácia execlp() zlyhala: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "ZruÅ¡ené.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi - prieskumník SSH serverov" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Preskúma SSH servery s povolenou službou Zeroconf" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi - prieskumník VNC serverov" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Preskúma VNC servery s povolenou službou Zeroconf" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": Zatiaľ vÅ¡etko\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Vyrovnávacia pamäť vyÄerpaná\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Nepodarilo sa rozpoznaÅ¥ službu „%s“ typu „%s“ v doméne „%s“: %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "SúÄasÅ¥ service_browser zlyhala: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "Operácia avahi_service_browser_new() zlyhala: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "SúÄasÅ¥ service_type_browser zlyhala: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "Operácia avahi_service_type_browser_new() zlyhala: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "Operácia avahi_domain_browser_new() zlyhala: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Nepodarilo sa získaÅ¥ reÅ¥azec s verziou: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Nepodarilo sa získaÅ¥ názov hostiteľskej stanice: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Verzia servera: %s; názov hostiteľa: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "U Rozh Prot Doména\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "U Rozh Prot %-*s %-20s Doména\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Odpojené, obnovuje sa spojenie ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Nepodarilo sa vytvoriÅ¥ klientský objekt: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Klient zlyhal, ukonÄuje sa: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "ÄŒaká sa na démon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Zobrazí tohto pomocníka\n" " -V --version Zobrazí verziu\n" " -D --browse-domains Preskúma preskúmavané domény namiesto služieb\n" " -a --all Zobrazí vÅ¡etky služby, nezávisle od typu\n" " -d --domain=DOMÉNA Doména, v ktorej sa má skúmaÅ¥\n" " -v --verbose Povolí režim podrobných záznamov\n" " -t --terminate UkonÄí sa po vypísaní viac menej kompletného " "zoznamu\n" " -c --cache UkonÄí sato po vypísaní vÅ¡etkých položiek z " "vyrovnávacej pemäte\n" " -l --ignore-local Bude ignorovaÅ¥ miestne služby\n" " -r --resolve Rozpozná nájdené služby\n" " -f --no-fail Nezlyhá ak nie je dostupný démon\n" " -p --parsable Urobí výstup v spracovateľnom formáte\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Nebude hľadaÅ¥ typy služieb\n" " -b --dump-db Vpíše databázu typov služieb\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "PríliÅ¡ málo parametrov\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Nepodarilo sa vytvoriÅ¥ objekt simple poll pre udalosÅ¥.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Založené pod názvom „%s“\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Zlyhala registrácia: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Kolízia názvov, vyberá sa nový názov „%s“.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Nepodarilo sa vytvoriÅ¥ skupinu záznamov: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Nepodarilo sa pridaÅ¥ adresu: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Nepodarilo sa pridaÅ¥ službu: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Nepodarilo sa pridaÅ¥ podtyp „%s“: %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Konflikt hostiteľských názvov\n" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [voľby] %s []\n" "%s [voľby] %s \n" "\n" " -h --help Zobrazí tohto pomocníka\n" " -V --version Zobrazí verziu\n" " -s --service Uverejní službu\n" " -a --address Uverejní adresu\n" " -v --verbose Povolí režim podrobných záznamov\n" " -d --domain=DOMÉNA Doména, v ktorej sa budú služby uverejňovaÅ¥\n" " -H --host=DOMÉNA Hostiteľská stanica, na ktorej sídli služba\n" " --subtype=PODTYP DodatoÄný podtyp, s ktorým sa táto služba " "zaregistruje\n" " -R --no-reverse Nezverejní spätný záznam s adresou\n" " -f --no-fail Nezlyhá ak nie je dostupný démon\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Zlý poÄet parametrov\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Nepodarilo sa analyzovaÅ¥ Äíslo portu: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "Žiadny príkaz nebol zadaný.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Nepodarilo sa rozpoznaÅ¥ názov hostiteľskej stanice „%s“: %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Nepodarilo sa rozpoznaÅ¥ adresu „%s“: %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [voľby] %s \n" "%s [voľby] %s \n" "\n" " -h --help Zobrazí tohto pomocníka\n" " -V --version Zobrazí verziu\n" " -n --name Rozpozná názov hostiteľskej stanice\n" " -a --address Rozpozná adresu\n" " -v --verbose Povolí režim podrobných záznamov\n" " -6 Bude hľadaÅ¥ addresu IPv6\n" " -4 Bude hľadaÅ¥ addresu IPv4\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Nepodarilo sa vytvoriÅ¥ rozpoznávaÄ názvov hostiteľských staníc: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Nepodarilo sa analyzovaÅ¥ adresu „%s“\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Nepodarilo sa vytvoriÅ¥ rozpoznávaÄ adries: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [voľby] \n" "\n" " -h --help Zobrazí tohto pomocníka\n" " -V --version Zobrazí verziu\n" " -v --verbose Povolí režim podrobných záznamov\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Neplatný poÄet parametrov, oÄakáva sa práve jeden.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Názov hostiteľskej stanice bol úspeÅ¡ne zmenený na %s\n" avahi-0.7/po/PaxHeaders.10109/en_CA.po0000644000000000000000000000013213130651643014124 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.263961998 avahi-0.7/po/en_CA.po0000644000175000017500000004353513130651643015545 0ustar00lathiatlathiat00000000000000# Canadian English translation # This file is distributed under the same license as the Avahi package. # Ted Percival , 2008. # #, fuzzy msgid "" msgstr "" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2008-03-31 15:24+1000\n" "Last-Translator: Ted Percival \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "TXT Data:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 msgid "empty" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:228 msgid "Service Type:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:229 msgid "Service Name:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:230 msgid "Domain Name:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:232 msgid "Address:" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve Service" msgstr "" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "Resolve Service Host Name" msgstr "" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancelled.\n" #: ../avahi-ui/avahi-ui.c:1048 msgid "_OK" msgstr "" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "" #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "" #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancelled.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr "" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr "" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "" #: ../avahi-utils/avahi-publish.c:216 #, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "" avahi-0.7/po/PaxHeaders.10109/en_NZ.po0000644000000000000000000000013213130651643014170 xustar0030 mtime=1499681699.143369767 30 atime=1499681699.143369767 30 ctime=1499681851.267961908 avahi-0.7/po/en_NZ.po0000644000175000017500000005774613130651643015622 0ustar00lathiatlathiat00000000000000# British English translation of Avahi # Copyright (C) 2009 Avahi's COPYRIGHT HOLDER # This file is distributed under the same licence as the Avahi package. # Bruce Cowan , 2009. msgid "" msgstr "" "Project-Id-Version: avahi\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-10-10 13:24+0200\n" "PO-Revision-Date: 2009-11-11 17:00+0000\n" "Last-Translator: Bruce Cowan \n" "Language-Team: British English \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=( n != 1 );\n" #: ../avahi-common/error.c:30 msgid "OK" msgstr "OK" #: ../avahi-common/error.c:31 msgid "Operation failed" msgstr "Operation failed" #: ../avahi-common/error.c:32 msgid "Bad state" msgstr "Bad state" #: ../avahi-common/error.c:33 msgid "Invalid host name" msgstr "Invalid host name" #: ../avahi-common/error.c:34 msgid "Invalid domain name" msgstr "Invalid domain name" #: ../avahi-common/error.c:35 msgid "No suitable network protocol available" msgstr "No suitable network protocol available" #: ../avahi-common/error.c:36 msgid "Invalid DNS TTL" msgstr "Invalid DNS TTL" #: ../avahi-common/error.c:37 msgid "Resource record key is pattern" msgstr "Resource record key is pattern" #: ../avahi-common/error.c:38 msgid "Local name collision" msgstr "Local name collision" #: ../avahi-common/error.c:39 msgid "Invalid record" msgstr "Invalid record" #: ../avahi-common/error.c:41 msgid "Invalid service name" msgstr "Invalid service name" #: ../avahi-common/error.c:42 msgid "Invalid service type" msgstr "Invalid service type" #: ../avahi-common/error.c:43 msgid "Invalid port number" msgstr "Invalid port number" #: ../avahi-common/error.c:44 msgid "Invalid record key" msgstr "Invalid record key" #: ../avahi-common/error.c:45 msgid "Invalid address" msgstr "Invalid address" #: ../avahi-common/error.c:46 msgid "Timeout reached" msgstr "Timeout reached" #: ../avahi-common/error.c:47 msgid "Too many clients" msgstr "Too many clients" #: ../avahi-common/error.c:48 msgid "Too many objects" msgstr "Too many objects" #: ../avahi-common/error.c:49 msgid "Too many entries" msgstr "Too many entries" #: ../avahi-common/error.c:50 msgid "OS Error" msgstr "OS Error" #: ../avahi-common/error.c:52 msgid "Access denied" msgstr "Access denied" #: ../avahi-common/error.c:53 msgid "Invalid operation" msgstr "Invalid operation" #: ../avahi-common/error.c:54 msgid "An unexpected D-Bus error occurred" msgstr "An unexpected D-Bus error occurred" #: ../avahi-common/error.c:55 msgid "Daemon connection failed" msgstr "Daemon connection failed" #: ../avahi-common/error.c:56 msgid "Memory exhausted" msgstr "Memory exhausted" #: ../avahi-common/error.c:57 msgid "The object passed in was not valid" msgstr "The object passed in was not valid" #: ../avahi-common/error.c:58 msgid "Daemon not running" msgstr "Daemon not running" #: ../avahi-common/error.c:59 msgid "Invalid interface index" msgstr "Invalid interface index" #: ../avahi-common/error.c:60 msgid "Invalid protocol specification" msgstr "Invalid protocol specification" #: ../avahi-common/error.c:61 msgid "Invalid flags" msgstr "Invalid flags" #: ../avahi-common/error.c:63 msgid "Not found" msgstr "Not found" #: ../avahi-common/error.c:64 msgid "Invalid configuration" msgstr "Invalid configuration" #: ../avahi-common/error.c:65 msgid "Version mismatch" msgstr "Version mismatch" #: ../avahi-common/error.c:66 msgid "Invalid service subtype" msgstr "Invalid service subtype" #: ../avahi-common/error.c:67 msgid "Invalid packet" msgstr "Invalid packet" #: ../avahi-common/error.c:68 msgid "Invalid DNS return code" msgstr "Invalid DNS return code" #: ../avahi-common/error.c:69 msgid "DNS failure: FORMERR" msgstr "DNS failure: FORMERR" #: ../avahi-common/error.c:70 msgid "DNS failure: SERVFAIL" msgstr "DNS failure: SERVFAIL" #: ../avahi-common/error.c:71 msgid "DNS failure: NXDOMAIN" msgstr "DNS failure: NXDOMAIN" #: ../avahi-common/error.c:72 msgid "DNS failure: NOTIMP" msgstr "DNS failure: NOTIMP" #: ../avahi-common/error.c:74 msgid "DNS failure: REFUSED" msgstr "DNS failure: REFUSED" #: ../avahi-common/error.c:75 msgid "DNS failure: YXDOMAIN" msgstr "DNS failure: YXDOMAIN" #: ../avahi-common/error.c:76 msgid "DNS failure: YXRRSET" msgstr "DNS failure: YXRRSET" #: ../avahi-common/error.c:77 msgid "DNS failure: NXRRSET" msgstr "DNS failure: NXRRSET" #: ../avahi-common/error.c:78 msgid "DNS failure: NOTAUTH" msgstr "DNS failure: NOTAUTH" #: ../avahi-common/error.c:79 msgid "DNS failure: NOTZONE" msgstr "DNS failure: NOTZONE" #: ../avahi-common/error.c:80 msgid "Invalid RDATA" msgstr "Invalid RDATA" #: ../avahi-common/error.c:81 msgid "Invalid DNS type" msgstr "Invalid DNS type" #: ../avahi-common/error.c:82 msgid "Invalid DNS class" msgstr "Invalid DNS class" #: ../avahi-common/error.c:83 msgid "Not supported" msgstr "Not supported" #: ../avahi-common/error.c:85 msgid "Not permitted" msgstr "Not permitted" #: ../avahi-common/error.c:86 msgid "Invalid argument" msgstr "Invalid argument" #: ../avahi-common/error.c:87 msgid "Is empty" msgstr "Is empty" #: ../avahi-common/error.c:88 msgid "The requested operation is invalid because redundant" msgstr "The requested operation is invalid because redundant" #: ../avahi-common/error.c:94 msgid "Invalid Error Code" msgstr "Invalid Error Code" #: ../avahi-discover-standalone/avahi-discover.ui.h:1 msgid "Avahi Discovery" msgstr "Avahi Discovery" #: ../avahi-discover-standalone/avahi-discover.ui.h:2 #: ../avahi-python/avahi-discover/avahi-discover.py:76 msgid "No service currently selected." msgstr "No service currently selected." #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:1 msgid "Avahi Zeroconf Browser" msgstr "Avahi Zeroconf Browser" #: ../avahi-python/avahi-discover/avahi-discover.desktop.in.in.h:2 msgid "Browse for Zeroconf services available on your network" msgstr "Browse for Zeroconf services available on your network" #: ../avahi-python/avahi-discover/avahi-discover.py:224 msgid "TXT" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:226 #, fuzzy msgid "TXT Data:" msgstr "TXT Data" #: ../avahi-python/avahi-discover/avahi-discover.py:226 #, fuzzy msgid "empty" msgstr "Is empty" #: ../avahi-python/avahi-discover/avahi-discover.py:228 #, fuzzy msgid "Service Type:" msgstr "Service Type" #: ../avahi-python/avahi-discover/avahi-discover.py:229 #, fuzzy msgid "Service Name:" msgstr "Service Name" #: ../avahi-python/avahi-discover/avahi-discover.py:230 #, fuzzy msgid "Domain Name:" msgstr "Domain" #: ../avahi-python/avahi-discover/avahi-discover.py:231 msgid "Interface:" msgstr "" #: ../avahi-python/avahi-discover/avahi-discover.py:232 #, fuzzy msgid "Address:" msgstr "Address" #: ../avahi-ui/avahi-ui.c:185 msgid "Browse Service Types" msgstr "Browse Service Types" #: ../avahi-ui/avahi-ui.c:185 msgid "A NULL terminated list of service types to browse for" msgstr "A NULL terminated list of service types to browse for" #: ../avahi-ui/avahi-ui.c:190 msgid "Domain" msgstr "Domain" #: ../avahi-ui/avahi-ui.c:190 msgid "The domain to browse in, or NULL for the default domain" msgstr "The domain to browse in, or NULL for the default domain" #: ../avahi-ui/avahi-ui.c:196 msgid "Service Type" msgstr "Service Type" #: ../avahi-ui/avahi-ui.c:196 msgid "The service type of the selected service" msgstr "The service type of the selected service" #: ../avahi-ui/avahi-ui.c:202 ../avahi-ui/avahi-ui.c:1035 msgid "Service Name" msgstr "Service Name" #: ../avahi-ui/avahi-ui.c:202 msgid "The service name of the selected service" msgstr "The service name of the selected service" #: ../avahi-ui/avahi-ui.c:208 msgid "Address" msgstr "Address" #: ../avahi-ui/avahi-ui.c:208 msgid "The address of the resolved service" msgstr "The address of the resolved service" #: ../avahi-ui/avahi-ui.c:213 msgid "Port" msgstr "Port" #: ../avahi-ui/avahi-ui.c:213 msgid "The IP port number of the resolved service" msgstr "The IP port number of the resolved service" #: ../avahi-ui/avahi-ui.c:219 msgid "Host Name" msgstr "Host Name" #: ../avahi-ui/avahi-ui.c:219 msgid "The host name of the resolved service" msgstr "The host name of the resolved service" #: ../avahi-ui/avahi-ui.c:225 msgid "TXT Data" msgstr "TXT Data" #: ../avahi-ui/avahi-ui.c:225 msgid "The TXT data of the resolved service" msgstr "The TXT data of the resolved service" #: ../avahi-ui/avahi-ui.c:230 #, fuzzy msgid "Resolve Service" msgstr "Resolve service" #: ../avahi-ui/avahi-ui.c:230 msgid "Resolve the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:236 #, fuzzy msgid "Resolve Service Host Name" msgstr "Resolve service host name" #: ../avahi-ui/avahi-ui.c:236 msgid "" "Resolve the host name of the selected service automatically before returning" msgstr "" #: ../avahi-ui/avahi-ui.c:242 msgid "Address family" msgstr "Address family" #: ../avahi-ui/avahi-ui.c:242 msgid "The address family for host name resolution" msgstr "The address family for host name resolution" #: ../avahi-ui/avahi-ui.c:326 #, c-format msgid "Avahi client failure: %s" msgstr "Avahi client failure: %s" #: ../avahi-ui/avahi-ui.c:388 #, c-format msgid "Avahi resolver failure: %s" msgstr "Avahi resolver failure: %s" #: ../avahi-ui/avahi-ui.c:518 #, c-format msgid "Browsing for service type %s in domain %s failed: %s" msgstr "Browsing for service type %s in domain %s failed: %s" #: ../avahi-ui/avahi-ui.c:519 ../avahi-utils/avahi-browse.c:168 #: ../avahi-utils/avahi-browse.c:169 ../avahi-utils/avahi-browse.c:178 #: ../avahi-utils/avahi-browse.c:179 msgid "n/a" msgstr "n/a" #: ../avahi-ui/avahi-ui.c:649 #, c-format msgid "Avahi domain browser failure: %s" msgstr "Avahi domain browser failure: %s" #: ../avahi-ui/avahi-ui.c:684 #, c-format msgid "Failed to read Avahi domain: %s" msgstr "Failed to read Avahi domain: %s" #: ../avahi-ui/avahi-ui.c:706 msgid "Browse service type list is empty!" msgstr "Browse service type list is empty!" #: ../avahi-ui/avahi-ui.c:717 #, c-format msgid "Failed to connect to Avahi server: %s" msgstr "Failed to connect to Avahi server: %s" #: ../avahi-ui/avahi-ui.c:735 msgid "Browsing for services on local network:" msgstr "Browsing for services on local network:" #: ../avahi-ui/avahi-ui.c:737 #, c-format msgid "Browsing for services in domain %s:" msgstr "Browsing for services in domain %s:" #: ../avahi-ui/avahi-ui.c:773 #, c-format msgid "Failed to create browser for %s: %s" msgstr "Failed to create browser for %s: %s" #: ../avahi-ui/avahi-ui.c:907 #, c-format msgid "Failed to create resolver for %s of type %s in domain %s: %s" msgstr "Failed to create resolver for %s of type %s in domain %s: %s" #: ../avahi-ui/avahi-ui.c:982 #, c-format msgid "Failed to create domain browser: %s" msgstr "Failed to create domain browser: %s" #: ../avahi-ui/avahi-ui.c:993 msgid "Change domain" msgstr "Change domain" #: ../avahi-ui/avahi-ui.c:1043 ../avahi-ui/avahi-ui.c:1180 msgid "Browsing..." msgstr "Browsing..." #: ../avahi-ui/avahi-ui.c:1047 ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 #: ../avahi-ui/bssh.c:161 #, fuzzy msgid "_Cancel" msgstr "Cancelled.\n" #: ../avahi-ui/avahi-ui.c:1048 #, fuzzy msgid "_OK" msgstr "OK" #: ../avahi-ui/avahi-ui.c:1134 msgid "Initializing..." msgstr "Initialising..." #: ../avahi-ui/avahi-ui.c:1162 msgid "Location" msgstr "Location" #: ../avahi-ui/avahi-ui.c:1167 ../avahi-utils/avahi-browse.c:553 msgid "Name" msgstr "Name" #: ../avahi-ui/avahi-ui.c:1172 ../avahi-utils/avahi-browse.c:553 msgid "Type" msgstr "Type" #: ../avahi-ui/avahi-ui.c:1184 msgid "_Domain..." msgstr "_Domain..." #: ../avahi-ui/bssh.c:55 #, c-format msgid "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" msgstr "" "%s [options]\n" "\n" " -h --help Show this help\n" " -s --ssh Browse SSH servers\n" " -v --vnc Browse VNC servers\n" " -S --shell Browse both SSH and VNC\n" " -d --domain=DOMAIN The domain to browse in\n" #: ../avahi-ui/bssh.c:101 ../avahi-utils/avahi-browse.c:775 #, c-format msgid "Too many arguments\n" msgstr "Too many arguments\n" #: ../avahi-ui/bssh.c:149 msgid "Choose Shell Server" msgstr "Choose Shell Server" #: ../avahi-ui/bssh.c:149 ../avahi-ui/bssh.c:156 ../avahi-ui/bssh.c:161 msgid "C_onnect" msgstr "" #: ../avahi-ui/bssh.c:151 msgid "Desktop" msgstr "Desktop" #: ../avahi-ui/bssh.c:152 msgid "Terminal" msgstr "Terminal" #: ../avahi-ui/bssh.c:156 msgid "Choose VNC server" msgstr "Choose VNC server" #: ../avahi-ui/bssh.c:161 msgid "Choose SSH server" msgstr "Choose SSH server" #: ../avahi-ui/bssh.c:185 #, c-format msgid "Connecting to '%s' ...\n" msgstr "Connecting to '%s' ...\n" #: ../avahi-ui/bssh.c:240 #, c-format msgid "execlp() failed: %s\n" msgstr "execlp() failed: %s\n" #: ../avahi-ui/bssh.c:250 #, c-format msgid "Canceled.\n" msgstr "Cancelled.\n" #: ../avahi-ui/bssh.desktop.in.in.h:1 msgid "Avahi SSH Server Browser" msgstr "Avahi SSH Server Browser" #: ../avahi-ui/bssh.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled SSH Servers" msgstr "Browse for Zeroconf-enabled SSH Servers" #: ../avahi-ui/bvnc.desktop.in.in.h:1 msgid "Avahi VNC Server Browser" msgstr "Avahi VNC Server Browser" #: ../avahi-ui/bvnc.desktop.in.in.h:2 msgid "Browse for Zeroconf-enabled VNC Servers" msgstr "Browse for Zeroconf-enabled VNC Servers" #: ../avahi-utils/avahi-browse.c:107 #, c-format msgid ": All for now\n" msgstr ": All for now\n" #: ../avahi-utils/avahi-browse.c:118 #, c-format msgid ": Cache exhausted\n" msgstr ": Cache exhausted\n" #: ../avahi-utils/avahi-browse.c:239 ../avahi-utils/avahi-browse.c:261 #, c-format msgid "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" msgstr "Failed to resolve service '%s' of type '%s' in domain '%s': %s\n" #: ../avahi-utils/avahi-browse.c:340 #, c-format msgid "service_browser failed: %s\n" msgstr "service_browser failed: %s\n" #: ../avahi-utils/avahi-browse.c:378 #, c-format msgid "avahi_service_browser_new() failed: %s\n" msgstr "avahi_service_browser_new() failed: %s\n" #: ../avahi-utils/avahi-browse.c:414 #, c-format msgid "service_type_browser failed: %s\n" msgstr "service_type_browser failed: %s\n" #: ../avahi-utils/avahi-browse.c:444 #, c-format msgid "avahi_service_type_browser_new() failed: %s\n" msgstr "avahi_service_type_browser_new() failed: %s\n" #: ../avahi-utils/avahi-browse.c:519 #, c-format msgid "avahi_domain_browser_new() failed: %s\n" msgstr "avahi_domain_browser_new() failed: %s\n" #: ../avahi-utils/avahi-browse.c:535 ../avahi-utils/avahi-publish.c:394 #: ../avahi-utils/avahi-resolve.c:280 ../avahi-utils/avahi-set-host-name.c:168 #, c-format msgid "Failed to query version string: %s\n" msgstr "Failed to query version string: %s\n" #: ../avahi-utils/avahi-browse.c:540 ../avahi-utils/avahi-publish.c:399 #: ../avahi-utils/avahi-resolve.c:285 ../avahi-utils/avahi-set-host-name.c:173 #: ../avahi-utils/avahi-set-host-name.c:189 #, c-format msgid "Failed to query host name: %s\n" msgstr "Failed to query host name: %s\n" #: ../avahi-utils/avahi-browse.c:544 ../avahi-utils/avahi-publish.c:403 #: ../avahi-utils/avahi-resolve.c:289 ../avahi-utils/avahi-set-host-name.c:177 #, c-format msgid "Server version: %s; Host name: %s\n" msgstr "Server version: %s; Host name: %s\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:549 #, c-format msgid "E Ifce Prot Domain\n" msgstr "E Ifce Prot Domain\n" #. Translators: This is a column heading with abbreviations for #. * Event (+/-), Network Interface, Protocol (IPv4/v6), Domain #: ../avahi-utils/avahi-browse.c:553 #, c-format msgid "E Ifce Prot %-*s %-20s Domain\n" msgstr "E Ifce Prot %-*s %-20s Domain\n" #. We have been disconnected, so let reconnect #: ../avahi-utils/avahi-browse.c:585 ../avahi-utils/avahi-publish.c:163 #, c-format msgid "Disconnected, reconnecting ...\n" msgstr "Disconnected, reconnecting ...\n" #: ../avahi-utils/avahi-browse.c:599 ../avahi-utils/avahi-browse.c:829 #: ../avahi-utils/avahi-publish.c:170 ../avahi-utils/avahi-publish.c:386 #: ../avahi-utils/avahi-resolve.c:272 ../avahi-utils/avahi-set-host-name.c:160 #, c-format msgid "Failed to create client object: %s\n" msgstr "Failed to create client object: %s\n" #: ../avahi-utils/avahi-browse.c:604 ../avahi-utils/avahi-publish.c:175 #: ../avahi-utils/avahi-resolve.c:143 ../avahi-utils/avahi-set-host-name.c:59 #, c-format msgid "Client failure, exiting: %s\n" msgstr "Client failure, exiting: %s\n" #: ../avahi-utils/avahi-browse.c:623 ../avahi-utils/avahi-publish.c:206 #, c-format msgid "Waiting for daemon ...\n" msgstr "Waiting for daemon ...\n" #: ../avahi-utils/avahi-browse.c:647 msgid "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" msgstr "" " -h --help Show this help\n" " -V --version Show version\n" " -D --browse-domains Browse for browsing domains instead of services\n" " -a --all Show all services, regardless of the type\n" " -d --domain=DOMAIN The domain to browse in\n" " -v --verbose Enable verbose mode\n" " -t --terminate Terminate after dumping a more or less complete " "list\n" " -c --cache Terminate after dumping all entries from the cache\n" " -l --ignore-local Ignore local services\n" " -r --resolve Resolve services found\n" " -f --no-fail Don't fail if the daemon is not available\n" " -p --parsable Output in parsable format\n" #: ../avahi-utils/avahi-browse.c:660 msgid "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" msgstr "" " -k --no-db-lookup Don't lookup service types\n" " -b --dump-db Dump service type database\n" #: ../avahi-utils/avahi-browse.c:766 ../avahi-utils/avahi-resolve.c:219 #, c-format msgid "Too few arguments\n" msgstr "Too few arguments\n" #: ../avahi-utils/avahi-browse.c:821 ../avahi-utils/avahi-publish.c:378 #: ../avahi-utils/avahi-resolve.c:264 ../avahi-utils/avahi-set-host-name.c:152 #, c-format msgid "Failed to create simple poll object.\n" msgstr "Failed to create simple poll object.\n" #: ../avahi-utils/avahi-publish.c:76 #, c-format msgid "Established under name '%s'\n" msgstr "Established under name '%s'\n" #: ../avahi-utils/avahi-publish.c:81 #, c-format msgid "Failed to register: %s\n" msgstr "Failed to register: %s\n" #: ../avahi-utils/avahi-publish.c:94 #, c-format msgid "Name collision, picking new name '%s'.\n" msgstr "Name collision, picking new name '%s'.\n" #: ../avahi-utils/avahi-publish.c:114 #, c-format msgid "Failed to create entry group: %s\n" msgstr "Failed to create entry group: %s\n" #: ../avahi-utils/avahi-publish.c:124 #, c-format msgid "Failed to add address: %s\n" msgstr "Failed to add address: %s\n" #: ../avahi-utils/avahi-publish.c:134 #, c-format msgid "Failed to add service: %s\n" msgstr "Failed to add service: %s\n" #: ../avahi-utils/avahi-publish.c:140 #, c-format msgid "Failed to add subtype '%s': %s\n" msgstr "Failed to add subtype '%s': %s\n" #: ../avahi-utils/avahi-publish.c:191 #, c-format msgid "Host name conflict\n" msgstr "Host name conflict\n" #: ../avahi-utils/avahi-publish.c:216 #, fuzzy, c-format msgid "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -R --no-reverse Do not publish reverse entry with address\n" " -f --no-fail Don't fail if the daemon is not available\n" msgstr "" "%s [options] %s []\n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -s --service Publish service\n" " -a --address Publish address\n" " -v --verbose Enable verbose mode\n" " -d --domain=DOMAIN Domain to publish service in\n" " -H --host=DOMAIN Host where service resides\n" " --subtype=SUBTYPE An additional subtype to register this service " "with\n" " -f --no-fail Don't fail if the daemon is not available\n" #: ../avahi-utils/avahi-publish.c:303 ../avahi-utils/avahi-publish.c:318 #, c-format msgid "Bad number of arguments\n" msgstr "Bad number of arguments\n" #: ../avahi-utils/avahi-publish.c:329 #, c-format msgid "Failed to parse port number: %s\n" msgstr "Failed to parse port number: %s\n" #: ../avahi-utils/avahi-publish.c:361 ../avahi-utils/avahi-resolve.c:246 #, c-format msgid "No command specified.\n" msgstr "No command specified.\n" #: ../avahi-utils/avahi-resolve.c:89 #, c-format msgid "Failed to resolve host name '%s': %s\n" msgstr "Failed to resolve host name '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:126 #, c-format msgid "Failed to resolve address '%s': %s\n" msgstr "Failed to resolve address '%s': %s\n" #: ../avahi-utils/avahi-resolve.c:157 #, c-format msgid "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" msgstr "" "%s [options] %s \n" "%s [options] %s
    \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -n --name Resolve host name\n" " -a --address Resolve address\n" " -v --verbose Enable verbose mode\n" " -6 Lookup IPv6 address\n" " -4 Lookup IPv4 address\n" #: ../avahi-utils/avahi-resolve.c:299 ../avahi-utils/avahi-set-host-name.c:181 #, c-format msgid "Failed to create host name resolver: %s\n" msgstr "Failed to create host name resolver: %s\n" #: ../avahi-utils/avahi-resolve.c:309 #, c-format msgid "Failed to parse address '%s'\n" msgstr "Failed to parse address '%s'\n" #: ../avahi-utils/avahi-resolve.c:314 #, c-format msgid "Failed to create address resolver: %s\n" msgstr "Failed to create address resolver: %s\n" #: ../avahi-utils/avahi-set-host-name.c:73 #, c-format msgid "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" msgstr "" "%s [options] \n" "\n" " -h --help Show this help\n" " -V --version Show version\n" " -v --verbose Enable verbose mode\n" #: ../avahi-utils/avahi-set-host-name.c:114 #, c-format msgid "Invalid number of arguments, expecting exactly one.\n" msgstr "Invalid number of arguments, expecting exactly one.\n" #: ../avahi-utils/avahi-set-host-name.c:193 #, c-format msgid "Host name successfully changed to %s\n" msgstr "Host name successfully changed to %s\n" avahi-0.7/po/PaxHeaders.10109/ChangeLog0000644000000000000000000000013213130652004014361 xustar0030 mtime=1499681796.621182869 30 atime=1499681796.621182869 30 ctime=1499681851.279961638 avahi-0.7/po/ChangeLog0000644000175000017500000000072413130652004015773 0ustar00lathiatlathiat000000000000002017-07-10 gettextize * Makefile.in.in: New file, from gettext-0.19.8.1. * Rules-quot: New file, from gettext-0.19.8.1. * boldquot.sed: New file, from gettext-0.19.8.1. * en@boldquot.header: New file, from gettext-0.19.8.1. * en@quot.header: New file, from gettext-0.19.8.1. * insert-header.sin: New file, from gettext-0.19.8.1. * quot.sed: New file, from gettext-0.19.8.1. * remove-potcdate.sin: New file, from gettext-0.19.8.1. avahi-0.7/po/PaxHeaders.10109/POTFILES.in0000644000000000000000000000013213130651643014374 xustar0030 mtime=1499681699.139369856 30 atime=1499681805.960973954 30 ctime=1499681851.259962087 avahi-0.7/po/POTFILES.in0000644000175000017500000000071113130651643016002 0ustar00lathiatlathiat00000000000000# List of source files which contain translatable strings. avahi-common/error.c [type: gettext/glade]avahi-discover-standalone/avahi-discover.ui avahi-python/avahi-discover/avahi-discover.desktop.in.in avahi-python/avahi-discover/avahi-discover.py avahi-ui/avahi-ui.c avahi-ui/bssh.c avahi-ui/bssh.desktop.in.in avahi-ui/bvnc.desktop.in.in avahi-utils/avahi-browse.c avahi-utils/avahi-publish.c avahi-utils/avahi-resolve.c avahi-utils/avahi-set-host-name.c avahi-0.7/PaxHeaders.10109/common0000644000000000000000000000013213130652072013411 xustar0030 mtime=1499681850.043989219 30 atime=1499681851.283961552 30 ctime=1499681850.043989219 avahi-0.7/common/0000755000175000017500000000000013130652072015075 5ustar00lathiatlathiat00000000000000avahi-0.7/common/PaxHeaders.10109/lib-prefix.m40000644000000000000000000000013213130652004015764 xustar0030 mtime=1499681796.757179825 30 atime=1499681797.069172845 30 ctime=1499681850.039989308 avahi-0.7/common/lib-prefix.m40000644000175000017500000002042213130652004017373 0ustar00lathiatlathiat00000000000000# lib-prefix.m4 serial 7 (gettext-0.18) dnl Copyright (C) 2001-2005, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a variable acl_libdirstem, containing the basename of the libdir, either dnl "lib" or "lib64" or "lib/64", dnl - a variable acl_libdirstem2, as a secondary possible value for dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or dnl "lib/amd64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. dnl On glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine dnl the compiler's default mode by looking at the compiler's library search dnl path. If at least one of its elements ends in /lib64 or points to a dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. dnl Otherwise we use the default, namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], [AC_EGREP_CPP([sixtyfour bits], [ #ifdef _LP64 sixtyfour bits #endif ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) ]) if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" ]) avahi-0.7/common/PaxHeaders.10109/lib-link.m40000644000000000000000000000013213130652004015424 xustar0030 mtime=1499681796.757179825 30 atime=1499681797.069172845 30 ctime=1499681850.039989308 avahi-0.7/common/lib-link.m40000644000175000017500000010044313130652004017035 0ustar00lathiatlathiat00000000000000# lib-link.m4 serial 26 (gettext-0.18.2) dnl Copyright (C) 2001-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.54]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[m4_translit([$1],[./+-], [____])]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[m4_translit([$1],[./+-], [____])]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_LINK_IFELSE( [AC_LANG_PROGRAM([[$3]], [[$4]])], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_libname_spec, dnl acl_library_names_spec, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl Autoconf >= 2.61 supports dots in --with options. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH(P_A_C_K[-prefix], [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) avahi-0.7/common/PaxHeaders.10109/doxygen.m40000644000000000000000000000013213130651643015410 xustar0030 mtime=1499681699.127370127 30 atime=1499681797.053173204 30 ctime=1499681849.991990379 avahi-0.7/common/doxygen.m40000644000175000017500000002641413130651643017026 0ustar00lathiatlathiat00000000000000# This file is part of Autoconf. -*- Autoconf -*- # Copyright (C) 2004 Oren Ben-Kiki # This file is distributed under the same terms as the Autoconf macro files. # Generate automatic documentation using Doxygen. Works in concert with the # aminclude.m4 file and a compatible doxygen configuration file. Defines the # following public macros: # # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature. # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics, # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI' # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF', # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide' # paper size. # # By default, HTML, PDF and PS documentation is generated as this seems to be # the most popular and portable combination. MAN pages created by Doxygen are # usually problematic, though by picking an appropriate subset and doing some # massaging they might be better than nothing. CHM and RTF are specific for MS # (note that you can't generate both HTML and CHM at the same time). The XML is # rather useless unless you apply specialized post-processing to it. # # The macro mainly controls the default state of the feature. The use can # override the default by specifying --enable or --disable. The macros ensure # that contradictory flags are not given (e.g., --enable-doxygen-html and # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.) # Finally, each feature will be automatically disabled (with a warning) if the # required programs are missing. # # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with # the following parameters: a one-word name for the project for use as a # filename base etc., an optional configuration file name (the default is # 'Doxyfile', the same as Doxygen's default), and an optional output directory # name (the default is 'doxygen-doc'). ## ----------## ## Defaults. ## ## ----------## DX_ENV="" AC_DEFUN([DX_FEATURE_doc], ON) AC_DEFUN([DX_FEATURE_dot], ON) AC_DEFUN([DX_FEATURE_man], OFF) AC_DEFUN([DX_FEATURE_html], ON) AC_DEFUN([DX_FEATURE_chm], OFF) AC_DEFUN([DX_FEATURE_chi], OFF) AC_DEFUN([DX_FEATURE_rtf], OFF) AC_DEFUN([DX_FEATURE_xml], OFF) AC_DEFUN([DX_FEATURE_pdf], ON) AC_DEFUN([DX_FEATURE_ps], ON) ## --------------- ## ## Private macros. ## ## --------------- ## # DX_ENV_APPEND(VARIABLE, VALUE) # ------------------------------ # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen. AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])]) # DX_DIRNAME_EXPR # --------------- # Expand into a shell expression prints the directory part of a path. AC_DEFUN([DX_DIRNAME_EXPR], [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']]) # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF) # ------------------------------------- # Expands according to the M4 (static) status of the feature. AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])]) # DX_REQUIRE_PROG(VARIABLE, PROGRAM) # ---------------------------------- # Require the specified program to be found for the DX_CURRENT_FEATURE to work. AC_DEFUN([DX_REQUIRE_PROG], [ AC_PATH_TOOL([$1], [$2]) if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION]) AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0) fi ]) # DX_TEST_FEATURE(FEATURE) # ------------------------ # Expand to a shell expression testing whether the feature is active. AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1]) # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE) # ------------------------------------------------- # Verify that a required features has the right state before trying to turn on # the DX_CURRENT_FEATURE. AC_DEFUN([DX_CHECK_DEPEND], [ test "$DX_FLAG_$1" = "$2" \ || AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1, requires, contradicts) doxygen-DX_CURRENT_FEATURE]) ]) # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE) # ---------------------------------------------------------- # Turn off the DX_CURRENT_FEATURE if the required feature is off. AC_DEFUN([DX_CLEAR_DEPEND], [ test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0) ]) # DX_FEATURE_ARG(FEATURE, DESCRIPTION, # CHECK_DEPEND, CLEAR_DEPEND, # REQUIRE, DO-IF-ON, DO-IF-OFF) # -------------------------------------------- # Parse the command-line option controlling a feature. CHECK_DEPEND is called # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND), # otherwise CLEAR_DEPEND is called to turn off the default state if a required # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature. AC_DEFUN([DX_ARG_ABLE], [ AC_DEFUN([DX_CURRENT_FEATURE], [$1]) AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2]) AC_ARG_ENABLE(doxygen-$1, [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1], [--enable-doxygen-$1]), DX_IF_FEATURE([$1], [don't $2], [$2]))], [ case "$enableval" in #( y|Y|yes|Yes|YES) AC_SUBST([DX_FLAG_$1], 1) $3 ;; #( n|N|no|No|NO) AC_SUBST([DX_FLAG_$1], 0) ;; #( *) AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1]) ;; esac ], [ AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)]) $4 ]) if DX_TEST_FEATURE([$1]); then $5 : fi if DX_TEST_FEATURE([$1]); then AM_CONDITIONAL(DX_COND_$1, :) $6 : else AM_CONDITIONAL(DX_COND_$1, false) $7 : fi ]) ## -------------- ## ## Public macros. ## ## -------------- ## # DX_XXX_FEATURE(DEFAULT_STATE) # ----------------------------- AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])]) AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])]) AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])]) AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])]) AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])]) AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])]) AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])]) AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])]) AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])]) AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])]) # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR]) # --------------------------------------------------------- # PROJECT also serves as the base name for the documentation files. # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc". AC_DEFUN([DX_INIT_DOXYGEN], [ # Files: AC_SUBST([DX_PROJECT], [$1]) AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])]) AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])]) # Environment variables used inside doxygen.cfg: DX_ENV_APPEND(SRCDIR, $srcdir) DX_ENV_APPEND(PROJECT, $DX_PROJECT) DX_ENV_APPEND(DOCDIR, $DX_DOCDIR) DX_ENV_APPEND(VERSION, $PACKAGE_VERSION) # Doxygen itself: DX_ARG_ABLE(doc, [generate any doxygen documentation], [], [], [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen) DX_REQUIRE_PROG([DX_PERL], perl)], [DX_ENV_APPEND(PERL_PATH, $DX_PERL)]) # Dot for graphics: DX_ARG_ABLE(dot, [generate graphics for doxygen documentation], [DX_CHECK_DEPEND(doc, 1)], [DX_CLEAR_DEPEND(doc, 1)], [DX_REQUIRE_PROG([DX_DOT], dot)], [DX_ENV_APPEND(HAVE_DOT, YES) DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])], [DX_ENV_APPEND(HAVE_DOT, NO)]) # Man pages generation: DX_ARG_ABLE(man, [generate doxygen manual pages], [DX_CHECK_DEPEND(doc, 1)], [DX_CLEAR_DEPEND(doc, 1)], [], [DX_ENV_APPEND(GENERATE_MAN, YES)], [DX_ENV_APPEND(GENERATE_MAN, NO)]) # RTF file generation: DX_ARG_ABLE(rtf, [generate doxygen RTF documentation], [DX_CHECK_DEPEND(doc, 1)], [DX_CLEAR_DEPEND(doc, 1)], [], [DX_ENV_APPEND(GENERATE_RTF, YES)], [DX_ENV_APPEND(GENERATE_RTF, NO)]) # XML file generation: DX_ARG_ABLE(xml, [generate doxygen XML documentation], [DX_CHECK_DEPEND(doc, 1)], [DX_CLEAR_DEPEND(doc, 1)], [], [DX_ENV_APPEND(GENERATE_XML, YES)], [DX_ENV_APPEND(GENERATE_XML, NO)]) # (Compressed) HTML help generation: DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation], [DX_CHECK_DEPEND(doc, 1)], [DX_CLEAR_DEPEND(doc, 1)], [DX_REQUIRE_PROG([DX_HHC], hhc)], [DX_ENV_APPEND(HHC_PATH, $DX_HHC) DX_ENV_APPEND(GENERATE_HTML, YES) DX_ENV_APPEND(GENERATE_HTMLHELP, YES)], [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)]) # Seperate CHI file generation. DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file], [DX_CHECK_DEPEND(chm, 1)], [DX_CLEAR_DEPEND(chm, 1)], [], [DX_ENV_APPEND(GENERATE_CHI, YES)], [DX_ENV_APPEND(GENERATE_CHI, NO)]) # Plain HTML pages generation: DX_ARG_ABLE(html, [generate doxygen plain HTML documentation], [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)], [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)], [], [DX_ENV_APPEND(GENERATE_HTML, YES)], [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)]) # PostScript file generation: DX_ARG_ABLE(ps, [generate doxygen PostScript documentation], [DX_CHECK_DEPEND(doc, 1)], [DX_CLEAR_DEPEND(doc, 1)], [DX_REQUIRE_PROG([DX_LATEX], latex) DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex) DX_REQUIRE_PROG([DX_DVIPS], dvips) DX_REQUIRE_PROG([DX_EGREP], egrep)]) # PDF file generation: DX_ARG_ABLE(pdf, [generate doxygen PDF documentation], [DX_CHECK_DEPEND(doc, 1)], [DX_CLEAR_DEPEND(doc, 1)], [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex) DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex) DX_REQUIRE_PROG([DX_EGREP], egrep)]) # LaTeX generation for PS and/or PDF: if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then AM_CONDITIONAL(DX_COND_latex, :) DX_ENV_APPEND(GENERATE_LATEX, YES) else AM_CONDITIONAL(DX_COND_latex, false) DX_ENV_APPEND(GENERATE_LATEX, NO) fi # Paper size for PS and/or PDF: AC_ARG_VAR(DOXYGEN_PAPER_SIZE, [a4wide (default), a4, letter, legal or executive]) case "$DOXYGEN_PAPER_SIZE" in #( "") AC_SUBST(DOXYGEN_PAPER_SIZE, "") ;; #( a4wide|a4|letter|legal|executive) DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE) ;; #( *) AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE']) ;; esac #For debugging: #echo DX_FLAG_doc=$DX_FLAG_doc #echo DX_FLAG_dot=$DX_FLAG_dot #echo DX_FLAG_man=$DX_FLAG_man #echo DX_FLAG_html=$DX_FLAG_html #echo DX_FLAG_chm=$DX_FLAG_chm #echo DX_FLAG_chi=$DX_FLAG_chi #echo DX_FLAG_rtf=$DX_FLAG_rtf #echo DX_FLAG_xml=$DX_FLAG_xml #echo DX_FLAG_pdf=$DX_FLAG_pdf #echo DX_FLAG_ps=$DX_FLAG_ps #echo DX_ENV=$DX_ENV ]) avahi-0.7/common/PaxHeaders.10109/python.m40000644000000000000000000000013213130651643015254 xustar0030 mtime=1499681699.131370037 30 atime=1499681797.053173204 30 ctime=1499681849.991990379 avahi-0.7/common/python.m40000644000175000017500000000345213130651643016667 0ustar00lathiatlathiat00000000000000## this one is commonly used with AM_PATH_PYTHONDIR ... dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]]) dnl Check if a module containing a given symbol is visible to python. AC_DEFUN([AM_CHECK_PYMOD], [AC_REQUIRE([AM_PATH_PYTHON]) py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'` AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1) AC_CACHE_VAL(py_cv_mod_$py_mod_var, [ ifelse([$2],[], [prog=" import sys try: import $1 except ImportError: sys.exit(1) except: sys.exit(0) sys.exit(0)"], [prog=" import $1 $1.$2"]) if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC then eval "py_cv_mod_$py_mod_var=yes" else eval "py_cv_mod_$py_mod_var=no" fi ]) py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` if test "x$py_val" != xno; then AC_MSG_RESULT(yes) ifelse([$3], [],, [$3 ])dnl else AC_MSG_RESULT(no) ifelse([$4], [],, [$4 ])dnl fi ]) dnl a macro to check for ability to create python extensions dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE]) dnl function also defines PYTHON_INCLUDES AC_DEFUN([AM_CHECK_PYTHON_HEADERS], [AC_REQUIRE([AM_PATH_PYTHON]) AC_MSG_CHECKING(for headers required to compile python extensions) dnl deduce PYTHON_INCLUDES py_prefix=`$PYTHON -c "import sys; print sys.prefix"` py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" if test "$py_prefix" != "$py_exec_prefix"; then PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" fi AC_SUBST(PYTHON_INCLUDES) dnl check if the headers exist: save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" AC_TRY_CPP([#include ],dnl [AC_MSG_RESULT(found) $1],dnl [AC_MSG_RESULT(not found) $2]) CPPFLAGS="$save_CPPFLAGS" ]) avahi-0.7/common/PaxHeaders.10109/nls.m40000644000000000000000000000013213130652004014517 xustar0030 mtime=1499681796.757179825 30 atime=1499681797.057173114 30 ctime=1499681849.991990379 avahi-0.7/common/nls.m40000644000175000017500000000230713130652004016130 0ustar00lathiatlathiat00000000000000# nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software dnl Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) avahi-0.7/common/PaxHeaders.10109/lib-ld.m40000644000000000000000000000013213130652004015066 xustar0030 mtime=1499681796.757179825 30 atime=1499681797.069172845 30 ctime=1499681850.039989308 avahi-0.7/common/lib-ld.m40000644000175000017500000000714313130652004016502 0ustar00lathiatlathiat00000000000000# lib-ld.m4 serial 6 dnl Copyright (C) 1996-2003, 2009-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid dnl collision with libtool.m4. dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 /dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$acl_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 , 1995-2000. dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value '$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) #else #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 #endif $gt_revision_test_code ]], [[ bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION ]])], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) avahi-0.7/common/PaxHeaders.10109/ltversion.m40000644000000000000000000000013213130652005015751 xustar0030 mtime=1499681797.013174097 30 atime=1499681797.057173114 30 ctime=1499681849.991990379 avahi-0.7/common/ltversion.m40000644000175000017500000000127313130652005017363 0ustar00lathiatlathiat00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 4179 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.6]) m4_define([LT_PACKAGE_REVISION], [2.4.6]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.6' macro_revision='2.4.6' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) avahi-0.7/common/PaxHeaders.10109/doxygen.mk0000644000000000000000000000013113130651643015476 xustar0030 mtime=1499681699.127370127 30 atime=1499681801.021084437 29 ctime=1499681849.99599029 avahi-0.7/common/doxygen.mk0000644000175000017500000001142613130651643017112 0ustar00lathiatlathiat00000000000000# Copyright (C) 2004 Oren Ben-Kiki # This file is distributed under the same terms as the Automake macro files. # Generate automatic documentation using Doxygen. Goals and variables values # are controlled by the various DX_COND_??? conditionals set by autoconf. # # The provided goals are: # doxygen-doc: Generate all doxygen documentation. # doxygen-run: Run doxygen, which will generate some of the documentation # (HTML, CHM, CHI, MAN, RTF, XML) but will not do the post # processing required for the rest of it (PS, PDF, and some MAN). # doxygen-man: Rename some doxygen generated man pages. # doxygen-ps: Generate doxygen PostScript documentation. # doxygen-pdf: Generate doxygen PDF documentation. # # Note that by default these are not integrated into the automake goals. If # doxygen is used to generate man pages, you can achieve this integration by # setting man3_MANS to the list of man pages generated and then adding the # dependency: # # $(man3_MANS): doxygen-doc # # This will cause make to run doxygen and generate all the documentation. # # The following variable is intended for use in Makefile.am: # # DX_CLEANFILES = everything to clean. # # This is usually added to MOSTLYCLEANFILES. ## --------------------------------- ## ## Format-independent Doxygen rules. ## ## --------------------------------- ## if DX_COND_doc ## ------------------------------- ## ## Rules specific for HTML output. ## ## ------------------------------- ## if DX_COND_html DX_CLEAN_HTML = @DX_DOCDIR@/html endif DX_COND_html ## ------------------------------ ## ## Rules specific for CHM output. ## ## ------------------------------ ## if DX_COND_chm DX_CLEAN_CHM = @DX_DOCDIR@/chm if DX_COND_chi DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi endif DX_COND_chi endif DX_COND_chm ## ------------------------------ ## ## Rules specific for MAN output. ## ## ------------------------------ ## if DX_COND_man DX_CLEAN_MAN = @DX_DOCDIR@/man endif DX_COND_man ## ------------------------------ ## ## Rules specific for RTF output. ## ## ------------------------------ ## if DX_COND_rtf DX_CLEAN_RTF = @DX_DOCDIR@/rtf endif DX_COND_rtf ## ------------------------------ ## ## Rules specific for XML output. ## ## ------------------------------ ## if DX_COND_xml DX_CLEAN_XML = @DX_DOCDIR@/xml endif DX_COND_xml ## ----------------------------- ## ## Rules specific for PS output. ## ## ----------------------------- ## if DX_COND_ps DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps DX_PS_GOAL = doxygen-ps doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag cd @DX_DOCDIR@/latex; \ rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ $(DX_LATEX) refman.tex; \ $(MAKEINDEX_PATH) refman.idx; \ $(DX_LATEX) refman.tex; \ countdown=5; \ while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ refman.log > /dev/null 2>&1 \ && test $$countdown -gt 0; do \ $(DX_LATEX) refman.tex; \ countdown=`expr $$countdown - 1`; \ done; \ $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi endif DX_COND_ps ## ------------------------------ ## ## Rules specific for PDF output. ## ## ------------------------------ ## if DX_COND_pdf DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf DX_PDF_GOAL = doxygen-pdf doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag cd @DX_DOCDIR@/latex; \ rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ $(DX_PDFLATEX) refman.tex; \ $(DX_MAKEINDEX) refman.idx; \ $(DX_PDFLATEX) refman.tex; \ countdown=5; \ while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ refman.log > /dev/null 2>&1 \ && test $$countdown -gt 0; do \ $(DX_PDFLATEX) refman.tex; \ countdown=`expr $$countdown - 1`; \ done; \ mv refman.pdf ../@PACKAGE@.pdf endif DX_COND_pdf ## ------------------------------------------------- ## ## Rules specific for LaTeX (shared for PS and PDF). ## ## ------------------------------------------------- ## if DX_COND_latex DX_CLEAN_LATEX = @DX_DOCDIR@/latex endif DX_COND_latex .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL) .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS) $(DX_INPUT) $(DX_EXAMPLE_PATH)/$(DX_EXAMPLE_PATTERNS) rm -rf @DX_DOCDIR@ INPUT='$(DX_INPUT)' EXAMPLE_PATH='$(DX_EXAMPLE_PATH)' EXAMPLE_PATTERNS='$(DX_EXAMPLE_PATTERNS)' \ $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) DX_CLEANFILES = \ @DX_DOCDIR@/@PACKAGE@.tag \ -r \ $(DX_CLEAN_HTML) \ $(DX_CLEAN_CHM) \ $(DX_CLEAN_CHI) \ $(DX_CLEAN_MAN) \ $(DX_CLEAN_RTF) \ $(DX_CLEAN_XML) \ $(DX_CLEAN_PS) \ $(DX_CLEAN_PDF) \ $(DX_CLEAN_LATEX) endif DX_COND_doc avahi-0.7/common/PaxHeaders.10109/intltool.m40000644000000000000000000000013213130652004015567 xustar0030 mtime=1499681796.893176783 30 atime=1499681797.069172845 30 ctime=1499681849.987990469 avahi-0.7/common/intltool.m40000644000175000017500000002636113130652004017206 0ustar00lathiatlathiat00000000000000## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*- ## Copyright (C) 2001 Eazel, Inc. ## Author: Maciej Stachowiak ## Kenneth Christiansen ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ## ## As a special exception to the GNU General Public License, if you ## distribute this file as part of a program that contains a ## configuration script generated by Autoconf, you may include it under ## the same distribution terms that you use for the rest of that program. dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) # serial 42 IT_PROG_INTLTOOL AC_DEFUN([IT_PROG_INTLTOOL], [ AC_PREREQ([2.50])dnl AC_REQUIRE([AM_NLS])dnl case "$am__api_version" in 1.[01234]) AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) ;; *) ;; esac INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` if test -n "$1"; then AC_MSG_CHECKING([for intltool >= $1]) AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) fi AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi AC_SUBST([AM_DEFAULT_VERBOSITY]) INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' AC_SUBST(INTLTOOL_V_MERGE) AC_SUBST(INTLTOOL__v_MERGE_) AC_SUBST(INTLTOOL__v_MERGE_0) INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' intltool__v_merge_options_0='-q' AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) AC_SUBST(intltool__v_merge_options_) AC_SUBST(intltool__v_merge_options_0) INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' else INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' fi INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' _IT_SUBST(INTLTOOL_DESKTOP_RULE) _IT_SUBST(INTLTOOL_DIRECTORY_RULE) _IT_SUBST(INTLTOOL_KEYS_RULE) _IT_SUBST(INTLTOOL_PROP_RULE) _IT_SUBST(INTLTOOL_OAF_RULE) _IT_SUBST(INTLTOOL_PONG_RULE) _IT_SUBST(INTLTOOL_SERVER_RULE) _IT_SUBST(INTLTOOL_SHEET_RULE) _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) _IT_SUBST(INTLTOOL_UI_RULE) _IT_SUBST(INTLTOOL_XAM_RULE) _IT_SUBST(INTLTOOL_KBD_RULE) _IT_SUBST(INTLTOOL_XML_RULE) _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) _IT_SUBST(INTLTOOL_CAVES_RULE) _IT_SUBST(INTLTOOL_SCHEMAS_RULE) _IT_SUBST(INTLTOOL_THEME_RULE) _IT_SUBST(INTLTOOL_SERVICE_RULE) _IT_SUBST(INTLTOOL_POLICY_RULE) # Check the gettext tools to make sure they are GNU AC_PATH_PROG(XGETTEXT, xgettext) AC_PATH_PROG(MSGMERGE, msgmerge) AC_PATH_PROG(MSGFMT, msgfmt) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) fi AC_PATH_PROG(INTLTOOL_PERL, perl) if test -z "$INTLTOOL_PERL"; then AC_MSG_ERROR([perl not found]) fi AC_MSG_CHECKING([for perl >= 5.8.1]) $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then AC_MSG_ERROR([perl 5.8.1 is required for intltool]) else IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` AC_MSG_RESULT([$IT_PERL_VERSION]) fi if test "x$2" != "xno-xml"; then AC_MSG_CHECKING([for XML::Parser]) if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then AC_MSG_RESULT([ok]) else AC_MSG_ERROR([XML::Parser perl module is required for intltool]) fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile AC_SUBST(ALL_LINGUAS) IT_PO_SUBDIR([po]) ]) # IT_PO_SUBDIR(DIRNAME) # --------------------- # All po subdirs have to be declared with this macro; the subdir "po" is # declared by IT_PROG_INTLTOOL. # AC_DEFUN([IT_PO_SUBDIR], [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. dnl dnl The following CONFIG_COMMANDS should be executed at the very end dnl of config.status. AC_CONFIG_COMMANDS_PRE([ AC_CONFIG_COMMANDS([$1/stamp-it], [ if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) fi rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" >"$1/stamp-it.tmp" [sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" ] [sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r $1/POTFILES } ' "$1/Makefile.in" >"$1/Makefile"] rm -f "$1/Makefile.tmp" mv "$1/stamp-it.tmp" "$1/stamp-it" ]) ])dnl ]) # _IT_SUBST(VARIABLE) # ------------------- # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST # AC_DEFUN([_IT_SUBST], [ AC_SUBST([$1]) m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) ] ) # deprecated macros AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) # A hint is needed for aclocal from Automake <= 1.9.4: # AC_DEFUN([AC_PROG_INTLTOOL], ...) avahi-0.7/common/PaxHeaders.10109/lt~obsolete.m40000644000000000000000000000013213130652005016276 xustar0030 mtime=1499681797.017174008 30 atime=1499681797.057173114 30 ctime=1499681849.991990379 avahi-0.7/common/lt~obsolete.m40000644000175000017500000001377413130652005017721 0ustar00lathiatlathiat00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software # Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) avahi-0.7/common/PaxHeaders.10109/progtest.m40000644000000000000000000000013213130652004015572 xustar0030 mtime=1499681796.761179735 30 atime=1499681797.053173204 30 ctime=1499681850.043989219 avahi-0.7/common/progtest.m40000644000175000017500000000602413130652004017203 0ustar00lathiatlathiat00000000000000# progtest.m4 serial 7 (gettext-0.18.2) dnl Copyright (C) 1996-2003, 2005, 2008-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which # contains only /bin. Note that ksh looks also at the FPATH variable, # so we have to set that as well for the test. PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ || PATH_SEPARATOR=';' } fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) avahi-0.7/common/PaxHeaders.10109/ltoptions.m40000644000000000000000000000013213130652005015757 xustar0030 mtime=1499681797.009174187 30 atime=1499681797.057173114 30 ctime=1499681849.987990469 avahi-0.7/common/ltoptions.m40000644000175000017500000003426213130652005017375 0ustar00lathiatlathiat00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], [_LT_WITH_AIX_SONAME([aix])]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the 'shared' and # 'disable-shared' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the 'static' and # 'disable-static' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the 'fast-install' # and 'disable-fast-install' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_AIX_SONAME([DEFAULT]) # ---------------------------------- # implement the --with-aix-soname flag, and support the `aix-soname=aix' # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. m4_define([_LT_WITH_AIX_SONAME], [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[[5-9]]*,yes) AC_MSG_CHECKING([which variant of shared library versioning to provide]) AC_ARG_WITH([aix-soname], [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], [case $withval in aix|svr4|both) ;; *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]) ;; esac lt_cv_with_aix_soname=$with_aix_soname], [AC_CACHE_VAL([lt_cv_with_aix_soname], [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) with_aix_soname=$lt_cv_with_aix_soname]) AC_MSG_RESULT([$with_aix_soname]) if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac _LT_DECL([], [shared_archive_member_spec], [0], [Shared archive member basename, for filename based shared library versioning on AIX])dnl ])# _LT_WITH_AIX_SONAME LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' # LT_INIT options. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) avahi-0.7/common/PaxHeaders.10109/iconv.m40000644000000000000000000000013213130652004015041 xustar0030 mtime=1499681796.753179915 30 atime=1499681797.069172845 30 ctime=1499681850.039989308 avahi-0.7/common/iconv.m40000644000175000017500000002207213130652004016453 0ustar00lathiatlathiat00000000000000# iconv.m4 serial 19 (gettext-0.18.2) dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include #include ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, dnl Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi am_cv_func_iconv_works=no for ac_iconv_const in '' 'const'; do AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[ #include #include #ifndef ICONV_CONST # define ICONV_CONST $ac_iconv_const #endif ]], [[int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 1; iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\263"; char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 2; iconv_close (cd_ascii_to_88591); } } /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ { iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304"; static char buf[2] = { (char)0xDE, (char)0xAD }; ICONV_CONST char *inptr = input; size_t inbytesleft = 1; char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) result |= 4; iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) result |= 8; iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) result |= 16; return result; ]])], [am_cv_func_iconv_works=yes], , [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) test "$am_cv_func_iconv_works" = no || break done LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [m4_ifdef([gl_00GNULIB], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ]], [[]])], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) dnl Also substitute ICONV_CONST in the gnulib generated . m4_ifdef([gl_ICONV_H_DEFAULTS], [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) if test -n "$am_cv_proto_iconv_arg1"; then ICONV_CONST="const" fi ]) fi ]) avahi-0.7/common/PaxHeaders.10109/gcc_stack_protect.m40000644000000000000000000000013213130651643017414 xustar0030 mtime=1499681699.127370127 30 atime=1499681797.073172756 30 ctime=1499681849.983990558 avahi-0.7/common/gcc_stack_protect.m40000644000175000017500000000623613130651643021032 0ustar00lathiatlathiat00000000000000dnl dnl Useful macros for autoconf to check for ssp-patched gcc dnl 1.0 - September 2003 - Tiago Sousa dnl 1.1 - August 2006 - Ted Percival dnl * Stricter language checking (C or C++) dnl * Adds GCC_STACK_PROTECT_LIB to add -lssp to LDFLAGS as necessary dnl * Caches all results dnl * Uses macros to ensure correct ouput in quiet/silent mode dnl 1.2 - April 2007 - Ted Percival dnl * Added GCC_STACK_PROTECTOR macro for simpler (one-line) invocation dnl * GCC_STACK_PROTECT_LIB now adds -lssp to LIBS rather than LDFLAGS dnl dnl About ssp: dnl GCC extension for protecting applications from stack-smashing attacks dnl http://www.research.ibm.com/trl/projects/security/ssp/ dnl dnl Usage: dnl Most people will simply call GCC_STACK_PROTECTOR. dnl If you only use one of C or C++, you can save time by only calling the dnl macro appropriate for that language. In that case you should also call dnl GCC_STACK_PROTECT_LIB first. dnl dnl GCC_STACK_PROTECTOR dnl Tries to turn on stack protection for C and C++ by calling the following dnl three macros with the right languages. dnl dnl GCC_STACK_PROTECT_CC dnl checks -fstack-protector with the C compiler, if it exists then updates dnl CFLAGS and defines ENABLE_SSP_CC dnl dnl GCC_STACK_PROTECT_CXX dnl checks -fstack-protector with the C++ compiler, if it exists then updates dnl CXXFLAGS and defines ENABLE_SSP_CXX dnl dnl GCC_STACK_PROTECT_LIB dnl adds -lssp to LIBS if it is available dnl ssp is usually provided as part of libc, but was previously a separate lib dnl It does not hurt to add -lssp even if libc provides SSP - in that case dnl libssp will simply be ignored. dnl AC_DEFUN([GCC_STACK_PROTECT_LIB],[ AC_CACHE_CHECK([whether libssp exists], ssp_cv_lib, [ssp_old_libs="$LIBS" LIBS="$LIBS -lssp" AC_TRY_LINK(,, ssp_cv_lib=yes, ssp_cv_lib=no) LIBS="$ssp_old_libs" ]) if test $ssp_cv_lib = yes; then LIBS="$LIBS -lssp" fi ]) AC_DEFUN([GCC_STACK_PROTECT_CC],[ AC_LANG_ASSERT(C) if test "X$CC" != "X"; then AC_CACHE_CHECK([whether ${CC} accepts -fstack-protector], ssp_cv_cc, [ssp_old_cflags="$CFLAGS" CFLAGS="$CFLAGS -fstack-protector -Werror" AC_TRY_COMPILE(,, ssp_cv_cc=yes, ssp_cv_cc=no) CFLAGS="$ssp_old_cflags" ]) if test $ssp_cv_cc = yes; then CFLAGS="$CFLAGS -fstack-protector" AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) fi fi ]) AC_DEFUN([GCC_STACK_PROTECT_CXX],[ AC_LANG_ASSERT(C++) if test "X$CXX" != "X"; then AC_CACHE_CHECK([whether ${CXX} accepts -fstack-protector], ssp_cv_cxx, [ssp_old_cxxflags="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -fstack-protector -Werror" AC_TRY_COMPILE(,, ssp_cv_cxx=yes, ssp_cv_cxx=no) CXXFLAGS="$ssp_old_cxxflags" ]) if test $ssp_cv_cxx = yes; then CXXFLAGS="$CXXFLAGS -fstack-protector" AC_DEFINE([ENABLE_SSP_CXX], 1, [Define if SSP C++ support is enabled.]) fi fi ]) AC_DEFUN([GCC_STACK_PROTECTOR],[ GCC_STACK_PROTECT_LIB AC_LANG_PUSH([C]) GCC_STACK_PROTECT_CC AC_LANG_POP([C]) AC_LANG_PUSH([C++]) GCC_STACK_PROTECT_CXX AC_LANG_POP([C++]) ]) avahi-0.7/common/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130652004015515 xustar0030 mtime=1499681796.761179735 30 atime=1499681796.809178662 30 ctime=1499681850.035989398 avahi-0.7/common/Makefile.am0000644000175000017500000000200213130652004017116 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. EXTRA_DIST = gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4 gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4 gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4 \ doxygen.m4 \ doxygen.mk \ python.m4 avahi-0.7/common/PaxHeaders.10109/acx_pthread.m40000644000000000000000000000013213130651643016215 xustar0030 mtime=1499681699.127370127 30 atime=1499681797.073172756 30 ctime=1499681849.983990558 avahi-0.7/common/acx_pthread.m40000644000175000017500000003141113130651643017624 0ustar00lathiatlathiat00000000000000dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl dnl @summary figure out how to build C programs using POSIX threads dnl dnl This macro figures out how to build C programs using POSIX threads. dnl It sets the PTHREAD_LIBS output variable to the threads library and dnl linker flags, and the PTHREAD_CFLAGS output variable to any special dnl C compiler flags that are needed. (The user can also force certain dnl compiler flags/libs to be tested by setting these environment dnl variables.) dnl dnl Also sets PTHREAD_CC to any special C compiler that is needed for dnl multi-threaded programs (defaults to the value of CC otherwise). dnl (This is necessary on AIX to use the special cc_r compiler alias.) dnl dnl NOTE: You are assumed to not only compile your program with these dnl flags, but also link it with them as well. e.g. you should link dnl with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS dnl $LIBS dnl dnl If you are only building threads programs, you may wish to use dnl these variables in your default LIBS, CFLAGS, and CC: dnl dnl LIBS="$PTHREAD_LIBS $LIBS" dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS" dnl CC="$PTHREAD_CC" dnl dnl In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute dnl constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to dnl that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX). dnl dnl ACTION-IF-FOUND is a list of shell commands to run if a threads dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands to dnl run it if it is not found. If ACTION-IF-FOUND is not specified, the dnl default action will define HAVE_PTHREAD. dnl dnl Please let the authors know if this macro fails on any platform, or dnl if you have any other suggestions or comments. This macro was based dnl on work by SGJ on autoconf scripts for FFTW (www.fftw.org) (with dnl help from M. Frigo), as well as ac_pthread and hb_pthread macros dnl posted by Alejandro Forero Cuervo to the autoconf macro repository. dnl We are also grateful for the helpful feedback of numerous users. dnl dnl @category InstalledPackages dnl @author Steven G. Johnson dnl @version 2006-05-29 dnl @license GPLWithACException dnl dnl Checks for GCC shared/pthread inconsistency based on work by dnl Marcin Owsiany AC_DEFUN([ACX_PTHREAD], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_LANG_SAVE AC_LANG_C acx_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on True64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS]) AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes) AC_MSG_RESULT($acx_pthread_ok) if test x"$acx_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) # -pthreads: Solaris/gcc # -mthreads: Mingw32/gcc, Lynx/gcc # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # ... -mt is also the pthreads flag for HP/aCC # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case "${host_cpu}-${host_os}" in *solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthreads/-mt/ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" ;; esac if test x"$acx_pthread_ok" = xno; then for flag in $acx_pthread_flags; do case $flag in none) AC_MSG_CHECKING([whether pthreads work without any flags]) ;; -*) AC_MSG_CHECKING([whether pthreads work with $flag]) PTHREAD_CFLAGS="$flag" ;; pthread-config) AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no) if test x"$acx_pthread_config" = xno; then continue; fi PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) AC_MSG_CHECKING([for the pthreads library -l$flag]) PTHREAD_LIBS="-l$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. AC_TRY_LINK([#include ], [pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], [acx_pthread_ok=yes]) LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" AC_MSG_RESULT($acx_pthread_ok) if test "x$acx_pthread_ok" = xyes; then break; fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$acx_pthread_ok" = xyes; then save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. AC_MSG_CHECKING([for joinable pthread attribute]) attr_name=unknown for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do AC_TRY_LINK([#include ], [int attr=$attr; return attr;], [attr_name=$attr; break]) done AC_MSG_RESULT($attr_name) if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name, [Define to necessary symbol if this constant uses a non-standard name on your system.]) fi AC_MSG_CHECKING([if more special flags are required for pthreads]) flag=no case "${host_cpu}-${host_os}" in *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" # More AIX lossage: must compile with xlc_r or cc_r if test x"$GCC" != xyes; then AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) else PTHREAD_CC=$CC fi # The next part tries to detect GCC inconsistency with -shared on some # architectures and systems. The problem is that in certain # configurations, when -shared is specified, GCC "forgets" to # internally use various flags which are still necessary. AC_MSG_CHECKING([whether to check for GCC pthread/shared inconsistencies]) check_inconsistencies=yes case "${host_cpu}-${host_os}" in *-darwin*) check_inconsistencies=no ;; esac if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then AC_MSG_RESULT([no]) else AC_MSG_RESULT([yes]) # In order not to create several levels of indentation, we test # the value of "$ok" until we find out the cure or run out of # ideas. ok="no" # # Prepare the flags # save_CFLAGS="$CFLAGS" save_LIBS="$LIBS" save_CC="$CC" # Try with the flags determined by the earlier checks. # # -Wl,-z,defs forces link-time symbol resolution, so that the # linking checks with -shared actually have any value # # FIXME: -fPIC is required for -shared on many architectures, # so we specify it here, but the right way would probably be to # properly detect whether it is actually required. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CC="$PTHREAD_CC" AC_MSG_CHECKING([whether -pthread is sufficient with -shared]) AC_TRY_LINK([#include ], [pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], [ok=yes]) if test "x$ok" = xyes; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi # # Linux gcc on some architectures such as mips/mipsel forgets # about -lpthread # if test x"$ok" = xno; then AC_MSG_CHECKING([whether -lpthread fixes that]) LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" AC_TRY_LINK([#include ], [pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], [ok=yes]) if test "x$ok" = xyes; then AC_MSG_RESULT([yes]) PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" else AC_MSG_RESULT([no]) fi fi # # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc # if test x"$ok" = xno; then AC_MSG_CHECKING([whether -lc_r fixes that]) LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" AC_TRY_LINK([#include ], [pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ], [ok=yes]) if test "x$ok" = xyes; then AC_MSG_RESULT([yes]) PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" else AC_MSG_RESULT([no]) fi fi if test x"$ok" = xno; then # OK, we have run out of ideas AC_MSG_WARN([Impossible to determine how to use pthreads with shared libraries]) # so it's not safe to assume that we may use pthreads acx_pthread_ok=no fi CFLAGS="$save_CFLAGS" LIBS="$save_LIBS" CC="$save_CC" fi else PTHREAD_CC="$CC" fi AC_SUBST(PTHREAD_LIBS) AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_CC) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_pthread_ok" = xyes; then ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1]) : else acx_pthread_ok=no $2 fi AC_LANG_RESTORE ])dnl ACX_PTHREAD avahi-0.7/common/PaxHeaders.10109/po.m40000644000000000000000000000013213130652004014341 xustar0030 mtime=1499681796.761179735 30 atime=1499681797.053173204 30 ctime=1499681850.043989219 avahi-0.7/common/po.m40000644000175000017500000004503113130652004015753 0ustar00lathiatlathiat00000000000000# po.m4 serial 24 (gettext-0.19) dnl Copyright (C) 1995-2014, 2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.60]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl AC_REQUIRE([AC_PROG_SED])dnl AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.19]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" gt_tab=`printf '\t'` cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assignment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" tab=`printf '\t'` if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" < 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) avahi-0.7/common/PaxHeaders.10109/introspection.m40000644000000000000000000000013213130651643016633 xustar0030 mtime=1499681699.127370127 30 atime=1499681797.069172845 30 ctime=1499681849.987990469 avahi-0.7/common/introspection.m40000644000175000017500000000661213130651643020247 0ustar00lathiatlathiat00000000000000dnl -*- mode: autoconf -*- dnl Copyright 2009 Johan Dahlin dnl dnl This file is free software; the author(s) gives unlimited dnl permission to copy and/or distribute it, with or without dnl modifications, as long as this notice is preserved. dnl # serial 1 m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], [ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first AC_BEFORE([LT_INIT],[$0])dnl setup libtool first dnl enable/disable introspection m4_if([$2], [require], [dnl enable_introspection=yes ],[dnl AC_ARG_ENABLE(introspection, AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], [Enable introspection for this build]),, [enable_introspection=auto]) ])dnl AC_MSG_CHECKING([for gobject-introspection]) dnl presence/version checking AS_CASE([$enable_introspection], [no], [dnl found_introspection="no (disabled, use --enable-introspection to enable)" ],dnl [yes],[dnl PKG_CHECK_EXISTS([gobject-introspection-1.0],, AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) ],dnl [auto],[dnl PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) ],dnl [dnl AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) ])dnl AC_MSG_RESULT([$found_introspection]) INTROSPECTION_SCANNER= INTROSPECTION_COMPILER= INTROSPECTION_GENERATE= INTROSPECTION_GIRDIR= INTROSPECTION_TYPELIBDIR= if test "x$found_introspection" = "xyes"; then INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection fi AC_SUBST(INTROSPECTION_SCANNER) AC_SUBST(INTROSPECTION_COMPILER) AC_SUBST(INTROSPECTION_GENERATE) AC_SUBST(INTROSPECTION_GIRDIR) AC_SUBST(INTROSPECTION_TYPELIBDIR) AC_SUBST(INTROSPECTION_CFLAGS) AC_SUBST(INTROSPECTION_LIBS) AC_SUBST(INTROSPECTION_MAKEFILE) AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") ]) dnl Usage: dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], [ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) ]) dnl Usage: dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], [ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) ]) avahi-0.7/common/PaxHeaders.10109/ChangeLog0000644000000000000000000000013213130652004015233 xustar0030 mtime=1499681796.765179646 30 atime=1499681796.765179646 30 ctime=1499681850.039989308 avahi-0.7/common/ChangeLog0000644000175000017500000000073513130652004016647 0ustar00lathiatlathiat000000000000002017-07-10 gettextize * gettext.m4: New file, from gettext-0.19.8.1. * iconv.m4: New file, from gettext-0.19.8.1. * lib-ld.m4: New file, from gettext-0.19.8.1. * lib-link.m4: New file, from gettext-0.19.8.1. * lib-prefix.m4: New file, from gettext-0.19.8.1. * nls.m4: New file, from gettext-0.19.8.1. * po.m4: New file, from gettext-0.19.8.1. * progtest.m4: New file, from gettext-0.19.8.1. * Makefile.am (EXTRA_DIST): Add the new files. avahi-0.7/common/PaxHeaders.10109/libtool.m40000644000000000000000000000013213130652005015370 xustar0030 mtime=1499681797.005174277 30 atime=1499681797.057173114 30 ctime=1499681849.987990469 avahi-0.7/common/libtool.m40000644000175000017500000112617113130652005017010 0ustar00lathiatlathiat00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . ]) # serial 58 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_PREPARE_CC_BASENAME # ----------------------- m4_defun([_LT_PREPARE_CC_BASENAME], [ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in @S|@*""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } ])# _LT_PREPARE_CC_BASENAME # _LT_CC_BASENAME(CC) # ------------------- # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, # but that macro is also expanded into generated libtool script, which # arranges for $SED and $ECHO to be set by different means. m4_defun([_LT_CC_BASENAME], [m4_require([_LT_PREPARE_CC_BASENAME])dnl AC_REQUIRE([_LT_DECL_SED])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl func_cc_basename $1 cc_basename=$func_cc_basename_result ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_CMD_TRUNCATE])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from 'configure', and 'config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # 'config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain=$ac_aux_dir/ltmain.sh ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the 'libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to 'config.status' so that its # declaration there will have the same value as in 'configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags='_LT_TAGS'dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into 'config.status', and then the shell code to quote escape them in # for loops in 'config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 _LT_COPYING _LT_LIBTOOL_TAGS # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE _LT_PREPARE_MUNGE_PATH_LIST _LT_PREPARE_CC_BASENAME # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[[012]][[,.]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case $ECHO in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_PREPARE_MUNGE_PATH_LIST # --------------------------- # Make sure func_munge_path_list() is defined correctly. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], [[# func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x@S|@2 in x) ;; *:) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" ;; x:*) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; *::*) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" ;; *) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; esac } ]])# _LT_PREPARE_PATH_LIST # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown AC_ARG_VAR([LT_SYS_LIBRARY_PATH], [User-defined run-time library search path.]) case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a[(]lib.so.V[)]' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], [Detected run-time system search path for libraries]) _LT_DECL([], [configure_time_lt_sys_library_path], [2], [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], [if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi]) rm -f conftest.i conftest2.i conftest.out]) ])# _LT_PATH_DD # _LT_CMD_TRUNCATE # ---------------- # find command to truncate a binary pipe m4_defun([_LT_CMD_TRUNCATE], [m4_require([_LT_PATH_DD]) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], [printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], [Command to truncate a binary pipe]) ])# _LT_CMD_TRUNCATE # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[[4-9]]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi]) if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi _LT_TAGVAR(link_all_deplibs, $1)=no else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; osf3*) if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting $shlibpath_var if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS avahi-0.7/common/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011015524 xustar0030 mtime=1499681801.769067706 30 atime=1499681806.792955348 30 ctime=1499681850.035989398 avahi-0.7/common/Makefile.in0000644000175000017500000004304313130652011017137 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = common ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in ChangeLog DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4 gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4 gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 progtest.m4 \ doxygen.m4 \ doxygen.mk \ python.m4 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign common/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign common/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/PaxHeaders.10109/avahi-client.pc.in0000644000000000000000000000013213130651643015476 xustar0030 mtime=1499681699.087371026 30 atime=1499681699.087371026 30 ctime=1499681850.019989754 avahi-0.7/avahi-client.pc.in0000644000175000017500000000042313130651643017104 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: avahi-client Description: Avahi Multicast DNS Responder (Client Support) Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lavahi-common -lavahi-client Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/avahi-gobject.pc.in0000644000000000000000000000013213130651643015635 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.019989754 avahi-0.7/avahi-gobject.pc.in0000644000175000017500000000051313130651643017243 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: avahi-gobject Description: Avahi Multicast DNS Responder (GLib GObject Support) Version: @PACKAGE_VERSION@ Requires.private: glib-2.0 gobject-2.0 avahi-glib avahi-client Libs: -L${libdir} -lavahi-gobject Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/acinclude.m40000644000000000000000000000013213130651643014372 xustar0030 mtime=1499681699.083371116 30 atime=1499681797.053173204 30 ctime=1499681849.991990379 avahi-0.7/acinclude.m40000644000175000017500000000003313130651643015775 0ustar00lathiatlathiat00000000000000sinclude(common/doxygen.m4)avahi-0.7/PaxHeaders.10109/configure.ac0000644000000000000000000000013113130651643014466 xustar0030 mtime=1499681699.131370037 30 atime=1499681796.893176783 29 ctime=1499681849.99599029 avahi-0.7/configure.ac0000644000175000017500000012105013130651643016075 0ustar00lathiatlathiat00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AC_PREREQ(2.63) AC_INIT([avahi],[0.7],[avahi (at) lists (dot) freedesktop (dot) org]) AC_CONFIG_SRCDIR([avahi-core/server.c]) AC_CONFIG_MACRO_DIR([common]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax]) AC_SUBST(PACKAGE_URL, [http://avahi.org/]) AC_SUBST(LIBAVAHI_COMMON_VERSION_INFO, [8:3:5]) AC_SUBST(LIBAVAHI_CORE_VERSION_INFO, [7:2:0]) AC_SUBST(LIBAVAHI_CLIENT_VERSION_INFO, [5:9:2]) AC_SUBST(LIBAVAHI_GLIB_VERSION_INFO, [1:2:0]) AC_SUBST(LIBAVAHI_GOBJECT_VERSION_INFO, [0:5:0]) AC_SUBST(LIBAVAHI_QT3_VERSION_INFO, [1:2:0]) AC_SUBST(LIBAVAHI_QT4_VERSION_INFO, [1:2:0]) AC_SUBST(LIBAVAHI_UI_VERSION_INFO, [1:4:1]) # Do not touch these, since they we took this version-info from upstream HOWL/Bonjour AC_SUBST(LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO, [1:0:0]) AC_SUBST(LIBAVAHI_COMPAT_HOWL_VERSION_INFO, [0:0:0]) AC_SUBST(HOWL_COMPAT_VERSION, [0.9.8]) AC_CANONICAL_HOST AM_SILENT_RULES([yes]) AC_CHECK_PROG([STOW], [stow], [yes], [no]) AS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [ AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***]) ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" ]) # Checks for programs. AC_PROG_CC AC_PROG_CC_C99 AC_PROG_CXX AM_PROG_CC_C_O AC_USE_SYSTEM_EXTENSIONS AC_PROG_CPP AC_PROG_MKDIR_P AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_GCC_TRADITIONAL # -fstack-protector AC_ARG_ENABLE([stack-protector], [AS_HELP_STRING([--disable-stack-protector], [Disable GCC's/libc's stack-smashing protection])], [case "${enableval}" in yes) enable_ssp=yes ;; no) enable_ssp=no ;; *) AC_MSG_ERROR([invalid value ${enableval} for --disable-stack-protector]) ;; esac], [enable_ssp=yes]) if test x"$enable_ssp" = x"yes" && test x"$GCC" != x"yes"; then AC_MSG_NOTICE([Disabling stack-smashing protection because compiler is not GCC]) enable_ssp=no fi if test x"$enable_ssp" = x"yes"; then # Check for broken ssp in libc: http://www.avahi.org/ticket/105 # libc's brokenness will get in the way regardless of whether -lssp is # provided, but provide it anyway (otherwise non-libc ssp would wrongly # break here) # Get -lssp if it exists GCC_STACK_PROTECT_LIB AC_MSG_CHECKING([whether stack-smashing protection is available]) ssp_old_cflags="$CFLAGS" ssp_old_ldflags="$LDFLAGS" CFLAGS="$CFLAGS -Werror -fstack-protector-all -fPIC" LDFLAGS="$LDFLAGS -Wl,-z,defs" cat confdefs.h > conftest.c cat >>conftest.c <<_ACEOF void test_broken_ssp(c) const char *c; { char arr[[123]], *p; /* beware of possible double-braces if copying this */ for (p = arr; *c; ++p) { *p = *c; ++c; } } _ACEOF rm -f conftest.o if $CC -c $CFLAGS $CPPFLAGS -o conftest.o conftest.c >/dev/null 2>&1; then AC_MSG_RESULT([yes]) AC_MSG_CHECKING([whether stack-smashing protection is buggy]) if $CC -o conftest.so $LDFLAGS -shared conftest.o $LIBS >/dev/null 2>&1; then AC_MSG_RESULT([no]) else AC_MSG_RESULT([yes]) enable_ssp=no fi else AC_MSG_RESULT([no]) fi rm -f conftest.c conftest.o conftest.so CFLAGS="$ssp_old_cflags" LDFLAGS="$ssp_old_ldflags" fi if test x"$enable_ssp" = x"yes"; then # Do this the long way so we don't call GCC_STACK_PROTECT_LIB twice GCC_STACK_PROTECT_CC AC_LANG_PUSH([C++]) GCC_STACK_PROTECT_CXX AC_LANG_POP([C++]) # XXX: Update the enable_ssp value now for output later? fi # libtool stuff AC_PROG_LIBTOOL AC_CACHE_CHECK([whether the C++ compiler works], [avahi_cv_sys_cxx_works], [ AC_LANG_PUSH([C++]) AC_COMPILE_IFELSE([int main() { return 0; }], [avahi_cv_sys_cxx_works=yes], [avahi_cv_sys_cxx_works=no]) AC_LANG_POP([C++]) ]) [ if [ "x$avahi_cv_sys_cxx_works" = "xno" ]; then ] AC_MSG_FAILURE([The C++ compiler does not work]) [ fi ] ACX_PTHREAD(,AC_MSG_ERROR([Missing POSIX Threads support])) # # Check for netlink.h # AC_CHECK_HEADER(linux/netlink.h, HAVE_NETLINK=yes AC_DEFINE([HAVE_NETLINK],[],[Support for Linux netlink]) , [], [ #include #include ]) AM_CONDITIONAL(HAVE_NETLINK, [ test x"$HAVE_NETLINK" = xyes ]) # # Check for net/route.h # AC_CHECK_HEADER(net/route.h, HAVE_PF_ROUTE=yes AC_DEFINE([HAVE_PF_ROUTE],[],[Support for PF_ROUTE]) , [], [ #include #include #include ]) AM_CONDITIONAL(HAVE_PF_ROUTE, [ test x"$HAVE_PF_ROUTE" = xyes ]) # # Check for sys/filio.h; needed for FIONREAD on Solaris # AC_CHECK_HEADER(sys/filio.h, HAVE_SYS_FILIO_H=yes AC_DEFINE([HAVE_SYS_FILIO_H],[],[Support for sys/filio.h]) , [], [ ]) AM_CONDITIONAL(HAVE_SYS_FILIO_H, [ test x"$HAVE_SYS_FILIO_H" = xyes ]) # # Check for sys/sysctl.h; not present on Solaris # AC_CHECK_HEADER(sys/sysctl.h, HAVE_SYS_SYSCTL=yes AC_DEFINE([HAVE_SYS_SYSCTL_H],[],[Support for sys/sysctl.h]) , [], [ #include #include #include ]) AM_CONDITIONAL(HAVE_SYS_SYSCTL_H, [ test x"$HAVE_SYS_SYSCTL_H" = xyes ]) # # Check for lifconf struct; only present on Solaris # AC_MSG_CHECKING(for struct lifconf) AC_CACHE_VAL(avahi_cv_has_struct_lifconf, [AC_TRY_COMPILE( [#include #include ],[sizeof (struct lifconf);], avahi_cv_has_struct_lifconf=yes,avahi_cv_has_struct_lifconf=no)]) AC_MSG_RESULT($avahi_cv_has_struct_lifconf) if test $avahi_cv_has_struct_lifconf = yes; then AC_DEFINE(HAVE_STRUCT_LIFCONF,1,[Define if there is a struct lifconf.]) fi # # Check for struct ip_mreqn # AC_MSG_CHECKING(for struct ip_mreqn) AC_TRY_COMPILE([#include ], [ struct ip_mreqn mreq; mreq.imr_address.s_addr = 0; ], [ # Yes, we have it... AC_MSG_RESULT(yes) AC_DEFINE([HAVE_STRUCT_IP_MREQN],[],[Support for struct ip_mreqn]) ], [ # We'll just have to try and use struct ip_mreq AC_MSG_RESULT(no) AC_MSG_CHECKING(for struct ip_mreq) AC_TRY_COMPILE([#include ], [ struct ip_mreq mreq; mreq.imr_interface.s_addr = 0; ], [ # Yes, we have it... AC_MSG_RESULT(yes) AC_DEFINE([HAVE_STRUCT_IP_MREQ],[],[Support for struct ip_mreq]) ], [ # No multicast support AC_MSG_RESULT(no) ]) ]) # # Detecting the linux distribution for specific things like init scripts. # AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of lfs, debian, gentoo, archlinux, fedora, mandriva, darwin, netbsd, freebsd, slackware or none])) if test "z$with_distro" = "z"; then if test "$cross_compiling" = yes; then AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)]) else AC_CHECK_FILE(/etc/lfs-release,with_distro="lfs") AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse") AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo") AC_CHECK_FILE(/etc/arch-release,with_distro="archlinux") AC_CHECK_FILE(/etc/debian_version,with_distro="debian") AC_CHECK_FILE(/etc/redhat-release,with_distro="fedora") AC_CHECK_FILE(/etc/mandriva-release,with_distro="mandriva") AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware") fi if test "z$with_distro" = "z"; then with_distro=`uname -s` fi fi with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' ` case $with_distro in lfs|debian|gentoo|archlinux|suse|fedora|mandriva|darwin|freebsd|slackware|none) ;; netbsd) AC_MSG_WARN([Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)]) ;; linux) AC_MSG_ERROR([Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO, set DISTRO to none if your distribution is not supported.]) ;; *) AC_MSG_ERROR([Your distribution (${with_distro}) is not yet supported, init scripts and D-Bus configuration will not be installed! (patches welcome), you can specify --with-distro=none to skip this check]) ;; esac AM_CONDITIONAL(TARGET_LFS, test x"$with_distro" = xlfs) AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse) AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo) AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian) AM_CONDITIONAL(TARGET_ARCHLINUX, test x"$with_distro" = xarchlinux) AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora) AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva) AM_CONDITIONAL(TARGET_DARWIN, test x"$with_distro" = xdarwin) AM_CONDITIONAL(TARGET_NETBSD, test x"$with_distro" = xnetbsd) AM_CONDITIONAL(TARGET_FREEBSD, test x"$with_distro" = xfreebsd) AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware) test_gcc_flag() { AC_LANG_CONFTEST([int main() {}]) $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null ret=$? rm -f conftest.o return $ret } # If using GCC specify some additional parameters if test "x$GCC" = "xyes" ; then DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing" if test "x$HAVE_NETLINK" = "xyes" ; then # Test whether rtnetlink.h can be included when compiled with -std=c99 # some distributions (e.g. archlinux) have broken headers that dont # define __u64 with -std=c99 AC_MSG_CHECKING([checking whether rtnetlink.h can be included with -std=c99]) OLDCFLAGS="$CFLAGS" CFLAGS="-std=c99" AC_TRY_COMPILE([#include ], [], use_stdc99=yes, use_stdc99=no) if test x"$use_stdc99" = xyes; then DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi CFLAGS="$OLDCFLAGS" else DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS" fi for flag in $DESIRED_FLAGS ; do AC_MSG_CHECKING([whether $CC accepts $flag]) if test_gcc_flag $flag ; then CFLAGS="$CFLAGS $flag" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi done fi # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h netdb.h syslog.h]) AC_HEADER_STDBOOL # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_HEADER_TIME AC_HEADER_SYS_WAIT # Solaris stuff AC_SEARCH_LIBS([inet_ntop],[nsl]) AC_SEARCH_LIBS([recv],[socket]) AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__", [[#include ]]) # Checks for library functions. AC_FUNC_MEMCMP AC_FUNC_SELECT_ARGTYPES # avahi_malloc actually returns NULL for avahi_malloc(0), so it does not matter # whether libc's malloc does too. (Same for realloc.) #AC_FUNC_MALLOC #AC_FUNC_REALLOC AC_CHECK_FUNCS([gethostname memchr memmove memset mkdir select socket strchr strcspn strdup strerror strrchr strspn strstr uname setresuid setreuid setresgid setregid strcasecmp gettimeofday putenv strncasecmp strlcpy gethostbyname seteuid setegid setproctitle getprogname]) AC_FUNC_CHOWN AC_FUNC_STAT AC_TYPE_MODE_T AC_TYPE_PID_T AC_CHECK_DECLS(environ) # check if gcc's -fvisibility is supported CHECK_VISIBILITY_HIDDEN enable_chroot=yes AC_CHECK_HEADERS([sys/capability.h],,enable_chroot=no) AC_CHECK_HEADERS([sys/prctl.h],,enable_chroot=no) AC_CHECK_FUNCS([chroot],,enable_chroot=no) AM_CONDITIONAL(ENABLE_CHROOT, test "x$enable_chroot" = "xyes") if test "x$enable_chroot" = "xyes" ; then AC_DEFINE([ENABLE_CHROOT], 1, [Enable chroot() usage]) fi AC_CHECK_LIB(dl, dlopen, [ AC_CHECK_HEADERS(dlfcn.h, HAVE_DLOPEN=yes, HAVE_DLOPEN=no) ], HAVE_DLOPEN=no) if test "x$HAVE_DLOPEN" = "xyes" ; then AC_DEFINE([HAVE_DLOPEN],1,[Have dlopen()]) fi AM_CONDITIONAL(HAVE_DLOPEN, test "x$HAVE_DLOPEN" = "xyes") have_inotify=no AC_CHECK_HEADERS([sys/inotify.h], [have_inotify=yes]) AM_CONDITIONAL(HAVE_INOTIFY, test "x$have_inotify" = "xyes") if test "x$have_inotify" = "xyes" ; then AC_DEFINE([HAVE_INOTIFY], 1, [Enable Linux inotify() usage]) fi have_kqueue=yes AC_CHECK_FUNCS([kqueue],,have_kqueue=no) AM_CONDITIONAL(HAVE_KQUEUE, test "x$have_kqueue" = "xyes") if test "x$have_kqueue" = "xyes" ; then AC_DEFINE([HAVE_KQUEUE], 1, [Enable BSD kqueue() usage]) fi IT_PROG_INTLTOOL([0.35.0]) GETTEXT_PACKAGE=avahi AC_SUBST([GETTEXT_PACKAGE]) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) AM_GLIB_GNU_GETTEXT avahilocaledir='${prefix}/${DATADIRNAME}/locale' AC_SUBST(avahilocaledir) # Check for pkg-config manually first, as if its not installed the # PKG_PROG_PKG_CONFIG macro won't be defined. AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no) if test x"$have_pkg_config" = "xno"; then AC_MSG_ERROR(pkg-config is required to install this program) fi PKG_PROG_PKG_CONFIG # # Check for GLIB 2.0 # AC_ARG_ENABLE(glib, AS_HELP_STRING([--disable-glib],[Disable use of GLib]), [case "${enableval}" in yes) HAVE_GLIB=yes ;; no) HAVE_GLIB=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-glib) ;; esac], [HAVE_GLIB=yes]) if test "x$HAVE_GLIB" = "xyes" ; then PKG_CHECK_MODULES(GLIB20, [ glib-2.0 >= 2.4.0 ]) AC_SUBST(GLIB20_CFLAGS) AC_SUBST(GLIB20_LIBS) fi AM_CONDITIONAL(HAVE_GLIB, test "x$HAVE_GLIB" = "xyes") # # Check for GLIB's gobject 2.0 # AC_ARG_ENABLE(gobject, AS_HELP_STRING([--disable-gobject],[Disable use of GLib GObject]), [case "${enableval}" in yes) HAVE_GOBJECT=yes ;; no) HAVE_GOBJECT=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-gobject) ;; esac], [HAVE_GOBJECT=yes]) if test "x$HAVE_GOBJECT" = "xyes" ; then PKG_CHECK_MODULES(GOBJECT, [ glib-2.0 >= 2.4.0 gobject-2.0 ]) AC_SUBST(GOBJECT_CFLAGS) AC_SUBST(GOBJECT_LIBS) fi AM_CONDITIONAL(HAVE_GOBJECT, test "x$HAVE_GOBJECT" = "xyes") # # Introspection support. # GOBJECT_INTROSPECTION_CHECK([0.9.5]) # # Check for Qt 3 # AC_ARG_ENABLE(qt3, AS_HELP_STRING([--disable-qt3],[Disable building of Qt3 mainloop integration]), [case "${enableval}" in yes) HAVE_QT3=yes ;; no) HAVE_QT3=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-qt3) ;; esac], [HAVE_QT3=yes]) if test "x$HAVE_QT3" = "xyes" ; then PKG_CHECK_MODULES( QT3, [ qt-mt >= 3.0.0 ]) AC_SUBST(QT3_CFLAGS) AC_SUBST(QT3_LIBS) QT3_PREFIX="`$PKG_CONFIG --variable=prefix qt-mt`/bin" AC_PATH_PROGS(MOC_QT3, [moc-qt3 moc], no, [$QT3_PREFIX]) if test "$MOC_QT3" = no; then AC_MSG_ERROR([Could not find QT3 moc]) fi AC_SUBST(MOC_QT3) fi AM_CONDITIONAL(HAVE_QT3, test "x$HAVE_QT3" = "xyes") # # Check for Qt 4 # AC_ARG_ENABLE(qt4, AS_HELP_STRING([--disable-qt4],[Disable building of Qt4Core mainloop integration]), [case "${enableval}" in yes) HAVE_QT4=yes ;; no) HAVE_QT4=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-qt4) ;; esac], [HAVE_QT4=yes]) if test "x$HAVE_QT4" = "xyes" ; then PKG_CHECK_MODULES( QT4, [ QtCore >= 4.0.0 ]) AC_SUBST(QT4_CFLAGS) AC_SUBST(QT4_LIBS) QT4_PREFIX="`$PKG_CONFIG --variable=prefix QtCore`/bin" AC_PATH_PROGS(MOC_QT4, [moc-qt4 moc], no, [$QT4_PREFIX]) if test "$MOC_QT4" = no; then AC_MSG_ERROR([Could not find QT4 moc]) fi AC_SUBST(MOC_QT4) fi AM_CONDITIONAL(HAVE_QT4, test "x$HAVE_QT4" = "xyes") # # Check for GTK+ 2.0 # AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk],[Disable use of GTK+ 2]), [case "${enableval}" in yes) HAVE_GTK=yes ;; no) HAVE_GTK=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-gtk) ;; esac], [HAVE_GTK=yes]) if test "x$HAVE_GTK" = "xyes" ; then # Check for GTK 2.0 PKG_CHECK_MODULES(GTK20, [ gtk+-2.0 >= 2.14.0 ]) AC_SUBST(GTK20_CFLAGS) AC_SUBST(GTK20_LIBS) fi AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes") # # Check for GTK+ 3.0 # AC_ARG_ENABLE(gtk3, AS_HELP_STRING([--disable-gtk3],[Disable use of GTK+ 3]), [case "${enableval}" in yes) HAVE_GTK3=yes ;; no) HAVE_GTK3=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-gtk3) ;; esac], [HAVE_GTK3=yes]) if test "x$HAVE_GTK3" = "xyes" ; then # Check for GTK 3.0 PKG_CHECK_MODULES(GTK30, [ gtk+-3.0 ]) AC_SUBST(GTK30_CFLAGS) AC_SUBST(GTK30_LIBS) fi AM_CONDITIONAL(HAVE_GTK3, test "x$HAVE_GTK3" = "xyes") AM_CONDITIONAL(HAVE_GTK2OR3, test "x$HAVE_GTK3" = "xyes" -o "x$HAVE_GTK" = "xyes" ) # # D-Bus # AC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus],[Disable use of D-Bus]), [case "${enableval}" in yes) HAVE_DBUS=yes ;; no) HAVE_DBUS=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-dbus) ;; esac], [HAVE_DBUS=yes]) AC_ARG_WITH(dbus-sys, AS_HELP_STRING([--with-dbus-sys=], [Path to D-Bus system.d directory])) AC_ARG_WITH(dbus-system-socket, AS_HELP_STRING([--with-dbus-system-address=
    ], [Path to the D-Bus system socket, you probably want to put unix:path= at the start. Only needed for very old D-Bus releases])) DBUS_VERSION="Disabled" DBUS_SYS_DIR="Disabled" DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="Disabled" if test "x$HAVE_DBUS" = "xyes" ; then PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 0.34 ]) AC_DEFINE(HAVE_DBUS, 1, [Whether we have D-Bus or not]) DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion` DBUS_VERSION_MAJOR=`echo $DBUS_VERSION | awk -F. '{print $1}'` DBUS_VERSION_MINOR=`echo $DBUS_VERSION | awk -F. '{print $2}'` DBUS_VERSION_MICRO=`echo $DBUS_VERSION | awk -F. '{print $3}'` if test "z$DBUS_VERSION_MAJOR" = "z"; then DBUS_VERSION_MAJOR="0" fi if test "z$DBUS_VERSION_MINOR" = "z"; then DBUS_VERSION_MINOR="0" fi if test "z$DBUS_VERSION_MICRO" = "z"; then DBUS_VERSION_MICRO="0" fi if test "z$DBUS_VERSION_MAJOR" = "z0" -a "z$DBUS_VERSION_MINOR" = "z0" -a "z$DBUS_VERSION_MICRO" = "z0"; then echo "Error: Couldn't determine the version of your D-Bus package." echo " This is probably an error in this script, please report it" echo " along with the following information:" echo " Base D-Buss version ='$DBUS_VERSION'" echo " DBUS_VERSION_MAJOR='$DBUS_VERSION_MAJOR'" echo " DBUS_VERSION_MINOR='$DBUS_VERSION_MINOR'" echo " DBUS_VERSION_MICRO='$DBUS_VERSION_MICRO'" exit 1 else echo "Your D-Bus version is $DBUS_VERSION_MAJOR,$DBUS_VERSION_MINOR,$DBUS_VERSION_MICRO." DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR" DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR" DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO" fi DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE" AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) if ! test -z "$with_dbus_sys" ; then DBUS_SYS_DIR="$with_dbus_sys" else DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d" fi AC_SUBST(DBUS_SYS_DIR) if ! test -z "$with_dbus_system_address" ; then DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$with_dbus_system_address" else # This is ugly, but D-Bus doesn't export this address for us # so we have to guess, pretty much all setups i've seen have # it in /var/lib/dbus or /var/run/dbus, and its defaulted to # /var/run upstream so we will try guess first then default # to /var/run/dbus. DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=/var/run/dbus/system_bus_socket" TRY_SOCKETS="/var/lib/dbus/system_bus_socket /var/run/dbus/system_bus_socket ${localstatedir}/run/dbus/system_bus_socket ${prefix}/var/run/dbus/system_bus_socket" for sock in $TRY_SOCKETS; do if test -S $sock; then DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$sock" fi done fi AC_SUBST(DBUS_SYSTEM_BUS_DEFAULT_ADDRESS) SAVED_LIBS="$LIBS" LIBS="$LIBS $DBUS_LIBS" AC_CHECK_FUNCS([dbus_connection_close dbus_bus_get_private]) LIBS="$SAVED_LIBS" fi AM_CONDITIONAL(HAVE_DBUS, test "x$HAVE_DBUS" = "xyes") # # Expat # AC_ARG_WITH(xml, AS_HELP_STRING([--with-xml=[expat/bsdxml/none]],[XML library to use])) use_expat=false use_bsdxml=false # See what we have AC_CHECK_LIB(expat, XML_ParserCreate, [ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ], have_expat=false) AC_CHECK_LIB(bsdxml, XML_ParserCreate, [ AC_CHECK_HEADERS(bsdxml.h, have_bsdxml=true, have_bsdxml=false) ], have_bsdxml=false) if test "x$with_xml" = "xnone"; then : elif test "x$with_xml" = "xexpat"; then use_expat=true if ! $have_expat ; then AC_MSG_ERROR([*** libexpat requested, but not found ***]) fi elif test "x$with_xml" = "xbsdxml"; then use_bsdxml=true if ! $have_bsdxml ; then AC_MSG_ERROR([*** libbsdxml requested, but not found ***]) fi elif test "x$with_xml" != "x"; then AC_MSG_ERROR([*** unknown with-xml option ***]) else if $have_expat ; then use_expat=true elif $have_bsdxml ; then use_bsdxml=true else AC_MSG_ERROR([*** neither libexpat not libbsdxml could be found ***]) fi fi if $use_expat; then with_xml=expat XML_CFLAGS=-DUSE_EXPAT_H XML_LIBS=-lexpat fi if $use_bsdxml; then with_xml=bsdxml XML_CFLAGS=-DUSE_BSDXML_H XML_LIBS=-lbsdxml fi AC_SUBST(XML_LIBS) AC_SUBST(XML_CFLAGS) if $use_expat || $use_bsdxml; then HAVE_XML=yes fi AM_CONDITIONAL(HAVE_XML, test "x$HAVE_XML" = "xyes") # # GDBM # # # Check for dbm # AC_ARG_ENABLE(dbm, AS_HELP_STRING([--enable-dbm],[Enable use of DBM]), [case "${enableval}" in yes) HAVE_DBM=yes ;; no) HAVE_DBM=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-dbm) ;; esac], [HAVE_DBM=no]) AC_ARG_ENABLE(gdbm, AS_HELP_STRING([--disable-gdbm],[Disable use of GDBM]), [case "${enableval}" in yes) HAVE_GDBM=yes ;; no) HAVE_GDBM=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --disable-gdbm) ;; esac], [HAVE_GDBM=yes]) if test "x$HAVE_GDBM" = "xyes" ; then if test "x$HAVE_DBM" = "xyes" ; then AC_MSG_ERROR([*** --enable-gdbm and --enable-dbm both specified ***]) fi AC_CHECK_LIB(gdbm, gdbm_open, [ AC_CHECK_HEADERS(gdbm.h, have_gdbm=true, have_gdbm=false) ], have_gdbm=false) if ! $have_gdbm ; then AC_MSG_ERROR([*** libgdbm not found ***]) fi AC_DEFINE([HAVE_GDBM],[],[Support for GDBM]) else if test "x$HAVE_DBM" = "xyes" ; then AC_CHECK_HEADERS(ndbm.h, have_dbm=true, have_dbm=false) if ! $have_dbm ; then AC_MSG_ERROR([*** dbm not found ***]) fi AC_DEFINE([HAVE_DBM],[],[Support for DBM]) fi fi AM_CONDITIONAL(HAVE_GDBM, test "x$HAVE_GDBM" = "xyes") AM_CONDITIONAL(HAVE_DBM, test "x$HAVE_DBM" = "xyes") # # libdaemon # AC_ARG_ENABLE(libdaemon, AS_HELP_STRING([--disable-libdaemon],[Disable use of libdaemon]), [case "${enableval}" in yes) HAVE_LIBDAEMON=yes ;; no) HAVE_LIBDAEMON=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-libdaemon) ;; esac], [HAVE_LIBDAEMON=yes]) if test "x$HAVE_LIBDAEMON" = "xyes" ; then PKG_CHECK_MODULES(LIBDAEMON, [ libdaemon >= 0.14 ]) AC_SUBST(LIBDAEMON_CFLAGS) AC_SUBST(LIBDAEMON_LIBS) fi AM_CONDITIONAL(HAVE_LIBDAEMON, test "x$HAVE_LIBDAEMON" = "xyes") # # Python stuff # AC_ARG_ENABLE(python, AS_HELP_STRING([--disable-python], [Disable scripts that depends on python]), [case "${enableval}" in yes) HAVE_PYTHON=yes ;; no) HAVE_PYTHON=no ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-python]) ;; esac],[HAVE_PYTHON=yes]) HAVE_PYTHON_DBUS=no HAVE_PYGOBJECT=no if test "x$HAVE_PYTHON" = "xyes" ; then AM_PATH_PYTHON([2.6]) AC_ARG_ENABLE(pygobject, AS_HELP_STRING([--disable-pygobject],[Disable use of Python GObject]), [case "${enableval}" in yes) HAVE_PYGOBJECT=yes ;; no) HAVE_PYGOBJECT=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-pygobject) ;; esac], [HAVE_PYGOBJECT=yes]) if test "x$HAVE_PYGOBJECT" = "xyes" ; then PKG_CHECK_MODULES([PYGOBJECT],[pygobject-3.0],, [AC_MSG_ERROR(Could not find Python GObject)]) fi if test "x$HAVE_DBUS" = "xyes" ; then AC_ARG_ENABLE(python-dbus, AS_HELP_STRING([--disable-python-dbus],[Disable use of D-Bus in Python]), [case "${enableval}" in yes) HAVE_PYTHON_DBUS=yes ;; no) HAVE_PYTHON_DBUS=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-python-dbus) ;; esac], [HAVE_PYTHON_DBUS=yes]) if test "x$HAVE_PYTHON_DBUS" = "xyes"; then AM_CHECK_PYMOD(dbus,,,[AC_MSG_ERROR(Could not find Python module dbus)]) fi AM_CHECK_PYMOD(socket,,,[AC_MSG_ERROR(Could not find Python module socket)]) if test "x$HAVE_GDBM" = "xyes"; then AM_CHECK_PYMOD(gdbm,,,[AC_MSG_ERROR(Could not find Python module gdbm)]) fi if test "x$HAVE_DBM" = "xyes"; then AM_CHECK_PYMOD(dbm,,,[AC_MSG_ERROR(Could not find Python module dbm)]) fi fi fi AM_CONDITIONAL(HAVE_PYTHON, [test "x$HAVE_PYTHON" = "xyes" ]) AM_CONDITIONAL(HAVE_PYGOBJECT, test "x$HAVE_PYGOBJECT" = "xyes") AM_CONDITIONAL(HAVE_PYTHON_DBUS, test "x$HAVE_PYTHON_DBUS" = "xyes") # # Check for mono stuff # HAVE_MONO=no if test "x$HAVE_DBUS" = "xyes" ; then AC_ARG_ENABLE(mono, AS_HELP_STRING([--disable-mono],[Disable mono bindings]), [case "${enableval}" in yes) HAVE_MONO=yes ;; no) HAVE_MONO=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-mono) ;; esac], [HAVE_MONO=yes]) if test "x$HAVE_MONO" = "xyes" ; then AC_PATH_PROG(MCS, mcs) if test "x$MCS" = "x" ; then AC_MSG_ERROR([Can not find "mcs" - The Mono C-Sharp Compiler) in your PATH]) fi AC_PATH_PROG(GACUTIL, gacutil) if test "x$GACUTIL" = "x" ; then AC_MSG_ERROR([Can not find "gacutil" in your PATH]) fi AC_SUBST(MCS) AC_SUBST(GACUTIL) fi fi AM_CONDITIONAL(HAVE_MONO, test "x$HAVE_MONO" = "xyes") # # Check for monodoc stuff # HAVE_MONODOC=no AC_ARG_ENABLE(monodoc, AS_HELP_STRING([--disable-monodoc],[Disable documentation for mono bindings]), [case "${enableval}" in yes) HAVE_MONODOC=yes ;; no) HAVE_MONODOC=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-monodoc) ;; esac], [HAVE_MONODOC=yes]) if test "x$HAVE_MONO" = "xyes" && test "x$HAVE_MONODOC" = "xyes" ; then PKG_CHECK_MODULES(MONODOC, [monodoc >= 1.1.8]) MONODOC_DIR=`$PKG_CONFIG --variable=sourcesdir monodoc` AC_PATH_PROG(MONODOCER, monodocer) AC_PATH_PROG(MDASSEMBLER, mdassembler) AC_SUBST(MONODOC_DIR) AC_SUBST(MONODOCER) AC_SUBST(MDASSEMBLER) fi AM_CONDITIONAL(HAVE_MONODOC, test "x$HAVE_MONODOC" = "xyes") # # Build autoipd? # AC_ARG_ENABLE(autoipd, AS_HELP_STRING([--disable-autoipd],[Disable building of avahi-autoipd]), [case "${enableval}" in yes) ENABLE_AUTOIPD=yes ;; no) ENABLE_AUTOIPD=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --disable-autoipd) ;; esac], [ENABLE_AUTOIPD=yes]) AM_CONDITIONAL(ENABLE_AUTOIPD, test "x$ENABLE_AUTOIPD" = "xyes") # # Defining users and groups # AC_ARG_WITH(avahi_user, AS_HELP_STRING([--with-avahi-user=],[User for running avahi-daemon (avahi)])) if test -z "$with_avahi_user" ; then AVAHI_USER=avahi else AVAHI_USER=$with_avahi_user fi AC_SUBST(AVAHI_USER) AC_DEFINE_UNQUOTED(AVAHI_USER,"$AVAHI_USER", [User for running the Avahi daemon]) AC_ARG_WITH(avahi_group,AS_HELP_STRING([--with-avahi-group=],[Group for running avahi-daemon (avahi)])) if test -z "$with_avahi_group" ; then AVAHI_GROUP=avahi else AVAHI_GROUP=$with_avahi_group fi AC_SUBST(AVAHI_GROUP) AC_DEFINE_UNQUOTED(AVAHI_GROUP,"$AVAHI_GROUP", [Group for Avahi]) AC_ARG_WITH(avahi_priv_access_group,AS_HELP_STRING([--with-avahi-priv-access-group=],[Priviliged access group for Avahi clients (netdev)])) if test -z "$with_avahi_priv_access_group" ; then AVAHI_PRIV_ACCESS_GROUP=netdev else AVAHI_PRIV_ACCESS_GROUP=$with_avahi_priv_access_group fi AC_SUBST(AVAHI_PRIV_ACCESS_GROUP) AC_DEFINE_UNQUOTED(AVAHI_PRIV_ACCESS_GROUP,"$AVAHI_PRIV_ACCESS_GROUP", [Privileged access group for Avahi clients]) AC_ARG_WITH(autoipd_user, AS_HELP_STRING([--with-autoipd-user=],[User for running the avahi-autoipd daemon (avahi-autoipd)])) if test -z "$with_autoipd_user" ; then AVAHI_AUTOIPD_USER=avahi-autoipd else AVAHI_AUTOIPD_USER=$with_autoipd_user fi AC_SUBST(AVAHI_AUTOIPD_USER) AC_DEFINE_UNQUOTED(AVAHI_AUTOIPD_USER,"$AVAHI_AUTOIPD_USER", [User for running the avahi-autoipd daemon]) AC_ARG_WITH(autoipd_group,AS_HELP_STRING([--with-autoipd-group=],[Group for running the avahi-autoipd daemon (avahi-autoipd)])) if test -z "$with_autoipd_group" ; then AVAHI_AUTOIPD_GROUP=avahi-autoipd else AVAHI_AUTOIPD_GROUP=$with_autoipd_group fi AC_SUBST(AVAHI_AUTOIPD_GROUP) AC_DEFINE_UNQUOTED(AVAHI_AUTOIPD_GROUP,"$AVAHI_AUTOIPD_GROUP", [Group for running the avahi-autoipd daemon]) # # Avahi runtime dir # avahi_runtime_dir="/run" avahi_socket="${avahi_runtime_dir}/avahi-daemon/socket" AC_SUBST(avahi_runtime_dir) AC_SUBST(avahi_socket) # # Avahi interfaces dir # if test "x$HAVE_PYTHON_DBUS" = "xyes" -o "x$HAVE_GTK" = "xyes" -o "x$HAVE_GTK3" = "xyes"; then interfacesdir="${datadir}/${PACKAGE}/interfaces/" AC_SUBST(interfacesdir) fi # # Doxygen # DX_HTML_FEATURE(ON) DX_CHM_FEATURE(OFF) DX_CHI_FEATURE(OFF) DX_MAN_FEATURE(OFF) DX_RTF_FEATURE(OFF) DX_XML_FEATURE(ON) DX_PDF_FEATURE(OFF) DX_PS_FEATURE(OFF) DX_INIT_DOXYGEN(avahi, doxygen.cfg, doxygen) AC_ARG_ENABLE(core-docs, AS_HELP_STRING([--enable-core-docs],[Enable building of documentation for avahi-core]), [case "${enableval}" in yes) ENABLE_CORE_DOCS=yes ;; no) ENABLE_CORE_DOCS=no ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-core-docs]) ;; esac],[ENABLE_CORE_DOCS=no]) AM_CONDITIONAL([ENABLE_CORE_DOCS], [test "x$ENABLE_CORE_DOCS" = xyes]) # # Build and Install man pages # AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages],[Disable building and installation of man pages]), [case "${enableval}" in yes) manpages=yes ;; no) manpages=no ;; *) AC_MSG_ERROR([bad value ${enableval} for --disable-manpages]) ;; esac],[manpages=yes]) if test x$manpages = xyes ; then # # XMLTOMAN manpage generation # AC_ARG_ENABLE(xmltoman, AS_HELP_STRING([--disable-xmltoman],[Disable rebuilding of man pages with xmltoman]), [case "${enableval}" in yes) xmltoman=yes ;; no) xmltoman=no ;; *) AC_MSG_ERROR([bad value ${enableval} for --disable-xmltoman]) ;; esac],[xmltoman=yes]) if test x$xmltoman = xyes ; then AC_CHECK_PROG(have_xmltoman, xmltoman, yes, no) fi if test x$have_xmltoman = xno -o x$xmltoman = xno; then if ! test -e $srcdir/man/avahi-daemon.8 ; then AC_MSG_ERROR([*** xmltoman was not found or was disabled, it is required to build the manpages as they have not been pre-built, install xmltoman, pass --disable-manpages or dont pass --disable-xmltoman]) exit 1 fi AC_MSG_WARN([*** Not rebuilding man pages as xmltoman is not found ***]) xmltoman=no fi fi AM_CONDITIONAL([USE_XMLTOMAN], [test "x$xmltoman" = xyes]) AM_CONDITIONAL([BUILD_MANPAGES], [test "x$manpages" = xyes]) # # Conditionally compile test and example programs # AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests],[Enable building of tests and examples]), [case "${enableval}" in yes) ENABLE_TESTS=yes ;; no) ENABLE_TESTS=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;; esac], [ENABLE_TESTS=no]) AM_CONDITIONAL([ENABLE_TESTS], [test "x$ENABLE_TESTS" = "xyes"]) # # Optionally enable libdns_sd compatibility support # AC_ARG_ENABLE(compat-libdns_sd, AS_HELP_STRING([--enable-compat-libdns_sd],[Enable compatibility layer for libdns_sd]), [case "${enableval}" in yes) ENABLE_COMPAT_LIBDNS_SD=yes ;; no) ENABLE_COMPAT_LIBDNS_SD=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libdns_sd) ;; esac], [ENABLE_COMPAT_LIBDNS_SD=no]) AM_CONDITIONAL([ENABLE_COMPAT_LIBDNS_SD], [test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes"]) # # Optionally enable HOWL compatibility support # AC_ARG_ENABLE(compat-howl, AS_HELP_STRING([--enable-compat-howl],[Enable compatibility layer for HOWL]), [case "${enableval}" in yes) ENABLE_COMPAT_HOWL=yes ;; no) ENABLE_COMPAT_HOWL=no ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-howl) ;; esac], [ENABLE_COMPAT_HOWL=no]) AM_CONDITIONAL([ENABLE_COMPAT_HOWL], [test "x$ENABLE_COMPAT_HOWL" = "xyes"]) # # systemd # AC_ARG_WITH([systemdsystemunitdir], AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) if test "x$with_systemdsystemunitdir" != xno; then AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) fi AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) # ========================================================================== AC_CONFIG_FILES([ Makefile avahi-common/Makefile avahi-core/Makefile avahi-glib/Makefile avahi-gobject/Makefile avahi-qt/Makefile avahi-daemon/Makefile avahi-daemon/avahi-dbus.conf avahi-discover-standalone/Makefile avahi-client/Makefile initscript/Makefile initscript/debian/Makefile initscript/gentoo/Makefile initscript/suse/Makefile initscript/fedora/Makefile initscript/lfs/Makefile initscript/mandriva/Makefile initscript/darwin/Makefile initscript/freebsd/Makefile initscript/slackware/Makefile avahi-dnsconfd/Makefile avahi-utils/Makefile avahi-python/Makefile avahi-python/avahi/Makefile avahi-python/avahi-discover/Makefile examples/Makefile common/Makefile man/Makefile tests/Makefile service-type-database/Makefile avahi-sharp/Makefile avahi-ui-sharp/Makefile avahi-compat-libdns_sd/Makefile avahi-compat-howl/Makefile avahi-compat-howl/samples/Makefile avahi-autoipd/Makefile avahi-ui/Makefile po/Makefile.in ]) AC_OUTPUT # ========================================================================== echo " ---{ $PACKAGE_NAME $VERSION }--- prefix: ${prefix} sysconfdir: ${sysconfdir} localstatedir: ${localstatedir} avahi socket: ${avahi_socket} dbus-1 system.d dir: ${DBUS_SYS_DIR} dbus-1 version: ${DBUS_VERSION} dbus-1 system socket: ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS} C Compiler: ${CC} CFLAGS: ${CFLAGS} Enable GLIB: ${HAVE_GLIB} Enable GLIB GObject: ${HAVE_GOBJECT} Enable GObject Introspection: ${found_introspection} Enable GTK 2.0: ${HAVE_GTK} Enable GTK 3.0: ${HAVE_GTK3} Enable D-Bus: ${HAVE_DBUS} With XML: ${with_xml} Enable GDBM: ${HAVE_GDBM} Enable DBM: ${HAVE_DBM} Enable libdaemon: ${HAVE_LIBDAEMON} Enable Python: ${HAVE_PYTHON} Enable pygobject: ${HAVE_PYGOBJECT} Enable python-dbus: ${HAVE_PYTHON_DBUS} Enable QT3: ${HAVE_QT3} Enable QT4: ${HAVE_QT4} Enable Mono: ${HAVE_MONO} Enable Monodoc: ${HAVE_MONODOC} Distribution/OS: ${with_distro} User for avahi-daemon: ${AVAHI_USER} Group for avahi-daemon: ${AVAHI_GROUP} Priviliged access group for Avahi clients: ${AVAHI_PRIV_ACCESS_GROUP} User for avahi-autoipd: ${AVAHI_AUTOIPD_USER} Group for avahi-autoipd: ${AVAHI_AUTOIPD_GROUP} Enable chroot(): ${enable_chroot} Enable Linux inotify: ${have_inotify} Enable stack-smashing protection: ${enable_ssp} systemd unit directory: ${with_systemdsystemunitdir} " BUILD_DAEMON="no (You need libdaemon and expat/bsdxml!)" if test "x$HAVE_XML" = "xyes" -a "x$HAVE_LIBDAEMON" = "xyes" ; then BUILD_DAEMON=yes fi BUILD_PYTHON="no (You need python, pygobject and python-dbus!)" if test "x$BUILD_DAEMON" = "xyes" -a "x$HAVE_DBUS" = "xyes" -a "x$HAVE_PYTHON" = "xyes" -a "x$HAVE_PYTHON_DBUS" = "xyes" -a "x$HAVE_PYGOBJECT" = "xyes" ; then BUILD_PYTHON=yes fi BUILD_CLIENT="no (You need avahi-daemon and D-Bus!)" if test "x$HAVE_DBUS" = "xyes" ; then BUILD_CLIENT=yes fi if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then ENABLE_COMPAT_LIBDNS_SD="no (You need libavahi-client!)" fi if test "x$ENABLE_COMPAT_HOWL" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then ENABLE_COMPAT_HOWL="no (You need libavahi-client!)" fi if test "x$ENABLE_AUTOIPD" = "xyes" -a "x$HAVE_LIBDAEMON" != "xyes" ; then ENABLE_AUTOIPD="no (You need libdaemon!)" fi HAVE_GTK2OR3=no if test "x$HAVE_GTK" = "xyes" -o "x$HAVE_GTK3" = "xyes" ; then HAVE_GTK2OR3=yes fi BUILD_UI="no" if test "x$HAVE_GTK2OR3" = "xyes" -a "x$BUILD_CLIENT" = "xyes" ; then BUILD_UI="yes" fi BUILD_GOBJECT="no" if test "x$BUILD_CLIENT" = "xyes" -a "x$HAVE_GOBJECT" = "xyes" ; then BUILD_GOBJECT="yes" fi echo "\ Building libavahi-core yes Building avahi-daemon: ${BUILD_DAEMON} Building avahi-dnsconfd: ${BUILD_DAEMON} Building libavahi-client: ${BUILD_CLIENT} Building avahi-utils: ${BUILD_CLIENT} Building avahi-python: ${BUILD_PYTHON} Building libavahi-glib: ${HAVE_GLIB} Building libavahi-gobject: ${BUILD_GOBJECT} Building avahi-discover-standalone: ${HAVE_GTK2OR3} Building libavahi-qt3: ${HAVE_QT3} Building libavahi-qt4: ${HAVE_QT4} Building avahi-sharp: ${HAVE_MONO} Building avahi-compat-libdns_sd: ${ENABLE_COMPAT_LIBDNS_SD} Building avahi-compat-howl: ${ENABLE_COMPAT_HOWL} Building tests: ${ENABLE_TESTS} Building avahi-core documentation: ${ENABLE_CORE_DOCS} Building avahi-autoipd: ${ENABLE_AUTOIPD} Building libavahi-ui: ${BUILD_UI} " avahi-0.7/PaxHeaders.10109/aclocal.m40000644000000000000000000000013113130652007014033 xustar0030 mtime=1499681799.885109847 30 atime=1499681799.957108237 29 ctime=1499681849.99599029 avahi-0.7/aclocal.m40000644000175000017500000022722613130652007015456 0ustar00lathiatlathiat00000000000000# generated automatically by aclocal 1.15 -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, Inc. # # This file is free software, distributed under the terms of the GNU # General Public License. As a special exception to the GNU General # Public License, this file may be distributed as part of a program # that contains a configuration script generated by Autoconf, under # the same distribution terms as the rest of that program. # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU Public License # but which still want to provide support for the GNU gettext functionality. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # We need this here as well, since someone might use autoconf-2.5x # to configure GLib then an older version to configure a package # using AM_GLIB_GNU_GETTEXT AC_PREREQ(2.53) dnl dnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macros dnl when running aclocal in the glib directory. dnl m4_copy([AC_DEFUN],[glib_DEFUN]) m4_copy([AC_REQUIRE],[glib_REQUIRE]) dnl dnl At the end, if we're not within glib, we'll define the public dnl definitions in terms of our private definitions. dnl # GLIB_LC_MESSAGES #-------------------- glib_DEFUN([GLIB_LC_MESSAGES], [AC_CHECK_HEADERS([locale.h]) if test $ac_cv_header_locale_h = yes; then AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi fi]) # GLIB_PATH_PROG_WITH_TEST #---------------------------- dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], [# Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in /*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in ifelse([$5], , $PATH, [$5]); do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) dnl Checks for special options needed on Mac OS X. dnl Defines INTL_MACOSX_LIBS. dnl dnl Copied from intlmacosx.m4 in gettext, GPL. dnl Copyright (C) 2004-2013 Free Software Foundation, Inc. glib_DEFUN([glib_gt_INTL_MACOSX], [ dnl Check for API introduced in Mac OS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[CFPreferencesCopyAppValue(NULL, NULL)]])], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in Mac OS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include ]], [[CFLocaleCopyCurrent();]])], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [USE_NLS=yes AC_SUBST(USE_NLS) gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= glib_gt_INTL_MACOSX AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, [AC_TRY_LINK([ #include ], [return !ngettext ("","", 1)], gt_cv_func_ngettext_libc=yes, gt_cv_func_ngettext_libc=no) ]) if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, [AC_TRY_LINK([ #include ], [return !dgettext ("","")], gt_cv_func_dgettext_libc=yes, gt_cv_func_dgettext_libc=no) ]) fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then AC_CHECK_FUNCS(bind_textdomain_codeset) fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then AC_CHECK_LIB(intl, bindtextdomain, [AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dgettext, gt_cv_func_dgettext_libintl=yes)])]) if test "$gt_cv_func_dgettext_libintl" != "yes" ; then AC_MSG_CHECKING([if -liconv is needed to use gettext]) AC_MSG_RESULT([]) AC_CHECK_LIB(intl, ngettext, [AC_CHECK_LIB(intl, dcgettext, [gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv], :,-liconv)], :,-liconv) fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset AC_CHECK_FUNCS(bind_textdomain_codeset) LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS" fi if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" AC_CHECK_FUNCS(dcgettext) MSGFMT_OPTS= AC_MSG_CHECKING([if msgfmt accepts -c]) GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) AC_SUBST(MSGFMT_OPTS) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr], [CATOBJEXT=.gmo DATADIRNAME=share], [case $host in *-*-solaris*) dnl On Solaris, if bind_textdomain_codeset is in libc, dnl GNU format message catalog is always supported, dnl since both are added to the libc all together. dnl Hence, we'd like to go with DATADIRNAME=share and dnl and CATOBJEXT=.gmo in this case. AC_CHECK_FUNC(bind_textdomain_codeset, [CATOBJEXT=.gmo DATADIRNAME=share], [CATOBJEXT=.mo DATADIRNAME=lib]) ;; *-*-openbsd*) CATOBJEXT=.mo DATADIRNAME=share ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac]) LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi ]) if test "$gt_cv_have_gettext" = "yes" ; then AC_DEFINE(ENABLE_NLS, 1, [always defined to indicate that i18n is enabled]) fi dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is not GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po AC_OUTPUT_COMMANDS( [case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac]) dnl These rules are solely for the distribution goal. While doing this dnl we only have to keep exactly one list of the available catalogs dnl in configure.ac. for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done dnl Make all variables we use known to autoconf. AC_SUBST(CATALOGS) AC_SUBST(CATOBJEXT) AC_SUBST(DATADIRNAME) AC_SUBST(GMOFILES) AC_SUBST(INSTOBJEXT) AC_SUBST(INTLLIBS) AC_SUBST(PO_IN_DATADIR_TRUE) AC_SUBST(PO_IN_DATADIR_FALSE) AC_SUBST(POFILES) AC_SUBST(POSUB) ]) # AM_GLIB_GNU_GETTEXT # ------------------- # Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library, # it will set INTLLIBS to the libraries needed for use of gettext # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() # on various variables needed by the Makefile.in.in installed by # glib-gettextize. dnl AU_DEFUN([GLIB_GNU_GETTEXT], [AC_REQUIRE([AC_PROG_CC])dnl GLIB_LC_MESSAGES GLIB_WITH_NLS if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else AC_MSG_CHECKING(for catalogs to be installed) NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS AC_MSG_RESULT($LINGUAS) fi dnl Construct list of names of catalog files to be constructed. if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but ($top_srcdir). dnl Try to locate is. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) dnl Generate list of files to be processed by xgettext which will dnl be included in po/Makefile. test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES ], [[$0: This macro is deprecated. You should use upstream gettext instead.]]) # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) # ------------------------------- # Define VARIABLE to the location where catalog files will # be installed by po/Makefile. glib_DEFUN([GLIB_DEFINE_LOCALEDIR], [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl glib_save_prefix="$prefix" glib_save_exec_prefix="$exec_prefix" glib_save_datarootdir="$datarootdir" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix=$prefix datarootdir=`eval echo "${datarootdir}"` if test "x$CATOBJEXT" = "x.mo" ; then localedir=`eval echo "${libdir}/locale"` else localedir=`eval echo "${datadir}/locale"` fi prefix="$glib_save_prefix" exec_prefix="$glib_save_exec_prefix" datarootdir="$glib_save_datarootdir" AC_DEFINE_UNQUOTED($1, "$localedir", [Define the location where the catalogs will be installed]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_ac,[],[ AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) ])dnl # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) # # Create a temporary file with TEST-FILE as its contents and pass the # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with # 0 and perform ACTION-IF-FAIL for any other exit status. AC_DEFUN([GLIB_RUN_PROG], [cat >conftest.foo <<_ACEOF $2 _ACEOF if AC_RUN_LOG([$1 conftest.foo]); then m4_ifval([$3], [$3], [:]) m4_ifvaln([$4], [else $4])dnl echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD fi]) dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- dnl serial 11 (pkg-config-0.29.1) dnl dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.1]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR # Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.15' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.15], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.15])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 1999-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # --------------------------------------------------------------------------- # Adds support for distributing Python modules and packages. To # install modules, copy them to $(pythondir), using the python_PYTHON # automake variable. To install a package with the same name as the # automake package, install to $(pkgpythondir), or use the # pkgpython_PYTHON automake variable. # # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as # locations to install python extension modules (shared libraries). # Another macro is required to find the appropriate flags to compile # extension modules. # # If your package is configured with a different prefix to python, # users will have to add the install directory to the PYTHONPATH # environment variable, or create a .pth file (see the python # documentation for details). # # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will # cause an error if the version of python installed on the system # doesn't meet the requirement. MINIMUM-VERSION should consist of # numbers and dots only. AC_DEFUN([AM_PATH_PYTHON], [ dnl Find a Python interpreter. Python versions prior to 2.0 are not dnl supported. (2.0 was released on October 16, 2000). m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [python python2 python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 dnl python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0]) AC_ARG_VAR([PYTHON], [the Python interpreter]) m4_if([$1],[],[ dnl No version check is needed. # Find any Python interpreter. if test -z "$PYTHON"; then AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :) fi am_display_PYTHON=python ], [ dnl A version check is needed. if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else. AC_MSG_CHECKING([whether $PYTHON version is >= $1]) AM_PYTHON_CHECK_VERSION([$PYTHON], [$1], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([Python interpreter is too old])]) am_display_PYTHON=$PYTHON else # Otherwise, try each interpreter until we find one that satisfies # VERSION. AC_CACHE_CHECK([for a Python interpreter with version >= $1], [am_cv_pathless_PYTHON],[ for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do test "$am_cv_pathless_PYTHON" = none && break AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break]) done]) # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. if test "$am_cv_pathless_PYTHON" = none; then PYTHON=: else AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON]) fi am_display_PYTHON=$am_cv_pathless_PYTHON fi ]) if test "$PYTHON" = :; then dnl Run any user-specified action, or abort. m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) else dnl Query Python for its version number. Getting [:3] seems to be dnl the best way to do this; it's what "site.py" does in the standard dnl library. AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`]) AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) dnl Use the values of $prefix and $exec_prefix for the corresponding dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made dnl distinct variables so they can be overridden if need be. However, dnl general consensus is that you shouldn't need this ability. AC_SUBST([PYTHON_PREFIX], ['${prefix}']) AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) dnl At times (like when building shared libraries) you may want dnl to know which OS platform Python thinks this is. AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform], [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`]) AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform]) # Just factor out some code duplication. am_python_setup_sysconfig="\ import sys # Prefer sysconfig over distutils.sysconfig, for better compatibility # with python 3.x. See automake bug#10227. try: import sysconfig except ImportError: can_use_sysconfig = 0 else: can_use_sysconfig = 1 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: # try: from platform import python_implementation if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7': can_use_sysconfig = 0 except ImportError: pass" dnl Set up 4 directories: dnl pythondir -- where to install python scripts. This is the dnl site-packages directory, not the python standard library dnl directory like in previous automake betas. This behavior dnl is more consistent with lispdir.m4 for example. dnl Query distutils for this directory. AC_CACHE_CHECK([for $am_display_PYTHON script directory], [am_cv_python_pythondir], [if test "x$prefix" = xNONE then am_py_prefix=$ac_default_prefix else am_py_prefix=$prefix fi am_cv_python_pythondir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` case $am_cv_python_pythondir in $am_py_prefix*) am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` ;; *) case $am_py_prefix in /usr|/System*) ;; *) am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac ]) AC_SUBST([pythondir], [$am_cv_python_pythondir]) dnl pkgpythondir -- $PACKAGE directory under pythondir. Was dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is dnl more consistent with the rest of automake. AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE]) dnl pyexecdir -- directory for installing python extension modules dnl (shared libraries) dnl Query distutils for this directory. AC_CACHE_CHECK([for $am_display_PYTHON extension module directory], [am_cv_python_pyexecdir], [if test "x$exec_prefix" = xNONE then am_py_exec_prefix=$am_py_prefix else am_py_exec_prefix=$exec_prefix fi am_cv_python_pyexecdir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` case $am_cv_python_pyexecdir in $am_py_exec_prefix*) am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` ;; *) case $am_py_exec_prefix in /usr|/System*) ;; *) am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac ]) AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE) AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE]) dnl Run any user-specified action. $2 fi ]) # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) # --------------------------------------------------------------------------- # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION. # Run ACTION-IF-FALSE otherwise. # This test uses sys.hexversion instead of the string equivalent (first # word of sys.version), in order to cope with versions such as 2.2c1. # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000). AC_DEFUN([AM_PYTHON_CHECK_VERSION], [prog="import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]] sys.exit(sys.hexversion < minverhex)" AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([common/acx_pthread.m4]) m4_include([common/gcc_stack_protect.m4]) m4_include([common/gcc_visibility.m4]) m4_include([common/intltool.m4]) m4_include([common/introspection.m4]) m4_include([common/libtool.m4]) m4_include([common/ltoptions.m4]) m4_include([common/ltsugar.m4]) m4_include([common/ltversion.m4]) m4_include([common/lt~obsolete.m4]) m4_include([common/nls.m4]) m4_include([common/python.m4]) m4_include([acinclude.m4]) avahi-0.7/PaxHeaders.10109/avahi-glib.pc.in0000644000000000000000000000013213130651643015135 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.019989754 avahi-0.7/avahi-glib.pc.in0000644000175000017500000000042113130651643016541 0ustar00lathiatlathiat00000000000000prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: avahi-glib Description: Avahi Multicast DNS Responder (GLib Support) Version: @PACKAGE_VERSION@ Requires: glib-2.0 Libs: -L${libdir} -lavahi-glib Cflags: -D_REENTRANT -I${includedir} avahi-0.7/PaxHeaders.10109/LICENSE0000644000000000000000000000013213130651643013206 xustar0030 mtime=1499681699.083371116 30 atime=1499681699.083371116 30 ctime=1499681850.007990023 avahi-0.7/LICENSE0000644000175000017500000006363713130651643014634 0ustar00lathiatlathiat00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! avahi-0.7/PaxHeaders.10109/avahi-glib0000644000000000000000000000013213130652072014124 xustar0030 mtime=1499681850.207985559 30 atime=1499681851.283961552 30 ctime=1499681850.207985559 avahi-0.7/avahi-glib/0000755000175000017500000000000013130652072015610 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-glib/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011016237 xustar0030 mtime=1499681801.521073253 30 atime=1499681806.612959373 30 ctime=1499681850.203985649 avahi-0.7/avahi-glib/Makefile.in0000644000175000017500000010760713130652011017661 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_TESTS_TRUE@@HAVE_GLIB_TRUE@noinst_PROGRAMS = \ @ENABLE_TESTS_TRUE@@HAVE_GLIB_TRUE@ glib-watch-test$(EXEEXT) subdir = avahi-glib ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am \ $(am__avahiglibinclude_HEADERS_DIST) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(avahiglibincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = @HAVE_GLIB_TRUE@libavahi_glib_la_DEPENDENCIES = \ @HAVE_GLIB_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_GLIB_TRUE@ $(am__DEPENDENCIES_1) am__libavahi_glib_la_SOURCES_DIST = glib-watch.c glib-watch.h \ glib-malloc.h glib-malloc.c @HAVE_GLIB_TRUE@am_libavahi_glib_la_OBJECTS = \ @HAVE_GLIB_TRUE@ libavahi_glib_la-glib-watch.lo \ @HAVE_GLIB_TRUE@ libavahi_glib_la-glib-malloc.lo libavahi_glib_la_OBJECTS = $(am_libavahi_glib_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libavahi_glib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libavahi_glib_la_CFLAGS) $(CFLAGS) \ $(libavahi_glib_la_LDFLAGS) $(LDFLAGS) -o $@ @HAVE_GLIB_TRUE@am_libavahi_glib_la_rpath = -rpath $(libdir) PROGRAMS = $(noinst_PROGRAMS) am__glib_watch_test_SOURCES_DIST = glib-watch.c glib-watch.h \ glib-watch-test.c @HAVE_GLIB_TRUE@am_glib_watch_test_OBJECTS = \ @HAVE_GLIB_TRUE@ glib_watch_test-glib-watch.$(OBJEXT) \ @HAVE_GLIB_TRUE@ glib_watch_test-glib-watch-test.$(OBJEXT) glib_watch_test_OBJECTS = $(am_glib_watch_test_OBJECTS) @HAVE_GLIB_TRUE@glib_watch_test_DEPENDENCIES = \ @HAVE_GLIB_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_GLIB_TRUE@ $(am__DEPENDENCIES_1) glib_watch_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(glib_watch_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libavahi_glib_la_SOURCES) $(glib_watch_test_SOURCES) DIST_SOURCES = $(am__libavahi_glib_la_SOURCES_DIST) \ $(am__glib_watch_test_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__avahiglibinclude_HEADERS_DIST = glib-watch.h glib-malloc.h HEADERS = $(avahiglibinclude_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' @HAVE_GLIB_TRUE@avahiglibincludedir = $(includedir)/avahi-glib @HAVE_GLIB_TRUE@avahiglibinclude_HEADERS = \ @HAVE_GLIB_TRUE@ glib-watch.h \ @HAVE_GLIB_TRUE@ glib-malloc.h @HAVE_GLIB_TRUE@lib_LTLIBRARIES = \ @HAVE_GLIB_TRUE@ libavahi-glib.la @HAVE_GLIB_TRUE@libavahi_glib_la_SOURCES = \ @HAVE_GLIB_TRUE@ glib-watch.c glib-watch.h \ @HAVE_GLIB_TRUE@ glib-malloc.h glib-malloc.c @HAVE_GLIB_TRUE@libavahi_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS) @HAVE_GLIB_TRUE@libavahi_glib_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(GLIB20_LIBS) @HAVE_GLIB_TRUE@libavahi_glib_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_GLIB_VERSION_INFO) @HAVE_GLIB_TRUE@glib_watch_test_SOURCES = \ @HAVE_GLIB_TRUE@ glib-watch.c glib-watch.h \ @HAVE_GLIB_TRUE@ glib-watch-test.c @HAVE_GLIB_TRUE@glib_watch_test_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS) @HAVE_GLIB_TRUE@glib_watch_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(GLIB20_LIBS) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-glib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-glib/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libavahi-glib.la: $(libavahi_glib_la_OBJECTS) $(libavahi_glib_la_DEPENDENCIES) $(EXTRA_libavahi_glib_la_DEPENDENCIES) $(AM_V_CCLD)$(libavahi_glib_la_LINK) $(am_libavahi_glib_la_rpath) $(libavahi_glib_la_OBJECTS) $(libavahi_glib_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list glib-watch-test$(EXEEXT): $(glib_watch_test_OBJECTS) $(glib_watch_test_DEPENDENCIES) $(EXTRA_glib_watch_test_DEPENDENCIES) @rm -f glib-watch-test$(EXEEXT) $(AM_V_CCLD)$(glib_watch_test_LINK) $(glib_watch_test_OBJECTS) $(glib_watch_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glib_watch_test-glib-watch-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glib_watch_test-glib-watch.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_glib_la-glib-malloc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libavahi_glib_la-glib-watch.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libavahi_glib_la-glib-watch.lo: glib-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_glib_la_CFLAGS) $(CFLAGS) -MT libavahi_glib_la-glib-watch.lo -MD -MP -MF $(DEPDIR)/libavahi_glib_la-glib-watch.Tpo -c -o libavahi_glib_la-glib-watch.lo `test -f 'glib-watch.c' || echo '$(srcdir)/'`glib-watch.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_glib_la-glib-watch.Tpo $(DEPDIR)/libavahi_glib_la-glib-watch.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='glib-watch.c' object='libavahi_glib_la-glib-watch.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_glib_la_CFLAGS) $(CFLAGS) -c -o libavahi_glib_la-glib-watch.lo `test -f 'glib-watch.c' || echo '$(srcdir)/'`glib-watch.c libavahi_glib_la-glib-malloc.lo: glib-malloc.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_glib_la_CFLAGS) $(CFLAGS) -MT libavahi_glib_la-glib-malloc.lo -MD -MP -MF $(DEPDIR)/libavahi_glib_la-glib-malloc.Tpo -c -o libavahi_glib_la-glib-malloc.lo `test -f 'glib-malloc.c' || echo '$(srcdir)/'`glib-malloc.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libavahi_glib_la-glib-malloc.Tpo $(DEPDIR)/libavahi_glib_la-glib-malloc.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='glib-malloc.c' object='libavahi_glib_la-glib-malloc.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_glib_la_CFLAGS) $(CFLAGS) -c -o libavahi_glib_la-glib-malloc.lo `test -f 'glib-malloc.c' || echo '$(srcdir)/'`glib-malloc.c glib_watch_test-glib-watch.o: glib-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_watch_test_CFLAGS) $(CFLAGS) -MT glib_watch_test-glib-watch.o -MD -MP -MF $(DEPDIR)/glib_watch_test-glib-watch.Tpo -c -o glib_watch_test-glib-watch.o `test -f 'glib-watch.c' || echo '$(srcdir)/'`glib-watch.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/glib_watch_test-glib-watch.Tpo $(DEPDIR)/glib_watch_test-glib-watch.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='glib-watch.c' object='glib_watch_test-glib-watch.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_watch_test_CFLAGS) $(CFLAGS) -c -o glib_watch_test-glib-watch.o `test -f 'glib-watch.c' || echo '$(srcdir)/'`glib-watch.c glib_watch_test-glib-watch.obj: glib-watch.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_watch_test_CFLAGS) $(CFLAGS) -MT glib_watch_test-glib-watch.obj -MD -MP -MF $(DEPDIR)/glib_watch_test-glib-watch.Tpo -c -o glib_watch_test-glib-watch.obj `if test -f 'glib-watch.c'; then $(CYGPATH_W) 'glib-watch.c'; else $(CYGPATH_W) '$(srcdir)/glib-watch.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/glib_watch_test-glib-watch.Tpo $(DEPDIR)/glib_watch_test-glib-watch.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='glib-watch.c' object='glib_watch_test-glib-watch.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_watch_test_CFLAGS) $(CFLAGS) -c -o glib_watch_test-glib-watch.obj `if test -f 'glib-watch.c'; then $(CYGPATH_W) 'glib-watch.c'; else $(CYGPATH_W) '$(srcdir)/glib-watch.c'; fi` glib_watch_test-glib-watch-test.o: glib-watch-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_watch_test_CFLAGS) $(CFLAGS) -MT glib_watch_test-glib-watch-test.o -MD -MP -MF $(DEPDIR)/glib_watch_test-glib-watch-test.Tpo -c -o glib_watch_test-glib-watch-test.o `test -f 'glib-watch-test.c' || echo '$(srcdir)/'`glib-watch-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/glib_watch_test-glib-watch-test.Tpo $(DEPDIR)/glib_watch_test-glib-watch-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='glib-watch-test.c' object='glib_watch_test-glib-watch-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_watch_test_CFLAGS) $(CFLAGS) -c -o glib_watch_test-glib-watch-test.o `test -f 'glib-watch-test.c' || echo '$(srcdir)/'`glib-watch-test.c glib_watch_test-glib-watch-test.obj: glib-watch-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_watch_test_CFLAGS) $(CFLAGS) -MT glib_watch_test-glib-watch-test.obj -MD -MP -MF $(DEPDIR)/glib_watch_test-glib-watch-test.Tpo -c -o glib_watch_test-glib-watch-test.obj `if test -f 'glib-watch-test.c'; then $(CYGPATH_W) 'glib-watch-test.c'; else $(CYGPATH_W) '$(srcdir)/glib-watch-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/glib_watch_test-glib-watch-test.Tpo $(DEPDIR)/glib_watch_test-glib-watch-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='glib-watch-test.c' object='glib_watch_test-glib-watch-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(glib_watch_test_CFLAGS) $(CFLAGS) -c -o glib_watch_test-glib-watch-test.obj `if test -f 'glib-watch-test.c'; then $(CYGPATH_W) 'glib-watch-test.c'; else $(CYGPATH_W) '$(srcdir)/glib-watch-test.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahiglibincludeHEADERS: $(avahiglibinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(avahiglibinclude_HEADERS)'; test -n "$(avahiglibincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahiglibincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahiglibincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahiglibincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahiglibincludedir)" || exit $$?; \ done uninstall-avahiglibincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahiglibinclude_HEADERS)'; test -n "$(avahiglibincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahiglibincludedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahiglibincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-avahiglibincludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-avahiglibincludeHEADERS \ uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-avahiglibincludeHEADERS install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am \ uninstall-avahiglibincludeHEADERS uninstall-libLTLIBRARIES .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-glib/PaxHeaders.10109/glib-watch-test.c0000644000000000000000000000013213130651643017346 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.207985559 avahi-0.7/avahi-glib/glib-watch-test.c0000644000175000017500000000437413130651643020765 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "glib-watch.h" static const AvahiPoll *api = NULL; static GMainLoop *loop = NULL; static void callback(AvahiWatch *w, int fd, AvahiWatchEvent event, AVAHI_GCC_UNUSED void *userdata) { if (event & AVAHI_WATCH_IN) { ssize_t r; char c; if ((r = read(fd, &c, 1)) <= 0) { fprintf(stderr, "read() failed: %s\n", r < 0 ? strerror(errno) : "EOF"); api->watch_free(w); return; } printf("Read: %c\n", c >= 32 && c < 127 ? c : '.'); } } static void wakeup(AvahiTimeout *t, AVAHI_GCC_UNUSED void *userdata) { struct timeval tv; static int i = 0; printf("Wakeup #%i\n", i++); if (i > 10) g_main_loop_quit(loop); avahi_elapse_time(&tv, 1000, 0); api->timeout_update(t, &tv); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { AvahiGLibPoll *g; struct timeval tv; g = avahi_glib_poll_new(NULL, G_PRIORITY_DEFAULT); assert(g); api = avahi_glib_poll_get(g); api->watch_new(api, 0, AVAHI_WATCH_IN, callback, NULL); avahi_elapse_time(&tv, 1000, 0); api->timeout_new(api, &tv, wakeup, NULL); loop = g_main_loop_new(NULL, FALSE); g_main_loop_run(loop); g_main_loop_unref(loop); avahi_glib_poll_free(g); return 0; } avahi-0.7/avahi-glib/PaxHeaders.10109/glib-watch.h0000644000000000000000000000013213130651643016376 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.203985649 avahi-0.7/avahi-glib/glib-watch.h0000644000175000017500000000344313130651643020011 0ustar00lathiatlathiat00000000000000#ifndef fooglibwatchhfoo #define fooglibwatchhfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file glib-watch.h GLib main loop adapter */ /** \example glib-integration.c Example of how to integrate * avahi use with GLIB/GTK applications */ #include #include #include AVAHI_C_DECL_BEGIN /** GLib main loop adapter. You can safely cast this into a GSource */ typedef struct AvahiGLibPoll AvahiGLibPoll; /** Create a new GLib main loop adapter attached to the specified context. If context is NULL, the default main loop context is used. You can attach as many AvahiGLibPoll objects to the same context as you want. priority takes one of GLib's G_PRIORITY constants. */ AvahiGLibPoll *avahi_glib_poll_new(GMainContext *context, gint priority); /** Free GLib main loop adapter */ void avahi_glib_poll_free(AvahiGLibPoll *g); /** Return the abstract poll API structure for this object. This will * return the same pointer to a internally allocated structure on each * call */ const AvahiPoll *avahi_glib_poll_get(AvahiGLibPoll *g); AVAHI_C_DECL_END #endif avahi-0.7/avahi-glib/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643016240 xustar0030 mtime=1499681699.115370395 30 atime=1499681796.797178931 30 ctime=1499681850.203985649 avahi-0.7/avahi-glib/Makefile.am0000644000175000017500000000311013130651643017642 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' if HAVE_GLIB avahiglibincludedir=$(includedir)/avahi-glib avahiglibinclude_HEADERS = \ glib-watch.h \ glib-malloc.h lib_LTLIBRARIES = \ libavahi-glib.la if ENABLE_TESTS noinst_PROGRAMS = \ glib-watch-test endif libavahi_glib_la_SOURCES = \ glib-watch.c glib-watch.h \ glib-malloc.h glib-malloc.c libavahi_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS) libavahi_glib_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(GLIB20_LIBS) libavahi_glib_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_GLIB_VERSION_INFO) glib_watch_test_SOURCES = \ glib-watch.c glib-watch.h \ glib-watch-test.c glib_watch_test_CFLAGS = $(AM_CFLAGS) $(GLIB20_CFLAGS) glib_watch_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la $(GLIB20_LIBS) endif avahi-0.7/avahi-glib/PaxHeaders.10109/glib-malloc.h0000644000000000000000000000013213130651643016537 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.203985649 avahi-0.7/avahi-glib/glib-malloc.h0000644000175000017500000000235213130651643020150 0ustar00lathiatlathiat00000000000000#ifndef fooglibmallochfoo #define fooglibmallochfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /** \file glib-malloc.h GLib's memory allocator for Avahi */ #include #include #include AVAHI_C_DECL_BEGIN /** Return a pointer to a memory allocator that uses GLib's g_malloc() and friends. The returned structure is statically allocated, and needs not to be copied or freed. Pass this directly to avahi_set_allocator(). */ const AvahiAllocator * avahi_glib_allocator(void); AVAHI_C_DECL_END #endif avahi-0.7/avahi-glib/PaxHeaders.10109/glib-malloc.c0000644000000000000000000000013213130651643016532 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.203985649 avahi-0.7/avahi-glib/glib-malloc.c0000644000175000017500000000274213130651643020146 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "glib-malloc.h" static void* malloc_glue(size_t l) { return g_malloc(l); } static void* realloc_glue(void *p, size_t l) { return g_realloc(p, l); } static void* calloc_glue(size_t nmemb, size_t size) { return g_malloc0(nmemb * size); } const AvahiAllocator *avahi_glib_allocator(void) { static AvahiAllocator allocator; static int allocator_initialized = 0; if (!allocator_initialized) { allocator.malloc = malloc_glue; allocator.free = g_free; allocator.realloc = realloc_glue; allocator.calloc = calloc_glue; allocator_initialized = 1; } return &allocator; } avahi-0.7/avahi-glib/PaxHeaders.10109/glib-watch.c0000644000000000000000000000013213130651643016371 xustar0030 mtime=1499681699.115370395 30 atime=1499681699.115370395 30 ctime=1499681850.203985649 avahi-0.7/avahi-glib/glib-watch.c0000644000175000017500000002246713130651643020013 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "glib-watch.h" struct AvahiWatch { AvahiGLibPoll *glib_poll; int dead; GPollFD pollfd; int pollfd_added; AvahiWatchCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiWatch, watches); }; struct AvahiTimeout { AvahiGLibPoll *glib_poll; gboolean dead; gboolean enabled; struct timeval expiry; AvahiTimeoutCallback callback; void *userdata; AVAHI_LLIST_FIELDS(AvahiTimeout, timeouts); }; struct AvahiGLibPoll { GSource source; AvahiPoll api; GMainContext *context; gboolean timeout_req_cleanup; gboolean watch_req_cleanup; AVAHI_LLIST_HEAD(AvahiWatch, watches); AVAHI_LLIST_HEAD(AvahiTimeout, timeouts); }; static void destroy_watch(AvahiWatch *w) { assert(w); if (w->pollfd_added) g_source_remove_poll(&w->glib_poll->source, &w->pollfd); AVAHI_LLIST_REMOVE(AvahiWatch, watches, w->glib_poll->watches, w); avahi_free(w); } static void cleanup_watches(AvahiGLibPoll *g, int all) { AvahiWatch *w, *next; assert(g); for (w = g->watches; w; w = next) { next = w->watches_next; if (all || w->dead) destroy_watch(w); } g->watch_req_cleanup = FALSE; } static gushort map_events_to_glib(AvahiWatchEvent events) { return (events & AVAHI_WATCH_IN ? G_IO_IN : 0) | (events & AVAHI_WATCH_OUT ? G_IO_OUT : 0) | (events & AVAHI_WATCH_ERR ? G_IO_ERR : 0) | (events & AVAHI_WATCH_HUP ? G_IO_HUP : 0); } static AvahiWatchEvent map_events_from_glib(gushort events) { return (events & G_IO_IN ? AVAHI_WATCH_IN : 0) | (events & G_IO_OUT ? AVAHI_WATCH_OUT : 0) | (events & G_IO_ERR ? AVAHI_WATCH_ERR : 0) | (events & G_IO_HUP ? AVAHI_WATCH_HUP : 0); } static AvahiWatch* watch_new(const AvahiPoll *api, int fd, AvahiWatchEvent events, AvahiWatchCallback callback, void *userdata) { AvahiWatch *w; AvahiGLibPoll *g; assert(api); assert(fd >= 0); assert(callback); g = api->userdata; assert(g); if (!(w = avahi_new(AvahiWatch, 1))) return NULL; w->glib_poll = g; w->pollfd.fd = fd; w->pollfd.events = map_events_to_glib(events); w->pollfd.revents = 0; w->callback = callback; w->userdata = userdata; w->dead = FALSE; g_source_add_poll(&g->source, &w->pollfd); w->pollfd_added = TRUE; AVAHI_LLIST_PREPEND(AvahiWatch, watches, g->watches, w); return w; } static void watch_update(AvahiWatch *w, AvahiWatchEvent events) { assert(w); assert(!w->dead); w->pollfd.events = map_events_to_glib(events); } static AvahiWatchEvent watch_get_events(AvahiWatch *w) { assert(w); assert(!w->dead); return map_events_from_glib(w->pollfd.revents); } static void watch_free(AvahiWatch *w) { assert(w); assert(!w->dead); if (w->pollfd_added) { g_source_remove_poll(&w->glib_poll->source, &w->pollfd); w->pollfd_added = FALSE; } w->dead = TRUE; w->glib_poll->watch_req_cleanup = TRUE; } static AvahiTimeout* timeout_new(const AvahiPoll *api, const struct timeval *tv, AvahiTimeoutCallback callback, void *userdata) { AvahiTimeout *t; AvahiGLibPoll *g; assert(api); assert(callback); g = api->userdata; assert(g); if (!(t = avahi_new(AvahiTimeout, 1))) return NULL; t->glib_poll = g; t->dead = FALSE; if ((t->enabled = !!tv)) t->expiry = *tv; t->callback = callback; t->userdata = userdata; AVAHI_LLIST_PREPEND(AvahiTimeout, timeouts, g->timeouts, t); return t; } static void timeout_update(AvahiTimeout *t, const struct timeval *tv) { assert(t); assert(!t->dead); if ((t->enabled = !!tv)) t->expiry = *tv; } static void timeout_free(AvahiTimeout *t) { assert(t); assert(!t->dead); t->dead = TRUE; t->glib_poll->timeout_req_cleanup = TRUE; } static void destroy_timeout(AvahiTimeout *t) { assert(t); AVAHI_LLIST_REMOVE(AvahiTimeout, timeouts, t->glib_poll->timeouts, t); avahi_free(t); } static void cleanup_timeouts(AvahiGLibPoll *g, int all) { AvahiTimeout *t, *next; assert(g); for (t = g->timeouts; t; t = next) { next = t->timeouts_next; if (all || t->dead) destroy_timeout(t); } g->timeout_req_cleanup = FALSE; } static AvahiTimeout* find_next_timeout(AvahiGLibPoll *g) { AvahiTimeout *t, *n = NULL; assert(g); for (t = g->timeouts; t; t = t->timeouts_next) { if (t->dead || !t->enabled) continue; if (!n || avahi_timeval_compare(&t->expiry, &n->expiry) < 0) n = t; } return n; } static void start_timeout_callback(AvahiTimeout *t) { assert(t); assert(!t->dead); assert(t->enabled); t->enabled = 0; t->callback(t, t->userdata); } static gboolean prepare_func(GSource *source, gint *timeout) { AvahiGLibPoll *g = (AvahiGLibPoll*) source; AvahiTimeout *next_timeout; g_assert(g); g_assert(timeout); if (g->watch_req_cleanup) cleanup_watches(g, 0); if (g->timeout_req_cleanup) cleanup_timeouts(g, 0); if ((next_timeout = find_next_timeout(g))) { GTimeVal now; struct timeval tvnow; AvahiUsec usec; g_source_get_current_time(source, &now); tvnow.tv_sec = now.tv_sec; tvnow.tv_usec = now.tv_usec; usec = avahi_timeval_diff(&next_timeout->expiry, &tvnow); if (usec <= 0) { *timeout = 0; return TRUE; } *timeout = (gint) (usec / 1000); } else *timeout = -1; return FALSE; } static gboolean check_func(GSource *source) { AvahiGLibPoll *g = (AvahiGLibPoll*) source; AvahiWatch *w; AvahiTimeout *next_timeout; g_assert(g); if ((next_timeout = find_next_timeout(g))) { GTimeVal now; struct timeval tvnow; g_source_get_current_time(source, &now); tvnow.tv_sec = now.tv_sec; tvnow.tv_usec = now.tv_usec; if (avahi_timeval_compare(&next_timeout->expiry, &tvnow) <= 0) return TRUE; } for (w = g->watches; w; w = w->watches_next) if (w->pollfd.revents > 0) return TRUE; return FALSE; } static gboolean dispatch_func(GSource *source, AVAHI_GCC_UNUSED GSourceFunc callback, AVAHI_GCC_UNUSED gpointer userdata) { AvahiGLibPoll* g = (AvahiGLibPoll*) source; AvahiWatch *w; AvahiTimeout *next_timeout; g_assert(g); if ((next_timeout = find_next_timeout(g))) { GTimeVal now; struct timeval tvnow; g_source_get_current_time(source, &now); tvnow.tv_sec = now.tv_sec; tvnow.tv_usec = now.tv_usec; if (avahi_timeval_compare(&next_timeout->expiry, &tvnow) < 0) { start_timeout_callback(next_timeout); return TRUE; } } for (w = g->watches; w; w = w->watches_next) if (w->pollfd.revents > 0) { assert(w->callback); w->callback(w, w->pollfd.fd, map_events_from_glib(w->pollfd.revents), w->userdata); w->pollfd.revents = 0; return TRUE; } return TRUE; } AvahiGLibPoll *avahi_glib_poll_new(GMainContext *context, gint priority) { AvahiGLibPoll *g; static GSourceFuncs source_funcs = { prepare_func, check_func, dispatch_func, NULL, NULL, NULL }; g = (AvahiGLibPoll*) g_source_new(&source_funcs, sizeof(AvahiGLibPoll)); g_main_context_ref(g->context = context ? context : g_main_context_default()); g->api.userdata = g; g->api.watch_new = watch_new; g->api.watch_free = watch_free; g->api.watch_update = watch_update; g->api.watch_get_events = watch_get_events; g->api.timeout_new = timeout_new; g->api.timeout_free = timeout_free; g->api.timeout_update = timeout_update; g->watch_req_cleanup = FALSE; g->timeout_req_cleanup = FALSE; AVAHI_LLIST_HEAD_INIT(AvahiWatch, g->watches); AVAHI_LLIST_HEAD_INIT(AvahiTimeout, g->timeouts); g_source_attach(&g->source, g->context); g_source_set_priority(&g->source, priority); g_source_set_can_recurse(&g->source, FALSE); return g; } void avahi_glib_poll_free(AvahiGLibPoll *g) { GSource *s = &g->source; assert(g); cleanup_watches(g, 1); cleanup_timeouts(g, 1); g_main_context_unref(g->context); g_source_destroy(s); g_source_unref(s); } const AvahiPoll* avahi_glib_poll_get(AvahiGLibPoll *g) { assert(g); return &g->api; } avahi-0.7/PaxHeaders.10109/autogen.sh0000644000000000000000000000013213130651643014177 xustar0030 mtime=1499681699.083371116 30 atime=1499681796.121194055 30 ctime=1499681850.007990023 avahi-0.7/autogen.sh0000755000175000017500000000435213130651643015615 0ustar00lathiatlathiat00000000000000#!/bin/bash # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_VERSION=1.11 AC_VERSION=2.63 run_versioned() { local P local V V=$(echo "$2" | sed -e 's,\.,,g') if [ -e "`which $1$V 2> /dev/null`" ] ; then P="$1$V" else if [ -e "`which $1-$2 2> /dev/null`" ] ; then P="$1-$2" else P="$1" fi fi shift 2 "$P" "$@" } set -ex test -n "$srcdir" || srcdir=$(dirname "$0") test -n "$srcdir" || srcdir=. olddir=$(pwd) cd $srcdir if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ chmod +x .git/hooks/pre-commit && \ echo "Activated pre-commit hook." fi if [ "x$1" = "xam" ] ; then run_versioned automake "$AM_VERSION" -a -c --foreign ./config.status else rm -rf autom4te.cache rm -f config.cache rm -f Makefile.am~ configure.ac~ # Evil, evil, evil, evil hack sed 's/read dummy/\#/' `which gettextize` | sh -s -- --copy --force test -f Makefile.am~ && mv Makefile.am~ Makefile.am test -f configure.ac~ && mv configure.ac~ configure.ac test "x$LIBTOOLIZE" = "x" && LIBTOOLIZE=libtoolize intltoolize --copy --force --automake "$LIBTOOLIZE" -c --force run_versioned aclocal "$AM_VERSION" -I common run_versioned autoconf "$AC_VERSION" -Wall run_versioned autoheader "$AC_VERSION" run_versioned automake "$AM_VERSION" -a -c --foreign cd "$olddir" if test "x$NOCONFIGURE" = "x"; then $srcdir/configure "$@" make clean fi fi avahi-0.7/PaxHeaders.10109/README0000644000000000000000000000013013130651643013057 xustar0030 mtime=1499681699.083371116 30 atime=1499681699.083371116 28 ctime=1499681849.9999902 avahi-0.7/README0000644000175000017500000000117113130651643014470 0ustar00lathiatlathiat00000000000000AVAHI SERVICE DISCOVERY SUITE Avahi is a free, LGPL implementation of DNS Service Discovery (DNS-SD RFC 6763) over Multicast DNS (mDNS RFC 6762), commonly known as and compatible with Apple Bonjour primarily targetting Linux. Copyright 2004-2015 by the Avahi developers. WEB SITE: http://avahi.org/ GIT: http://github.com/lathiat/avahi.git MAILING LIST: http://lists.freedesktop.org/mailman/listinfo/avahi IRC: #avahi on irc.freenode.org CIA: http://cia.navi.cx/stats/project/avahi FRESHMEAT: http://freshmeat.net/projects/avahi/ OHLOH: http://www.ohloh.net/projects/avahi/ AUTHORS: Lennart Poettering Trent Lloyd avahi-0.7/PaxHeaders.10109/missing0000644000000000000000000000013213130652011013563 xustar0030 mtime=1499681801.013084616 30 atime=1499681802.113060012 30 ctime=1499681850.007990023 avahi-0.7/missing0000755000175000017500000001533013130652011015177 0ustar00lathiatlathiat00000000000000#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2013-10-28.13; # UTC # Copyright (C) 1996-2014 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=http://www.perl.org/ flex_URL=http://flex.sourceforge.net/ gnu_software_URL=http://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: avahi-0.7/PaxHeaders.10109/config.guess0000644000000000000000000000013013130652011014502 xustar0030 mtime=1499681801.013084616 30 atime=1499681802.137059474 28 ctime=1499681849.9999902 avahi-0.7/config.guess0000755000175000017500000012564413130652011016132 0ustar00lathiatlathiat00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2016 Free Software Foundation, Inc. timestamp='2016-10-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess # # Please send patches to . me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || \ echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case "${UNAME_MACHINE_ARCH}" in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case "${UNAME_MACHINE_ARCH}" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; *:Sortix:*:*) echo ${UNAME_MACHINE}-unknown-sortix exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = hppa2.0w ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; *:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; e2k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; k1om:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; mips64el:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; openrisc*:Linux:*:*) echo or1k-unknown-linux-${LIBC} exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; riscv32:Linux:*:* | riscv64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; SX-ACE:SUPER-UX:*:*) echo sxace-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then if [ "$CC_FOR_BUILD" != no_compiler_found ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = 386; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; esac cat >&2 </dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: avahi-0.7/PaxHeaders.10109/avahi-compat-howl0000644000000000000000000000013013130652073015440 xustar0029 mtime=1499681851.17196405 30 atime=1499681851.283961552 29 ctime=1499681851.17196405 avahi-0.7/avahi-compat-howl/0000755000175000017500000000000013130652073017126 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-compat-howl/PaxHeaders.10109/text.c0000644000000000000000000000013113130651643016650 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.16796414 avahi-0.7/avahi-compat-howl/text.c0000644000175000017500000001243513130651643020265 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "howl.h" #include "warn.h" struct _sw_text_record { AvahiStringList *strlst; uint8_t *buffer; size_t buffer_size; int buffer_valid; }; #ifndef HAVE_STRLCPY static size_t strlcpy(char *dest, const char *src, size_t n) { assert(dest); assert(src); if (n > 0) { strncpy(dest, src, n-1); dest[n-1] = 0; } return strlen(src); } #endif sw_result sw_text_record_init(sw_text_record *self) { assert(self); AVAHI_WARN_LINKAGE; if (!(*self = avahi_new(struct _sw_text_record, 1))) { *self = NULL; return SW_E_UNKNOWN; } (*self)->strlst = NULL; (*self)->buffer = NULL; (*self)->buffer_size = 0; (*self)->buffer_valid = 0; return SW_OKAY; } sw_result sw_text_record_fina(sw_text_record self) { assert(self); AVAHI_WARN_LINKAGE; avahi_string_list_free(self->strlst); avahi_free(self->buffer); avahi_free(self); return SW_OKAY; } sw_result sw_text_record_add_string( sw_text_record self, sw_const_string string) { AvahiStringList *n; assert(self); assert(string); AVAHI_WARN_LINKAGE; if (!(n = avahi_string_list_add(self->strlst, string))) return SW_E_UNKNOWN; self->strlst = n; self->buffer_valid = 0; return SW_OKAY; } sw_result sw_text_record_add_key_and_string_value( sw_text_record self, sw_const_string key, sw_const_string val) { AvahiStringList *n; assert(self); assert(key); AVAHI_WARN_LINKAGE; if (!(n = avahi_string_list_add_pair(self->strlst, key, val))) return SW_E_UNKNOWN; self->strlst = n; self->buffer_valid = 0; return SW_OKAY; } sw_result sw_text_record_add_key_and_binary_value( sw_text_record self, sw_const_string key, sw_octets val, sw_uint32 len) { AvahiStringList *n; assert(self); assert(key); assert(len || !val); AVAHI_WARN_LINKAGE; if (!(n = avahi_string_list_add_pair_arbitrary(self->strlst, key, val, len))) return SW_E_UNKNOWN; self->strlst = n; self->buffer_valid = 0; return SW_OKAY; } static int rebuild(sw_text_record self) { assert(self); if (self->buffer_valid) return 0; self->buffer_size = avahi_string_list_serialize(self->strlst, NULL, 0); if (!(self->buffer = avahi_realloc(self->buffer, self->buffer_size + 1))) return -1; avahi_string_list_serialize(self->strlst, self->buffer, self->buffer_size); self->buffer_valid = 1; return 0; } sw_octets sw_text_record_bytes(sw_text_record self) { assert(self); AVAHI_WARN_LINKAGE; if (rebuild(self) < 0) return NULL; return self->buffer; } sw_uint32 sw_text_record_len(sw_text_record self) { assert(self); AVAHI_WARN_LINKAGE; if (rebuild(self) < 0) return (uint32_t) -1; return self->buffer_size; } struct _sw_text_record_iterator { AvahiStringList *strlst, *index; }; sw_result sw_text_record_iterator_init( sw_text_record_iterator * self, sw_octets text_record, sw_uint32 text_record_len) { AvahiStringList *txt; assert(self); AVAHI_WARN_LINKAGE; if (!(*self = avahi_new(struct _sw_text_record_iterator, 1))) { *self = NULL; return SW_E_UNKNOWN; } if (avahi_string_list_parse(text_record, text_record_len, &txt) < 0) { avahi_free(*self); *self = NULL; return SW_E_UNKNOWN; } (*self)->index = (*self)->strlst = avahi_string_list_reverse(txt); return SW_OKAY; } sw_result sw_text_record_iterator_fina(sw_text_record_iterator self) { assert(self); AVAHI_WARN_LINKAGE; avahi_string_list_free(self->strlst); avahi_free(self); return SW_OKAY; } sw_result sw_text_record_iterator_next( sw_text_record_iterator self, char key[SW_TEXT_RECORD_MAX_LEN], sw_uint8 val[SW_TEXT_RECORD_MAX_LEN], sw_uint32 * val_len) { char *mkey = NULL, *mvalue = NULL; size_t msize = 0; assert(self); assert(key); AVAHI_WARN_LINKAGE; if (!self->index) return SW_E_UNKNOWN; if (avahi_string_list_get_pair(self->index, &mkey, &mvalue, &msize) < 0) return SW_E_UNKNOWN; strlcpy(key, mkey, SW_TEXT_RECORD_MAX_LEN); memset(val, 0, SW_TEXT_RECORD_MAX_LEN); memcpy(val, mvalue, msize); *val_len = msize; avahi_free(mkey); avahi_free(mvalue); self->index = self->index->next; return SW_OKAY; } avahi-0.7/avahi-compat-howl/PaxHeaders.10109/browse-domain-test.c0000644000000000000000000000013113130651643021407 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.16796414 avahi-0.7/avahi-compat-howl/browse-domain-test.c0000644000175000017500000000421313130651643023017 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "howl.h" #define ASSERT_SW_OKAY(t) { sw_result _r; _r = (t); assert(_r == SW_OKAY); } #define ASSERT_NOT_NULL(t) { const void* _r; r = (t); assert(_r); } static sw_result reply( AVAHI_GCC_UNUSED sw_discovery discovery, AVAHI_GCC_UNUSED sw_discovery_oid oid, sw_discovery_browse_status status, AVAHI_GCC_UNUSED sw_uint32 interface_index, AVAHI_GCC_UNUSED sw_const_string name, AVAHI_GCC_UNUSED sw_const_string type, sw_const_string domain, AVAHI_GCC_UNUSED sw_opaque extra) { switch (status) { case SW_DISCOVERY_BROWSE_ADD_DOMAIN: fprintf(stderr, "new domain %s\n", domain); break; case SW_DISCOVERY_BROWSE_REMOVE_DOMAIN: fprintf(stderr, "removed domain %s\n", domain); break; case SW_DISCOVERY_BROWSE_INVALID: fprintf(stderr, "some kind of failure happened: %s\n", domain); break; default: abort(); } return SW_OKAY; } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { sw_discovery discovery; sw_discovery_oid oid; ASSERT_SW_OKAY(sw_discovery_init(&discovery)); ASSERT_SW_OKAY(sw_discovery_browse_domains(discovery, 0, reply, NULL, &oid)); ASSERT_SW_OKAY(sw_discovery_run(discovery)); return 0; } avahi-0.7/avahi-compat-howl/PaxHeaders.10109/samples0000644000000000000000000000013013130652073017104 xustar0029 mtime=1499681851.18796369 30 atime=1499681851.283961552 29 ctime=1499681851.18796369 avahi-0.7/avahi-compat-howl/samples/0000755000175000017500000000000013130652073020572 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-compat-howl/samples/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011021217 xustar0029 mtime=1499681801.26107907 30 atime=1499681806.852954006 30 ctime=1499681851.183963782 avahi-0.7/avahi-compat-howl/samples/Makefile.in0000644000175000017500000010302113130652011022624 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_COMPAT_HOWL_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@noinst_PROGRAMS = browse$(EXEEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ resolve$(EXEEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ publish$(EXEEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ query$(EXEEXT) subdir = avahi-compat-howl/samples ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am__browse_SOURCES_DIST = browse.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_browse_OBJECTS = browse-browse.$(OBJEXT) browse_OBJECTS = $(am_browse_OBJECTS) @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@browse_DEPENDENCIES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ ../libhowl.la AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = browse_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(browse_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__publish_SOURCES_DIST = publish.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_publish_OBJECTS = publish-publish.$(OBJEXT) publish_OBJECTS = $(am_publish_OBJECTS) @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@publish_DEPENDENCIES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ ../libhowl.la publish_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(publish_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__query_SOURCES_DIST = query.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_query_OBJECTS = query-query.$(OBJEXT) query_OBJECTS = $(am_query_OBJECTS) @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@query_DEPENDENCIES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ ../libhowl.la query_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(query_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__resolve_SOURCES_DIST = resolve.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_resolve_OBJECTS = resolve-resolve.$(OBJEXT) resolve_OBJECTS = $(am_resolve_OBJECTS) @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@resolve_DEPENDENCIES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ ../libhowl.la resolve_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(resolve_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(browse_SOURCES) $(publish_SOURCES) $(query_SOURCES) \ $(resolve_SOURCES) DIST_SOURCES = $(am__browse_SOURCES_DIST) $(am__publish_SOURCES_DIST) \ $(am__query_SOURCES_DIST) $(am__resolve_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/avahi-compat-howl/include \ '-DDEBUG_TRAP=__asm__("int $$3")' @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@browse_SOURCES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ browse.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@browse_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@browse_LDADD = $(AM_LDADD) ../libhowl.la @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@resolve_SOURCES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ resolve.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@resolve_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@resolve_LDADD = $(AM_LDADD) ../libhowl.la @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@publish_SOURCES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ publish.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@publish_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@publish_LDADD = $(AM_LDADD) ../libhowl.la @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@query_SOURCES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ query.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@query_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@query_LDADD = $(AM_LDADD) ../libhowl.la all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-compat-howl/samples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-compat-howl/samples/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list browse$(EXEEXT): $(browse_OBJECTS) $(browse_DEPENDENCIES) $(EXTRA_browse_DEPENDENCIES) @rm -f browse$(EXEEXT) $(AM_V_CCLD)$(browse_LINK) $(browse_OBJECTS) $(browse_LDADD) $(LIBS) publish$(EXEEXT): $(publish_OBJECTS) $(publish_DEPENDENCIES) $(EXTRA_publish_DEPENDENCIES) @rm -f publish$(EXEEXT) $(AM_V_CCLD)$(publish_LINK) $(publish_OBJECTS) $(publish_LDADD) $(LIBS) query$(EXEEXT): $(query_OBJECTS) $(query_DEPENDENCIES) $(EXTRA_query_DEPENDENCIES) @rm -f query$(EXEEXT) $(AM_V_CCLD)$(query_LINK) $(query_OBJECTS) $(query_LDADD) $(LIBS) resolve$(EXEEXT): $(resolve_OBJECTS) $(resolve_DEPENDENCIES) $(EXTRA_resolve_DEPENDENCIES) @rm -f resolve$(EXEEXT) $(AM_V_CCLD)$(resolve_LINK) $(resolve_OBJECTS) $(resolve_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/browse-browse.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/publish-publish.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/query-query.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resolve-resolve.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< browse-browse.o: browse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(browse_CFLAGS) $(CFLAGS) -MT browse-browse.o -MD -MP -MF $(DEPDIR)/browse-browse.Tpo -c -o browse-browse.o `test -f 'browse.c' || echo '$(srcdir)/'`browse.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/browse-browse.Tpo $(DEPDIR)/browse-browse.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse.c' object='browse-browse.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(browse_CFLAGS) $(CFLAGS) -c -o browse-browse.o `test -f 'browse.c' || echo '$(srcdir)/'`browse.c browse-browse.obj: browse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(browse_CFLAGS) $(CFLAGS) -MT browse-browse.obj -MD -MP -MF $(DEPDIR)/browse-browse.Tpo -c -o browse-browse.obj `if test -f 'browse.c'; then $(CYGPATH_W) 'browse.c'; else $(CYGPATH_W) '$(srcdir)/browse.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/browse-browse.Tpo $(DEPDIR)/browse-browse.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse.c' object='browse-browse.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(browse_CFLAGS) $(CFLAGS) -c -o browse-browse.obj `if test -f 'browse.c'; then $(CYGPATH_W) 'browse.c'; else $(CYGPATH_W) '$(srcdir)/browse.c'; fi` publish-publish.o: publish.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(publish_CFLAGS) $(CFLAGS) -MT publish-publish.o -MD -MP -MF $(DEPDIR)/publish-publish.Tpo -c -o publish-publish.o `test -f 'publish.c' || echo '$(srcdir)/'`publish.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/publish-publish.Tpo $(DEPDIR)/publish-publish.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='publish.c' object='publish-publish.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(publish_CFLAGS) $(CFLAGS) -c -o publish-publish.o `test -f 'publish.c' || echo '$(srcdir)/'`publish.c publish-publish.obj: publish.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(publish_CFLAGS) $(CFLAGS) -MT publish-publish.obj -MD -MP -MF $(DEPDIR)/publish-publish.Tpo -c -o publish-publish.obj `if test -f 'publish.c'; then $(CYGPATH_W) 'publish.c'; else $(CYGPATH_W) '$(srcdir)/publish.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/publish-publish.Tpo $(DEPDIR)/publish-publish.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='publish.c' object='publish-publish.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(publish_CFLAGS) $(CFLAGS) -c -o publish-publish.obj `if test -f 'publish.c'; then $(CYGPATH_W) 'publish.c'; else $(CYGPATH_W) '$(srcdir)/publish.c'; fi` query-query.o: query.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(query_CFLAGS) $(CFLAGS) -MT query-query.o -MD -MP -MF $(DEPDIR)/query-query.Tpo -c -o query-query.o `test -f 'query.c' || echo '$(srcdir)/'`query.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/query-query.Tpo $(DEPDIR)/query-query.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='query.c' object='query-query.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(query_CFLAGS) $(CFLAGS) -c -o query-query.o `test -f 'query.c' || echo '$(srcdir)/'`query.c query-query.obj: query.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(query_CFLAGS) $(CFLAGS) -MT query-query.obj -MD -MP -MF $(DEPDIR)/query-query.Tpo -c -o query-query.obj `if test -f 'query.c'; then $(CYGPATH_W) 'query.c'; else $(CYGPATH_W) '$(srcdir)/query.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/query-query.Tpo $(DEPDIR)/query-query.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='query.c' object='query-query.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(query_CFLAGS) $(CFLAGS) -c -o query-query.obj `if test -f 'query.c'; then $(CYGPATH_W) 'query.c'; else $(CYGPATH_W) '$(srcdir)/query.c'; fi` resolve-resolve.o: resolve.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resolve_CFLAGS) $(CFLAGS) -MT resolve-resolve.o -MD -MP -MF $(DEPDIR)/resolve-resolve.Tpo -c -o resolve-resolve.o `test -f 'resolve.c' || echo '$(srcdir)/'`resolve.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resolve-resolve.Tpo $(DEPDIR)/resolve-resolve.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resolve.c' object='resolve-resolve.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resolve_CFLAGS) $(CFLAGS) -c -o resolve-resolve.o `test -f 'resolve.c' || echo '$(srcdir)/'`resolve.c resolve-resolve.obj: resolve.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resolve_CFLAGS) $(CFLAGS) -MT resolve-resolve.obj -MD -MP -MF $(DEPDIR)/resolve-resolve.Tpo -c -o resolve-resolve.obj `if test -f 'resolve.c'; then $(CYGPATH_W) 'resolve.c'; else $(CYGPATH_W) '$(srcdir)/resolve.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/resolve-resolve.Tpo $(DEPDIR)/resolve-resolve.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='resolve.c' object='resolve-resolve.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(resolve_CFLAGS) $(CFLAGS) -c -o resolve-resolve.obj `if test -f 'resolve.c'; then $(CYGPATH_W) 'resolve.c'; else $(CYGPATH_W) '$(srcdir)/resolve.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-compat-howl/samples/PaxHeaders.10109/query.c0000644000000000000000000000013113130651643020475 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.18796369 avahi-0.7/avahi-compat-howl/samples/query.c0000644000175000017500000000570613130651643022115 0ustar00lathiatlathiat00000000000000/* * Copyright 2003, 2004, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #include static sw_result HOWL_API query_record_reply( sw_discovery session, sw_discovery_oid oid, sw_discovery_query_record_status status, sw_uint32 interface_index, sw_const_string fullname, sw_uint16 rrtype, sw_uint16 rrclass, sw_uint16 rrdatalen, sw_const_octets rrdata, sw_uint32 ttl, sw_opaque extra) { sw_ipv4_address address; fprintf(stderr, "interface index = 0x%x, fullname is %s\n", interface_index, fullname); if ((rrtype == 1) && (rrclass == 1)) { sw_ipv4_address address; sw_char name[16]; sw_ipv4_address_init_from_saddr(&address, *(sw_saddr*) rrdata); fprintf(stderr, "address is %s\n", sw_ipv4_address_name(address, name, sizeof(name))); } return SW_OKAY; } #if defined(WIN32) int __cdecl #else int #endif main( int argc, char ** argv) { sw_discovery discovery; sw_discovery_oid oid; sw_result err; err = sw_discovery_init(&discovery); sw_check_okay(err, exit); if (argc != 4) { fprintf(stderr, "usage: mDNSBrowse \n"); return -1; } err = sw_discovery_query_record(discovery, 0, 0, argv[1], atoi(argv[2]), atoi(argv[3]), query_record_reply, NULL, &oid); sw_check_okay(err, exit); err = sw_discovery_run(discovery); sw_check_okay(err, exit); exit: return err; } avahi-0.7/avahi-compat-howl/samples/PaxHeaders.10109/publish.c0000644000000000000000000000013113130651643020776 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.18796369 avahi-0.7/avahi-compat-howl/samples/publish.c0000644000175000017500000000620613130651643022412 0ustar00lathiatlathiat00000000000000/* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include static sw_result HOWL_API my_service_reply( sw_discovery discovery, sw_discovery_oid oid, sw_discovery_publish_status status, sw_opaque extra) { static sw_string status_text[] = { "Started", "Stopped", "Name Collision", "Invalid" }; fprintf(stderr, "publish reply: %s\n", status_text[status]); return SW_OKAY; } #if defined(WIN32) int __cdecl #else int #endif main( int argc, char ** argv) { sw_discovery discovery; sw_text_record text_record; sw_result result; sw_discovery_publish_id id; int i; if (sw_discovery_init(&discovery) != SW_OKAY) { fprintf(stderr, "sw_discovery_init() failed\n"); return -1; } if (argc < 4) { fprintf(stderr, "usage: mDNSPublish [service text 1]...[service text n]\n"); return -1; } if (sw_text_record_init(&text_record) != SW_OKAY) { fprintf(stderr, "sw_text_record_init() failed\n"); return -1; } for (i = 4; i < argc; i++) { if (sw_text_record_add_string(text_record, argv[i]) != SW_OKAY) { fprintf(stderr, "unable to add service text: %s\n", argv[i]); return -1; } } printf("%s %s %d\n", argv[1], argv[2], atoi(argv[3])); if ((result = sw_discovery_publish(discovery, 0, argv[1], argv[2], NULL, NULL, atoi(argv[3]), sw_text_record_bytes(text_record), sw_text_record_len(text_record), my_service_reply, NULL, &id)) != SW_OKAY) { fprintf(stderr, "publish failed: %d\n", result); sw_text_record_fina(text_record); return -1; } sw_text_record_fina(text_record); sw_discovery_run(discovery); return 0; } avahi-0.7/avahi-compat-howl/samples/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643021221 xustar0030 mtime=1499681699.095370847 30 atime=1499681796.821178394 30 ctime=1499681851.183963782 avahi-0.7/avahi-compat-howl/samples/Makefile.am0000644000175000017500000000303513130651643022631 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) -I$(top_srcdir)/avahi-compat-howl/include # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' if HAVE_DBUS if ENABLE_COMPAT_HOWL if ENABLE_TESTS noinst_PROGRAMS = browse resolve publish query endif browse_SOURCES = \ browse.c browse_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include browse_LDADD = $(AM_LDADD) ../libhowl.la resolve_SOURCES = \ resolve.c resolve_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include resolve_LDADD = $(AM_LDADD) ../libhowl.la publish_SOURCES = \ publish.c publish_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include publish_LDADD = $(AM_LDADD) ../libhowl.la query_SOURCES = \ query.c query_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include query_LDADD = $(AM_LDADD) ../libhowl.la endif endif avahi-0.7/avahi-compat-howl/samples/PaxHeaders.10109/resolve.c0000644000000000000000000000013113130651643021007 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.18796369 avahi-0.7/avahi-compat-howl/samples/resolve.c0000644000175000017500000000651313130651643022424 0ustar00lathiatlathiat00000000000000/* * Copyright 2003, 2004, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #include static sw_result HOWL_API my_resolver( sw_discovery discovery, sw_discovery_oid oid, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_ipv4_address address, sw_port port, sw_octets text_record, sw_uint32 text_record_len, sw_opaque_t extra) { sw_text_record_iterator it; sw_int8 name_buf[16]; sw_int8 key[SW_TEXT_RECORD_MAX_LEN]; sw_int8 sval[SW_TEXT_RECORD_MAX_LEN]; sw_uint8 oval[SW_TEXT_RECORD_MAX_LEN]; sw_uint32 oval_len; sw_result err = SW_OKAY; sw_discovery_cancel(discovery, oid); fprintf(stderr, "resolve reply: 0x%x %s %s %s %s %d\n", interface_index, name, type, domain, sw_ipv4_address_name(address, name_buf, 16), port); if ((text_record_len > 0) && (text_record) && (*text_record != '\0')) { err = sw_text_record_iterator_init(&it, text_record, text_record_len); sw_check_okay(err, exit); while (sw_text_record_iterator_next(it, key, oval, &oval_len) == SW_OKAY) { fprintf(stderr, "key = %s, data is %d bytes\n", key, oval_len); } err = sw_text_record_iterator_fina(it); sw_check_okay(err, exit); } exit: return err; } #if defined(WIN32) int __cdecl #else int #endif main( int argc, char ** argv) { sw_discovery discovery; sw_discovery_oid oid; sw_result err; err = sw_discovery_init(&discovery); sw_check_okay(err, exit); if (argc != 3) { fprintf(stderr, "usage: mDNSResolve \n"); return -1; } err = sw_discovery_resolve(discovery, 0, argv[1], argv[2], "local.", my_resolver, NULL, &oid); sw_check_okay(err, exit); err = sw_discovery_run(discovery); sw_check_okay(err, exit); exit: return err; } avahi-0.7/avahi-compat-howl/samples/PaxHeaders.10109/browse.c0000644000000000000000000000013213130651643020632 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.183963782 avahi-0.7/avahi-compat-howl/samples/browse.c0000644000175000017500000001151613130651643022245 0ustar00lathiatlathiat00000000000000/* * Copyright 2003, 2004, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #include static sw_result HOWL_API my_resolver( sw_discovery discovery, sw_discovery_oid oid, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_ipv4_address address, sw_port port, sw_octets text_record, sw_uint32 text_record_len, sw_opaque_t extra) { sw_text_record_iterator it; sw_int8 name_buf[16]; sw_int8 key[SW_TEXT_RECORD_MAX_LEN]; sw_int8 sval[SW_TEXT_RECORD_MAX_LEN]; sw_uint8 oval[SW_TEXT_RECORD_MAX_LEN]; sw_uint32 oval_len; sw_result err = SW_OKAY; sw_discovery_cancel(discovery, oid); fprintf(stderr, "resolve reply: 0x%x %s %s %s %s %d\n", interface_index, name, type, domain, sw_ipv4_address_name(address, name_buf, 16), port); if ((text_record_len > 0) && (text_record) && (*text_record != '\0')) { err = sw_text_record_iterator_init(&it, text_record, text_record_len); sw_check_okay(err, exit); while (sw_text_record_iterator_next(it, key, oval, &oval_len) == SW_OKAY) { fprintf(stderr, "Txt: [%s]=[%s] - (%d bytes)\n", key, oval, oval_len); } err = sw_text_record_iterator_fina(it); sw_check_okay(err, exit); } exit: return err; } static sw_result HOWL_API my_browser( sw_discovery discovery, sw_discovery_oid oid, sw_discovery_browse_status status, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_opaque_t extra) { sw_discovery_resolve_id rid; switch (status) { case SW_DISCOVERY_BROWSE_INVALID: { fprintf(stderr, "browse reply: Invalid\n"); } break; case SW_DISCOVERY_BROWSE_RELEASE: { fprintf(stderr, "browse reply: Release\n"); } break; case SW_DISCOVERY_BROWSE_ADD_DOMAIN: { fprintf(stderr, "browse reply: Add Domain\n"); } break; case SW_DISCOVERY_BROWSE_ADD_DEFAULT_DOMAIN: { fprintf(stderr, "browse reply: Add Default Domain\n"); } break; case SW_DISCOVERY_BROWSE_REMOVE_DOMAIN: { fprintf(stderr, "browse reply: Remove Domain\n"); } break; case SW_DISCOVERY_BROWSE_ADD_SERVICE: { fprintf(stderr, "browse reply: Add Service 0x%x %s %s %s\n", interface_index, name, type, domain); if (sw_discovery_resolve(discovery, interface_index, name, type, domain, my_resolver, NULL, &rid) != SW_OKAY) { fprintf(stderr, "resolve failed\n"); } } break; case SW_DISCOVERY_BROWSE_REMOVE_SERVICE: { fprintf(stderr, "browse reply: Remove Service\n"); fprintf(stderr, "remove service: 0x%x %s %s %s\n", interface_index, name, type, domain); } break; case SW_DISCOVERY_BROWSE_RESOLVED: { fprintf(stderr, "browse reply: Resolved\n"); } break; } return SW_OKAY; } #if defined(WIN32) int __cdecl #else int #endif main( int argc, char ** argv) { sw_discovery discovery; sw_discovery_oid oid; sw_result err; err = sw_discovery_init(&discovery); sw_check_okay(err, exit); if (argc != 2) { fprintf(stderr, "usage: mDNSBrowse \n"); return -1; } err = sw_discovery_browse(discovery, 0, argv[1], NULL, my_browser, NULL, &oid); sw_check_okay(err, exit); err = sw_discovery_run(discovery); sw_check_okay(err, exit); exit: return err; } avahi-0.7/avahi-compat-howl/PaxHeaders.10109/warn.h0000644000000000000000000000013213130651643016641 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.163964226 avahi-0.7/avahi-compat-howl/warn.h0000644000175000017500000000221513130651643020250 0ustar00lathiatlathiat00000000000000#ifndef foowarnhhowlfoo #define foowarnhhowlfoo /*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ /* To avoid symbol name clashes when a process links to both our * compatiblity layers, we move the symbols out of the way here */ #define avahi_warn_unsupported avahi_warn_unsupported_HOWL #define avahi_warn_linkage avahi_warn_linkage_HOWL #define avahi_warn avahi_warn_HOWL #define avahi_exe_name avahi_exe_name_HOWL #include "../avahi-compat-libdns_sd/warn.h" #endif avahi-0.7/avahi-compat-howl/PaxHeaders.10109/address-test.c0000644000000000000000000000013113130651643020266 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.16796414 avahi-0.7/avahi-compat-howl/address-test.c0000644000175000017500000000307213130651643021700 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "howl.h" #define ASSERT_SW_OKAY(t) { sw_result r; r = (t); assert(r == SW_OKAY); } #define ASSERT_NOT_NULL(t) { const void* r; r = (t); assert(r); } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { sw_ipv4_address a; char t[256]; uint8_t a1, a2, a3, a4; ASSERT_SW_OKAY(sw_ipv4_address_init_from_name(&a, "heise.de")); ASSERT_NOT_NULL(sw_ipv4_address_name(a, t, sizeof(t))); printf("%s\n", t); ASSERT_SW_OKAY(sw_ipv4_address_init_from_this_host(&a)); ASSERT_NOT_NULL(sw_ipv4_address_name(a, t, sizeof(t))); printf("%s\n", t); ASSERT_SW_OKAY(sw_ipv4_address_decompose(a, &a1, &a2, &a3, &a4)); printf("%i.%i.%i.%i\n", a1, a2, a3, a4); return 0; } avahi-0.7/avahi-compat-howl/PaxHeaders.10109/compat.c0000644000000000000000000000013113130651643017147 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.16796414 avahi-0.7/avahi-compat-howl/compat.c0000644000175000017500000007041213130651643020563 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include "howl.h" #include "warn.h" #define OID_MAX 50 enum { COMMAND_POLL = 'p', COMMAND_QUIT = 'q', COMMAND_POLL_DONE = 'P', COMMAND_POLL_FAILED = 'F' }; typedef enum { OID_UNUSED = 0, OID_SERVICE_BROWSER, OID_SERVICE_RESOLVER, OID_DOMAIN_BROWSER, OID_ENTRY_GROUP } oid_type; typedef struct service_data service_data; typedef struct oid_data { oid_type type; sw_opaque extra; sw_discovery discovery; void *object; sw_result (*reply)(void); service_data *service_data; } oid_data; struct service_data { char *name, *regtype, *domain, *host; uint16_t port; AvahiIfIndex interface; AvahiStringList *txt; AVAHI_LLIST_FIELDS(service_data, services); }; struct _sw_discovery { int n_ref; AvahiSimplePoll *simple_poll; AvahiClient *client; oid_data oid_table[OID_MAX]; sw_discovery_oid oid_index; int thread_fd, main_fd; pthread_t thread; int thread_running; pthread_mutex_t mutex, salt_mutex; AVAHI_LLIST_HEAD(service_data, services); }; #define ASSERT_SUCCESS(r) { int __ret = (r); assert(__ret == 0); } #define OID_GET_INDEX(data) ((sw_discovery_oid) (((data) - ((data)->discovery->oid_table)))) static sw_discovery discovery_ref(sw_discovery self); static void discovery_unref(sw_discovery self); static const char *add_trailing_dot(const char *s, char *buf, size_t buf_len) { if (!s) return NULL; if (*s == 0) return s; if (s[strlen(s)-1] == '.') return s; snprintf(buf, buf_len, "%s.", s); return buf; } static sw_result map_error(int error) { switch (error) { case AVAHI_OK: return SW_OKAY; case AVAHI_ERR_NO_MEMORY: return SW_E_MEM; } return SW_E_UNKNOWN; } static int read_command(int fd) { ssize_t r; char command; assert(fd >= 0); if ((r = read(fd, &command, 1)) != 1) { fprintf(stderr, __FILE__": read() failed: %s\n", r < 0 ? strerror(errno) : "EOF"); return -1; } return command; } static int write_command(int fd, char reply) { assert(fd >= 0); if (write(fd, &reply, 1) != 1) { fprintf(stderr, __FILE__": write() failed: %s\n", strerror(errno)); return -1; } return 0; } static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { sw_discovery self = userdata; int ret; assert(self); ASSERT_SUCCESS(pthread_mutex_unlock(&self->mutex)); ret = poll(ufds, nfds, timeout); ASSERT_SUCCESS(pthread_mutex_lock(&self->mutex)); return ret; } static void * thread_func(void *data) { sw_discovery self = data; sigset_t mask; sigfillset(&mask); pthread_sigmask(SIG_BLOCK, &mask, NULL); self->thread = pthread_self(); self->thread_running = 1; for (;;) { char command; if ((command = read_command(self->thread_fd)) < 0) break; /* fprintf(stderr, "Command: %c\n", command); */ switch (command) { case COMMAND_POLL: { int ret; ASSERT_SUCCESS(pthread_mutex_lock(&self->mutex)); for (;;) { errno = 0; if ((ret = avahi_simple_poll_run(self->simple_poll)) < 0) { if (errno == EINTR) continue; fprintf(stderr, __FILE__": avahi_simple_poll_run() failed: %s\n", strerror(errno)); } break; } ASSERT_SUCCESS(pthread_mutex_unlock(&self->mutex)); if (write_command(self->thread_fd, ret < 0 ? COMMAND_POLL_FAILED : COMMAND_POLL_DONE) < 0) break; break; } case COMMAND_QUIT: return NULL; } } return NULL; } static int oid_alloc(sw_discovery self, oid_type type) { sw_discovery_oid i; assert(self); for (i = 0; i < OID_MAX; i++) { while (self->oid_index >= OID_MAX) self->oid_index -= OID_MAX; if (self->oid_table[self->oid_index].type == OID_UNUSED) { self->oid_table[self->oid_index].type = type; self->oid_table[self->oid_index].discovery = self; assert(OID_GET_INDEX(&self->oid_table[self->oid_index]) == self->oid_index); return self->oid_index ++; } self->oid_index ++; } /* No free entry found */ return (sw_discovery_oid) -1; } static void oid_release(sw_discovery self, sw_discovery_oid oid) { assert(self); assert(oid < OID_MAX); assert(self->oid_table[oid].type != OID_UNUSED); self->oid_table[oid].type = OID_UNUSED; self->oid_table[oid].discovery = NULL; self->oid_table[oid].reply = NULL; self->oid_table[oid].object = NULL; self->oid_table[oid].extra = NULL; self->oid_table[oid].service_data = NULL; } static oid_data* oid_get(sw_discovery self, sw_discovery_oid oid) { assert(self); if (oid >= OID_MAX) return NULL; if (self->oid_table[oid].type == OID_UNUSED) return NULL; return &self->oid_table[oid]; } static service_data* service_data_new(sw_discovery self) { service_data *sdata; assert(self); if (!(sdata = avahi_new0(service_data, 1))) return NULL; AVAHI_LLIST_PREPEND(service_data, services, self->services, sdata); return sdata; } static void service_data_free(sw_discovery self, service_data* sdata) { assert(self); assert(sdata); AVAHI_LLIST_REMOVE(service_data, services, self->services, sdata); avahi_free(sdata->name); avahi_free(sdata->regtype); avahi_free(sdata->domain); avahi_free(sdata->host); avahi_string_list_free(sdata->txt); avahi_free(sdata); } static void reg_client_callback(oid_data *data, AvahiClientState state); static void client_callback(AvahiClient *s, AvahiClientState state, void* userdata) { sw_discovery self = userdata; sw_discovery_oid oid; assert(s); assert(self); discovery_ref(self); for (oid = 0; oid < OID_MAX; oid++) { switch (self->oid_table[oid].type) { case OID_ENTRY_GROUP: reg_client_callback(&self->oid_table[oid], state); break; case OID_DOMAIN_BROWSER: case OID_SERVICE_BROWSER: ((sw_discovery_browse_reply) self->oid_table[oid].reply)(self, oid, SW_DISCOVERY_BROWSE_INVALID, 0, NULL, NULL, NULL, self->oid_table[oid].extra); break; case OID_SERVICE_RESOLVER: case OID_UNUSED: ; } } discovery_unref(self); } sw_result sw_discovery_init(sw_discovery * self) { int fd[2] = { -1, -1}; sw_result result = SW_E_UNKNOWN; pthread_mutexattr_t mutex_attr; int error; assert(self); AVAHI_WARN_LINKAGE; *self = NULL; if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0) goto fail; if (!(*self = avahi_new(struct _sw_discovery, 1))) { result = SW_E_MEM; goto fail; } (*self)->n_ref = 1; (*self)->thread_fd = fd[0]; (*self)->main_fd = fd[1]; (*self)->client = NULL; (*self)->simple_poll = NULL; memset((*self)->oid_table, 0, sizeof((*self)->oid_table)); (*self)->oid_index = 0; (*self)->thread_running = 0; AVAHI_LLIST_HEAD_INIT(service_info, (*self)->services); ASSERT_SUCCESS(pthread_mutexattr_init(&mutex_attr)); pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE); ASSERT_SUCCESS(pthread_mutex_init(&(*self)->mutex, &mutex_attr)); ASSERT_SUCCESS(pthread_mutex_init(&(*self)->salt_mutex, &mutex_attr)); if (!((*self)->simple_poll = avahi_simple_poll_new())) goto fail; avahi_simple_poll_set_func((*self)->simple_poll, poll_func, *self); if (!((*self)->client = avahi_client_new(avahi_simple_poll_get((*self)->simple_poll), 0, client_callback, *self, &error))) { result = map_error(error); goto fail; } /* Start simple poll */ if (avahi_simple_poll_prepare((*self)->simple_poll, -1) < 0) goto fail; /* Queue an initial POLL command for the thread */ if (write_command((*self)->main_fd, COMMAND_POLL) < 0) goto fail; if (pthread_create(&(*self)->thread, NULL, thread_func, *self) != 0) goto fail; (*self)->thread_running = 1; return SW_OKAY; fail: if (*self) sw_discovery_fina(*self); return result; } static int stop_thread(sw_discovery self) { assert(self); if (!self->thread_running) return 0; if (write_command(self->main_fd, COMMAND_QUIT) < 0) return -1; avahi_simple_poll_wakeup(self->simple_poll); ASSERT_SUCCESS(pthread_join(self->thread, NULL)); self->thread_running = 0; return 0; } static sw_discovery discovery_ref(sw_discovery self) { assert(self); assert(self->n_ref >= 1); self->n_ref++; return self; } static void discovery_unref(sw_discovery self) { assert(self); assert(self->n_ref >= 1); if (--self->n_ref > 0) return; stop_thread(self); if (self->client) avahi_client_free(self->client); if (self->simple_poll) avahi_simple_poll_free(self->simple_poll); if (self->thread_fd >= 0) close(self->thread_fd); if (self->main_fd >= 0) close(self->main_fd); ASSERT_SUCCESS(pthread_mutex_destroy(&self->mutex)); ASSERT_SUCCESS(pthread_mutex_destroy(&self->salt_mutex)); while (self->services) service_data_free(self, self->services); avahi_free(self); } sw_result sw_discovery_fina(sw_discovery self) { assert(self); AVAHI_WARN_LINKAGE; stop_thread(self); discovery_unref(self); return SW_OKAY; } sw_result sw_discovery_run(sw_discovery self) { assert(self); AVAHI_WARN_LINKAGE; return sw_salt_run((sw_salt) self); } sw_result sw_discovery_stop_run(sw_discovery self) { assert(self); AVAHI_WARN_LINKAGE; return sw_salt_stop_run((sw_salt) self); } int sw_discovery_socket(sw_discovery self) { assert(self); AVAHI_WARN_LINKAGE; return self->main_fd; } sw_result sw_discovery_read_socket(sw_discovery self) { sw_result result = SW_E_UNKNOWN; assert(self); discovery_ref(self); ASSERT_SUCCESS(pthread_mutex_lock(&self->mutex)); /* Cleanup notification socket */ if (read_command(self->main_fd) != COMMAND_POLL_DONE) goto finish; if (avahi_simple_poll_dispatch(self->simple_poll) < 0) goto finish; if (self->n_ref > 1) /* Perhaps we should die */ /* Dispatch events */ if (avahi_simple_poll_prepare(self->simple_poll, -1) < 0) goto finish; if (self->n_ref > 1) /* Request the poll */ if (write_command(self->main_fd, COMMAND_POLL) < 0) goto finish; result = SW_OKAY; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&self->mutex)); discovery_unref(self); return result; } sw_result sw_discovery_salt(sw_discovery self, sw_salt *salt) { assert(self); assert(salt); AVAHI_WARN_LINKAGE; *salt = (sw_salt) self; return SW_OKAY; } sw_result sw_salt_step(sw_salt self, sw_uint32 * msec) { struct pollfd p; int r; sw_result result; AVAHI_WARN_LINKAGE; if (!((sw_discovery) self)->thread_running) return SW_E_UNKNOWN; memset(&p, 0, sizeof(p)); p.fd = ((sw_discovery) self)->main_fd; p.events = POLLIN; if ((r = poll(&p, 1, msec ? (int) *msec : -1)) < 0) { /* Don't treat EINTR as error */ if (errno == EINTR) return SW_OKAY; return SW_E_UNKNOWN; } else if (r == 0) { /* Timeoout */ return SW_OKAY; } else { /* Success */ if (p.revents != POLLIN) return SW_E_UNKNOWN; if ((result = sw_discovery_read_socket((sw_discovery) self)) != SW_OKAY) return result; } return SW_OKAY; } sw_result sw_salt_run(sw_salt self) { sw_result ret; AVAHI_WARN_LINKAGE; assert(self); for (;;) if ((ret = sw_salt_step(self, NULL)) != SW_OKAY) return ret; } sw_result sw_salt_stop_run(sw_salt self) { AVAHI_WARN_LINKAGE; assert(self); if (stop_thread((sw_discovery) self) < 0) return SW_E_UNKNOWN; return SW_OKAY; } sw_result sw_salt_lock(sw_salt self) { AVAHI_WARN_LINKAGE; assert(self); ASSERT_SUCCESS(pthread_mutex_lock(&((sw_discovery) self)->salt_mutex)); return SW_OKAY; } sw_result sw_salt_unlock(sw_salt self) { assert(self); AVAHI_WARN_LINKAGE; ASSERT_SUCCESS(pthread_mutex_unlock(&((sw_discovery) self)->salt_mutex)); return SW_OKAY; } static void reg_report_status(oid_data *data, sw_discovery_publish_status status) { sw_discovery_publish_reply reply; assert(data); reply = (sw_discovery_publish_reply) data->reply; reply(data->discovery, OID_GET_INDEX(data), status, data->extra); } static int reg_create_service(oid_data *data) { int ret; const char *real_type; assert(data); real_type = avahi_get_type_from_subtype(data->service_data->regtype); if ((ret = avahi_entry_group_add_service_strlst( data->object, data->service_data->interface, AVAHI_PROTO_INET, 0, data->service_data->name, real_type ? real_type : data->service_data->regtype, data->service_data->domain, data->service_data->host, data->service_data->port, data->service_data->txt)) < 0) return ret; if (real_type) { /* Create a subtype entry */ if (avahi_entry_group_add_service_subtype( data->object, data->service_data->interface, AVAHI_PROTO_INET, 0, data->service_data->name, real_type, data->service_data->domain, data->service_data->regtype) < 0) return ret; } if ((ret = avahi_entry_group_commit(data->object)) < 0) return ret; return 0; } static void reg_client_callback(oid_data *data, AvahiClientState state) { assert(data); /* We've not been setup completely */ if (!data->object) return; switch (state) { case AVAHI_CLIENT_FAILURE: reg_report_status(data, SW_DISCOVERY_PUBLISH_INVALID); break; case AVAHI_CLIENT_S_RUNNING: { int ret; /* Register the service */ if ((ret = reg_create_service(data)) < 0) { reg_report_status(data, SW_DISCOVERY_PUBLISH_INVALID); return; } break; } case AVAHI_CLIENT_S_COLLISION: case AVAHI_CLIENT_S_REGISTERING: /* Remove our entry */ avahi_entry_group_reset(data->object); break; case AVAHI_CLIENT_CONNECTING: /* Ignore */ break; } } static void reg_entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, void *userdata) { oid_data *data = userdata; assert(g); assert(data); switch (state) { case AVAHI_ENTRY_GROUP_ESTABLISHED: reg_report_status(data, SW_DISCOVERY_PUBLISH_STARTED); break; case AVAHI_ENTRY_GROUP_COLLISION: reg_report_status(data, SW_DISCOVERY_PUBLISH_NAME_COLLISION); break; case AVAHI_ENTRY_GROUP_REGISTERING: case AVAHI_ENTRY_GROUP_UNCOMMITED: /* Ignore */ break; case AVAHI_ENTRY_GROUP_FAILURE: reg_report_status(data, SW_DISCOVERY_PUBLISH_INVALID); break; } } sw_result sw_discovery_publish( sw_discovery self, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_const_string host, sw_port port, sw_octets text_record, sw_uint32 text_record_len, sw_discovery_publish_reply reply, sw_opaque extra, sw_discovery_oid * oid) { oid_data *data; sw_result result = SW_E_UNKNOWN; service_data *sdata; AvahiStringList *txt = NULL; assert(self); assert(name); assert(type); assert(reply); assert(oid); AVAHI_WARN_LINKAGE; if (text_record && text_record_len > 0) if (avahi_string_list_parse(text_record, text_record_len, &txt) < 0) return SW_E_UNKNOWN; if ((*oid = oid_alloc(self, OID_ENTRY_GROUP)) == (sw_discovery_oid) -1) { avahi_string_list_free(txt); return SW_E_UNKNOWN; } if (!(sdata = service_data_new(self))) { avahi_string_list_free(txt); oid_release(self, *oid); return SW_E_MEM; } data = oid_get(self, *oid); assert(data); data->reply = (sw_result (*)(void)) reply; data->extra = extra; data->service_data = sdata; sdata->interface = interface_index == 0 ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface_index; sdata->name = avahi_strdup(name); sdata->regtype = type ? avahi_normalize_name_strdup(type) : NULL; sdata->domain = domain ? avahi_normalize_name_strdup(domain) : NULL; sdata->host = host ? avahi_normalize_name_strdup(host) : NULL; sdata->port = port; sdata->txt = txt; /* Some OOM checking would be cool here */ ASSERT_SUCCESS(pthread_mutex_lock(&self->mutex)); if (!(data->object = avahi_entry_group_new(self->client, reg_entry_group_callback, data))) { result = map_error(avahi_client_errno(self->client)); goto finish; } if (avahi_client_get_state(self->client) == AVAHI_CLIENT_S_RUNNING) { int error; if ((error = reg_create_service(data)) < 0) { result = map_error(error); goto finish; } } result = SW_OKAY; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&self->mutex)); if (result != SW_OKAY) if (*oid != (sw_discovery_oid) -1) sw_discovery_cancel(self, *oid); return result; } static void domain_browser_callback( AvahiDomainBrowser *b, AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { oid_data* data = userdata; sw_discovery_browse_reply reply; static char domain_fixed[AVAHI_DOMAIN_NAME_MAX]; assert(b); assert(data); reply = (sw_discovery_browse_reply) data->reply; domain = add_trailing_dot(domain, domain_fixed, sizeof(domain_fixed)); switch (event) { case AVAHI_BROWSER_NEW: reply(data->discovery, OID_GET_INDEX(data), SW_DISCOVERY_BROWSE_ADD_DOMAIN, interface, NULL, NULL, domain, data->extra); break; case AVAHI_BROWSER_REMOVE: reply(data->discovery, OID_GET_INDEX(data), SW_DISCOVERY_BROWSE_REMOVE_DOMAIN, interface, NULL, NULL, domain, data->extra); break; case AVAHI_BROWSER_FAILURE: reply(data->discovery, OID_GET_INDEX(data), SW_DISCOVERY_BROWSE_INVALID, interface, NULL, NULL, domain, data->extra); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; } } sw_result sw_discovery_browse_domains( sw_discovery self, sw_uint32 interface_index, sw_discovery_browse_reply reply, sw_opaque extra, sw_discovery_oid * oid) { oid_data *data; AvahiIfIndex ifindex; sw_result result = SW_E_UNKNOWN; assert(self); assert(reply); assert(oid); AVAHI_WARN_LINKAGE; if ((*oid = oid_alloc(self, OID_DOMAIN_BROWSER)) == (sw_discovery_oid) -1) return SW_E_UNKNOWN; data = oid_get(self, *oid); assert(data); data->reply = (sw_result (*)(void)) reply; data->extra = extra; ifindex = interface_index == 0 ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface_index; ASSERT_SUCCESS(pthread_mutex_lock(&self->mutex)); if (!(data->object = avahi_domain_browser_new(self->client, ifindex, AVAHI_PROTO_INET, NULL, AVAHI_DOMAIN_BROWSER_BROWSE, 0, domain_browser_callback, data))) { result = map_error(avahi_client_errno(self->client)); goto finish; } result = SW_OKAY; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&self->mutex)); if (result != SW_OKAY) if (*oid != (sw_discovery_oid) -1) sw_discovery_cancel(self, *oid); return result; } static void service_resolver_callback( AvahiServiceResolver *r, AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { oid_data* data = userdata; sw_discovery_resolve_reply reply; assert(r); assert(data); reply = (sw_discovery_resolve_reply) data->reply; switch (event) { case AVAHI_RESOLVER_FOUND: { char host_name_fixed[AVAHI_DOMAIN_NAME_MAX]; uint8_t *p = NULL; size_t l = 0; sw_ipv4_address addr; sw_ipv4_address_init_from_saddr(&addr, a->data.ipv4.address); host_name = add_trailing_dot(host_name, host_name_fixed, sizeof(host_name_fixed)); if ((p = avahi_new0(uint8_t, (l = avahi_string_list_serialize(txt, NULL, 0))+1))) avahi_string_list_serialize(txt, p, l); reply(data->discovery, OID_GET_INDEX(data), interface, name, type, domain, addr, port, p, l, data->extra); avahi_free(p); break; } case AVAHI_RESOLVER_FAILURE: /* Apparently there is no way in HOWL to inform about failed resolvings ... */ avahi_warn("A service failed to resolve in the HOWL compatiblity layer of Avahi which is used by '%s'. " "Since the HOWL API doesn't offer any means to inform the application about this, we have to ignore the failure. " "Please fix your application to use the native API of Avahi!", avahi_exe_name()); break; } } sw_result sw_discovery_resolve( sw_discovery self, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_discovery_resolve_reply reply, sw_opaque extra, sw_discovery_oid * oid) { oid_data *data; AvahiIfIndex ifindex; sw_result result = SW_E_UNKNOWN; assert(self); assert(name); assert(type); assert(reply); assert(oid); AVAHI_WARN_LINKAGE; if ((*oid = oid_alloc(self, OID_SERVICE_RESOLVER)) == (sw_discovery_oid) -1) return SW_E_UNKNOWN; data = oid_get(self, *oid); assert(data); data->reply = (sw_result (*)(void)) reply; data->extra = extra; ifindex = interface_index == 0 ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface_index; ASSERT_SUCCESS(pthread_mutex_lock(&self->mutex)); if (!(data->object = avahi_service_resolver_new(self->client, ifindex, AVAHI_PROTO_INET, name, type, domain, AVAHI_PROTO_INET, 0, service_resolver_callback, data))) { result = map_error(avahi_client_errno(self->client)); goto finish; } result = SW_OKAY; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&self->mutex)); if (result != SW_OKAY) if (*oid != (sw_discovery_oid) -1) sw_discovery_cancel(self, *oid); return result; } static void service_browser_callback( AvahiServiceBrowser *b, AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) { oid_data* data = userdata; char type_fixed[AVAHI_DOMAIN_NAME_MAX], domain_fixed[AVAHI_DOMAIN_NAME_MAX]; sw_discovery_browse_reply reply; assert(b); assert(data); reply = (sw_discovery_browse_reply) data->reply; type = add_trailing_dot(type, type_fixed, sizeof(type_fixed)); domain = add_trailing_dot(domain, domain_fixed, sizeof(domain_fixed)); switch (event) { case AVAHI_BROWSER_NEW: reply(data->discovery, OID_GET_INDEX(data), SW_DISCOVERY_BROWSE_ADD_SERVICE, interface, name, type, domain, data->extra); break; case AVAHI_BROWSER_REMOVE: reply(data->discovery, OID_GET_INDEX(data), SW_DISCOVERY_BROWSE_REMOVE_SERVICE, interface, name, type, domain, data->extra); break; case AVAHI_BROWSER_FAILURE: reply(data->discovery, OID_GET_INDEX(data), SW_DISCOVERY_BROWSE_INVALID, interface, name, type, domain, data->extra); break; case AVAHI_BROWSER_CACHE_EXHAUSTED: case AVAHI_BROWSER_ALL_FOR_NOW: break; } } sw_result sw_discovery_browse( sw_discovery self, sw_uint32 interface_index, sw_const_string type, sw_const_string domain, sw_discovery_browse_reply reply, sw_opaque extra, sw_discovery_oid * oid) { oid_data *data; AvahiIfIndex ifindex; sw_result result = SW_E_UNKNOWN; assert(self); assert(type); assert(reply); assert(oid); AVAHI_WARN_LINKAGE; if ((*oid = oid_alloc(self, OID_SERVICE_BROWSER)) == (sw_discovery_oid) -1) return SW_E_UNKNOWN; data = oid_get(self, *oid); assert(data); data->reply = (sw_result (*)(void)) reply; data->extra = extra; ifindex = interface_index == 0 ? AVAHI_IF_UNSPEC : (AvahiIfIndex) interface_index; ASSERT_SUCCESS(pthread_mutex_lock(&self->mutex)); if (!(data->object = avahi_service_browser_new(self->client, ifindex, AVAHI_PROTO_INET, type, domain, 0, service_browser_callback, data))) { result = map_error(avahi_client_errno(self->client)); goto finish; } result = SW_OKAY; finish: ASSERT_SUCCESS(pthread_mutex_unlock(&self->mutex)); if (result != SW_OKAY) if (*oid != (sw_discovery_oid) -1) sw_discovery_cancel(self, *oid); return result; } sw_result sw_discovery_cancel(sw_discovery self, sw_discovery_oid oid) { oid_data *data; assert(self); AVAHI_WARN_LINKAGE; if (!(data = oid_get(self, oid))) return SW_E_UNKNOWN; if (data->object) { switch (data->type) { case OID_SERVICE_BROWSER: avahi_service_browser_free(data->object); break; case OID_SERVICE_RESOLVER: avahi_service_resolver_free(data->object); break; case OID_DOMAIN_BROWSER: avahi_domain_browser_free(data->object); break; case OID_ENTRY_GROUP: avahi_entry_group_free(data->object); break; case OID_UNUSED: ; } } if (data->service_data) { assert(data->type == OID_ENTRY_GROUP); service_data_free(self, data->service_data); } oid_release(self, oid); return SW_OKAY; } sw_result sw_discovery_init_with_flags( sw_discovery * self, sw_discovery_init_flags flags) { assert(self); AVAHI_WARN_LINKAGE; if (flags != SW_DISCOVERY_USE_SHARED_SERVICE) return SW_E_NO_IMPL; return sw_discovery_init(self); } avahi-0.7/avahi-compat-howl/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643017555 xustar0030 mtime=1499681699.095370847 30 atime=1499681796.817178483 30 ctime=1499681851.151964496 avahi-0.7/avahi-compat-howl/Makefile.am0000644000175000017500000000642313130651643021171 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS=-I$(top_srcdir) # This cool debug trap works on i386/gcc only AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")' SUBDIRS = . samples if HAVE_DBUS if ENABLE_COMPAT_HOWL avahi_compat_howldir=$(includedir)/avahi-compat-howl avahi_compat_howl_rendezvousdir=$(avahi_compat_howldir)/rendezvous avahi_compat_howl_corbydir=$(avahi_compat_howldir)/corby avahi_compat_howl_discoverydir=$(avahi_compat_howldir)/discovery avahi_compat_howl_saltdir=$(avahi_compat_howldir)/salt avahi_compat_howl_HEADERS = \ include/howl.h avahi_compat_howl_rendezvous_HEADERS = \ include/rendezvous/rendezvous.h \ include/rendezvous/text_record.h avahi_compat_howl_corby_HEADERS = \ include/corby/message.h \ include/corby/object.h \ include/corby/orb.h \ include/corby/corby.h \ include/corby/channel.h \ include/corby/buffer.h avahi_compat_howl_discovery_HEADERS = \ include/discovery/discovery.h \ include/discovery/text_record.h avahi_compat_howl_salt_HEADERS = \ include/salt/socket.h \ include/salt/address.h \ include/salt/platform.h \ include/salt/signal.h \ include/salt/interface.h \ include/salt/salt.h \ include/salt/time.h \ include/salt/debug.h HOWLHEADERS = \ $(avahi_compat_howl_HEADERS) \ $(avahi_compat_howl_rendezvous_HEADERS) \ $(avahi_compat_howl_corby_HEADERS) \ $(avahi_compat_howl_discovery_HEADERS) \ $(avahi_compat_howl_salt_HEADERS) lib_LTLIBRARIES = libhowl.la if ENABLE_TESTS noinst_PROGRAMS = address-test text-test browse-domain-test endif libhowl_la_SOURCES = \ $(HOWLHEADERS) \ warn.c warn.h \ unsupported.c \ address.c \ text.c \ compat.c libhowl_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include libhowl_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_COMPAT_HOWL_VERSION_INFO) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la address_test_SOURCES = \ $(HOWLHEADERS) \ address.c \ address-test.c \ warn.c warn.h address_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include address_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la text_test_SOURCES = \ $(HOWLHEADERS) \ text.c \ text-test.c \ warn.c warn.h text_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include text_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la browse_domain_test_SOURCES = \ $(HOWLHEADERS) \ browse-domain-test.c browse_domain_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include browse_domain_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) libhowl.la endif endif avahi-0.7/avahi-compat-howl/PaxHeaders.10109/text-test.c0000644000000000000000000000013113130651643017625 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.17196405 avahi-0.7/avahi-compat-howl/text-test.c0000644000175000017500000000513013130651643021234 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "howl.h" #define ASSERT_SW_OKAY(t) { sw_result _r; _r = (t); assert(_r == SW_OKAY); } #define ASSERT_NOT_NULL(t) { const void* _r; r = (t); assert(_r); } static void hexdump(const void* p, size_t size) { const uint8_t *c = p; assert(p); printf("Dumping %zu bytes from %p:\n", size, p); while (size > 0) { unsigned i; for (i = 0; i < 16; i++) { if (i < size) printf("%02x ", c[i]); else printf(" "); } for (i = 0; i < 16; i++) { if (i < size) printf("%c", c[i] >= 32 && c[i] < 127 ? c[i] : '.'); else printf(" "); } printf("\n"); c += 16; if (size <= 16) break; size -= 16; } } int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { sw_text_record r; sw_text_record_iterator it; char key[255]; uint8_t val[255]; sw_ulong val_len; ASSERT_SW_OKAY(sw_text_record_init(&r)); ASSERT_SW_OKAY(sw_text_record_add_string(r, "foo=bar")); ASSERT_SW_OKAY(sw_text_record_add_string(r, "waldo=baz")); ASSERT_SW_OKAY(sw_text_record_add_key_and_string_value(r, "quux", "nimpf")); ASSERT_SW_OKAY(sw_text_record_add_key_and_binary_value(r, "quux", (void*) "\0\0\0\0", 4)); hexdump(sw_text_record_bytes(r), sw_text_record_len(r)); ASSERT_SW_OKAY(sw_text_record_iterator_init(&it, sw_text_record_bytes(r), sw_text_record_len(r))); while (sw_text_record_iterator_next(it, key, val, &val_len) == SW_OKAY) { printf("key=%s\n", key); hexdump(val, val_len); } ASSERT_SW_OKAY(sw_text_record_iterator_fina(it)); ASSERT_SW_OKAY(sw_text_record_fina(r)); return 0; } avahi-0.7/avahi-compat-howl/PaxHeaders.10109/warn.c0000644000000000000000000000013213130651643016634 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.163964226 avahi-0.7/avahi-compat-howl/warn.c0000644000175000017500000000162013130651643020242 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include "warn.h" #define COMPAT_LAYER "HOWL" #define CGI_SUBSYSTEM "howl" #include "../avahi-compat-libdns_sd/warn.c" avahi-0.7/avahi-compat-howl/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652011017554 xustar0030 mtime=1499681801.233079695 30 atime=1499681806.844954185 30 ctime=1499681851.163964226 avahi-0.7/avahi-compat-howl/Makefile.in0000644000175000017500000020660313130652011021172 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_COMPAT_HOWL_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@noinst_PROGRAMS = address-test$(EXEEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ text-test$(EXEEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@ browse-domain-test$(EXEEXT) subdir = avahi-compat-howl ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am \ $(am__avahi_compat_howl_HEADERS_DIST) \ $(am__avahi_compat_howl_corby_HEADERS_DIST) \ $(am__avahi_compat_howl_discovery_HEADERS_DIST) \ $(am__avahi_compat_howl_rendezvous_HEADERS_DIST) \ $(am__avahi_compat_howl_salt_HEADERS_DIST) $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" \ "$(DESTDIR)$(avahi_compat_howldir)" \ "$(DESTDIR)$(avahi_compat_howl_corbydir)" \ "$(DESTDIR)$(avahi_compat_howl_discoverydir)" \ "$(DESTDIR)$(avahi_compat_howl_rendezvousdir)" \ "$(DESTDIR)$(avahi_compat_howl_saltdir)" LTLIBRARIES = $(lib_LTLIBRARIES) libhowl_la_LIBADD = am__libhowl_la_SOURCES_DIST = include/howl.h \ include/rendezvous/rendezvous.h \ include/rendezvous/text_record.h include/corby/message.h \ include/corby/object.h include/corby/orb.h \ include/corby/corby.h include/corby/channel.h \ include/corby/buffer.h include/discovery/discovery.h \ include/discovery/text_record.h include/salt/socket.h \ include/salt/address.h include/salt/platform.h \ include/salt/signal.h include/salt/interface.h \ include/salt/salt.h include/salt/time.h include/salt/debug.h \ warn.c warn.h unsupported.c address.c text.c compat.c am__objects_1 = @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am__objects_2 = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_1) @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_libhowl_la_OBJECTS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_2) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ libhowl_la-warn.lo \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ libhowl_la-unsupported.lo \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ libhowl_la-address.lo \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ libhowl_la-text.lo \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ libhowl_la-compat.lo libhowl_la_OBJECTS = $(am_libhowl_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libhowl_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libhowl_la_CFLAGS) \ $(CFLAGS) $(libhowl_la_LDFLAGS) $(LDFLAGS) -o $@ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_libhowl_la_rpath = -rpath \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(libdir) PROGRAMS = $(noinst_PROGRAMS) am__address_test_SOURCES_DIST = include/howl.h \ include/rendezvous/rendezvous.h \ include/rendezvous/text_record.h include/corby/message.h \ include/corby/object.h include/corby/orb.h \ include/corby/corby.h include/corby/channel.h \ include/corby/buffer.h include/discovery/discovery.h \ include/discovery/text_record.h include/salt/socket.h \ include/salt/address.h include/salt/platform.h \ include/salt/signal.h include/salt/interface.h \ include/salt/salt.h include/salt/time.h include/salt/debug.h \ address.c address-test.c warn.c warn.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_address_test_OBJECTS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_2) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ address_test-address.$(OBJEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ address_test-address-test.$(OBJEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ address_test-warn.$(OBJEXT) address_test_OBJECTS = $(am_address_test_OBJECTS) am__DEPENDENCIES_1 = @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@address_test_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la address_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(address_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ am__browse_domain_test_SOURCES_DIST = include/howl.h \ include/rendezvous/rendezvous.h \ include/rendezvous/text_record.h include/corby/message.h \ include/corby/object.h include/corby/orb.h \ include/corby/corby.h include/corby/channel.h \ include/corby/buffer.h include/discovery/discovery.h \ include/discovery/text_record.h include/salt/socket.h \ include/salt/address.h include/salt/platform.h \ include/salt/signal.h include/salt/interface.h \ include/salt/salt.h include/salt/time.h include/salt/debug.h \ browse-domain-test.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_browse_domain_test_OBJECTS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_2) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ browse_domain_test-browse-domain-test.$(OBJEXT) browse_domain_test_OBJECTS = $(am_browse_domain_test_OBJECTS) @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@browse_domain_test_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ libhowl.la browse_domain_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(browse_domain_test_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am__text_test_SOURCES_DIST = include/howl.h \ include/rendezvous/rendezvous.h \ include/rendezvous/text_record.h include/corby/message.h \ include/corby/object.h include/corby/orb.h \ include/corby/corby.h include/corby/channel.h \ include/corby/buffer.h include/discovery/discovery.h \ include/discovery/text_record.h include/salt/socket.h \ include/salt/address.h include/salt/platform.h \ include/salt/signal.h include/salt/interface.h \ include/salt/salt.h include/salt/time.h include/salt/debug.h \ text.c text-test.c warn.c warn.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@am_text_test_OBJECTS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__objects_2) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ text_test-text.$(OBJEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ text_test-text-test.$(OBJEXT) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ text_test-warn.$(OBJEXT) text_test_OBJECTS = $(am_text_test_OBJECTS) @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@text_test_DEPENDENCIES = $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ ../avahi-common/libavahi-common.la text_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(text_test_CFLAGS) \ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libhowl_la_SOURCES) $(address_test_SOURCES) \ $(browse_domain_test_SOURCES) $(text_test_SOURCES) DIST_SOURCES = $(am__libhowl_la_SOURCES_DIST) \ $(am__address_test_SOURCES_DIST) \ $(am__browse_domain_test_SOURCES_DIST) \ $(am__text_test_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__avahi_compat_howl_HEADERS_DIST = include/howl.h am__avahi_compat_howl_corby_HEADERS_DIST = include/corby/message.h \ include/corby/object.h include/corby/orb.h \ include/corby/corby.h include/corby/channel.h \ include/corby/buffer.h am__avahi_compat_howl_discovery_HEADERS_DIST = \ include/discovery/discovery.h include/discovery/text_record.h am__avahi_compat_howl_rendezvous_HEADERS_DIST = \ include/rendezvous/rendezvous.h \ include/rendezvous/text_record.h am__avahi_compat_howl_salt_HEADERS_DIST = include/salt/socket.h \ include/salt/address.h include/salt/platform.h \ include/salt/signal.h include/salt/interface.h \ include/salt/salt.h include/salt/time.h include/salt/debug.h HEADERS = $(avahi_compat_howl_HEADERS) \ $(avahi_compat_howl_corby_HEADERS) \ $(avahi_compat_howl_discovery_HEADERS) \ $(avahi_compat_howl_rendezvous_HEADERS) \ $(avahi_compat_howl_salt_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # This cool debug trap works on i386/gcc only AM_CFLAGS = -I$(top_srcdir) '-DDEBUG_TRAP=__asm__("int $$3")' SUBDIRS = . samples @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howldir = $(includedir)/avahi-compat-howl @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_rendezvousdir = $(avahi_compat_howldir)/rendezvous @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_corbydir = $(avahi_compat_howldir)/corby @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_discoverydir = $(avahi_compat_howldir)/discovery @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_saltdir = $(avahi_compat_howldir)/salt @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_HEADERS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/howl.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_rendezvous_HEADERS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/rendezvous/rendezvous.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/rendezvous/text_record.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_corby_HEADERS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/corby/message.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/corby/object.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/corby/orb.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/corby/corby.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/corby/channel.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/corby/buffer.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_discovery_HEADERS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/discovery/discovery.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/discovery/text_record.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@avahi_compat_howl_salt_HEADERS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/salt/socket.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/salt/address.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/salt/platform.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/salt/signal.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/salt/interface.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/salt/salt.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/salt/time.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ include/salt/debug.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@HOWLHEADERS = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(avahi_compat_howl_HEADERS) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(avahi_compat_howl_rendezvous_HEADERS) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(avahi_compat_howl_corby_HEADERS) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(avahi_compat_howl_discovery_HEADERS) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(avahi_compat_howl_salt_HEADERS) @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@lib_LTLIBRARIES = libhowl.la @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@libhowl_la_SOURCES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(HOWLHEADERS) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ warn.c warn.h \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ unsupported.c \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ address.c \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ text.c \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ compat.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@libhowl_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@libhowl_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBAVAHI_COMPAT_HOWL_VERSION_INFO) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@address_test_SOURCES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(HOWLHEADERS) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ address.c \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ address-test.c \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ warn.c warn.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@address_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@address_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@text_test_SOURCES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(HOWLHEADERS) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ text.c \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ text-test.c \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ warn.c warn.h @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@text_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@text_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) ../avahi-common/libavahi-common.la @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@browse_domain_test_SOURCES = \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ $(HOWLHEADERS) \ @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@ browse-domain-test.c @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@browse_domain_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -I $(srcdir)/include @ENABLE_COMPAT_HOWL_TRUE@@HAVE_DBUS_TRUE@browse_domain_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) $(PTHREAD_CFLAGS) libhowl.la all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign avahi-compat-howl/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign avahi-compat-howl/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libhowl.la: $(libhowl_la_OBJECTS) $(libhowl_la_DEPENDENCIES) $(EXTRA_libhowl_la_DEPENDENCIES) $(AM_V_CCLD)$(libhowl_la_LINK) $(am_libhowl_la_rpath) $(libhowl_la_OBJECTS) $(libhowl_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list address-test$(EXEEXT): $(address_test_OBJECTS) $(address_test_DEPENDENCIES) $(EXTRA_address_test_DEPENDENCIES) @rm -f address-test$(EXEEXT) $(AM_V_CCLD)$(address_test_LINK) $(address_test_OBJECTS) $(address_test_LDADD) $(LIBS) browse-domain-test$(EXEEXT): $(browse_domain_test_OBJECTS) $(browse_domain_test_DEPENDENCIES) $(EXTRA_browse_domain_test_DEPENDENCIES) @rm -f browse-domain-test$(EXEEXT) $(AM_V_CCLD)$(browse_domain_test_LINK) $(browse_domain_test_OBJECTS) $(browse_domain_test_LDADD) $(LIBS) text-test$(EXEEXT): $(text_test_OBJECTS) $(text_test_DEPENDENCIES) $(EXTRA_text_test_DEPENDENCIES) @rm -f text-test$(EXEEXT) $(AM_V_CCLD)$(text_test_LINK) $(text_test_OBJECTS) $(text_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/address_test-address-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/address_test-address.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/address_test-warn.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/browse_domain_test-browse-domain-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhowl_la-address.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhowl_la-compat.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhowl_la-text.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhowl_la-unsupported.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhowl_la-warn.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text_test-text-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text_test-text.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text_test-warn.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< libhowl_la-warn.lo: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -MT libhowl_la-warn.lo -MD -MP -MF $(DEPDIR)/libhowl_la-warn.Tpo -c -o libhowl_la-warn.lo `test -f 'warn.c' || echo '$(srcdir)/'`warn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libhowl_la-warn.Tpo $(DEPDIR)/libhowl_la-warn.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='libhowl_la-warn.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -c -o libhowl_la-warn.lo `test -f 'warn.c' || echo '$(srcdir)/'`warn.c libhowl_la-unsupported.lo: unsupported.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -MT libhowl_la-unsupported.lo -MD -MP -MF $(DEPDIR)/libhowl_la-unsupported.Tpo -c -o libhowl_la-unsupported.lo `test -f 'unsupported.c' || echo '$(srcdir)/'`unsupported.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libhowl_la-unsupported.Tpo $(DEPDIR)/libhowl_la-unsupported.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unsupported.c' object='libhowl_la-unsupported.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -c -o libhowl_la-unsupported.lo `test -f 'unsupported.c' || echo '$(srcdir)/'`unsupported.c libhowl_la-address.lo: address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -MT libhowl_la-address.lo -MD -MP -MF $(DEPDIR)/libhowl_la-address.Tpo -c -o libhowl_la-address.lo `test -f 'address.c' || echo '$(srcdir)/'`address.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libhowl_la-address.Tpo $(DEPDIR)/libhowl_la-address.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address.c' object='libhowl_la-address.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -c -o libhowl_la-address.lo `test -f 'address.c' || echo '$(srcdir)/'`address.c libhowl_la-text.lo: text.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -MT libhowl_la-text.lo -MD -MP -MF $(DEPDIR)/libhowl_la-text.Tpo -c -o libhowl_la-text.lo `test -f 'text.c' || echo '$(srcdir)/'`text.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libhowl_la-text.Tpo $(DEPDIR)/libhowl_la-text.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='text.c' object='libhowl_la-text.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -c -o libhowl_la-text.lo `test -f 'text.c' || echo '$(srcdir)/'`text.c libhowl_la-compat.lo: compat.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -MT libhowl_la-compat.lo -MD -MP -MF $(DEPDIR)/libhowl_la-compat.Tpo -c -o libhowl_la-compat.lo `test -f 'compat.c' || echo '$(srcdir)/'`compat.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libhowl_la-compat.Tpo $(DEPDIR)/libhowl_la-compat.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='compat.c' object='libhowl_la-compat.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libhowl_la_CFLAGS) $(CFLAGS) -c -o libhowl_la-compat.lo `test -f 'compat.c' || echo '$(srcdir)/'`compat.c address_test-address.o: address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -MT address_test-address.o -MD -MP -MF $(DEPDIR)/address_test-address.Tpo -c -o address_test-address.o `test -f 'address.c' || echo '$(srcdir)/'`address.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/address_test-address.Tpo $(DEPDIR)/address_test-address.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address.c' object='address_test-address.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -c -o address_test-address.o `test -f 'address.c' || echo '$(srcdir)/'`address.c address_test-address.obj: address.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -MT address_test-address.obj -MD -MP -MF $(DEPDIR)/address_test-address.Tpo -c -o address_test-address.obj `if test -f 'address.c'; then $(CYGPATH_W) 'address.c'; else $(CYGPATH_W) '$(srcdir)/address.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/address_test-address.Tpo $(DEPDIR)/address_test-address.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address.c' object='address_test-address.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -c -o address_test-address.obj `if test -f 'address.c'; then $(CYGPATH_W) 'address.c'; else $(CYGPATH_W) '$(srcdir)/address.c'; fi` address_test-address-test.o: address-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -MT address_test-address-test.o -MD -MP -MF $(DEPDIR)/address_test-address-test.Tpo -c -o address_test-address-test.o `test -f 'address-test.c' || echo '$(srcdir)/'`address-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/address_test-address-test.Tpo $(DEPDIR)/address_test-address-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address-test.c' object='address_test-address-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -c -o address_test-address-test.o `test -f 'address-test.c' || echo '$(srcdir)/'`address-test.c address_test-address-test.obj: address-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -MT address_test-address-test.obj -MD -MP -MF $(DEPDIR)/address_test-address-test.Tpo -c -o address_test-address-test.obj `if test -f 'address-test.c'; then $(CYGPATH_W) 'address-test.c'; else $(CYGPATH_W) '$(srcdir)/address-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/address_test-address-test.Tpo $(DEPDIR)/address_test-address-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='address-test.c' object='address_test-address-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -c -o address_test-address-test.obj `if test -f 'address-test.c'; then $(CYGPATH_W) 'address-test.c'; else $(CYGPATH_W) '$(srcdir)/address-test.c'; fi` address_test-warn.o: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -MT address_test-warn.o -MD -MP -MF $(DEPDIR)/address_test-warn.Tpo -c -o address_test-warn.o `test -f 'warn.c' || echo '$(srcdir)/'`warn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/address_test-warn.Tpo $(DEPDIR)/address_test-warn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='address_test-warn.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -c -o address_test-warn.o `test -f 'warn.c' || echo '$(srcdir)/'`warn.c address_test-warn.obj: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -MT address_test-warn.obj -MD -MP -MF $(DEPDIR)/address_test-warn.Tpo -c -o address_test-warn.obj `if test -f 'warn.c'; then $(CYGPATH_W) 'warn.c'; else $(CYGPATH_W) '$(srcdir)/warn.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/address_test-warn.Tpo $(DEPDIR)/address_test-warn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='address_test-warn.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(address_test_CFLAGS) $(CFLAGS) -c -o address_test-warn.obj `if test -f 'warn.c'; then $(CYGPATH_W) 'warn.c'; else $(CYGPATH_W) '$(srcdir)/warn.c'; fi` browse_domain_test-browse-domain-test.o: browse-domain-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(browse_domain_test_CFLAGS) $(CFLAGS) -MT browse_domain_test-browse-domain-test.o -MD -MP -MF $(DEPDIR)/browse_domain_test-browse-domain-test.Tpo -c -o browse_domain_test-browse-domain-test.o `test -f 'browse-domain-test.c' || echo '$(srcdir)/'`browse-domain-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/browse_domain_test-browse-domain-test.Tpo $(DEPDIR)/browse_domain_test-browse-domain-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse-domain-test.c' object='browse_domain_test-browse-domain-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(browse_domain_test_CFLAGS) $(CFLAGS) -c -o browse_domain_test-browse-domain-test.o `test -f 'browse-domain-test.c' || echo '$(srcdir)/'`browse-domain-test.c browse_domain_test-browse-domain-test.obj: browse-domain-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(browse_domain_test_CFLAGS) $(CFLAGS) -MT browse_domain_test-browse-domain-test.obj -MD -MP -MF $(DEPDIR)/browse_domain_test-browse-domain-test.Tpo -c -o browse_domain_test-browse-domain-test.obj `if test -f 'browse-domain-test.c'; then $(CYGPATH_W) 'browse-domain-test.c'; else $(CYGPATH_W) '$(srcdir)/browse-domain-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/browse_domain_test-browse-domain-test.Tpo $(DEPDIR)/browse_domain_test-browse-domain-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='browse-domain-test.c' object='browse_domain_test-browse-domain-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(browse_domain_test_CFLAGS) $(CFLAGS) -c -o browse_domain_test-browse-domain-test.obj `if test -f 'browse-domain-test.c'; then $(CYGPATH_W) 'browse-domain-test.c'; else $(CYGPATH_W) '$(srcdir)/browse-domain-test.c'; fi` text_test-text.o: text.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -MT text_test-text.o -MD -MP -MF $(DEPDIR)/text_test-text.Tpo -c -o text_test-text.o `test -f 'text.c' || echo '$(srcdir)/'`text.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/text_test-text.Tpo $(DEPDIR)/text_test-text.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='text.c' object='text_test-text.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -c -o text_test-text.o `test -f 'text.c' || echo '$(srcdir)/'`text.c text_test-text.obj: text.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -MT text_test-text.obj -MD -MP -MF $(DEPDIR)/text_test-text.Tpo -c -o text_test-text.obj `if test -f 'text.c'; then $(CYGPATH_W) 'text.c'; else $(CYGPATH_W) '$(srcdir)/text.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/text_test-text.Tpo $(DEPDIR)/text_test-text.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='text.c' object='text_test-text.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -c -o text_test-text.obj `if test -f 'text.c'; then $(CYGPATH_W) 'text.c'; else $(CYGPATH_W) '$(srcdir)/text.c'; fi` text_test-text-test.o: text-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -MT text_test-text-test.o -MD -MP -MF $(DEPDIR)/text_test-text-test.Tpo -c -o text_test-text-test.o `test -f 'text-test.c' || echo '$(srcdir)/'`text-test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/text_test-text-test.Tpo $(DEPDIR)/text_test-text-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='text-test.c' object='text_test-text-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -c -o text_test-text-test.o `test -f 'text-test.c' || echo '$(srcdir)/'`text-test.c text_test-text-test.obj: text-test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -MT text_test-text-test.obj -MD -MP -MF $(DEPDIR)/text_test-text-test.Tpo -c -o text_test-text-test.obj `if test -f 'text-test.c'; then $(CYGPATH_W) 'text-test.c'; else $(CYGPATH_W) '$(srcdir)/text-test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/text_test-text-test.Tpo $(DEPDIR)/text_test-text-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='text-test.c' object='text_test-text-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -c -o text_test-text-test.obj `if test -f 'text-test.c'; then $(CYGPATH_W) 'text-test.c'; else $(CYGPATH_W) '$(srcdir)/text-test.c'; fi` text_test-warn.o: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -MT text_test-warn.o -MD -MP -MF $(DEPDIR)/text_test-warn.Tpo -c -o text_test-warn.o `test -f 'warn.c' || echo '$(srcdir)/'`warn.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/text_test-warn.Tpo $(DEPDIR)/text_test-warn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='text_test-warn.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -c -o text_test-warn.o `test -f 'warn.c' || echo '$(srcdir)/'`warn.c text_test-warn.obj: warn.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -MT text_test-warn.obj -MD -MP -MF $(DEPDIR)/text_test-warn.Tpo -c -o text_test-warn.obj `if test -f 'warn.c'; then $(CYGPATH_W) 'warn.c'; else $(CYGPATH_W) '$(srcdir)/warn.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/text_test-warn.Tpo $(DEPDIR)/text_test-warn.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='warn.c' object='text_test-warn.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(text_test_CFLAGS) $(CFLAGS) -c -o text_test-warn.obj `if test -f 'warn.c'; then $(CYGPATH_W) 'warn.c'; else $(CYGPATH_W) '$(srcdir)/warn.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-avahi_compat_howlHEADERS: $(avahi_compat_howl_HEADERS) @$(NORMAL_INSTALL) @list='$(avahi_compat_howl_HEADERS)'; test -n "$(avahi_compat_howldir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_compat_howldir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_compat_howldir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahi_compat_howldir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahi_compat_howldir)" || exit $$?; \ done uninstall-avahi_compat_howlHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahi_compat_howl_HEADERS)'; test -n "$(avahi_compat_howldir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahi_compat_howldir)'; $(am__uninstall_files_from_dir) install-avahi_compat_howl_corbyHEADERS: $(avahi_compat_howl_corby_HEADERS) @$(NORMAL_INSTALL) @list='$(avahi_compat_howl_corby_HEADERS)'; test -n "$(avahi_compat_howl_corbydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_compat_howl_corbydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_compat_howl_corbydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahi_compat_howl_corbydir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahi_compat_howl_corbydir)" || exit $$?; \ done uninstall-avahi_compat_howl_corbyHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahi_compat_howl_corby_HEADERS)'; test -n "$(avahi_compat_howl_corbydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahi_compat_howl_corbydir)'; $(am__uninstall_files_from_dir) install-avahi_compat_howl_discoveryHEADERS: $(avahi_compat_howl_discovery_HEADERS) @$(NORMAL_INSTALL) @list='$(avahi_compat_howl_discovery_HEADERS)'; test -n "$(avahi_compat_howl_discoverydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_compat_howl_discoverydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_compat_howl_discoverydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahi_compat_howl_discoverydir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahi_compat_howl_discoverydir)" || exit $$?; \ done uninstall-avahi_compat_howl_discoveryHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahi_compat_howl_discovery_HEADERS)'; test -n "$(avahi_compat_howl_discoverydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahi_compat_howl_discoverydir)'; $(am__uninstall_files_from_dir) install-avahi_compat_howl_rendezvousHEADERS: $(avahi_compat_howl_rendezvous_HEADERS) @$(NORMAL_INSTALL) @list='$(avahi_compat_howl_rendezvous_HEADERS)'; test -n "$(avahi_compat_howl_rendezvousdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_compat_howl_rendezvousdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_compat_howl_rendezvousdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahi_compat_howl_rendezvousdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahi_compat_howl_rendezvousdir)" || exit $$?; \ done uninstall-avahi_compat_howl_rendezvousHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahi_compat_howl_rendezvous_HEADERS)'; test -n "$(avahi_compat_howl_rendezvousdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahi_compat_howl_rendezvousdir)'; $(am__uninstall_files_from_dir) install-avahi_compat_howl_saltHEADERS: $(avahi_compat_howl_salt_HEADERS) @$(NORMAL_INSTALL) @list='$(avahi_compat_howl_salt_HEADERS)'; test -n "$(avahi_compat_howl_saltdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(avahi_compat_howl_saltdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(avahi_compat_howl_saltdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(avahi_compat_howl_saltdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(avahi_compat_howl_saltdir)" || exit $$?; \ done uninstall-avahi_compat_howl_saltHEADERS: @$(NORMAL_UNINSTALL) @list='$(avahi_compat_howl_salt_HEADERS)'; test -n "$(avahi_compat_howl_saltdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(avahi_compat_howl_saltdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(avahi_compat_howldir)" "$(DESTDIR)$(avahi_compat_howl_corbydir)" "$(DESTDIR)$(avahi_compat_howl_discoverydir)" "$(DESTDIR)$(avahi_compat_howl_rendezvousdir)" "$(DESTDIR)$(avahi_compat_howl_saltdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-avahi_compat_howlHEADERS \ install-avahi_compat_howl_corbyHEADERS \ install-avahi_compat_howl_discoveryHEADERS \ install-avahi_compat_howl_rendezvousHEADERS \ install-avahi_compat_howl_saltHEADERS install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-avahi_compat_howlHEADERS \ uninstall-avahi_compat_howl_corbyHEADERS \ uninstall-avahi_compat_howl_discoveryHEADERS \ uninstall-avahi_compat_howl_rendezvousHEADERS \ uninstall-avahi_compat_howl_saltHEADERS \ uninstall-libLTLIBRARIES .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libLTLIBRARIES \ clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am \ install-avahi_compat_howlHEADERS \ install-avahi_compat_howl_corbyHEADERS \ install-avahi_compat_howl_discoveryHEADERS \ install-avahi_compat_howl_rendezvousHEADERS \ install-avahi_compat_howl_saltHEADERS install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-avahi_compat_howlHEADERS \ uninstall-avahi_compat_howl_corbyHEADERS \ uninstall-avahi_compat_howl_discoveryHEADERS \ uninstall-avahi_compat_howl_rendezvousHEADERS \ uninstall-avahi_compat_howl_saltHEADERS \ uninstall-libLTLIBRARIES .PRECIOUS: Makefile # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/avahi-compat-howl/PaxHeaders.10109/unsupported.c0000644000000000000000000000013213130651643020255 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.163964226 avahi-0.7/avahi-compat-howl/unsupported.c0000644000175000017500000006745513130651643021705 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include "howl.h" #include "warn.h" AVAHI_GCC_NORETURN sw_string sw_strdup(AVAHI_GCC_UNUSED sw_const_string str) { AVAHI_WARN_UNSUPPORTED_ABORT; } AVAHI_GCC_NORETURN sw_opaque _sw_debug_malloc( AVAHI_GCC_UNUSED sw_size_t size, AVAHI_GCC_UNUSED sw_const_string function, AVAHI_GCC_UNUSED sw_const_string file, AVAHI_GCC_UNUSED sw_uint32 line) { AVAHI_WARN_UNSUPPORTED_ABORT; } AVAHI_GCC_NORETURN sw_opaque _sw_debug_realloc( AVAHI_GCC_UNUSED sw_opaque_t mem, AVAHI_GCC_UNUSED sw_size_t size, AVAHI_GCC_UNUSED sw_const_string function, AVAHI_GCC_UNUSED sw_const_string file, AVAHI_GCC_UNUSED sw_uint32 line) { AVAHI_WARN_UNSUPPORTED_ABORT; } void _sw_debug_free( AVAHI_GCC_UNUSED sw_opaque_t mem, AVAHI_GCC_UNUSED sw_const_string function, AVAHI_GCC_UNUSED sw_const_string file, AVAHI_GCC_UNUSED sw_uint32 line) { AVAHI_WARN_UNSUPPORTED; } AVAHI_GCC_NORETURN sw_const_string sw_strerror(/* howl sucks */) { AVAHI_WARN_UNSUPPORTED_ABORT; } sw_result sw_timer_init(AVAHI_GCC_UNUSED sw_timer * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_timer_fina(AVAHI_GCC_UNUSED sw_timer self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_time_init(AVAHI_GCC_UNUSED sw_time * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_time_init_now(AVAHI_GCC_UNUSED sw_time * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_time_fina(AVAHI_GCC_UNUSED sw_time self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } AVAHI_GCC_NORETURN sw_time sw_time_add( AVAHI_GCC_UNUSED sw_time self, AVAHI_GCC_UNUSED sw_time y) { AVAHI_WARN_UNSUPPORTED_ABORT; } AVAHI_GCC_NORETURN sw_time sw_time_sub( AVAHI_GCC_UNUSED sw_time self, AVAHI_GCC_UNUSED sw_time y) { AVAHI_WARN_UNSUPPORTED_ABORT; } AVAHI_GCC_NORETURN sw_int32 sw_time_cmp( AVAHI_GCC_UNUSED sw_time self, AVAHI_GCC_UNUSED sw_time y) { AVAHI_WARN_UNSUPPORTED_ABORT; } sw_result sw_salt_init( AVAHI_GCC_UNUSED sw_salt * self, AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char ** argv) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_fina(AVAHI_GCC_UNUSED sw_salt self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_register_socket( AVAHI_GCC_UNUSED sw_salt self, AVAHI_GCC_UNUSED struct _sw_socket * _socket, AVAHI_GCC_UNUSED sw_socket_event events, AVAHI_GCC_UNUSED sw_socket_handler handler, AVAHI_GCC_UNUSED sw_socket_handler_func func, AVAHI_GCC_UNUSED sw_opaque extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_unregister_socket( AVAHI_GCC_UNUSED sw_salt self, AVAHI_GCC_UNUSED struct _sw_socket * _socket) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_register_timer( AVAHI_GCC_UNUSED sw_salt self, AVAHI_GCC_UNUSED struct _sw_timer * timer, AVAHI_GCC_UNUSED sw_time timeout, AVAHI_GCC_UNUSED sw_timer_handler handler, AVAHI_GCC_UNUSED sw_timer_handler_func func, AVAHI_GCC_UNUSED sw_opaque extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_unregister_timer( AVAHI_GCC_UNUSED sw_salt self, AVAHI_GCC_UNUSED struct _sw_timer * timer) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_register_network_interface( AVAHI_GCC_UNUSED sw_salt self, AVAHI_GCC_UNUSED struct _sw_network_interface * netif, AVAHI_GCC_UNUSED sw_network_interface_handler handler, AVAHI_GCC_UNUSED sw_network_interface_handler_func func, AVAHI_GCC_UNUSED sw_opaque extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_unregister_network_interface_handler(AVAHI_GCC_UNUSED sw_salt self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_register_signal( AVAHI_GCC_UNUSED sw_salt self, AVAHI_GCC_UNUSED struct _sw_signal * _signal, AVAHI_GCC_UNUSED sw_signal_handler handler, AVAHI_GCC_UNUSED sw_signal_handler_func func, AVAHI_GCC_UNUSED sw_opaque extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_salt_unregister_signal( AVAHI_GCC_UNUSED sw_salt self, AVAHI_GCC_UNUSED struct _sw_signal * _signal) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } void sw_print_assert( AVAHI_GCC_UNUSED int code, AVAHI_GCC_UNUSED sw_const_string assert_string, AVAHI_GCC_UNUSED sw_const_string file, AVAHI_GCC_UNUSED sw_const_string func, AVAHI_GCC_UNUSED int line) { AVAHI_WARN_UNSUPPORTED; } void sw_print_debug( AVAHI_GCC_UNUSED int level, AVAHI_GCC_UNUSED sw_const_string format, ...) { AVAHI_WARN_UNSUPPORTED; } sw_result sw_tcp_socket_init(AVAHI_GCC_UNUSED sw_socket * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_tcp_socket_init_with_desc( AVAHI_GCC_UNUSED sw_socket * self, AVAHI_GCC_UNUSED sw_sockdesc_t desc) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_udp_socket_init(AVAHI_GCC_UNUSED sw_socket * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_multicast_socket_init(AVAHI_GCC_UNUSED sw_socket * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_fina(AVAHI_GCC_UNUSED sw_socket self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_bind( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_ipv4_address address, AVAHI_GCC_UNUSED sw_port port) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_join_multicast_group( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_ipv4_address local_address, AVAHI_GCC_UNUSED sw_ipv4_address multicast_address, AVAHI_GCC_UNUSED sw_uint32 ttl) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_leave_multicast_group(AVAHI_GCC_UNUSED sw_socket self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_listen( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED int qsize) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_connect( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_ipv4_address address, AVAHI_GCC_UNUSED sw_port port) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_accept( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_socket * _socket) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_send( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_octets buffer, AVAHI_GCC_UNUSED sw_size_t len, AVAHI_GCC_UNUSED sw_size_t * bytesWritten) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_sendto( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_octets buffer, AVAHI_GCC_UNUSED sw_size_t len, AVAHI_GCC_UNUSED sw_size_t * bytesWritten, AVAHI_GCC_UNUSED sw_ipv4_address to, AVAHI_GCC_UNUSED sw_port port) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_recv( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_octets buffer, AVAHI_GCC_UNUSED sw_size_t max, AVAHI_GCC_UNUSED sw_size_t * len) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_recvfrom( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_octets buffer, AVAHI_GCC_UNUSED sw_size_t max, AVAHI_GCC_UNUSED sw_size_t * len, AVAHI_GCC_UNUSED sw_ipv4_address * from, AVAHI_GCC_UNUSED sw_port * port, AVAHI_GCC_UNUSED sw_ipv4_address * dest, AVAHI_GCC_UNUSED sw_uint32 * interface_index) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_set_blocking_mode( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_bool blocking_mode) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_set_options( AVAHI_GCC_UNUSED sw_socket self, AVAHI_GCC_UNUSED sw_socket_options options) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } AVAHI_GCC_NORETURN sw_ipv4_address sw_socket_ipv4_address(AVAHI_GCC_UNUSED sw_socket self) { AVAHI_WARN_UNSUPPORTED_ABORT; } AVAHI_GCC_NORETURN sw_port sw_socket_port(AVAHI_GCC_UNUSED sw_socket self) { AVAHI_WARN_UNSUPPORTED_ABORT; } AVAHI_GCC_NORETURN sw_sockdesc_t sw_socket_desc(AVAHI_GCC_UNUSED sw_socket self) { AVAHI_WARN_UNSUPPORTED_ABORT; } sw_result sw_socket_close(AVAHI_GCC_UNUSED sw_socket self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_init(AVAHI_GCC_UNUSED sw_socket_options * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_fina(AVAHI_GCC_UNUSED sw_socket_options self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_set_debug( AVAHI_GCC_UNUSED sw_socket_options self, AVAHI_GCC_UNUSED sw_bool val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_set_nodelay( AVAHI_GCC_UNUSED sw_socket_options self, AVAHI_GCC_UNUSED sw_bool val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_set_dontroute( AVAHI_GCC_UNUSED sw_socket_options self, AVAHI_GCC_UNUSED sw_bool val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_set_keepalive( AVAHI_GCC_UNUSED sw_socket_options self, AVAHI_GCC_UNUSED sw_bool val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_set_linger( AVAHI_GCC_UNUSED sw_socket_options self, AVAHI_GCC_UNUSED sw_bool onoff, AVAHI_GCC_UNUSED sw_uint32 linger) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_set_reuseaddr( AVAHI_GCC_UNUSED sw_socket_options self, AVAHI_GCC_UNUSED sw_bool val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_set_rcvbuf( AVAHI_GCC_UNUSED sw_socket_options self, AVAHI_GCC_UNUSED sw_uint32 val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_socket_options_set_sndbuf( AVAHI_GCC_UNUSED sw_socket_options self, AVAHI_GCC_UNUSED sw_uint32 val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } AVAHI_GCC_NORETURN int sw_socket_error_code(void) { AVAHI_WARN_UNSUPPORTED_ABORT; } sw_result sw_corby_orb_init( AVAHI_GCC_UNUSED sw_corby_orb * self, AVAHI_GCC_UNUSED sw_salt salt, AVAHI_GCC_UNUSED const sw_corby_orb_config * config, AVAHI_GCC_UNUSED sw_corby_orb_observer observer, AVAHI_GCC_UNUSED sw_corby_orb_observer_func func, AVAHI_GCC_UNUSED sw_opaque_t extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_fina(AVAHI_GCC_UNUSED sw_corby_orb self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_register_servant( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED sw_corby_servant servant, AVAHI_GCC_UNUSED sw_corby_servant_cb cb, AVAHI_GCC_UNUSED sw_const_string oid, AVAHI_GCC_UNUSED struct _sw_corby_object ** object, AVAHI_GCC_UNUSED sw_const_string protocol_name) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_unregister_servant( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED sw_const_string oid) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_register_bidirectional_object( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED struct _sw_corby_object * object) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_register_channel( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED struct _sw_corby_channel * channel) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } AVAHI_GCC_NORETURN sw_corby_orb_delegate sw_corby_orb_get_delegate(AVAHI_GCC_UNUSED sw_corby_orb self) { AVAHI_WARN_UNSUPPORTED_ABORT; } sw_result sw_corby_orb_set_delegate( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED sw_corby_orb_delegate delegate) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_set_observer( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED sw_corby_orb_observer observer, AVAHI_GCC_UNUSED sw_corby_orb_observer_func func, AVAHI_GCC_UNUSED sw_opaque_t extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_protocol_to_address( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED sw_const_string tag, AVAHI_GCC_UNUSED sw_string addr, AVAHI_GCC_UNUSED sw_port * port) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_protocol_to_url( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED sw_const_string tag, AVAHI_GCC_UNUSED sw_const_string name, AVAHI_GCC_UNUSED sw_string url, AVAHI_GCC_UNUSED sw_size_t url_len) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_read_channel( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED struct _sw_corby_channel * channel) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_orb_dispatch_message( AVAHI_GCC_UNUSED sw_corby_orb self, AVAHI_GCC_UNUSED struct _sw_corby_channel * channel, AVAHI_GCC_UNUSED struct _sw_corby_message * message, AVAHI_GCC_UNUSED struct _sw_corby_buffer * buffer, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_message_init(AVAHI_GCC_UNUSED sw_corby_message * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_message_fina(AVAHI_GCC_UNUSED sw_corby_message self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_init(AVAHI_GCC_UNUSED sw_corby_buffer * self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_init_with_size( AVAHI_GCC_UNUSED sw_corby_buffer * self, AVAHI_GCC_UNUSED sw_size_t size) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_init_with_delegate( AVAHI_GCC_UNUSED sw_corby_buffer * self, AVAHI_GCC_UNUSED sw_corby_buffer_delegate delegate, AVAHI_GCC_UNUSED sw_corby_buffer_overflow_func overflow, AVAHI_GCC_UNUSED sw_corby_buffer_underflow_func underflow, AVAHI_GCC_UNUSED sw_opaque_t extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_init_with_size_and_delegate( AVAHI_GCC_UNUSED sw_corby_buffer * self, AVAHI_GCC_UNUSED sw_size_t size, AVAHI_GCC_UNUSED sw_corby_buffer_delegate delegate, AVAHI_GCC_UNUSED sw_corby_buffer_overflow_func overflow, AVAHI_GCC_UNUSED sw_corby_buffer_underflow_func underflow, AVAHI_GCC_UNUSED sw_opaque_t extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_fina(AVAHI_GCC_UNUSED sw_corby_buffer self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } void sw_corby_buffer_reset(AVAHI_GCC_UNUSED sw_corby_buffer self) { AVAHI_WARN_UNSUPPORTED; } sw_result sw_corby_buffer_set_octets( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_octets octets, AVAHI_GCC_UNUSED sw_size_t size) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_octets sw_corby_buffer_octets(AVAHI_GCC_UNUSED sw_corby_buffer self) { AVAHI_WARN_UNSUPPORTED; return NULL; } sw_size_t sw_corby_buffer_bytes_used(AVAHI_GCC_UNUSED sw_corby_buffer self) { AVAHI_WARN_UNSUPPORTED; return 0; } sw_size_t sw_corby_buffer_size(AVAHI_GCC_UNUSED sw_corby_buffer self) { AVAHI_WARN_UNSUPPORTED; return 0; } sw_result sw_corby_buffer_put_int8( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_int8 val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_uint8( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_uint8 val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_int16( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_int16 val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_uint16( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_uint16 val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_int32( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_int32 val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_uint32( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_uint32 val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_octets( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_const_octets val, AVAHI_GCC_UNUSED sw_size_t size) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_sized_octets( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_const_octets val, AVAHI_GCC_UNUSED sw_uint32 len) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_cstring( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_const_string val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_object( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED const struct _sw_corby_object * object) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_put_pad( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_corby_buffer_pad pad) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_int8( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_int8 * val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_uint8( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_uint8 * val) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_int16( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_int16 * val, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_uint16( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_uint16 * val, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_int32( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_int32 * val, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_uint32( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_uint32 * val, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_octets( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_octets octets, AVAHI_GCC_UNUSED sw_size_t size) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_allocate_and_get_sized_octets( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_octets * val, AVAHI_GCC_UNUSED sw_uint32 * size, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_zerocopy_sized_octets( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_octets * val, AVAHI_GCC_UNUSED sw_uint32 * size, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_sized_octets( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_octets val, AVAHI_GCC_UNUSED sw_uint32 * len, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_allocate_and_get_cstring( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_string * val, AVAHI_GCC_UNUSED sw_uint32 * len, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_zerocopy_cstring( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_string * val, AVAHI_GCC_UNUSED sw_uint32 * len, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_cstring( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED sw_string val, AVAHI_GCC_UNUSED sw_uint32 * len, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_buffer_get_object( AVAHI_GCC_UNUSED sw_corby_buffer self, AVAHI_GCC_UNUSED struct _sw_corby_object ** object, AVAHI_GCC_UNUSED sw_uint8 endian) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_channel_start_request( AVAHI_GCC_UNUSED sw_corby_channel self, AVAHI_GCC_UNUSED sw_const_corby_profile profile, AVAHI_GCC_UNUSED struct _sw_corby_buffer ** buffer, AVAHI_GCC_UNUSED sw_const_string op, AVAHI_GCC_UNUSED sw_uint32 oplen, AVAHI_GCC_UNUSED sw_bool reply_expected) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_channel_start_reply( AVAHI_GCC_UNUSED sw_corby_channel self, AVAHI_GCC_UNUSED struct _sw_corby_buffer ** buffer, AVAHI_GCC_UNUSED sw_uint32 request_id, AVAHI_GCC_UNUSED sw_corby_reply_status status) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_channel_send( AVAHI_GCC_UNUSED sw_corby_channel self, AVAHI_GCC_UNUSED struct _sw_corby_buffer * buffer, AVAHI_GCC_UNUSED sw_corby_buffer_observer observer, AVAHI_GCC_UNUSED sw_corby_buffer_written_func func, AVAHI_GCC_UNUSED sw_opaque_t extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_channel_recv( AVAHI_GCC_UNUSED sw_corby_channel self, AVAHI_GCC_UNUSED sw_salt * salt, AVAHI_GCC_UNUSED struct _sw_corby_message ** message, AVAHI_GCC_UNUSED sw_uint32 * request_id, AVAHI_GCC_UNUSED sw_string * op, AVAHI_GCC_UNUSED sw_uint32 * op_len, AVAHI_GCC_UNUSED struct _sw_corby_buffer ** buffer, AVAHI_GCC_UNUSED sw_uint8 * endian, AVAHI_GCC_UNUSED sw_bool block) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_channel_last_recv_from( AVAHI_GCC_UNUSED sw_corby_channel self, AVAHI_GCC_UNUSED sw_ipv4_address * from, AVAHI_GCC_UNUSED sw_port * from_port) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_channel_ff( AVAHI_GCC_UNUSED sw_corby_channel self, AVAHI_GCC_UNUSED struct _sw_corby_buffer * buffer) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } AVAHI_GCC_NORETURN sw_socket sw_corby_channel_socket(AVAHI_GCC_UNUSED sw_corby_channel self) { AVAHI_WARN_UNSUPPORTED_ABORT; } sw_result sw_corby_channel_retain(AVAHI_GCC_UNUSED sw_corby_channel self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_channel_set_delegate( AVAHI_GCC_UNUSED sw_corby_channel self, AVAHI_GCC_UNUSED sw_corby_channel_delegate delegate) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } AVAHI_GCC_NORETURN sw_corby_channel_delegate sw_corby_channel_get_delegate( AVAHI_GCC_UNUSED sw_corby_channel self) { AVAHI_WARN_UNSUPPORTED_ABORT; } void sw_corby_channel_set_app_data( AVAHI_GCC_UNUSED sw_corby_channel self, AVAHI_GCC_UNUSED sw_opaque app_data) { AVAHI_WARN_UNSUPPORTED; } AVAHI_GCC_NORETURN sw_opaque sw_corby_channel_get_app_data(AVAHI_GCC_UNUSED sw_corby_channel self) { AVAHI_WARN_UNSUPPORTED_ABORT; } sw_result sw_corby_channel_fina(AVAHI_GCC_UNUSED sw_corby_channel self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_object_init_from_url( AVAHI_GCC_UNUSED sw_corby_object * self, AVAHI_GCC_UNUSED struct _sw_corby_orb * orb, AVAHI_GCC_UNUSED sw_const_string url, AVAHI_GCC_UNUSED sw_socket_options options, AVAHI_GCC_UNUSED sw_uint32 bufsize) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_object_fina( AVAHI_GCC_UNUSED sw_corby_object self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_object_start_request( AVAHI_GCC_UNUSED sw_corby_object self, AVAHI_GCC_UNUSED sw_const_string op, AVAHI_GCC_UNUSED sw_uint32 op_len, AVAHI_GCC_UNUSED sw_bool reply_expected, AVAHI_GCC_UNUSED sw_corby_buffer * buffer) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_object_send( AVAHI_GCC_UNUSED sw_corby_object self, AVAHI_GCC_UNUSED sw_corby_buffer buffer, AVAHI_GCC_UNUSED sw_corby_buffer_observer observer, AVAHI_GCC_UNUSED sw_corby_buffer_written_func func, AVAHI_GCC_UNUSED sw_opaque extra) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_object_recv( AVAHI_GCC_UNUSED sw_corby_object self, AVAHI_GCC_UNUSED sw_corby_message * message, AVAHI_GCC_UNUSED sw_corby_buffer * buffer, AVAHI_GCC_UNUSED sw_uint8 * endian, AVAHI_GCC_UNUSED sw_bool block) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_object_channel( AVAHI_GCC_UNUSED sw_corby_object self, AVAHI_GCC_UNUSED sw_corby_channel * channel) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_corby_object_set_channel( AVAHI_GCC_UNUSED sw_corby_object self, AVAHI_GCC_UNUSED sw_corby_channel channel) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_discovery_publish_host( AVAHI_GCC_UNUSED sw_discovery self, AVAHI_GCC_UNUSED sw_uint32 interface_index, AVAHI_GCC_UNUSED sw_const_string name, AVAHI_GCC_UNUSED sw_const_string domain, AVAHI_GCC_UNUSED sw_ipv4_address address, AVAHI_GCC_UNUSED sw_discovery_publish_reply reply, AVAHI_GCC_UNUSED sw_opaque extra, AVAHI_GCC_UNUSED sw_discovery_oid * oid) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_discovery_publish_update( AVAHI_GCC_UNUSED sw_discovery self, AVAHI_GCC_UNUSED sw_discovery_oid oid, AVAHI_GCC_UNUSED sw_octets text_record, AVAHI_GCC_UNUSED sw_uint32 text_record_len) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_discovery_query_record( AVAHI_GCC_UNUSED sw_discovery self, AVAHI_GCC_UNUSED sw_uint32 interface_index, AVAHI_GCC_UNUSED sw_uint32 flags, AVAHI_GCC_UNUSED sw_const_string fullname, AVAHI_GCC_UNUSED sw_uint16 rrtype, AVAHI_GCC_UNUSED sw_uint16 rrclass, AVAHI_GCC_UNUSED sw_discovery_query_record_reply reply, AVAHI_GCC_UNUSED sw_opaque extra, AVAHI_GCC_UNUSED sw_discovery_oid * oid) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_text_record_string_iterator_init( AVAHI_GCC_UNUSED sw_text_record_string_iterator * self, AVAHI_GCC_UNUSED sw_const_string text_record_string) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_text_record_string_iterator_fina( AVAHI_GCC_UNUSED sw_text_record_string_iterator self) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } sw_result sw_text_record_string_iterator_next( AVAHI_GCC_UNUSED sw_text_record_string_iterator self, AVAHI_GCC_UNUSED char key[255], AVAHI_GCC_UNUSED char val[255]) { AVAHI_WARN_UNSUPPORTED; return SW_E_NO_IMPL; } avahi-0.7/avahi-compat-howl/PaxHeaders.10109/address.c0000644000000000000000000000013113130651643017311 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 29 ctime=1499681851.16796414 avahi-0.7/avahi-compat-howl/address.c0000644000175000017500000001017613130651643020726 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "howl.h" #include "warn.h" sw_ipv4_address sw_ipv4_address_any(void) { sw_ipv4_address a; AVAHI_WARN_LINKAGE; a.m_addr = htonl(INADDR_ANY); return a; } sw_ipv4_address sw_ipv4_address_loopback(void) { sw_ipv4_address a; AVAHI_WARN_LINKAGE; a.m_addr = htonl(INADDR_LOOPBACK); return a; } sw_result sw_ipv4_address_init(sw_ipv4_address * self) { assert(self); AVAHI_WARN_LINKAGE; self->m_addr = htonl(INADDR_ANY); return SW_OKAY; } sw_result sw_ipv4_address_init_from_saddr( sw_ipv4_address *self, sw_saddr addr) { assert(self); AVAHI_WARN_LINKAGE; self->m_addr = addr; return SW_OKAY; } sw_result sw_ipv4_address_init_from_name( sw_ipv4_address *self, sw_const_string name) { struct hostent *he; assert(self); assert(name); AVAHI_WARN_LINKAGE; if (!(he = gethostbyname(name))) return SW_E_UNKNOWN; self->m_addr = *(uint32_t*) he->h_addr; return SW_OKAY; } sw_result sw_ipv4_address_init_from_address( sw_ipv4_address *self, sw_ipv4_address addr) { assert(self); AVAHI_WARN_LINKAGE; self->m_addr = addr.m_addr; return SW_OKAY; } sw_result sw_ipv4_address_init_from_this_host(sw_ipv4_address *self) { struct sockaddr_in sa; int fd; socklen_t l = sizeof(sa); assert(self); AVAHI_WARN_LINKAGE; /* This is so fucked up ... */ memset(&sa, 0, sizeof(sa)); sa.sin_family = AF_INET; sa.sin_addr.s_addr = inet_addr("192.168.1.1"); /* Ouch */ sa.sin_port = htons(5555); if ((fd = socket(PF_INET, SOCK_DGRAM, 0)) < 0 || connect(fd, (struct sockaddr*) &sa, sizeof(sa)) < 0 || getsockname(fd, (struct sockaddr*) &sa, &l) < 0) { if (fd >= 0) close(fd); perror("fuck"); return SW_E_UNKNOWN; } assert(l == sizeof(sa)); close(fd); self->m_addr = sa.sin_addr.s_addr; return SW_OKAY; } sw_result sw_ipv4_address_fina(AVAHI_GCC_UNUSED sw_ipv4_address self) { AVAHI_WARN_LINKAGE; /* This is ridiculous ... */ return SW_OKAY; } sw_bool sw_ipv4_address_is_any(sw_ipv4_address self) { AVAHI_WARN_LINKAGE; return self.m_addr == htonl(INADDR_ANY); } sw_saddr sw_ipv4_address_saddr(sw_ipv4_address self) { AVAHI_WARN_LINKAGE; return self.m_addr; } sw_string sw_ipv4_address_name( sw_ipv4_address self, sw_string name, sw_uint32 len) { assert(name); assert(len > 0); AVAHI_WARN_LINKAGE; if (len < INET_ADDRSTRLEN) return NULL; if (!(inet_ntop(AF_INET, &self.m_addr, name, len))) return NULL; return name; } sw_result sw_ipv4_address_decompose( sw_ipv4_address self, sw_uint8 * a1, sw_uint8 * a2, sw_uint8 * a3, sw_uint8 * a4) { uint32_t a; AVAHI_WARN_LINKAGE; a = ntohl(self.m_addr); assert(a1); assert(a2); assert(a3); assert(a4); *a1 = (uint8_t) (a >> 24); *a2 = (uint8_t) (a >> 16); *a3 = (uint8_t) (a >> 8); *a4 = (uint8_t) (a); return SW_OKAY; } sw_bool sw_ipv4_address_equals( sw_ipv4_address self, sw_ipv4_address addr) { AVAHI_WARN_LINKAGE; return self.m_addr == addr.m_addr; } avahi-0.7/avahi-compat-howl/PaxHeaders.10109/include0000644000000000000000000000013213130652073017065 xustar0030 mtime=1499681851.151964496 30 atime=1499681851.283961552 30 ctime=1499681851.151964496 avahi-0.7/avahi-compat-howl/include/0000755000175000017500000000000013130652073020551 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-compat-howl/include/PaxHeaders.10109/discovery0000644000000000000000000000013213130652073021074 xustar0030 mtime=1499681851.155964407 30 atime=1499681851.283961552 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/discovery/0000755000175000017500000000000013130652073022560 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-compat-howl/include/discovery/PaxHeaders.10109/discovery.h0000644000000000000000000000013213130651643023333 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/discovery/discovery.h0000644000175000017500000002066313130651643024751 0ustar00lathiatlathiat00000000000000#ifndef _discovery_discovery_h #define _discovery_discovery_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #if defined(__cplusplus) extern "C" { #endif struct _sw_discovery; typedef struct _sw_discovery * sw_discovery; /* * keeps track of different discovery operations */ typedef sw_uint32 sw_discovery_oid; /* * For backwards compatibility */ #define sw_discovery_publish_host_id sw_discovery_oid #define sw_discovery_publish_id sw_discovery_oid #define sw_discovery_browse_id sw_discovery_oid #define sw_discovery_resolve_id sw_discovery_oid /* * how to connect to server */ typedef enum _sw_discovery_init_flags { SW_DISCOVERY_USE_SHARED_SERVICE = 0x1, SW_DISCOVERY_USE_PRIVATE_SERVICE = 0x2, SW_DISCOVERY_SKIP_VERSION_CHECK = 0x4 } sw_discovery_init_flags; /* * status for asynchronous registration call */ typedef enum _sw_discovery_publish_status { SW_DISCOVERY_PUBLISH_STARTED, SW_DISCOVERY_PUBLISH_STOPPED, SW_DISCOVERY_PUBLISH_NAME_COLLISION, SW_DISCOVERY_PUBLISH_INVALID } sw_discovery_publish_status; typedef enum _sw_discovery_browse_status { SW_DISCOVERY_BROWSE_INVALID, SW_DISCOVERY_BROWSE_RELEASE, SW_DISCOVERY_BROWSE_ADD_DOMAIN, SW_DISCOVERY_BROWSE_ADD_DEFAULT_DOMAIN, SW_DISCOVERY_BROWSE_REMOVE_DOMAIN, SW_DISCOVERY_BROWSE_ADD_SERVICE, SW_DISCOVERY_BROWSE_REMOVE_SERVICE, SW_DISCOVERY_BROWSE_RESOLVED } sw_discovery_browse_status; typedef enum _sw_discovery_query_record_status { SW_DISCOVERY_QUERY_RECORD_ADD = 0x1 } sw_discovery_query_record_status; typedef sw_result (HOWL_API *sw_discovery_publish_reply)( sw_discovery session, sw_discovery_oid oid, sw_discovery_publish_status status, sw_opaque extra); typedef sw_result (HOWL_API *sw_discovery_browse_reply)( sw_discovery session, sw_discovery_oid oid, sw_discovery_browse_status status, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_opaque extra); typedef sw_result (HOWL_API *sw_discovery_resolve_reply)( sw_discovery session, sw_discovery_oid oid, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_ipv4_address address, sw_port port, sw_octets text_record, sw_uint32 text_record_len, sw_opaque extra); typedef sw_result (HOWL_API *sw_discovery_query_record_reply)( sw_discovery session, sw_discovery_oid oid, sw_discovery_query_record_status status, sw_uint32 interface_index, sw_const_string fullname, sw_uint16 rrtype, sw_uint16 rrclass, sw_uint16 rrdatalen, sw_const_octets rrdata, sw_uint32 ttl, sw_opaque extra); /* * API for publishing/browsing/resolving services */ sw_result HOWL_API sw_discovery_init( sw_discovery * self); sw_result HOWL_API sw_discovery_init_with_flags( sw_discovery * self, sw_discovery_init_flags flags); sw_result HOWL_API sw_discovery_fina( sw_discovery self); sw_result HOWL_API sw_discovery_publish_host( sw_discovery self, sw_uint32 interface_index, sw_const_string name, sw_const_string domain, sw_ipv4_address address, sw_discovery_publish_reply reply, sw_opaque extra, sw_discovery_oid * oid); sw_result HOWL_API sw_discovery_publish( sw_discovery self, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_const_string host, sw_port port, sw_octets text_record, sw_uint32 text_record_len, sw_discovery_publish_reply reply, sw_opaque extra, sw_discovery_oid * oid); sw_result HOWL_API sw_discovery_publish_update( sw_discovery self, sw_discovery_oid oid, sw_octets text_record, sw_uint32 text_record_len); /* * API for browsing domains */ sw_result HOWL_API sw_discovery_browse_domains( sw_discovery self, sw_uint32 interface_index, sw_discovery_browse_reply reply, sw_opaque extra, sw_discovery_oid * oid); /* * API for browsing services */ sw_result HOWL_API sw_discovery_browse( sw_discovery self, sw_uint32 interface_index, sw_const_string type, sw_const_string domain, sw_discovery_browse_reply reply, sw_opaque extra, sw_discovery_oid * oid); /* * API for resolving services */ sw_result HOWL_API sw_discovery_resolve( sw_discovery self, sw_uint32 interface_index, sw_const_string name, sw_const_string type, sw_const_string domain, sw_discovery_resolve_reply reply, sw_opaque extra, sw_discovery_oid * oid); sw_result HOWL_API sw_discovery_query_record( sw_discovery self, sw_uint32 interface_index, sw_uint32 flags, sw_const_string fullname, sw_uint16 rrtype, sw_uint16 rrclass, sw_discovery_query_record_reply reply, sw_opaque extra, sw_discovery_oid * oid); sw_result HOWL_API sw_discovery_cancel( sw_discovery self, sw_discovery_oid oid); /* ---------------------------------------------------------- * * Event Processing APIs * * ---------------------------------------------------------- */ sw_result HOWL_API sw_discovery_run( sw_discovery self); sw_result HOWL_API sw_discovery_stop_run( sw_discovery self); int HOWL_API sw_discovery_socket( sw_discovery self); sw_result HOWL_API sw_discovery_read_socket( sw_discovery self); sw_result HOWL_API sw_discovery_salt( sw_discovery self, sw_salt * salt); /* * Error codes */ #define SW_DISCOVERY_E_BASE 900 #define SW_DISCOVERY_E_UNKNOWN (SW_DISCOVERY_E_BASE + 2) #define SW_DISCOVERY_E_NO_SUCH_NAME (SW_DISCOVERY_E_BASE + 3) #define SW_DISCOVERY_E_NO_MEM (SW_DISCOVERY_E_BASE + 4) #define SW_DISCOVERY_E_BAD_PARAM (SW_DISCOVERY_E_BASE + 5) #define SW_DISCOVERY_E_BAD_REFERENCE (SW_DISCOVERY_E_BASE + 6) #define SW_DISCOVERY_E_BAD_STATE (SW_DISCOVERY_E_BASE + 7) #define SW_DISCOVERY_E_BAD_FLAGS (SW_DISCOVERY_E_BASE + 8) #define SW_DISCOVERY_E_NOT_SUPPORTED (SW_DISCOVERY_E_BASE + 9) #define SW_DISCOVERY_E_NOT_INITIALIZED (SW_DISCOVERY_E_BASE + 10) #define SW_DISCOVERY_E_NO_CACHE (SW_DISCOVERY_E_BASE + 11) #define SW_DISCOVERY_E_ALREADY_REGISTERED (SW_DISCOVERY_E_BASE + 12) #define SW_DISCOVERY_E_NAME_CONFLICT (SW_DISCOVERY_E_BASE + 13) #define SW_DISCOVERY_E_INVALID (SW_DISCOVERY_E_BASE + 14) #if defined(__cplusplus) } #endif #endif avahi-0.7/avahi-compat-howl/include/discovery/PaxHeaders.10109/text_record.h0000644000000000000000000000013213130651643023646 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/discovery/text_record.h0000644000175000017500000000741613130651643025265 0ustar00lathiatlathiat00000000000000#ifndef _discovery_text_record_h #define _discovery_text_record_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #if defined(__cplusplus) extern "C" { #endif #define SW_TEXT_RECORD_MAX_LEN 255 struct _sw_text_record; typedef struct _sw_text_record * sw_text_record; struct _sw_text_record_iterator; typedef struct _sw_text_record_iterator * sw_text_record_iterator; struct _sw_text_record_string_iterator; typedef struct _sw_text_record_string_iterator * sw_text_record_string_iterator; /* * Text record APIs */ sw_result HOWL_API sw_text_record_init( sw_text_record * self); sw_result HOWL_API sw_text_record_fina( sw_text_record self); sw_result HOWL_API sw_text_record_add_string( sw_text_record self, sw_const_string string); sw_result HOWL_API sw_text_record_add_key_and_string_value( sw_text_record self, sw_const_string key, sw_const_string val); sw_result HOWL_API sw_text_record_add_key_and_binary_value( sw_text_record self, sw_const_string key, sw_octets val, sw_uint32 len); sw_octets HOWL_API sw_text_record_bytes( sw_text_record self); sw_uint32 HOWL_API sw_text_record_len( sw_text_record self); /* * APIs for iterating through raw text records */ sw_result HOWL_API sw_text_record_iterator_init( sw_text_record_iterator * self, sw_octets text_record, sw_uint32 text_record_len); sw_result HOWL_API sw_text_record_iterator_fina( sw_text_record_iterator self); sw_result HOWL_API sw_text_record_iterator_next( sw_text_record_iterator self, char key[SW_TEXT_RECORD_MAX_LEN], sw_uint8 val[SW_TEXT_RECORD_MAX_LEN], sw_uint32 * val_len); /* * APIs for iterating through stringified text records */ sw_result HOWL_API sw_text_record_string_iterator_init( sw_text_record_string_iterator * self, sw_const_string text_record_string); sw_result HOWL_API sw_text_record_string_iterator_fina( sw_text_record_string_iterator self); sw_result HOWL_API sw_text_record_string_iterator_next( sw_text_record_string_iterator self, char key[SW_TEXT_RECORD_MAX_LEN], char val[SW_TEXT_RECORD_MAX_LEN]); #if defined(__cplusplus) } #endif #endif avahi-0.7/avahi-compat-howl/include/PaxHeaders.10109/rendezvous0000644000000000000000000000013213130652073021271 xustar0030 mtime=1499681851.155964407 30 atime=1499681851.283961552 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/rendezvous/0000755000175000017500000000000013130652073022755 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-compat-howl/include/rendezvous/PaxHeaders.10109/rendezvous.h0000644000000000000000000000013213130651643023725 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/rendezvous/rendezvous.h0000644000175000017500000001346013130651643025340 0ustar00lathiatlathiat00000000000000#ifndef _rendezvous_rendezvous_h #define _rendezvous_rendezvous_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #define _sw_rendezvous _sw_discovery #define sw_rendezvous sw_discovery #define sw_rendezvous_publish_domain_id sw_discovery_publish_domain_id #define sw_rendezvous_publish_host_id sw_discovery_publish_host_id #define sw_rendezvous_publish_id sw_discovery_publish_id #define sw_rendezvous_browse_id sw_discovery_browse_id #define sw_rendezvous_resolve_id sw_discovery_resolve_id #define sw_rendezvous_publish_status sw_discovery_publish_status #define SW_RENDEZVOUS_PUBLISH_STARTED SW_DISCOVERY_PUBLISH_STARTED #define SW_RENDEZVOUS_PUBLISH_STOPPED SW_DISCOVERY_PUBLISH_STOPPED #define SW_RENDEZVOUS_PUBLISH_NAME_COLLISION SW_DISCOVERY_PUBLISH_NAME_COLLISION #define SW_RENDEZVOUS_PUBLISH_INVALID SW_DISCOVERY_PUBLISH_INVALID #define sw_rendezvous_browse_status sw_discovery_browse_status #define SW_RENDEZVOUS_BROWSE_INVALID SW_DISCOVERY_BROWSE_INVALID #define SW_RENDEZVOUS_BROWSE_RELEASE SW_DISCOVERY_BROWSE_RELEASE #define SW_RENDEZVOUS_BROWSE_ADD_DOMAIN SW_DISCOVERY_BROWSE_ADD_DOMAIN #define SW_RENDEZVOUS_BROWSE_ADD_DEFAULT_DOMAIN SW_DISCOVERY_BROWSE_ADD_DEFAULT_DOMAIN #define SW_RENDEZVOUS_BROWSE_REMOVE_DOMAIN SW_DISCOVERY_BROWSE_REMOVE_DOMAIN #define SW_RENDEZVOUS_BROWSE_ADD_SERVICE SW_DISCOVERY_BROWSE_ADD_SERVICE #define SW_RENDEZVOUS_BROWSE_REMOVE_SERVICE SW_DISCOVERY_BROWSE_REMOVE_SERVICE #define SW_RENDEZVOUS_BROWSE_RESOLVED SW_DISCOVERY_BROWSE_RESOLVED #define sw_rendezvous_publish_domain_handler sw_discovery_publish_domain_handler #define sw_rendezvous_publish_domain_reply sw_discovery_publish_domain_reply #define sw_rendezvous_publish_host_handler sw_discovery_publish_host_handler #define sw_rendezvous_publish_host_reply sw_discovery_publish_host_reply #define sw_rendezvous_publish_handler sw_discovery_publish_handler #define sw_rendezvous_publish_reply sw_discovery_publish_reply #define sw_rendezvous_browse_handler sw_discovery_browse_handler #define sw_rendezvous_browse_reply sw_discovery_browse_reply #define sw_rendezvous_resolve_handler sw_discovery_resolve_handler #define sw_rendezvous_resolve_reply sw_discovery_resolve_reply #define sw_rendezvous_init sw_discovery_init #define sw_rendezvous_fina sw_discovery_fina #define sw_rendezvous_publish_domain sw_discovery_publish_domain #define sw_rendezvous_stop_publish_domain sw_discovery_stop_publish_domain #define sw_rendezvous_publish_host sw_discovery_publish_host #define sw_rendezvous_stop_publish_host sw_discovery_stop_publish_host #define sw_rendezvous_publish sw_discovery_publish #define sw_rendezvous_publish_update sw_discovery_publish_update #define sw_rendezvous_stop_publish sw_discovery_stop_publish #define sw_rendezvous_browse_domains sw_discovery_browse_domains #define sw_rendezvous_stop_browse_domains sw_discovery_stop_browse_domains #define sw_rendezvous_browse_services sw_discovery_browse #define sw_rendezvous_stop_browse_services sw_discovery_stop_browse #define sw_rendezvous_resolve sw_discovery_resolve #define sw_rendezvous_stop_resolve sw_discovery_stop_resolve #define sw_rendezvous_run sw_discovery_run #define sw_rendezvous_stop_run sw_discovery_stop_run #define sw_rendezvous_socket sw_discovery_socket #define sw_rendezvous_read_socket sw_discovery_read_socket #define sw_rendezvous_salt sw_discovery_salt #define SW_RENDEZVOUS_E_BASE SW_DISCOVERY_E_BASE #define SW_RENDEZVOUS_E_UNKNOWN SW_DISCOVERY_E_UNKNOWN #define SW_RENDEZVOUS_E_NO_SUCH_NAME SW_DISCOVERY_E_NO_SUCH_NAME #define SW_RENDEZVOUS_E_NO_MEM SW_DISCOVERY_E_NO_MEM #define SW_RENDEZVOUS_E_BAD_PARAM SW_DISCOVERY_E_BAD_PARAM #define SW_RENDEZVOUS_E_BAD_REFERENCE SW_DISCOVERY_E_BAD_REFERENCE #define SW_RENDEZVOUS_E_BAD_STATE SW_DISCOVERY_E_BAD_STATE #define SW_RENDEZVOUS_E_BAD_FLAGS SW_DISCOVERY_E_BAD_FLAGS #define SW_RENDEZVOUS_E_NOT_SUPPORTED SW_DISCOVERY_E_NOT_SUPPORTED #define SW_RENDEZVOUS_E_NOT_INITIALIZED SW_DISCOVERY_E_NOT_INITIALIZED #define SW_RENDEZVOUS_E_NO_CACHE SW_DISCOVERY_E_NO_CACHE #define SW_RENDEZVOUS_E_ALREADY_REGISTERED SW_DISCOVERY_E_ALREADY_REGISTERED #define SW_RENDEZVOUS_E_NAME_CONFLICT SW_DISCOVERY_E_NAME_CONFLICT #define SW_RENDEZVOUS_E_INVALID SW_DISCOVERY_E_INVALID #endif avahi-0.7/avahi-compat-howl/include/rendezvous/PaxHeaders.10109/text_record.h0000644000000000000000000000013213130651643024043 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/rendezvous/text_record.h0000644000175000017500000000323513130651643025455 0ustar00lathiatlathiat00000000000000#ifndef _rendezvous_text_record_h #define _rendezvous_text_record_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #endif avahi-0.7/avahi-compat-howl/include/PaxHeaders.10109/corby0000644000000000000000000000013213130652073020203 xustar0030 mtime=1499681851.155964407 30 atime=1499681851.283961552 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/corby/0000755000175000017500000000000013130652073021667 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-compat-howl/include/corby/PaxHeaders.10109/object.h0000644000000000000000000000013213130651643021701 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.151964496 avahi-0.7/avahi-compat-howl/include/corby/object.h0000644000175000017500000000650413130651643023315 0ustar00lathiatlathiat00000000000000#ifndef _corby_object_h #define _corby_object_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #include #include #include #if defined(__cplusplus) extern "C" { #endif struct _sw_corby_orb; struct _sw_corby_object; typedef struct _sw_corby_object * sw_corby_object; typedef sw_opaque sw_corby_object_send_completion_handler; typedef void (HOWL_API *sw_corby_object_send_completion_func)( sw_corby_object object, sw_corby_buffer buffer, sw_result result); sw_result HOWL_API sw_corby_object_init_from_url( sw_corby_object * self, struct _sw_corby_orb * orb, sw_const_string url, sw_socket_options options, sw_uint32 bufsize); sw_result HOWL_API sw_corby_object_fina( sw_corby_object self); sw_result HOWL_API sw_corby_object_start_request( sw_corby_object self, sw_const_string op, sw_uint32 op_len, sw_bool reply_expected, sw_corby_buffer * buffer); sw_result HOWL_API sw_corby_object_send( sw_corby_object self, sw_corby_buffer buffer, sw_corby_buffer_observer observer, sw_corby_buffer_written_func func, sw_opaque extra); sw_result HOWL_API sw_corby_object_recv( sw_corby_object self, sw_corby_message * message, sw_corby_buffer * buffer, sw_uint8 * endian, sw_bool block); sw_result HOWL_API sw_corby_object_channel( sw_corby_object self, sw_corby_channel * channel); sw_result HOWL_API sw_corby_object_set_channel( sw_corby_object self, sw_corby_channel channel); #if defined(__cplusplus) } #endif #endif avahi-0.7/avahi-compat-howl/include/corby/PaxHeaders.10109/corby.h0000644000000000000000000000013213130651643021551 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.151964496 avahi-0.7/avahi-compat-howl/include/corby/corby.h0000644000175000017500000000515413130651643023165 0ustar00lathiatlathiat00000000000000#ifndef _corby_corby_h #define _corby_corby_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include /* * corby limits */ #define SW_CORBY_OID_LEN 32 /* * protocol tags. the only standard one is TAG_INTERNET_IIOP. * the others are proprietary pandora corby protocols. */ #define SW_TAG_INTERNET_IOP 0 #define SW_TAG_UIOP 250 #define SW_TAG_MIOP 251 #define SW_MIOP_ADDR "231.255.255.250" typedef sw_uint32 sw_corby_protocol_tag; /* * error codes */ #define SW_E_CORBY_BASE 0x80000500 #define SW_E_CORBY_UNKNOWN (SW_E_CORBY_BASE + 0) #define SW_E_CORBY_BAD_CONFIG (SW_E_CORBY_BASE + 1) #define SW_E_CORBY_NO_INTERFACE (SW_E_CORBY_BASE + 2) #define SW_E_CORBY_BAD_URL (SW_E_CORBY_BASE + 3) #define SW_E_CORBY_BAD_NAME (SW_E_CORBY_BASE + 4) #define SW_E_CORBY_BAD_MESSAGE (SW_E_CORBY_BASE + 5) #define SW_E_CORBY_BAD_VERSION (SW_E_CORBY_BASE + 6) #define SW_E_CORBY_BAD_OID (SW_E_CORBY_BASE + 7) #define SW_E_CORBY_BAD_OPERATION (SW_E_CORBY_BASE + 8) #define SW_E_CORBY_MARSHAL (SW_E_CORBY_BASE + 10) #define SW_E_CORBY_OBJECT_NOT_EXIST (SW_E_CORBY_BASE + 11) #endif avahi-0.7/avahi-compat-howl/include/corby/PaxHeaders.10109/buffer.h0000644000000000000000000000013213130651643021704 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/corby/buffer.h0000644000175000017500000001631213130651643023316 0ustar00lathiatlathiat00000000000000#ifndef _sw_corby_buffer_h #define _sw_corby_buffer_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #ifdef __cplusplus extern "C" { #endif struct _sw_corby_buffer; typedef struct _sw_corby_buffer * sw_corby_buffer; struct _sw_corby_object; typedef sw_opaque sw_corby_buffer_delegate; typedef sw_opaque sw_corby_buffer_observer; typedef enum _sw_corby_buffer_pad { SW_CORBY_BUFFER_PAD_NONE, SW_CORBY_BUFFER_PAD_ALIGN_2, SW_CORBY_BUFFER_PAD_ALIGN_4, SW_CORBY_BUFFER_PAD_ALIGN_8, SW_CORBY_BUFFER_PAD_ALIGN_16, SW_CORBY_BUFFER_PAD_ALIGN_32 } sw_corby_buffer_pad; typedef sw_result (HOWL_API* sw_corby_buffer_written_func)( sw_corby_buffer_observer observer, sw_corby_buffer buffer, sw_result result, sw_size_t bytesWritten, sw_opaque_t extra); typedef sw_result (HOWL_API* sw_corby_buffer_overflow_func)( sw_corby_buffer_delegate delegate, sw_corby_buffer buffer, sw_uint8 octet, sw_uint8 ** base, sw_uint8 ** bptr, sw_uint8 ** eptr, sw_uint8 ** end, sw_opaque_t extra); typedef sw_result (HOWL_API* sw_corby_buffer_underflow_func)( sw_corby_buffer_delegate delegate, sw_corby_buffer buffer, sw_uint8 * octet, sw_uint8 ** base, sw_uint8 ** bptr, sw_uint8 ** eptr, sw_uint8 ** end, sw_opaque_t extra); sw_result HOWL_API sw_corby_buffer_init( sw_corby_buffer * self); sw_result HOWL_API sw_corby_buffer_init_with_size( sw_corby_buffer * self, sw_size_t size); sw_result HOWL_API sw_corby_buffer_init_with_delegate( sw_corby_buffer * self, sw_corby_buffer_delegate delegate, sw_corby_buffer_overflow_func overflow, sw_corby_buffer_underflow_func underflow, sw_opaque_t extra); sw_result HOWL_API sw_corby_buffer_init_with_size_and_delegate( sw_corby_buffer * self, sw_size_t size, sw_corby_buffer_delegate delegate, sw_corby_buffer_overflow_func overflow, sw_corby_buffer_underflow_func underflow, sw_opaque_t extra); sw_result HOWL_API sw_corby_buffer_fina( sw_corby_buffer self); void HOWL_API sw_corby_buffer_reset( sw_corby_buffer self); sw_result HOWL_API sw_corby_buffer_set_octets( sw_corby_buffer self, sw_octets octets, sw_size_t size); sw_octets HOWL_API sw_corby_buffer_octets( sw_corby_buffer self); sw_size_t HOWL_API sw_corby_buffer_bytes_used( sw_corby_buffer self); sw_size_t HOWL_API sw_corby_buffer_size( sw_corby_buffer self); sw_result HOWL_API sw_corby_buffer_put_int8( sw_corby_buffer self, sw_int8 val); sw_result HOWL_API sw_corby_buffer_put_uint8( sw_corby_buffer self, sw_uint8 val); sw_result HOWL_API sw_corby_buffer_put_int16( sw_corby_buffer self, sw_int16 val); sw_result HOWL_API sw_corby_buffer_put_uint16( sw_corby_buffer self, sw_uint16 val); sw_result HOWL_API sw_corby_buffer_put_int32( sw_corby_buffer self, sw_int32 val); sw_result HOWL_API sw_corby_buffer_put_uint32( sw_corby_buffer self, sw_uint32 val); sw_result HOWL_API sw_corby_buffer_put_octets( sw_corby_buffer self, sw_const_octets val, sw_size_t size); sw_result HOWL_API sw_corby_buffer_put_sized_octets( sw_corby_buffer self, sw_const_octets val, sw_uint32 len); sw_result HOWL_API sw_corby_buffer_put_cstring( sw_corby_buffer self, sw_const_string val); sw_result HOWL_API sw_corby_buffer_put_object( sw_corby_buffer self, const struct _sw_corby_object * object); sw_result HOWL_API sw_corby_buffer_put_pad( sw_corby_buffer self, sw_corby_buffer_pad pad); sw_result HOWL_API sw_corby_buffer_get_int8( sw_corby_buffer self, sw_int8 * val); sw_result HOWL_API sw_corby_buffer_get_uint8( sw_corby_buffer self, sw_uint8 * val); sw_result HOWL_API sw_corby_buffer_get_int16( sw_corby_buffer self, sw_int16 * val, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_uint16( sw_corby_buffer self, sw_uint16 * val, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_int32( sw_corby_buffer self, sw_int32 * val, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_uint32( sw_corby_buffer self, sw_uint32 * val, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_octets( sw_corby_buffer self, sw_octets octets, sw_size_t size); sw_result HOWL_API sw_corby_buffer_allocate_and_get_sized_octets( sw_corby_buffer self, sw_octets * val, sw_uint32 * size, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_zerocopy_sized_octets( sw_corby_buffer self, sw_octets * val, sw_uint32 * size, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_sized_octets( sw_corby_buffer self, sw_octets val, sw_uint32 * len, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_allocate_and_get_cstring( sw_corby_buffer self, sw_string * val, sw_uint32 * len, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_zerocopy_cstring( sw_corby_buffer self, sw_string * val, sw_uint32 * len, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_cstring( sw_corby_buffer self, sw_string val, sw_uint32 * len, sw_uint8 endian); sw_result HOWL_API sw_corby_buffer_get_object( sw_corby_buffer self, struct _sw_corby_object ** object, sw_uint8 endian); #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/corby/PaxHeaders.10109/orb.h0000644000000000000000000000013213130651643021215 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.151964496 avahi-0.7/avahi-compat-howl/include/corby/orb.h0000644000175000017500000001206313130651643022626 0ustar00lathiatlathiat00000000000000#ifndef _corby_orb_h #define _corby_orb_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #include #include #ifdef __cplusplus extern "C" { #endif struct _sw_corby_orb; typedef struct _sw_corby_orb * sw_corby_orb; typedef sw_opaque sw_corby_orb_observer; typedef sw_opaque sw_corby_servant; struct _sw_corby_object; struct _sw_corby_channel; struct _sw_corby_message; struct _sw_corby_buffer; typedef sw_result (HOWL_API *sw_corby_orb_accept_channel_func)( sw_corby_orb orb, struct _sw_corby_channel * channel); typedef struct _sw_corby_orb_delegate { sw_opaque m_delegate; sw_corby_orb_accept_channel_func m_accept_channel_func; sw_opaque m_extra; } * sw_corby_orb_delegate; typedef struct _sw_corby_orb_config { sw_string m_name; sw_uint32 m_tag; sw_string m_host; sw_port m_port; sw_string m_options; } sw_corby_orb_config; typedef sw_result (HOWL_API *sw_corby_servant_cb)( sw_corby_servant servant, sw_salt salt, sw_corby_orb orb, struct _sw_corby_channel * channel, struct _sw_corby_message * message, struct _sw_corby_buffer * buffer, sw_const_string op, sw_uint32 op_len, sw_uint32 request_id, sw_uint8 endian); typedef sw_result (HOWL_API *sw_corby_orb_observer_func)( sw_corby_orb_observer handler, sw_salt salt, sw_corby_orb orb, struct _sw_corby_channel * channel, sw_opaque_t extra); sw_result HOWL_API sw_corby_orb_init( sw_corby_orb * self, sw_salt salt, const sw_corby_orb_config * config, sw_corby_orb_observer observer, sw_corby_orb_observer_func func, sw_opaque_t extra); sw_result HOWL_API sw_corby_orb_fina( sw_corby_orb self); sw_result HOWL_API sw_corby_orb_register_servant( sw_corby_orb self, sw_corby_servant servant, sw_corby_servant_cb cb, sw_const_string oid, struct _sw_corby_object ** object, sw_const_string protocol_name); sw_result HOWL_API sw_corby_orb_unregister_servant( sw_corby_orb self, sw_const_string oid); sw_result HOWL_API sw_corby_orb_register_bidirectional_object( sw_corby_orb self, struct _sw_corby_object * object); sw_result HOWL_API sw_corby_orb_register_channel( sw_corby_orb self, struct _sw_corby_channel * channel); sw_corby_orb_delegate HOWL_API sw_corby_orb_get_delegate( sw_corby_orb self); sw_result HOWL_API sw_corby_orb_set_delegate( sw_corby_orb self, sw_corby_orb_delegate delegate); sw_result HOWL_API sw_corby_orb_set_observer( sw_corby_orb self, sw_corby_orb_observer observer, sw_corby_orb_observer_func func, sw_opaque_t extra); sw_result HOWL_API sw_corby_orb_protocol_to_address( sw_corby_orb self, sw_const_string tag, sw_string addr, sw_port * port); sw_result HOWL_API sw_corby_orb_protocol_to_url( sw_corby_orb self, sw_const_string tag, sw_const_string name, sw_string url, sw_size_t url_len); sw_result HOWL_API sw_corby_orb_read_channel( sw_corby_orb self, struct _sw_corby_channel * channel); sw_result HOWL_API sw_corby_orb_dispatch_message( sw_corby_orb self, struct _sw_corby_channel * channel, struct _sw_corby_message * message, struct _sw_corby_buffer * buffer, sw_uint8 endian); #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/corby/PaxHeaders.10109/channel.h0000644000000000000000000000013213130651643022043 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.155964407 avahi-0.7/avahi-compat-howl/include/corby/channel.h0000644000175000017500000001165013130651643023455 0ustar00lathiatlathiat00000000000000#ifndef _sw_corby_channel_h #define _sw_corby_channel_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #include #include #ifdef __cplusplus extern "C" { #endif struct _sw_corby_channel; typedef struct _sw_corby_channel * sw_corby_channel; struct _sw_corby_message; struct _sw_corby_profile; typedef struct _sw_corby_profile * sw_corby_profile; typedef struct _sw_corby_profile const * sw_const_corby_profile; typedef enum _sw_corby_reply_status { SW_CORBY_NO_EXCEPTION = 0, SW_CORBY_SYSTEM_EXCEPTION = 1, SW_CORBY_USER_EXCEPTION = 2, SW_CORBY_LOCATION_FORWARD = 3 } sw_corby_reply_status; typedef sw_result (HOWL_API *sw_corby_channel_will_send_func)( sw_corby_channel channel, sw_octets bytes, sw_size_t len, sw_opaque_t extra); typedef sw_result (HOWL_API *sw_corby_channel_did_read_func)( sw_corby_channel channel, sw_octets bytes, sw_size_t len, sw_opaque_t extra); typedef void (HOWL_API *sw_corby_channel_cleanup_func)( sw_corby_channel channel); typedef struct _sw_corby_channel_delegate { sw_opaque_t m_delegate; sw_corby_channel_will_send_func m_will_send_func; sw_corby_channel_did_read_func m_did_read_func; sw_corby_channel_cleanup_func m_cleanup_func; sw_opaque_t m_extra; } * sw_corby_channel_delegate; sw_result HOWL_API sw_corby_channel_start_request( sw_corby_channel self, sw_const_corby_profile profile, struct _sw_corby_buffer ** buffer, sw_const_string op, sw_uint32 oplen, sw_bool reply_expected); sw_result HOWL_API sw_corby_channel_start_reply( sw_corby_channel self, struct _sw_corby_buffer ** buffer, sw_uint32 request_id, sw_corby_reply_status status); sw_result HOWL_API sw_corby_channel_send( sw_corby_channel self, struct _sw_corby_buffer * buffer, sw_corby_buffer_observer observer, sw_corby_buffer_written_func func, sw_opaque_t extra); sw_result HOWL_API sw_corby_channel_recv( sw_corby_channel self, sw_salt * salt, struct _sw_corby_message ** message, sw_uint32 * request_id, sw_string * op, sw_uint32 * op_len, struct _sw_corby_buffer ** buffer, sw_uint8 * endian, sw_bool block); sw_result HOWL_API sw_corby_channel_last_recv_from( sw_corby_channel self, sw_ipv4_address * from, sw_port * from_port); sw_result HOWL_API sw_corby_channel_ff( sw_corby_channel self, struct _sw_corby_buffer * buffer); sw_socket HOWL_API sw_corby_channel_socket( sw_corby_channel self); sw_result HOWL_API sw_corby_channel_retain( sw_corby_channel self); sw_result HOWL_API sw_corby_channel_set_delegate( sw_corby_channel self, sw_corby_channel_delegate delegate); sw_corby_channel_delegate HOWL_API sw_corby_channel_get_delegate( sw_corby_channel self); void HOWL_API sw_corby_channel_set_app_data( sw_corby_channel self, sw_opaque app_data); sw_opaque HOWL_API sw_corby_channel_get_app_data( sw_corby_channel self); sw_result HOWL_API sw_corby_channel_fina( sw_corby_channel self); #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/corby/PaxHeaders.10109/message.h0000644000000000000000000000013213130651643022057 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.151964496 avahi-0.7/avahi-compat-howl/include/corby/message.h0000644000175000017500000000367413130651643023500 0ustar00lathiatlathiat00000000000000#ifndef _sw_corby_message_h #define _sw_corby_message_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #ifdef __cplusplus extern "C" { #endif struct _sw_corby_message; typedef struct _sw_corby_message * sw_corby_message; sw_result HOWL_API sw_corby_message_init( sw_corby_message * self); sw_result HOWL_API sw_corby_message_fina( sw_corby_message self); #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/PaxHeaders.10109/salt0000644000000000000000000000013213130652073020030 xustar0030 mtime=1499681851.163964226 30 atime=1499681851.283961552 30 ctime=1499681851.163964226 avahi-0.7/avahi-compat-howl/include/salt/0000755000175000017500000000000013130652073021514 5ustar00lathiatlathiat00000000000000avahi-0.7/avahi-compat-howl/include/salt/PaxHeaders.10109/platform.h0000644000000000000000000000013213130651643022104 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.159964317 avahi-0.7/avahi-compat-howl/include/salt/platform.h0000644000175000017500000002711713130651643023523 0ustar00lathiatlathiat00000000000000#ifndef _sw_platform_h #define _sw_platform_h /* * Copyright 2003, 2004 Porchdog Software, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software, Inc. */ #ifdef __cplusplus extern "C" { #endif #if defined(__VXWORKS__) # define HOWL_API # include # include # define sw_snooze(SECS) taskDelay(sysClkRateGet() * SECS) #elif defined(WIN32) # define WIN32_LEAN_AND_MEAN # define HOWL_API __stdcall # pragma warning(disable:4127) # include # include typedef signed char int8_t; typedef unsigned char u_int8_t; typedef signed short int16_t; typedef unsigned short u_int16_t; typedef signed long int32_t; typedef unsigned long u_int32_t; typedef _int64 int64_t; typedef _int64 u_int64_t; # define sw_snooze(SECS) Sleep(SECS * 1000) #else # define HOWL_API # if defined(HOWL_KERNEL) # include # endif # include # include # include # define sw_snooze(SECS) sleep(SECS) #endif #if defined(__sun) # define u_int8_t uint8_t # define u_int16_t uint16_t # define u_int32_t uint32_t # define u_int64_t uint64_t #endif typedef void * sw_opaque; typedef void * sw_opaque_t; typedef int8_t sw_int8; typedef u_int8_t sw_uint8; typedef u_int8_t sw_bool; typedef int16_t sw_int16; typedef u_int16_t sw_uint16; typedef int32_t sw_int32; typedef u_int32_t sw_uint32; typedef int64_t sw_int64; typedef u_int64_t sw_uint64; typedef char * sw_string; typedef sw_uint8 * sw_octets; #if !defined(__VXWORKS__) || defined(__cplusplus) typedef const char * sw_const_string; typedef const u_int8_t * sw_const_octets; #else typedef char * sw_const_string; typedef u_int8_t * sw_const_octets; #endif typedef size_t sw_size_t; typedef int sw_result; /* -------------------------------------------------------- * * Endian-osity * * SW_ENDIAN is 0 for big endian platforms, 1 * for little endian platforms. * * The macro WORDS_BIGENDIAN will be defined * by autoconf. If you are using Howl on * a platform that doesn't have autoconf, define * SW_ENDIAN directly * -------------------------------------------------------- */ #if !defined(SW_ENDIAN) # if defined(WORDS_BIGENDIAN) && WORDS_BIGENDIAN == 1 # define SW_ENDIAN 0 # else # define SW_ENDIAN 1 # endif #endif /* -------------------------------------------------------- * * Strings * * These macros supports cross platform string functions * for the following OSes * * Win32 * *NIX * PalmOS * VxWorks * * -------------------------------------------------------- */ #if defined(WIN32) # include # define sw_memset(ARG1, ARG2, ARG3) memset((char*) ARG1, ARG2, ARG3) # define sw_memcpy(ARG1, ARG2, ARG3) memmove((char*) ARG1, (char*) ARG2, ARG3) # define sw_memcmp(ARG1, ARG2, ARG3) memcmp((char*) ARG1, ARG2, ARG3) # define sw_strcasecmp(ARG1, ARG2) stricmp(ARG1, ARG2) # define sw_strncasecmp(ARG1, ARG2) strnicmp(ARG1, ARG2) # define sw_strcat(ARG1, ARG2) strcat(ARG1, ARG2) # define sw_strncat(ARG1, ARG2) strncat(ARG1, ARG2) # define sw_strchr(ARG1, ARG2) strchr(ARG1, ARG2) # define sw_strcmp(ARG1, ARG2) strcmp(ARG1, ARG2) # define sw_strncmp(ARG1, ARG2) strncmp(ARG1, ARG2) # define sw_strcoll(ARG1, ARG2) strcoll(ARG1, ARG2) # define sw_strcpy(ARG1, ARG2) (ARG2) ? strcpy(ARG1, ARG2) : strcpy(ARG1, "") # define sw_strncpy(ARG1, ARG2, N) (ARG2) ? strncpy(ARG1, ARG2, N) : strcpy(ARG1, "") # define sw_strcspn(ARG1, ARG2) strcspn(ARG1, ARG2) # define sw_strlen(ARG1) strlen(ARG1) # define sw_strstr(ARG1, ARG2) strstr(ARG1, ARG2) # define sw_strtok_r(ARG1, ARG2, ARG3) strtok_r(ARG1, ARG2, ARG3) #elif defined(__VXWORKS__) # include extern sw_int32 sw_strcasecmp( sw_const_string arg1, sw_const_string arg2); extern sw_int32 sw_strncasecmp( sw_const_string arg1, sw_const_string arg2, sw_len n); extern sw_string sw_strtok_r( sw_string arg1, sw_const_string arg2, sw_string * lasts); # define sw_memset(ARG1, ARG2, ARG3) memset((char*) ARG1, ARG2, ARG3) # define sw_memcpy(ARG1, ARG2, ARG3) memcpy((char*) ARG1, (char*) ARG2, ARG3) # define sw_memcmp(ARG1, ARG2, ARG3) memcmp((char*) ARG1, ARG2, ARG3) # define sw_strcat(ARG1, ARG2) strcat(ARG1, ARG2) # define sw_strncat(ARG1, ARG2) strncat(ARG1, ARG2) # define sw_strchr(ARG1, ARG2) strchr(ARG1, ARG2) # define sw_strcmp(ARG1, ARG2) strcmp(ARG1, ARG2) # define sw_strncmp(ARG1, ARG2) strncmp(ARG1, ARG2) # define sw_strcoll(ARG1, ARG2) strcoll(ARG1, ARG2) # define sw_strcpy(ARG1, ARG2) ARG2 ? strcpy(ARG1, ARG2) : strcpy(ARG1, "") # define sw_strncpy(ARG1, ARG2, N) ARG2 ? strncpy(ARG1, ARG2, N) : strcpy(ARG1, "") # define sw_strcspn(ARG1, ARG2) strcspn(ARG1, ARG2) # define sw_strlen(ARG1) strlen(ARG1) # define sw_strstr(ARG1, ARG2) strstr(ARG1, ARG2) #elif defined(__PALMOS__) # include # define sw_strcasecmp(ARG1, ARG2) strcasecmp(ARG1, ARG2) # define sw_strncasecmp(ARG1, ARG2) strncasecmp(ARG1, ARG2) # define sw_strcat(ARG1, ARG2) StrCat(ARG1, ARG2) # define sw_strncat(ARG1, ARG2) StrNCat(ARG1, ARG2) # define sw_strchr(ARG1, ARG2) StrChr(ARG1, ARG2) # define sw_strcmp(ARG1, ARG2) StrCampare(ARG1, ARG2) # define sw_strncmp(ARG1, ARG2) StrNCompare(ARG1, ARG2) # define sw_strcoll(ARG1, ARG2) strcoll(ARG1, ARG2) # define sw_strcpy(ARG1, ARG2) ARG2 ? StrCopy(ARG1, ARG2) : StrCopy(ARG1, "") # define sw_strncpy(ARG1, ARG2, N) ARG2 ? StrNCopy(ARG1, ARG2, N) : StrCopy(ARG1, "") # define sw_strcspn(ARG1, ARG2) strcspn(ARG1, ARG2) # define sw_strlen(ARG1) StrLen(ARG1) # define sw_strstr(ARG1, ARG2) strstr(ARG1, ARG2) # define sw_strtok_r(ARG1, ARG2, ARG3) strtok_r(ARG1, ARG2, ARG3) #else # include # if defined(__Lynx__) char * strchr(char*, int); # endif # define sw_memset(ARG1, ARG2, ARG3) memset((char*) ARG1, ARG2, ARG3) # define sw_memcpy(ARG1, ARG2, ARG3) memcpy((char*) ARG1, (char*) ARG2, ARG3) # define sw_memcmp(ARG1, ARG2, ARG3) memcmp((char*) ARG1, ARG2, ARG3) # define sw_strcasecmp(ARG1, ARG2) strcasecmp(ARG1, ARG2) # define sw_strncasecmp(ARG1, ARG2) strncasecmp(ARG1, ARG2) # define sw_strcat(ARG1, ARG2) strcat(ARG1, ARG2) # define sw_strncat(ARG1, ARG2) strncat(ARG1, ARG2) # define sw_strchr(ARG1, ARG2) strchr(ARG1, ARG2) # define sw_strcmp(ARG1, ARG2) strcmp(ARG1, ARG2) # define sw_strncmp(ARG1, ARG2) strncmp(ARG1, ARG2) # define sw_strcoll(ARG1, ARG2) strcoll(ARG1, ARG2) # define sw_strcpy(ARG1, ARG2) ARG2 ? strcpy(ARG1, ARG2) : strcpy(ARG1, "") # define sw_strncpy(ARG1, ARG2, N) ARG2 ? strncpy(ARG1, ARG2, N) : strcpy(ARG1, "") # define sw_strcspn(ARG1, ARG2) strcspn(ARG1, ARG2) # define sw_strlen(ARG1) strlen(ARG1) # define sw_strstr(ARG1, ARG2) strstr(ARG1, ARG2) # define sw_strtok_r(ARG1, ARG2, ARG3) strtok_r(ARG1, ARG2, ARG3) #endif sw_string sw_strdup( sw_const_string str); /* -------------------------------------------------------- * * Memory * * These macros support cross platform heap functions. * When compiling with DEBUG, some extra checking is * done which can aid in tracking down heap corruption * problems * * -------------------------------------------------------- */ #if defined(NDEBUG) # define sw_malloc(SIZE) malloc(SIZE) # define sw_realloc(MEM,SIZE) realloc(MEM, SIZE) # define sw_free(MEM) if (MEM) free(MEM) #else # define sw_malloc(SIZE) _sw_debug_malloc(SIZE, __SW_FUNCTION__, __FILE__, __LINE__) # define sw_realloc(MEM,SIZE) _sw_debug_realloc(MEM, SIZE, __SW_FUNCTION__, __FILE__, __LINE__) # define sw_free(MEM) if (MEM) _sw_debug_free(MEM, __SW_FUNCTION__, __FILE__, __LINE__) #endif sw_opaque HOWL_API _sw_debug_malloc( sw_size_t size, sw_const_string function, sw_const_string file, sw_uint32 line); sw_opaque HOWL_API _sw_debug_realloc( sw_opaque_t mem, sw_size_t size, sw_const_string function, sw_const_string file, sw_uint32 line); void HOWL_API _sw_debug_free( sw_opaque_t mem, sw_const_string function, sw_const_string file, sw_uint32 line); /* -------------------------------------------------------- * * Sockets * * These macros and APIs support cross platform socket * calls. I am relying on BSD APIs, but even with those * there are subtle and not so subtle platform differences * * -------------------------------------------------------- */ #if defined(__VXWORKS__) # include # include # include # include # include typedef int sw_sockdesc_t; typedef socklen_t sw_socklen_t; #elif defined(WIN32) # include typedef SOCKET sw_sockdesc_t; typedef int sw_socklen_t; # define SW_E_WOULDBLOCK WSAEWOULDBLOCK # define SW_INVALID_SOCKET INVALID_SOCKET # define SW_SOCKET_ERROR SOCKET_ERROR # define sw_close_socket(X) closesocket(X) #else # if defined(sun) # include # endif # include # include # if defined(__Lynx__) # include # else # include # endif # include # include # include # include # include # include # include # include # include typedef sw_int32 sw_sockdesc_t; typedef socklen_t sw_socklen_t; # define SW_E_WOULDBLOCK EWOULDBLOCK # define SW_INVALID_SOCKET -1 # define SW_SOCKET_ERROR -1 # define sw_close_socket(X) close(X) #endif /* -------------------------------------------------------- * * strerror() * * This function will print a string rep of a system error * code * * -------------------------------------------------------- */ sw_const_string sw_strerror(); /* * Obsolete types and macros. * * These are here for backwards compatibility, but will * be removed in the future */ #define sw_char sw_int8 #define sw_uchar sw_uint8 #define sw_octet sw_uint8 #define sw_short sw_int16 #define sw_ushort sw_uint16 #define sw_long sw_int32 #define sw_ulong sw_uint32 #define SW_TRY(EXPR) { sw_result result; if ((result = EXPR) != SW_OKAY) return result; } ((void) 0) #define SW_TRY_GOTO(EXPR) { if ((result = EXPR) != SW_OKAY) goto exit; } ((void) 0) #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/salt/PaxHeaders.10109/salt.h0000644000000000000000000000013213130651643021223 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.159964317 avahi-0.7/avahi-compat-howl/include/salt/salt.h0000644000175000017500000001221113130651643022627 0ustar00lathiatlathiat00000000000000#ifndef _sw_salt_h #define _sw_salt_h /* * Copyright 2003, 2004 Porchdog Software, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software, Inc. */ #include #include #ifdef __cplusplus extern "C" { #endif typedef enum _sw_socket_event { SW_SOCKET_READ = (1 << 0), SW_SOCKET_WRITE = (1 << 1), SW_SOCKET_OOB = (1 << 2) } sw_socket_event; struct _sw_salt; typedef struct _sw_salt * sw_salt; struct _sw_socket; struct _sw_timer; struct _sw_network_interface; struct _sw_signal; typedef sw_opaque sw_socket_handler; typedef sw_result (HOWL_API *sw_socket_handler_func)( sw_socket_handler handler, sw_salt salt, struct _sw_socket * socket, sw_socket_event events, sw_opaque extra); typedef sw_opaque sw_timer_handler; typedef sw_result (HOWL_API *sw_timer_handler_func)( sw_timer_handler handler, sw_salt salt, struct _sw_timer * timer, sw_time timeout, sw_opaque extra); typedef sw_opaque sw_network_interface_handler; typedef sw_result (HOWL_API *sw_network_interface_handler_func)( sw_network_interface_handler handler, sw_salt salt, struct _sw_network_interface * netif, sw_opaque extra); typedef sw_opaque sw_signal_handler; typedef sw_result (HOWL_API *sw_signal_handler_func)( sw_signal_handler handler, sw_salt salt, struct _sw_signal * signal, sw_opaque extra); sw_result HOWL_API sw_salt_init( sw_salt * self, int argc, char ** argv); sw_result HOWL_API sw_salt_fina( sw_salt self); sw_result HOWL_API sw_salt_register_socket( sw_salt self, struct _sw_socket * socket, sw_socket_event events, sw_socket_handler handler, sw_socket_handler_func func, sw_opaque extra); sw_result HOWL_API sw_salt_unregister_socket( sw_salt self, struct _sw_socket * socket); sw_result HOWL_API sw_salt_register_timer( sw_salt self, struct _sw_timer * timer, sw_time timeout, sw_timer_handler handler, sw_timer_handler_func func, sw_opaque extra); sw_result HOWL_API sw_salt_unregister_timer( sw_salt self, struct _sw_timer * timer); sw_result HOWL_API sw_salt_register_network_interface( sw_salt self, struct _sw_network_interface * netif, sw_network_interface_handler handler, sw_network_interface_handler_func func, sw_opaque extra); sw_result HOWL_API sw_salt_unregister_network_interface_handler( sw_salt self); sw_result HOWL_API sw_salt_register_signal( sw_salt self, struct _sw_signal * signal, sw_signal_handler handler, sw_signal_handler_func func, sw_opaque extra); sw_result HOWL_API sw_salt_unregister_signal( sw_salt self, struct _sw_signal * signal); sw_result HOWL_API sw_salt_lock( sw_salt self); sw_result HOWL_API sw_salt_unlock( sw_salt self); sw_result HOWL_API sw_salt_step( sw_salt self, sw_uint32 * msec); sw_result HOWL_API sw_salt_run( sw_salt self); sw_result HOWL_API sw_salt_stop_run( sw_salt self); #define SW_FALSE 0 #define SW_TRUE 1 #define SW_OKAY 0 /* * error codes */ #define SW_E_CORE_BASE 0x80000000 #define SW_E_UNKNOWN (SW_E_CORE_BASE) + 1 #define SW_E_INIT (SW_E_CORE_BASE) + 2 #define SW_E_MEM (SW_E_CORE_BASE) + 3 #define SW_E_EOF (SW_E_CORE_BASE) + 4 #define SW_E_NO_IMPL (SW_E_CORE_BASE) + 5 #define SW_E_FILE_LOCKED (SW_E_CORE_BASE) + 6 #define SW_E_PROTOCOL_NOT_FOUND (SW_E_CORE_BASE) + 7 #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/salt/PaxHeaders.10109/socket.h0000644000000000000000000000013213130651643021550 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.159964317 avahi-0.7/avahi-compat-howl/include/salt/socket.h0000644000175000017500000001256013130651643023163 0ustar00lathiatlathiat00000000000000#ifndef _sw_socket_h #define _sw_socket_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #ifdef __cplusplus extern "C" { #endif struct _sw_socket; typedef struct _sw_socket * sw_socket; struct _sw_socket_options; typedef struct _sw_socket_options * sw_socket_options; typedef sw_uint16 sw_port; sw_result HOWL_API sw_tcp_socket_init( sw_socket * self); sw_result HOWL_API sw_tcp_socket_init_with_desc( sw_socket * self, sw_sockdesc_t desc); sw_result HOWL_API sw_udp_socket_init( sw_socket * self); sw_result HOWL_API sw_multicast_socket_init( sw_socket * self); sw_result HOWL_API sw_socket_fina( sw_socket self); sw_result HOWL_API sw_socket_bind( sw_socket self, sw_ipv4_address address, sw_port port); sw_result HOWL_API sw_socket_join_multicast_group( sw_socket self, sw_ipv4_address local_address, sw_ipv4_address multicast_address, sw_uint32 ttl); sw_result HOWL_API sw_socket_leave_multicast_group( sw_socket self); sw_result HOWL_API sw_socket_listen( sw_socket self, int qsize); sw_result HOWL_API sw_socket_connect( sw_socket self, sw_ipv4_address address, sw_port port); sw_result HOWL_API sw_socket_accept( sw_socket self, sw_socket * socket); sw_result HOWL_API sw_socket_send( sw_socket self, sw_octets buffer, sw_size_t len, sw_size_t * bytesWritten); sw_result HOWL_API sw_socket_sendto( sw_socket self, sw_octets buffer, sw_size_t len, sw_size_t * bytesWritten, sw_ipv4_address to, sw_port port); sw_result HOWL_API sw_socket_recv( sw_socket self, sw_octets buffer, sw_size_t max, sw_size_t * len); sw_result HOWL_API sw_socket_recvfrom( sw_socket self, sw_octets buffer, sw_size_t max, sw_size_t * len, sw_ipv4_address * from, sw_port * port, sw_ipv4_address * dest, sw_uint32 * interface_index); sw_result HOWL_API sw_socket_set_blocking_mode( sw_socket self, sw_bool blocking_mode); sw_result HOWL_API sw_socket_set_options( sw_socket self, sw_socket_options options); sw_ipv4_address HOWL_API sw_socket_ipv4_address( sw_socket self); sw_port HOWL_API sw_socket_port( sw_socket self); sw_sockdesc_t HOWL_API sw_socket_desc( sw_socket self); sw_result HOWL_API sw_socket_close( sw_socket self); sw_result HOWL_API sw_socket_options_init( sw_socket_options * self); sw_result HOWL_API sw_socket_options_fina( sw_socket_options self); sw_result HOWL_API sw_socket_options_set_debug( sw_socket_options self, sw_bool val); sw_result HOWL_API sw_socket_options_set_nodelay( sw_socket_options self, sw_bool val); sw_result HOWL_API sw_socket_options_set_dontroute( sw_socket_options self, sw_bool val); sw_result HOWL_API sw_socket_options_set_keepalive( sw_socket_options self, sw_bool val); sw_result HOWL_API sw_socket_options_set_linger( sw_socket_options self, sw_bool onoff, sw_uint32 linger); sw_result HOWL_API sw_socket_options_set_reuseaddr( sw_socket_options self, sw_bool val); sw_result HOWL_API sw_socket_options_set_rcvbuf( sw_socket_options self, sw_uint32 val); sw_result HOWL_API sw_socket_options_set_sndbuf( sw_socket_options self, sw_uint32 val); int sw_socket_error_code(void); #define SW_E_SOCKET_BASE 0x80000200 #define SW_E_SOCKET (SW_E_SOCKET_BASE) + 1 #define SW_E_BIND (SW_E_SOCKET_BASE) + 2 #define SW_E_GETSOCKNAME (SW_E_SOCKET_BASE) + 3 #define SW_E_ADD_MEMBERSHIP (SW_E_SOCKET_BASE) + 4 #define SW_E_MULTICAST_TTL (SW_E_SOCKET_BASE) + 5 #define SW_E_NOCONNECTION (SW_E_SOCKET_BASE) + 6 #define SW_E_INPROGRESS (SW_E_SOCKET_BASE) + 7 #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/salt/PaxHeaders.10109/time.h0000644000000000000000000000013213130651643021216 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.163964226 avahi-0.7/avahi-compat-howl/include/salt/time.h0000644000175000017500000000443413130651643022632 0ustar00lathiatlathiat00000000000000#ifndef _salt_time_h #define _salt_time_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #ifdef __cplusplus extern "C" { #endif struct _sw_timer; typedef struct _sw_timer * sw_timer; sw_result HOWL_API sw_timer_init( sw_timer * self); sw_result HOWL_API sw_timer_fina( sw_timer self); typedef struct _sw_time { sw_uint32 m_secs; sw_uint32 m_usecs; } sw_time; sw_result HOWL_API sw_time_init( sw_time * self); sw_result HOWL_API sw_time_init_now( sw_time * self); sw_result HOWL_API sw_time_fina( sw_time self); sw_time HOWL_API sw_time_add( sw_time self, sw_time y); sw_time HOWL_API sw_time_sub( sw_time self, sw_time y); sw_int32 HOWL_API sw_time_cmp( sw_time self, sw_time y); #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/salt/PaxHeaders.10109/interface.h0000644000000000000000000000013213130651643022220 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.159964317 avahi-0.7/avahi-compat-howl/include/salt/interface.h0000644000175000017500000000611713130651643023634 0ustar00lathiatlathiat00000000000000#ifndef _sw_interface_h #define _sw_interface_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include struct _sw_network_interface; typedef struct _sw_network_interface * sw_network_interface; typedef enum _sw_network_interface_state { SW_NETWORK_INTERFACE_RUNNING = 0x1, } sw_network_interface_state; typedef struct _sw_mac_address { sw_uint8 m_id[6]; } sw_mac_address; sw_result HOWL_API sw_network_interfaces( sw_uint32 * count, sw_network_interface ** netifs); sw_result HOWL_API sw_network_interfaces_fina( sw_uint32 count, sw_network_interface * netifs); sw_result HOWL_API sw_network_interface_fina( sw_network_interface netif); sw_result HOWL_API sw_network_interface_by_name( sw_string name, sw_network_interface * netif); sw_result HOWL_API sw_network_interface_name( sw_network_interface netif, sw_string name, sw_uint32 len); sw_result HOWL_API sw_network_interface_mac_address( sw_network_interface netif, sw_mac_address * addr); sw_result HOWL_API sw_network_interface_ipv4_address( sw_network_interface netif, sw_ipv4_address * addr); sw_result HOWL_API sw_network_interface_set_ipv4_address( sw_network_interface netif, sw_ipv4_address addr); sw_result HOWL_API sw_network_interface_index( sw_network_interface netif, sw_uint32 * index); sw_result HOWL_API sw_network_interface_linked( sw_network_interface netif, sw_bool * linked); sw_result HOWL_API sw_network_interface_up( sw_network_interface netif); #endif avahi-0.7/avahi-compat-howl/include/salt/PaxHeaders.10109/address.h0000644000000000000000000000013213130651643021705 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.159964317 avahi-0.7/avahi-compat-howl/include/salt/address.h0000644000175000017500000000572313130651643023323 0ustar00lathiatlathiat00000000000000#ifndef _salt_address_h #define _salt_address_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #if defined(__cplusplus) extern "C" { #endif typedef struct _sw_ipv4_address { sw_uint32 m_addr; } sw_ipv4_address; typedef sw_uint32 sw_saddr; sw_ipv4_address HOWL_API sw_ipv4_address_any(void); sw_ipv4_address HOWL_API sw_ipv4_address_loopback(void); sw_result HOWL_API sw_ipv4_address_init( sw_ipv4_address * self); sw_result HOWL_API sw_ipv4_address_init_from_saddr( sw_ipv4_address * self, sw_saddr saddr); sw_result HOWL_API sw_ipv4_address_init_from_name( sw_ipv4_address * self, sw_const_string name); sw_result HOWL_API sw_ipv4_address_init_from_address( sw_ipv4_address * self, sw_ipv4_address addr); sw_result HOWL_API sw_ipv4_address_init_from_this_host( sw_ipv4_address * self); sw_result HOWL_API sw_ipv4_address_fina( sw_ipv4_address self); sw_bool HOWL_API sw_ipv4_address_is_any( sw_ipv4_address self); sw_saddr HOWL_API sw_ipv4_address_saddr( sw_ipv4_address self); sw_string HOWL_API sw_ipv4_address_name( sw_ipv4_address self, sw_string name, sw_uint32 len); sw_result HOWL_API sw_ipv4_address_decompose( sw_ipv4_address self, sw_uint8 * a1, sw_uint8 * a2, sw_uint8 * a3, sw_uint8 * a4); sw_bool HOWL_API sw_ipv4_address_equals( sw_ipv4_address self, sw_ipv4_address addr); #if defined(__cplusplus) } #endif #endif avahi-0.7/avahi-compat-howl/include/salt/PaxHeaders.10109/debug.h0000644000000000000000000000013213130651643021346 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.163964226 avahi-0.7/avahi-compat-howl/include/salt/debug.h0000644000175000017500000001127513130651643022763 0ustar00lathiatlathiat00000000000000#ifndef _salt_debug_h #define _salt_debug_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #ifdef __cplusplus extern "C" { #endif #define SW_LOG_WARNING 1 << 0 #define SW_LOG_ERROR 1 << 1 #define SW_LOG_NOTICE 1 << 2 #define SW_LOG_VERBOSE 1 << 3 #define SW_LOG_OFF 0x0 #if (defined( __GNUC__)) # if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3))) # define __C99_VA_ARGS__ 1 # define __GNU_VA_ARGS__ 0 # else # define __C99_VA_ARGS__ 0 # define __GNU_VA_ARGS__ 1 # endif #else # define __C99_VA_ARGS__ 0 # define __GNU_VA_ARGS__ 0 #endif # if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 9))) # define __SW_FUNCTION__ __func__ #elif (defined( __GNUC__)) # define __SW_FUNCTION__ __PRETTY_FUNCTION__ #elif( defined(_MSC_VER ) && !defined(_WIN32_WCE)) # define __SW_FUNCTION__ __FUNCTION__ #else # define __SW_FUNCTION__ "" #endif #define sw_check(expr, label, action) \ do \ { \ if (!(expr)) \ { \ { \ action; \ } \ goto label; \ } \ } while (0) #define sw_check_log(expr, label, action) \ do \ { \ if (!(expr)) \ { \ sw_print_assert(0, NULL, __FILE__, __SW_FUNCTION__, __LINE__); \ { \ action; \ } \ goto label; \ } \ } while (0) #define sw_check_okay(code, label) \ do \ { \ if ((int) code != 0) \ { \ goto label; \ } \ } while (0) #define sw_check_okay_log(code, label) \ do \ { \ if ((int) code != 0) \ { \ sw_print_assert((int) code, NULL, __FILE__, __SW_FUNCTION__, __LINE__); \ goto label; \ } \ } while ( 0 ) #define sw_translate_error(expr, errno) ((expr) ? 0 : (errno)) #if defined(WIN32) # define sw_socket_errno() (int) WSAGetLastError() # define sw_set_socket_errno(X) WSASetLastError(X) # define sw_system_errno() (int) GetLastError() # define sw_set_system_errno(X) SetLastError(X) #else # define sw_socket_errno() errno # define sw_set_socket_errno(X) errno = X # define sw_system_errno() errno # define sw_set_system_errno(X) errno = X #endif #if !defined(NDEBUG) # define sw_assert(X) \ \ do \ { \ if (!(X)) \ { \ sw_print_assert( 0, #X, __FILE__, __SW_FUNCTION__, __LINE__); \ } \ } while( 0 ) #else # define sw_assert(X) #endif void HOWL_API sw_print_assert( int code, sw_const_string assert_string, sw_const_string file, sw_const_string func, int line); #if !defined(NDEBUG) void HOWL_API sw_print_debug( int level, sw_const_string format, ...); # if (__C99_VA_ARGS__) # define sw_debug(...) sw_print_debug(__VA_ARGS__) # else # define sw_debug sw_print_debug # endif #else # if (__C99_VA_ARGS__) # define sw_debug(...) # else # define sw_debug while( 0 ) # endif #endif #define SW_UNUSED_PARAM(X) (void) (X) #if defined(__cplusplus) } #endif #endif avahi-0.7/avahi-compat-howl/include/salt/PaxHeaders.10109/signal.h0000644000000000000000000000013213130651643021535 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.159964317 avahi-0.7/avahi-compat-howl/include/salt/signal.h0000644000175000017500000000361413130651643023150 0ustar00lathiatlathiat00000000000000#ifndef _salt_signal_h #define _salt_signal_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #ifdef __cplusplus extern "C" { #endif struct _sw_signal; typedef struct _sw_signal * sw_signal; sw_result HOWL_API sw_signal_init( sw_signal * self, int signal); sw_result HOWL_API sw_signal_fina( sw_signal self); #ifdef __cplusplus } #endif #endif avahi-0.7/avahi-compat-howl/include/PaxHeaders.10109/howl.h0000644000000000000000000000013213130651643020266 xustar0030 mtime=1499681699.095370847 30 atime=1499681699.095370847 30 ctime=1499681851.151964496 avahi-0.7/avahi-compat-howl/include/howl.h0000644000175000017500000000354613130651643021705 0ustar00lathiatlathiat00000000000000#ifndef _sw_howl_h #define _sw_howl_h /* * Copyright 2003, 2004 Porchdog Software. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * The views and conclusions contained in the software and documentation are those * of the authors and should not be interpreted as representing official policies, * either expressed or implied, of Porchdog Software. */ #include #include #include #include #include #include #include #include #include #include #endif avahi-0.7/PaxHeaders.10109/tests0000644000000000000000000000013213130652073013264 xustar0030 mtime=1499681851.103965568 30 atime=1499681851.283961552 30 ctime=1499681851.103965568 avahi-0.7/tests/0000755000175000017500000000000013130652073014750 5ustar00lathiatlathiat00000000000000avahi-0.7/tests/PaxHeaders.10109/Makefile.am0000644000000000000000000000013213130651643015377 xustar0030 mtime=1499681699.155369496 30 atime=1499681796.801178841 30 ctime=1499681851.099965657 avahi-0.7/tests/Makefile.am0000644000175000017500000000253613130651643017014 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. AM_CFLAGS= \ -I$(top_srcdir) if HAVE_GLIB if HAVE_DBUS if HAVE_NETLINK if ENABLE_TESTS noinst_PROGRAMS = c-plus-plus-test endif c_plus_plus_test_SOURCES = c-plus-plus-test.cc c_plus_plus_test_CXXFLAGS = \ $(AM_CFLAGS) \ $(GLIB20_CFLAGS) \ $(DBUS_CFLAGS) c_plus_plus_test_LDADD = \ $(AM_LDADD) \ ../avahi-common/libavahi-common.la \ ../avahi-core/libavahi-core.la \ ../avahi-client/libavahi-client.la \ ../avahi-glib/libavahi-glib.la \ $(GLIB20_LIBS) \ $(DBUS_LIBS) endif endif endif EXTRA_DIST=c-plus-plus-test-gen.py gen: python ./c-plus-plus-test-gen.py avahi-common avahi-core avahi-client avahi-glib > c-plus-plus-test.cc avahi-0.7/tests/PaxHeaders.10109/Makefile.in0000644000000000000000000000013213130652012015377 xustar0030 mtime=1499681802.041061622 30 atime=1499681806.808954989 30 ctime=1499681851.099965657 avahi-0.7/tests/Makefile.in0000644000175000017500000006603213130652012017015 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_TESTS_TRUE@@HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@noinst_PROGRAMS = c-plus-plus-test$(EXEEXT) subdir = tests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = PROGRAMS = $(noinst_PROGRAMS) am__c_plus_plus_test_SOURCES_DIST = c-plus-plus-test.cc @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@am_c_plus_plus_test_OBJECTS = c_plus_plus_test-c-plus-plus-test.$(OBJEXT) c_plus_plus_test_OBJECTS = $(am_c_plus_plus_test_OBJECTS) am__DEPENDENCIES_1 = @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@c_plus_plus_test_DEPENDENCIES = ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ ../avahi-core/libavahi-core.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ $(am__DEPENDENCIES_1) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = c_plus_plus_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(c_plus_plus_test_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLD = $(CXX) CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(c_plus_plus_test_SOURCES) DIST_SOURCES = $(am__c_plus_plus_test_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CFLAGS = \ -I$(top_srcdir) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@c_plus_plus_test_SOURCES = c-plus-plus-test.cc @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@c_plus_plus_test_CXXFLAGS = \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ $(AM_CFLAGS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ $(GLIB20_CFLAGS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ $(DBUS_CFLAGS) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@c_plus_plus_test_LDADD = \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ $(AM_LDADD) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ ../avahi-common/libavahi-common.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ ../avahi-core/libavahi-core.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ ../avahi-client/libavahi-client.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ ../avahi-glib/libavahi-glib.la \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ $(GLIB20_LIBS) \ @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_NETLINK_TRUE@ $(DBUS_LIBS) EXTRA_DIST = c-plus-plus-test-gen.py all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign tests/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list c-plus-plus-test$(EXEEXT): $(c_plus_plus_test_OBJECTS) $(c_plus_plus_test_DEPENDENCIES) $(EXTRA_c_plus_plus_test_DEPENDENCIES) @rm -f c-plus-plus-test$(EXEEXT) $(AM_V_CXXLD)$(c_plus_plus_test_LINK) $(c_plus_plus_test_OBJECTS) $(c_plus_plus_test_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/c_plus_plus_test-c-plus-plus-test.Po@am__quote@ .cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< c_plus_plus_test-c-plus-plus-test.o: c-plus-plus-test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(c_plus_plus_test_CXXFLAGS) $(CXXFLAGS) -MT c_plus_plus_test-c-plus-plus-test.o -MD -MP -MF $(DEPDIR)/c_plus_plus_test-c-plus-plus-test.Tpo -c -o c_plus_plus_test-c-plus-plus-test.o `test -f 'c-plus-plus-test.cc' || echo '$(srcdir)/'`c-plus-plus-test.cc @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/c_plus_plus_test-c-plus-plus-test.Tpo $(DEPDIR)/c_plus_plus_test-c-plus-plus-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='c-plus-plus-test.cc' object='c_plus_plus_test-c-plus-plus-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(c_plus_plus_test_CXXFLAGS) $(CXXFLAGS) -c -o c_plus_plus_test-c-plus-plus-test.o `test -f 'c-plus-plus-test.cc' || echo '$(srcdir)/'`c-plus-plus-test.cc c_plus_plus_test-c-plus-plus-test.obj: c-plus-plus-test.cc @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(c_plus_plus_test_CXXFLAGS) $(CXXFLAGS) -MT c_plus_plus_test-c-plus-plus-test.obj -MD -MP -MF $(DEPDIR)/c_plus_plus_test-c-plus-plus-test.Tpo -c -o c_plus_plus_test-c-plus-plus-test.obj `if test -f 'c-plus-plus-test.cc'; then $(CYGPATH_W) 'c-plus-plus-test.cc'; else $(CYGPATH_W) '$(srcdir)/c-plus-plus-test.cc'; fi` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/c_plus_plus_test-c-plus-plus-test.Tpo $(DEPDIR)/c_plus_plus_test-c-plus-plus-test.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='c-plus-plus-test.cc' object='c_plus_plus_test-c-plus-plus-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(c_plus_plus_test_CXXFLAGS) $(CXXFLAGS) -c -o c_plus_plus_test-c-plus-plus-test.obj `if test -f 'c-plus-plus-test.cc'; then $(CYGPATH_W) 'c-plus-plus-test.cc'; else $(CYGPATH_W) '$(srcdir)/c-plus-plus-test.cc'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am .PRECIOUS: Makefile gen: python ./c-plus-plus-test-gen.py avahi-common avahi-core avahi-client avahi-glib > c-plus-plus-test.cc # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/tests/PaxHeaders.10109/c-plus-plus-test-gen.py0000644000000000000000000000013213130651643017625 xustar0030 mtime=1499681699.155369496 30 atime=1499681699.155369496 30 ctime=1499681851.103965568 avahi-0.7/tests/c-plus-plus-test-gen.py0000755000175000017500000000356313130651643021246 0ustar00lathiatlathiat00000000000000#!/usr/bin/python # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. import os, sys def print_includes(dir): files = os.listdir("../%s" % dir) files = filter(lambda fn: fn.endswith(".h") and not fn.startswith("."), files) files.sort() for f in files: print "#include <%s/%s>" % (dir, f) print """/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif """ for f in sys.argv[1:]: print_includes(f) print """ int main(int argc, char*argv[]) { return 0; } """ avahi-0.7/tests/PaxHeaders.10109/c-plus-plus-test.cc0000644000000000000000000000013213130651643017013 xustar0030 mtime=1499681699.155369496 30 atime=1499681699.155369496 30 ctime=1499681851.103965568 avahi-0.7/tests/c-plus-plus-test.cc0000644000175000017500000000505713130651643020431 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int argc, char*argv[]) { return 0; } avahi-0.7/PaxHeaders.10109/man0000644000000000000000000000013213130652073012675 xustar0030 mtime=1499681851.087965924 30 atime=1499681851.283961552 30 ctime=1499681851.087965924 avahi-0.7/man/0000755000175000017500000000000013130652073014361 5ustar00lathiatlathiat00000000000000avahi-0.7/man/PaxHeaders.10109/avahi-browse.10000644000000000000000000000013213130652072015422 xustar0030 mtime=1499681850.939969227 30 atime=1499681850.927969494 30 ctime=1499681851.071966279 avahi-0.7/man/avahi-browse.10000644000175000017500000000462413130652072017037 0ustar00lathiatlathiat00000000000000.TH avahi-browse 1 User Manuals .SH NAME avahi-browse \- Browse for mDNS/DNS-SD services using the Avahi daemon .SH SYNOPSIS \fBavahi-browse [\fIoptions\fB] \fIservice-type\fB avahi-browse [\fIoptions\fB] --all\fB avahi-browse [\fIoptions\fB] --browse-domains\fB avahi-browse [\fIoptions\fB] --dump-db\fB avahi-browse-domains [\fIoptions\fB] \f1 .SH DESCRIPTION Browse for mDNS/DNS-SD network services and browsing domains using the Avahi daemon. .SH OPTIONS Specify a DNS-SD service type (e.g. _http._tcp) to browse for on the command line, or \fB-a\f1 to browse for all available service types. Items that appear on the network are prefixed with "+", items that disappear are prefixed with "-". If \fB--resolve\f1 is passed items that are resolved are prefixed with "=". .TP \fB-a | --all\f1 Browse for all service types registered on the LAN, not just the one specified on the command line. .TP \fB-D | --browse-domains\f1 Browse for browsing domains instead for services. avahi-browse-domains is equivalent to avahi-browse --browse-domains .TP \fB-d | --domain=\f1 \fIDOMAIN\f1 Browse in the specified domain. If omitted avahi-browse will browse in the default browsing domain (usually .local) .TP \fB-v | --verbose\f1 Enable verbose mode. .TP \fB-t | --terminate\f1 Terminate after dumping a more or less complete list. .TP \fB-c | --cache\f1 Terminate after dumping all entries available in the cache. .TP \fB-l | --ignore-local\f1 Ignore local services, show only remote services. .TP \fB-r | --resolve\f1 Automatically resolve services found. .TP \fB-f | --no-fail\f1 Don't fail if the daemon is not found running. Instead, wait until it appears. If it disconnects, try to reconnect. .TP \fB-p | --parsable\f1 Make output easily parsable for usage in scripts. If enabled fields are separated by semicolons (;), service names are escaped. It is recommended to combine this with \fB--no-db-lookup\f1. .TP \fB-k | --no-db-lookup\f1 Don't lookup services types in service type database. .TP \fB-b | --dump-db\f1 Dump the service type database (may be combined with -k) .TP \fB-h | --help\f1 Show help. .TP \fB-V | --version\f1 Show version information. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-publish(1)\f1, \fBavahi-resolve(1)\f1, \fBavahi-daemon(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-dnsconfd.80000644000000000000000000000012713130652072015732 xustar0029 mtime=1499681850.86397092 29 atime=1499681850.85197119 29 ctime=1499681851.06796637 avahi-0.7/man/avahi-dnsconfd.80000644000175000017500000000323013130652072017333 0ustar00lathiatlathiat00000000000000.TH avahi-dnsconfd 8 User Manuals .SH NAME avahi-dnsconfd \- Unicast DNS server from mDNS/DNS-SD configuration daemon .SH SYNOPSIS \fBavahi-dnsconfd [\fIoptions\fB] avahi-dnsconfd --kill\fB avahi-dnsconfd --refresh\fB avahi-dnsconfd --check\fB \f1 .SH DESCRIPTION avahi-dnsconfd connects to a running avahi-daemon and runs the script \fI/usr/local/etc/avahi/avahi-dnsconfd.action\f1 for each unicast DNS server that is announced on the local LAN. This is useful for configuring unicast DNS servers in a DHCP-like fashion with mDNS. .SH OPTIONS .TP \fB-D | --daemonize\f1 Daemonize after startup and redirect log messages to syslog. .TP \fB-s | --syslog\f1 Log to syslog instead of STDERR. Implied by \fB--daemonize\f1. .TP \fB-k | --kill\f1 Kill an already running avahi-dnsconfd. (equivalent to sending a SIGTERM) .TP \fB-r | --refresh\f1 Tell an already running avahi-dnsconfd to refresh the DNS server data. (equivalent to sending a SIGHUP) .TP \fB-c | --check\f1 Return 0 as return code when avahi-dnsconfd is already running. .TP \fB-h | --help\f1 Show help .TP \fB-v | --version\f1 Show version information .SH FILES \fI/usr/local/etc/avahi/avahi-dnsconfd.action\f1: the script to run when a DNS server is found or removed. .SH SIGNALS \fISIGINT, SIGTERM\f1: avahi-dnsconfd will shutdown. This is issued by passing --kill to avahi-daemon. \fISIGHUP\f1: avahi-dnsconfd will refresh the DNS server data. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-daemon(8)\f1, \fBavahi-dnsconfd.action(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-set-host-name.10000644000000000000000000000013213130652072016605 xustar0030 mtime=1499681850.987968156 30 atime=1499681850.975968423 30 ctime=1499681851.071966279 avahi-0.7/man/avahi-set-host-name.10000644000175000017500000000131713130652072020216 0ustar00lathiatlathiat00000000000000.TH avahi-set-host-name 1 User Manuals .SH NAME avahi-set-host-name \- Change mDNS host name .SH SYNOPSIS \fBavahi-set-host-name \fIhost-name\fB \f1 .SH DESCRIPTION Set the mDNS host name of a currently running Avahi daemon. The effect of this operation is not persistent across daemon restarts. This operation is usually privileged. .SH OPTIONS .TP \fB-v | --verbose\f1 Enable verbose mode. .TP \fB-h | --help\f1 Show help. .TP \fB-V | --version\f1 Show version information. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-daemon(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-resolve.1.xml.in0000644000000000000000000000013213130651643017007 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.943969137 30 ctime=1499681851.079966103 avahi-0.7/man/avahi-resolve.1.xml.in0000644000175000017500000000645513130651643020430 0ustar00lathiatlathiat00000000000000 avahi-resolve --name host-name ... avahi-resolve-host-name host-name ... avahi-resolve --address address ... avahi-resolve-address address ...

    Resolve one or more mDNS/DNS host name(s) to IP address(es) (and vice versa) using the Avahi daemon.

    When passing -n, specify one or more fully qualified mDNS/DNS host name(s) (e.g. "foo.local") to resolve into IP addresses on the command line. When passing -a, specify one or more IP address to resolve into host names.

    avahi-resolve-host-name is equivalent to avahi-resolve --name.

    avahi-resolve-address is equivalent to avahi-resolve --address.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/Makefile.am0000644000000000000000000000013113130651643015007 xustar0030 mtime=1499681699.139369856 30 atime=1499681796.793179021 29 ctime=1499681851.06796637 avahi-0.7/man/Makefile.am0000644000175000017500000000650613130651643016426 0ustar00lathiatlathiat00000000000000# This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. pkgsysconfdir=$(sysconfdir)/avahi servicedir=$(pkgsysconfdir)/services if BUILD_MANPAGES man_MANS = \ avahi-daemon.8 \ avahi-dnsconfd.8 \ avahi-daemon.conf.5 \ avahi-dnsconfd.action.8 \ avahi.service.5 \ avahi.hosts.5 noinst_DATA = \ avahi-browse.1.xml \ avahi-publish.1.xml \ avahi-resolve.1.xml \ avahi-set-host-name.1.xml \ avahi-daemon.8.xml \ avahi-discover.1.xml \ avahi-bookmarks.1.xml \ avahi-dnsconfd.8.xml \ avahi-daemon.conf.5.xml \ avahi-dnsconfd.action.8.xml \ avahi.service.5.xml \ avahi.hosts.5.xml \ avahi-autoipd.8.xml \ avahi-autoipd.action.8.xml \ bssh.1.xml CLEANFILES = \ $(noinst_DATA) if HAVE_DBUS man_MANS += \ avahi-browse.1 \ avahi-resolve.1 \ avahi-publish.1 \ avahi-set-host-name.1 if HAVE_GTK man_MANS += \ bssh.1 endif if HAVE_PYTHON man_MANS += \ avahi-bookmarks.1 if HAVE_GTK man_MANS += \ avahi-discover.1 endif endif endif if ENABLE_AUTOIPD if HAVE_LIBDAEMON man_MANS += \ avahi-autoipd.8 \ avahi-autoipd.action.8 endif endif %.xml: %.xml.in Makefile $(AM_V_GEN) sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ -e 's,@servicedir\@,$(servicedir),g' \ -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \ -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ if USE_XMLTOMAN CLEANFILES += $(man_MANS) %.1: %.1.xml Makefile $(AM_V_GEN)xmltoman $< > $@ %.5: %.5.xml Makefile $(AM_V_GEN)xmltoman $< > $@ %.8: %.8.xml Makefile $(AM_V_GEN)xmltoman $< > $@ xmllint: $(noinst_DATA) for f in $(noinst_DATA) ; do \ xmllint --noout --valid "$$f" || exit 1 ; \ done endif endif EXTRA_DIST = \ $(man_MANS) \ avahi-browse.1.xml.in \ avahi-publish.1.xml.in \ avahi-resolve.1.xml.in \ avahi-set-host-name.1.xml.in \ avahi-daemon.8.xml.in \ avahi-discover.1.xml.in \ avahi-bookmarks.1.xml.in \ avahi-dnsconfd.8.xml.in \ avahi-daemon.conf.5.xml.in \ avahi-dnsconfd.action.8.xml.in \ avahi.service.5.xml.in \ avahi.hosts.5.xml.in \ avahi-autoipd.action.8.xml.in \ avahi-autoipd.8.xml.in \ bssh.1.xml.in \ xmltoman.css \ xmltoman.xsl \ xmltoman.dtd if HAVE_DBUS BSSH_LN = if HAVE_GTK if HAVE_GLIB BSSH_LN += $(LN_S) bssh.1 bvnc.1 && endif endif install-exec-local: mkdir -p $(DESTDIR)/$(mandir)/man1 && \ cd $(DESTDIR)/$(mandir)/man1 && \ rm -f avahi-resolve-host-name.1 avahi-resolve-address.1 avahi-browse-domains.1 avahi-publish-address.1 avahi-publish-service.1 bvnc.1 && \ $(BSSH_LN) \ $(LN_S) avahi-resolve.1 avahi-resolve-host-name.1 && \ $(LN_S) avahi-resolve.1 avahi-resolve-address.1 && \ $(LN_S) avahi-browse.1 avahi-browse-domains.1 && \ $(LN_S) avahi-publish.1 avahi-publish-address.1 && \ $(LN_S) avahi-publish.1 avahi-publish-service.1 endif avahi-0.7/man/PaxHeaders.10109/avahi-dnsconfd.action.80000644000000000000000000000013213130652072017202 xustar0030 mtime=1499681850.895970209 30 atime=1499681850.883970475 30 ctime=1499681851.071966279 avahi-0.7/man/avahi-dnsconfd.action.80000644000175000017500000000275413130652072020621 0ustar00lathiatlathiat00000000000000.TH avahi-dnsconfd.action 8 User Manuals .SH NAME avahi-dnsconfd.action \- avahi-dnsconfd action script .SH SYNOPSIS \fB/usr/local/etc/avahi/avahi-dnsconfd.action \f1 .SH DESCRIPTION \fIavahi-dnsconfd.action\f1 is the action script that is called whenever a new unicast DNS server is found or removed by avahi-dnsconfd. The default script as shipped with avahi patches \fI/etc/resolv.conf\f1 to reflect the changed unicast DNS server configuration. .SH PARAMETERS .TP \fBargv[1]\f1 Contains the character "+" if the DNS server is new, "-" when it shall be removed from the DNS server list. .TP \fBargv[2]\f1 The IP address of the DNS server. .TP \fBargv[3]\f1 Numerical network interface number this DNS server was found on. .TP \fBargv[4]\f1 Numerical protocol number this DNS server was found on. (usually 2 for IPv4 and 10 for IPv6) .SH ENVIRONMENT .TP \fBAVAHI_INTERFACE\f1 Contains the textual interface name the corresponds with argv[3]. (e.g. "eth0") .TP \fBAVAHI_INTERFACE_DNS_SERVERS\f1 Contains a list of all DNS servers that avahi-dnsconfd found on the interface \fB$AVAHI_INTERFACE\f1, separated by spaces. .TP \fBAVAHI_DNS_SERVERS\f1 Contains a list of all DNS server that avahi-dnsconfd found on all interfaces, separated by spaces. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-dnsconfd(8)\f1, \fBavahi-daemon(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-autoipd.80000644000000000000000000000013213130652073015576 xustar0030 mtime=1499681851.047966814 30 atime=1499681851.035967085 30 ctime=1499681851.075966193 avahi-0.7/man/avahi-autoipd.80000644000175000017500000000656413130652073017220 0ustar00lathiatlathiat00000000000000.TH avahi-autoipd 8 User Manuals .SH NAME avahi-autoipd \- IPv4LL network address configuration daemon .SH SYNOPSIS \fBavahi-autoipd [\fIoptions\fB] \fIinterface\fB avahi-autoipd --kill\fB \fIinterface\fB avahi-autoipd --refresh\fB \fIinterface\fB avahi-autoipd --check\fB \fIinterface\fB \f1 .SH DESCRIPTION avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-Local Addresses" (IETF RFC3927), a protocol for automatic IP address configuration from the link-local 169.254.0.0/16 range without the need for a central server. It is primarily intended to be used in ad-hoc networks which lack a DHCP server. IPv4LL is part of the Zeroconf stack. avahi-autoipd can be used as stand-alone address allocator or as plugin for a DHCP client such as ISC's dhclient, where it can be used as fallback solution if no DHCP server is found. To allow communication between hosts that have only an IPv4LL address assigned and hosts that only have a routable IP address assigned you may add the following routes to both network configurations: \fBroute add -net 169.254.0.0 netmask 255.255.0.0 dev eth0 metric 99\f1 \fBroute add default dev eth0 metric 99\f1 See http://developer.apple.com/qa/qa2004/qa1357.html for more information. .SH OPTIONS .TP \fB-D | --daemonize\f1 Daemonize after startup. Implies \fB--syslog\f1. .TP \fB-k | --kill\f1 Kill an already running avahi-autoipd on the specified network interface. (Equivalent to sending a SIGTERM) .TP \fB-r | --refresh\f1 Tell an already running avahi-autoipd to re-announce the acquired IP address on the specified network interface. (Equivalent to sending a SIGHUP) .TP \fB-c | --check\f1 Return 0 as return code if avahi-autoipd is already running for the specified network interface. .TP \fB-s | --syslog\f1 Log to syslog instead of STDERR. Implied by \fB--daemonize\f1. .TP \fB--debug\f1 Enable verbose mode. .TP \fB--no-drop-root\f1 Don't drop root privileges after startup. We recommend not to use this option. .TP \fB--no-chroot\f1 Don't \fBchroot(2)\f1 the daemon. This option is only available when compiled with chroot() support. .TP \fB-S | --start=\f1 Try to acquire the specified IP address, which must be from the IPv4LL range 169.254.0.0/16. .TP \fB-w | --wait\f1 Wait until a IP address has been successfully acquired before detaching. Only valid in combination with \fB--daemonize\f1. .TP \fB--force-bind\f1 Acquire an IPv4LL address, even if a routable address has been configured on the interface. .TP \fB--no-proc-title\f1 Don't change the process name while running. Unless this option is specified avahi-autoipd will reflect its current state and the IP address in the process title. .TP \fB-h | --help\f1 Show help. .TP \fB-v | --version\f1 Show version information. .SH FILES \fI/usr/local/etc/avahi/avahi-autoipd.action\f1: the script to run when an IP address as been acquired or is lost. .SH SIGNALS \fISIGINT, SIGTERM\f1: avahi-autoipd will shutdown. (Same as \fB--kill\f1) \fISIGHUP\f1: avahi-autoipd will re-announce the acquired IP address. (Same as \fB--refresh\f1) .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBautoipd.action(8)\f1, \fBdhclient(8)\f1 http://avahi.org/wiki/AvahiAutoipd documents how avahi-autoipd is best packaged and integrated into distributions. .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-autoipd.action.8.xml.in0000644000000000000000000000013213130651643020260 xustar0030 mtime=1499681699.139369856 30 atime=1499681851.047966814 30 ctime=1499681851.083966014 avahi-0.7/man/avahi-autoipd.action.8.xml.in0000644000175000017500000000575613130651643021704 0ustar00lathiatlathiat00000000000000 @pkgsysconfdir@/avahi-autoipd.action

    avahi-autoipd.action is the action script that is called whenever an IP address has been acquired by avahi-autoipd or when it detected an IP address conflict. The script should add or remove the specified address from the specified network interface.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    , , ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-dnsconfd.8.xml.in0000644000000000000000000000013113130651643017134 xustar0030 mtime=1499681699.139369856 29 atime=1499681850.85197119 30 ctime=1499681851.083966014 avahi-0.7/man/avahi-dnsconfd.8.xml.in0000644000175000017500000000672513130651643020556 0ustar00lathiatlathiat00000000000000 avahi-dnsconfd [options] avahi-dnsconfd --kill avahi-dnsconfd --refresh avahi-dnsconfd --check

    avahi-dnsconfd connects to a running avahi-daemon and runs the script @pkgsysconfdir@/avahi-dnsconfd.action for each unicast DNS server that is announced on the local LAN. This is useful for configuring unicast DNS servers in a DHCP-like fashion with mDNS.

    @pkgsysconfdir@/avahi-dnsconfd.action: the script to run when a DNS server is found or removed.

    SIGINT, SIGTERM: avahi-dnsconfd will shutdown. This is issued by passing --kill to avahi-daemon.

    SIGHUP: avahi-dnsconfd will refresh the DNS server data.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-daemon.conf.5.xml.in0000644000000000000000000000013213130651643017523 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.867970834 30 ctime=1499681851.083966014 avahi-0.7/man/avahi-daemon.conf.5.xml.in0000644000175000017500000004045513130651643021142 0ustar00lathiatlathiat00000000000000 @pkgsysconfdir@/avahi-daemon.conf

    avahi-daemon.conf is the configuration file for avahi-daemon.

    This section is used to define system resource limits for the daemon. See for more information. If any of the options is not specified in the configuration file, avahi-daemon does not change it from the system defaults.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi.hosts.50000644000000000000000000000013213130652072015266 xustar0030 mtime=1499681850.927969494 30 atime=1499681850.915969763 30 ctime=1499681851.071966279 avahi-0.7/man/avahi.hosts.50000644000175000017500000000155413130652072016702 0ustar00lathiatlathiat00000000000000.TH avahi.hosts 5 User Manuals .SH NAME avahi.hosts \- avahi-daemon static host name file .SH SYNOPSIS \fB/usr/local/etc/avahi/hosts \f1 .SH DESCRIPTION \fI/usr/local/etc/avahi/hosts\f1 is a file which may be used to define static host name to IP address mappings for multicast DNS. This is especially useful when publishing DNS-SD services on behalf of other hosts. See \fBavahi.service(5)\f1 for more information. The file format is similar to the one of \fI/etc/hosts\f1: on each line an IP address and the corresponding host name. The host names should be in FQDN form, i.e. with appended .local suffix. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-daemon(8)\f1, \fBavahi.service(5)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-bookmarks.1.xml.in0000644000000000000000000000013213130651643017320 xustar0030 mtime=1499681699.139369856 30 atime=1499681851.003967796 30 ctime=1499681851.079966103 avahi-0.7/man/avahi-bookmarks.1.xml.in0000644000175000017500000000702013130651643020726 0ustar00lathiatlathiat00000000000000 avahi-bookmarks

    A web service for listing HTTP services that are announced via mDNS/DNS-SD using the Avahi daemon. avahi-bookmarks opens a TCP socket on port 8080 and waits for incoming HTTP connections returning a dynamic web site containing links to all services of type _http._tcp on the LAN. Point your browser to http://localhost:8080/ to make use of avahi-bookmarks.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-autoipd.8.xml.in0000644000000000000000000000013213130651643017004 xustar0030 mtime=1499681699.139369856 30 atime=1499681851.031967174 30 ctime=1499681851.087965924 avahi-0.7/man/avahi-autoipd.8.xml.in0000644000175000017500000001371213130651643020417 0ustar00lathiatlathiat00000000000000 avahi-autoipd [options] interface avahi-autoipd --kill interface avahi-autoipd --refresh interface avahi-autoipd --check interface

    avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-Local Addresses" (IETF RFC3927), a protocol for automatic IP address configuration from the link-local 169.254.0.0/16 range without the need for a central server. It is primarily intended to be used in ad-hoc networks which lack a DHCP server.

    IPv4LL is part of the Zeroconf stack.

    avahi-autoipd can be used as stand-alone address allocator or as plugin for a DHCP client such as ISC's dhclient, where it can be used as fallback solution if no DHCP server is found.

    To allow communication between hosts that have only an IPv4LL address assigned and hosts that only have a routable IP address assigned you may add the following routes to both network configurations:

    route add -net 169.254.0.0 netmask 255.255.0.0 dev eth0 metric 99

    route add default dev eth0 metric 99

    See http://developer.apple.com/qa/qa2004/qa1357.html for more information.

    @pkgsysconfdir@/avahi-autoipd.action: the script to run when an IP address as been acquired or is lost.

    SIGINT, SIGTERM: avahi-autoipd will shutdown. (Same as --kill)

    SIGHUP: avahi-autoipd will re-announce the acquired IP address. (Same as --refresh)

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    http://avahi.org/wiki/AvahiAutoipd documents how avahi-autoipd is best packaged and integrated into distributions.

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-daemon.8.xml.in0000644000000000000000000000013213130651643016602 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.835971547 30 ctime=1499681851.079966103 avahi-0.7/man/avahi-daemon.8.xml.in0000644000175000017500000001520113130651643020210 0ustar00lathiatlathiat00000000000000 avahi-daemon [options] avahi-daemon --kill avahi-daemon --reload avahi-daemon --check

    The Avahi mDNS/DNS-SD daemon implements Apple's Zeroconf architecture (also known as "Rendezvous" or "Bonjour"). The daemon registers local IP addresses and static services using mDNS/DNS-SD and provides two IPC APIs for local programs to make use of the mDNS record cache the avahi-daemon maintains. First there is the so called "simple protocol" which is used exclusively by avahi-dnsconfd (a daemon which configures unicast DNS servers using server info published via mDNS) and nss-mdns (a libc NSS plugin, providing name resolution via mDNS). Finally there is the D-Bus interface which provides a rich object oriented interface to D-Bus enabled applications.

    Upon startup avahi-daemon interprets its configuration file @pkgsysconfdir@/avahi-daemon.conf and reads XML fragments from @servicedir@/*.service which may define static DNS-SD services. If you enable publish-resolv-conf-dns-servers in avahi-daemon.conf the file /etc/resolv.conf will be read, too.

    @pkgsysconfdir@/avahi-daemon.conf: the default configuration file for avahi-daemon, for more information.

    @pkgsysconfdir@/hosts: additional static hostname mappings to publish in mDNS, see for more information.

    @servicedir@/*.service: static service definitions, see for more information.

    SIGINT, SIGTERM: avahi-daemon will shutdown. (Same as --kill).

    SIGHUP: avahi-daemon will reload unicast DNS server data from /etc/resolv.conf and static service definitions from @servicedir@/. (Same as --reload)

    SIGUSR1: avahi-daemon will dump local and remote cached resource record data to syslog.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    , , , ,

    http://avahi.org/wiki/AvahiAndUnicastDotLocal documents the problems when using Avahi in a unicast DNS zone .local.

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/Makefile.in0000644000000000000000000000013113130652011015006 xustar0030 mtime=1499681801.997062606 30 atime=1499681806.800955168 29 ctime=1499681851.06796637 avahi-0.7/man/Makefile.in0000644000175000017500000007036013130652011016424 0ustar00lathiatlathiat00000000000000# Makefile.in generated by automake 1.15 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2014 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@am__append_1 = \ @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@ avahi-browse.1 \ @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@ avahi-resolve.1 \ @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@ avahi-publish.1 \ @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@ avahi-set-host-name.1 @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@am__append_2 = \ @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@ bssh.1 @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@@HAVE_PYTHON_TRUE@am__append_3 = \ @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@@HAVE_PYTHON_TRUE@ avahi-bookmarks.1 @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_PYTHON_TRUE@am__append_4 = \ @BUILD_MANPAGES_TRUE@@HAVE_DBUS_TRUE@@HAVE_GTK_TRUE@@HAVE_PYTHON_TRUE@ avahi-discover.1 @BUILD_MANPAGES_TRUE@@ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@am__append_5 = \ @BUILD_MANPAGES_TRUE@@ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ avahi-autoipd.8 \ @BUILD_MANPAGES_TRUE@@ENABLE_AUTOIPD_TRUE@@HAVE_LIBDAEMON_TRUE@ avahi-autoipd.action.8 @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@am__append_6 = $(man_MANS) @HAVE_DBUS_TRUE@@HAVE_GLIB_TRUE@@HAVE_GTK_TRUE@am__append_7 = $(LN_S) bssh.1 bvnc.1 && subdir = man ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/acx_pthread.m4 \ $(top_srcdir)/common/gcc_stack_protect.m4 \ $(top_srcdir)/common/gcc_visibility.m4 \ $(top_srcdir)/common/intltool.m4 \ $(top_srcdir)/common/introspection.m4 \ $(top_srcdir)/common/libtool.m4 \ $(top_srcdir)/common/ltoptions.m4 \ $(top_srcdir)/common/ltsugar.m4 \ $(top_srcdir)/common/ltversion.m4 \ $(top_srcdir)/common/lt~obsolete.m4 \ $(top_srcdir)/common/nls.m4 $(top_srcdir)/common/python.m4 \ $(top_srcdir)/acinclude.m4 $(top_srcdir)/common/doxygen.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" \ "$(DESTDIR)$(man8dir)" man5dir = $(mandir)/man5 man8dir = $(mandir)/man8 NROFF = nroff MANS = $(man_MANS) DATA = $(noinst_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVAHI_AUTOIPD_GROUP = @AVAHI_AUTOIPD_GROUP@ AVAHI_AUTOIPD_USER = @AVAHI_AUTOIPD_USER@ AVAHI_GROUP = @AVAHI_GROUP@ AVAHI_PRIV_ACCESS_GROUP = @AVAHI_PRIV_ACCESS_GROUP@ AVAHI_USER = @AVAHI_USER@ AWK = @AWK@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DBUS_SYSTEM_BUS_DEFAULT_ADDRESS = @DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ DBUS_SYS_DIR = @DBUS_SYS_DIR@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ DX_CONFIG = @DX_CONFIG@ DX_DOCDIR = @DX_DOCDIR@ DX_DOT = @DX_DOT@ DX_DOXYGEN = @DX_DOXYGEN@ DX_DVIPS = @DX_DVIPS@ DX_EGREP = @DX_EGREP@ DX_ENV = @DX_ENV@ DX_FLAG_chi = @DX_FLAG_chi@ DX_FLAG_chm = @DX_FLAG_chm@ DX_FLAG_doc = @DX_FLAG_doc@ DX_FLAG_dot = @DX_FLAG_dot@ DX_FLAG_html = @DX_FLAG_html@ DX_FLAG_man = @DX_FLAG_man@ DX_FLAG_pdf = @DX_FLAG_pdf@ DX_FLAG_ps = @DX_FLAG_ps@ DX_FLAG_rtf = @DX_FLAG_rtf@ DX_FLAG_xml = @DX_FLAG_xml@ DX_HHC = @DX_HHC@ DX_LATEX = @DX_LATEX@ DX_MAKEINDEX = @DX_MAKEINDEX@ DX_PDFLATEX = @DX_PDFLATEX@ DX_PERL = @DX_PERL@ DX_PROJECT = @DX_PROJECT@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GACUTIL = @GACUTIL@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GLIB20_CFLAGS = @GLIB20_CFLAGS@ GLIB20_LIBS = @GLIB20_LIBS@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GOBJECT_CFLAGS = @GOBJECT_CFLAGS@ GOBJECT_LIBS = @GOBJECT_LIBS@ GREP = @GREP@ GTK20_CFLAGS = @GTK20_CFLAGS@ GTK20_LIBS = @GTK20_LIBS@ GTK30_CFLAGS = @GTK30_CFLAGS@ GTK30_LIBS = @GTK30_LIBS@ HOWL_COMPAT_VERSION = @HOWL_COMPAT_VERSION@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ INTLTOOL_MERGE = @INTLTOOL_MERGE@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@ INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@ INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@ INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@ INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@ INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@ INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@ INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@ INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBAVAHI_CLIENT_VERSION_INFO = @LIBAVAHI_CLIENT_VERSION_INFO@ LIBAVAHI_COMMON_VERSION_INFO = @LIBAVAHI_COMMON_VERSION_INFO@ LIBAVAHI_COMPAT_HOWL_VERSION_INFO = @LIBAVAHI_COMPAT_HOWL_VERSION_INFO@ LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO = @LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO@ LIBAVAHI_CORE_VERSION_INFO = @LIBAVAHI_CORE_VERSION_INFO@ LIBAVAHI_GLIB_VERSION_INFO = @LIBAVAHI_GLIB_VERSION_INFO@ LIBAVAHI_GOBJECT_VERSION_INFO = @LIBAVAHI_GOBJECT_VERSION_INFO@ LIBAVAHI_QT3_VERSION_INFO = @LIBAVAHI_QT3_VERSION_INFO@ LIBAVAHI_QT4_VERSION_INFO = @LIBAVAHI_QT4_VERSION_INFO@ LIBAVAHI_UI_VERSION_INFO = @LIBAVAHI_UI_VERSION_INFO@ LIBDAEMON_CFLAGS = @LIBDAEMON_CFLAGS@ LIBDAEMON_LIBS = @LIBDAEMON_LIBS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MCS = @MCS@ MDASSEMBLER = @MDASSEMBLER@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MOC_QT3 = @MOC_QT3@ MOC_QT4 = @MOC_QT4@ MONODOCER = @MONODOCER@ MONODOC_CFLAGS = @MONODOC_CFLAGS@ MONODOC_DIR = @MONODOC_DIR@ MONODOC_LIBS = @MONODOC_LIBS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ PTHREAD_CC = @PTHREAD_CC@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ PTHREAD_LIBS = @PTHREAD_LIBS@ PYGOBJECT_CFLAGS = @PYGOBJECT_CFLAGS@ PYGOBJECT_LIBS = @PYGOBJECT_LIBS@ PYTHON = @PYTHON@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT3_CFLAGS = @QT3_CFLAGS@ QT3_LIBS = @QT3_LIBS@ QT4_CFLAGS = @QT4_CFLAGS@ QT4_LIBS = @QT4_LIBS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STOW = @STOW@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VISIBILITY_HIDDEN_CFLAGS = @VISIBILITY_HIDDEN_CFLAGS@ XGETTEXT = @XGETTEXT@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ acx_pthread_config = @acx_pthread_config@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ avahi_runtime_dir = @avahi_runtime_dir@ avahi_socket = @avahi_socket@ avahilocaledir = @avahilocaledir@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ have_pkg_config = @have_pkg_config@ have_xmltoman = @have_xmltoman@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ interfacesdir = @interfacesdir@ intltool__v_merge_options_ = @intltool__v_merge_options_@ intltool__v_merge_options_0 = @intltool__v_merge_options_0@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ systemdsystemunitdir = @systemdsystemunitdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ pkgsysconfdir = $(sysconfdir)/avahi servicedir = $(pkgsysconfdir)/services @BUILD_MANPAGES_TRUE@man_MANS = avahi-daemon.8 avahi-dnsconfd.8 \ @BUILD_MANPAGES_TRUE@ avahi-daemon.conf.5 \ @BUILD_MANPAGES_TRUE@ avahi-dnsconfd.action.8 avahi.service.5 \ @BUILD_MANPAGES_TRUE@ avahi.hosts.5 $(am__append_1) \ @BUILD_MANPAGES_TRUE@ $(am__append_2) $(am__append_3) \ @BUILD_MANPAGES_TRUE@ $(am__append_4) $(am__append_5) @BUILD_MANPAGES_TRUE@noinst_DATA = \ @BUILD_MANPAGES_TRUE@ avahi-browse.1.xml \ @BUILD_MANPAGES_TRUE@ avahi-publish.1.xml \ @BUILD_MANPAGES_TRUE@ avahi-resolve.1.xml \ @BUILD_MANPAGES_TRUE@ avahi-set-host-name.1.xml \ @BUILD_MANPAGES_TRUE@ avahi-daemon.8.xml \ @BUILD_MANPAGES_TRUE@ avahi-discover.1.xml \ @BUILD_MANPAGES_TRUE@ avahi-bookmarks.1.xml \ @BUILD_MANPAGES_TRUE@ avahi-dnsconfd.8.xml \ @BUILD_MANPAGES_TRUE@ avahi-daemon.conf.5.xml \ @BUILD_MANPAGES_TRUE@ avahi-dnsconfd.action.8.xml \ @BUILD_MANPAGES_TRUE@ avahi.service.5.xml \ @BUILD_MANPAGES_TRUE@ avahi.hosts.5.xml \ @BUILD_MANPAGES_TRUE@ avahi-autoipd.8.xml \ @BUILD_MANPAGES_TRUE@ avahi-autoipd.action.8.xml \ @BUILD_MANPAGES_TRUE@ bssh.1.xml @BUILD_MANPAGES_TRUE@CLEANFILES = $(noinst_DATA) $(am__append_6) EXTRA_DIST = \ $(man_MANS) \ avahi-browse.1.xml.in \ avahi-publish.1.xml.in \ avahi-resolve.1.xml.in \ avahi-set-host-name.1.xml.in \ avahi-daemon.8.xml.in \ avahi-discover.1.xml.in \ avahi-bookmarks.1.xml.in \ avahi-dnsconfd.8.xml.in \ avahi-daemon.conf.5.xml.in \ avahi-dnsconfd.action.8.xml.in \ avahi.service.5.xml.in \ avahi.hosts.5.xml.in \ avahi-autoipd.action.8.xml.in \ avahi-autoipd.8.xml.in \ bssh.1.xml.in \ xmltoman.css \ xmltoman.xsl \ xmltoman.dtd @HAVE_DBUS_TRUE@BSSH_LN = $(am__append_7) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign man/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-man5: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man5dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man5dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man5dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.5[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man5dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man5dir)" || exit $$?; }; \ done; } uninstall-man5: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man5dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.5[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^5][0-9a-z]*$$,5,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man5dir)'; $(am__uninstall_files_from_dir) install-man8: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man8dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.8[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \ done; } uninstall-man8: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man8dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.8[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) $(DATA) installdirs: for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." @HAVE_DBUS_FALSE@install-exec-local: clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-exec-local install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-man5 install-man8 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man1 uninstall-man5 uninstall-man8 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-exec-local \ install-html install-html-am install-info install-info-am \ install-man install-man1 install-man5 install-man8 install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am uninstall-man uninstall-man1 uninstall-man5 \ uninstall-man8 .PRECIOUS: Makefile @BUILD_MANPAGES_TRUE@%.xml: %.xml.in Makefile @BUILD_MANPAGES_TRUE@ $(AM_V_GEN) sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ @BUILD_MANPAGES_TRUE@ -e 's,@servicedir\@,$(servicedir),g' \ @BUILD_MANPAGES_TRUE@ -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \ @BUILD_MANPAGES_TRUE@ -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@%.1: %.1.xml Makefile @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@ $(AM_V_GEN)xmltoman $< > $@ @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@%.5: %.5.xml Makefile @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@ $(AM_V_GEN)xmltoman $< > $@ @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@%.8: %.8.xml Makefile @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@ $(AM_V_GEN)xmltoman $< > $@ @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@xmllint: $(noinst_DATA) @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@ for f in $(noinst_DATA) ; do \ @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@ xmllint --noout --valid "$$f" || exit 1 ; \ @BUILD_MANPAGES_TRUE@@USE_XMLTOMAN_TRUE@ done @HAVE_DBUS_TRUE@install-exec-local: @HAVE_DBUS_TRUE@ mkdir -p $(DESTDIR)/$(mandir)/man1 && \ @HAVE_DBUS_TRUE@ cd $(DESTDIR)/$(mandir)/man1 && \ @HAVE_DBUS_TRUE@ rm -f avahi-resolve-host-name.1 avahi-resolve-address.1 avahi-browse-domains.1 avahi-publish-address.1 avahi-publish-service.1 bvnc.1 && \ @HAVE_DBUS_TRUE@ $(BSSH_LN) \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-resolve.1 avahi-resolve-host-name.1 && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-resolve.1 avahi-resolve-address.1 && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-browse.1 avahi-browse-domains.1 && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-publish.1 avahi-publish-address.1 && \ @HAVE_DBUS_TRUE@ $(LN_S) avahi-publish.1 avahi-publish-service.1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: avahi-0.7/man/PaxHeaders.10109/xmltoman.xsl0000644000000000000000000000013213130651643015343 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681851.087965924 avahi-0.7/man/xmltoman.xsl0000644000175000017500000000740713130651643016762 0ustar00lathiatlathiat00000000000000 <xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>)

    Name

    -

    Synopsis

    Synopsis

    Description

    Options

    () ()
    avahi-0.7/man/PaxHeaders.10109/avahi-publish.1.xml.in0000644000000000000000000000013213130651643016776 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.959968781 30 ctime=1499681851.079966103 avahi-0.7/man/avahi-publish.1.xml.in0000644000175000017500000001073613130651643020414 0ustar00lathiatlathiat00000000000000 avahi-publish -s [options] name service-type port [TXT data ...] avahi-publish-service [options] name service-type port [TXT data ...] avahi-publish -a [options] host name address avahi-publish-address [options] host name address

    Register an mDNS/DNS-SD service or host name/address mapping using the Avahi daemon.

    When calling in service registration mode, specify a DNS-SD service name (e.g. "Lennart's Files"), a service type (e.g. _http._tcp) and an IP port number for the service, optionally followed by any number of TXT record strings on the command line. When calling in address/host name registration mode specify a fully qualified host name and an address (IPv4 or IPv6).

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    , ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-discover.10000644000000000000000000000013213130652073015740 xustar0030 mtime=1499681851.031967174 30 atime=1499681851.019967441 30 ctime=1499681851.075966193 avahi-0.7/man/avahi-discover.10000644000175000017500000000116413130652073017351 0ustar00lathiatlathiat00000000000000.TH avahi-discover 1 User Manuals .SH NAME avahi-discover \- Browse for mDNS/DNS-SD services using the Avahi daemon .SH SYNOPSIS \fBavahi-discover \f1 .SH DESCRIPTION Show a real-time graphical browse list for mDNS/DNS-SD network services running on the local LAN using the Avahi daemon. .SH OPTIONS avahi-discover takes no command line arguments at the moment. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-daemon(8)\f1, \fBavahi-browse(1)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi.hosts.5.xml.in0000644000000000000000000000013213130651643016475 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.911969848 30 ctime=1499681851.083966014 avahi-0.7/man/avahi.hosts.5.xml.in0000644000175000017500000000407713130651643020114 0ustar00lathiatlathiat00000000000000 @pkgsysconfdir@/hosts

    @pkgsysconfdir@/hosts is a file which may be used to define static host name to IP address mappings for multicast DNS. This is especially useful when publishing DNS-SD services on behalf of other hosts. See for more information.

    The file format is similar to the one of /etc/hosts: on each line an IP address and the corresponding host name. The host names should be in FQDN form, i.e. with appended .local suffix.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-browse.1.xml.in0000644000000000000000000000013213130651643016631 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.927969494 30 ctime=1499681851.075966193 avahi-0.7/man/avahi-browse.1.xml.in0000644000175000017500000001133213130651643020240 0ustar00lathiatlathiat00000000000000 avahi-browse [options] service-type avahi-browse [options] --all avahi-browse [options] --browse-domains avahi-browse [options] --dump-db avahi-browse-domains [options]

    Browse for mDNS/DNS-SD network services and browsing domains using the Avahi daemon.

    Specify a DNS-SD service type (e.g. _http._tcp) to browse for on the command line, or -a to browse for all available service types. Items that appear on the network are prefixed with "+", items that disappear are prefixed with "-". If --resolve is passed items that are resolved are prefixed with "=".

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    , ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/bssh.10000644000000000000000000000013213130652073013773 xustar0030 mtime=1499681851.003967796 30 atime=1499681850.991968066 30 ctime=1499681851.075966193 avahi-0.7/man/bssh.10000644000175000017500000000252413130652073015405 0ustar00lathiatlathiat00000000000000.TH bssh/bvnc/bshell 1 User Manuals .SH NAME bssh/bvnc/bshell \- Browse for SSH/VNC servers on the local network .SH SYNOPSIS \fBbssh bvnc bshell \f1 .SH DESCRIPTION bssh/bvnc/bshell browses for SSH/VNC servers on the local network, shows them in a GUI for the user to select one and finally calls ssh/vncviewer after a selection was made. If the binary is called as bssh only ssh servers will be shown. If the binary is called as bvnc only VNC servers will be shown. If the binary is called as bshell both VNC and SSH servers are shown. .SH OPTIONS .TP \fB-s | --ssh\f1 Browse for SSH servers (and only SSH servers) regardless under which name the binary is called. .TP \fB-v | --vnc\f1 Browse for VNC servers (and only VNC servers) regardless under which name the binary is called. .TP \fB-S | --shell\f1 Browse for both VNC and SSH servers regardless under which name the binary is called. .TP \fB-d | --domain=\f1 \fIDOMAIN\f1 Browse in the specified domain. If omitted bssh/bvnc/bshell will browse in the default browsing domain (usually .local) .TP \fB-h | --help\f1 Show help. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-browse(1)\f1, \fBssh(1)\f1, \fBvncviewer(1)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-dnsconfd.action.8.xml.in0000644000000000000000000000013213130651643020411 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.883970475 30 ctime=1499681851.083966014 avahi-0.7/man/avahi-dnsconfd.action.8.xml.in0000644000175000017500000000602013130651643022016 0ustar00lathiatlathiat00000000000000 @pkgsysconfdir@/avahi-dnsconfd.action

    avahi-dnsconfd.action is the action script that is called whenever a new unicast DNS server is found or removed by avahi-dnsconfd. The default script as shipped with avahi patches /etc/resolv.conf to reflect the changed unicast DNS server configuration.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/bssh.1.xml.in0000644000000000000000000000013213130651643015201 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.987968156 30 ctime=1499681851.087965924 avahi-0.7/man/bssh.1.xml.in0000644000175000017500000000572413130651643016620 0ustar00lathiatlathiat00000000000000 bssh bvnc bshell

    bssh/bvnc/bshell browses for SSH/VNC servers on the local network, shows them in a GUI for the user to select one and finally calls ssh/vncviewer after a selection was made.

    If the binary is called as bssh only ssh servers will be shown. If the binary is called as bvnc only VNC servers will be shown. If the binary is called as bshell both VNC and SSH servers are shown.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    , ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-autoipd.action.80000644000000000000000000000013213130652073017052 xustar0030 mtime=1499681851.063966459 30 atime=1499681851.051966728 30 ctime=1499681851.075966193 avahi-0.7/man/avahi-autoipd.action.80000644000175000017500000000304213130652073020460 0ustar00lathiatlathiat00000000000000.TH avahi-autoipd.action 8 User Manuals .SH NAME avahi-autoipd.action \- avahi-autoipd action script .SH SYNOPSIS \fB/usr/local/etc/avahi/avahi-autoipd.action \f1 .SH DESCRIPTION \fIavahi-autoipd.action\f1 is the action script that is called whenever an IP address has been acquired by avahi-autoipd or when it detected an IP address conflict. The script should add or remove the specified address from the specified network interface. .SH PARAMETERS .TP \fBargv[1]\f1 An event string: one of BIND, CONFLICT, UNBIND or STOP. If BIND is passed an IP address has been successfully acquired and the script shall add it to the network interface. If CONFLICT is passed avahi-autopid detected a IP address on the local network, the action script should remove the configured IP address. If UNBIND is passed the IP address should be removed from the interface, too, because a routable address has been configured to the interface by some other program. If STOP is passed the avahi-autoipd is being shutdown and the action script should remove the IP address. In short: on BIND the address should be added to the interface, on CONFLICT, UNBIND or STOP it should be removed. .TP \fBargv[2]\f1 The network interface name. .TP \fBargv[3]\f1 An IP address from the IPv4LL range. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-autoipd(8)\f1, \fBdhclient-script(8)\f1, \fBip(8)\f1, \fBifconfig(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-discover.1.xml.in0000644000000000000000000000013213130651643017146 xustar0030 mtime=1499681699.139369856 30 atime=1499681851.019967441 30 ctime=1499681851.079966103 avahi-0.7/man/avahi-discover.1.xml.in0000644000175000017500000000343313130651643020560 0ustar00lathiatlathiat00000000000000 avahi-discover

    Show a real-time graphical browse list for mDNS/DNS-SD network services running on the local LAN using the Avahi daemon.

    avahi-discover takes no command line arguments at the moment.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-daemon.80000644000000000000000000000013013130652072015371 xustar0029 mtime=1499681850.84797128 30 atime=1499681850.835971547 29 ctime=1499681851.06796637 avahi-0.7/man/avahi-daemon.80000644000175000017500000000775313130652072017016 0ustar00lathiatlathiat00000000000000.TH avahi-daemon 8 User Manuals .SH NAME avahi-daemon \- The Avahi mDNS/DNS-SD daemon .SH SYNOPSIS \fBavahi-daemon [\fIoptions\fB] avahi-daemon --kill\fB avahi-daemon --reload\fB avahi-daemon --check\fB \f1 .SH DESCRIPTION The Avahi mDNS/DNS-SD daemon implements Apple's Zeroconf architecture (also known as "Rendezvous" or "Bonjour"). The daemon registers local IP addresses and static services using mDNS/DNS-SD and provides two IPC APIs for local programs to make use of the mDNS record cache the avahi-daemon maintains. First there is the so called "simple protocol" which is used exclusively by avahi-dnsconfd (a daemon which configures unicast DNS servers using server info published via mDNS) and nss-mdns (a libc NSS plugin, providing name resolution via mDNS). Finally there is the D-Bus interface which provides a rich object oriented interface to D-Bus enabled applications. Upon startup avahi-daemon interprets its configuration file \fI/usr/local/etc/avahi/avahi-daemon.conf\f1 and reads XML fragments from \fI/usr/local/etc/avahi/services/*.service\f1 which may define static DNS-SD services. If you enable \fBpublish-resolv-conf-dns-servers\f1 in \fIavahi-daemon.conf\f1 the file \fI/etc/resolv.conf\f1 will be read, too. .SH OPTIONS .TP \fB-f | --file=\f1 \fIFILE\f1 Specify the configuration file to read. (default: /usr/local/etc/avahi/avahi-daemon.conf) .TP \fB-D | --daemonize\f1 Daemonize after startup. Implies \fB--syslog\f1. .TP \fB-s | --syslog\f1 Log to syslog instead of STDERR. Implied by \fB--daemonize\f1. .TP \fB--debug\f1 Increase verbosity to debug level. .TP \fB--no-rlimits\f1 Don't enforce resource limits as specified in the configuration file. (See \fBsetrlimit(2)\f1 for more information) .TP \fB--no-drop-root\f1 Don't drop root privileges after startup and don't require daemon to be started as root. We recommend not to use this option. .TP \fB--no-chroot\f1 Don't \fBchroot(2)\f1 the daemon. This option is only available when compiled with chroot() support. .TP \fB--no-proc-title\f1 Don't change the process name while running. Unless this option is specified avahi-daemon will reflect its current state and the selected host name in the process title. .TP \fB-k | --kill\f1 Kill an already running avahi-daemon. (equivalent to sending a SIGTERM) .TP \fB-r | --reload\f1 Tell an already running avahi-daemon to reread \fI/etc/resolv.conf\f1 (in case you enabled \fBpublish-resolv-conf-dns-servers\f1 in \fIavahi-daemon.conf\f1) the files from \fI/usr/local/etc/avahi/services/\f1. Please note that this will not reload the \fI/usr/local/etc/avahi/avahi-daemon.conf\f1. (equivalent to sending a SIGHUP) .TP \fB-c | --check\f1 Return 0 as return code when avahi-daemon is already running. .TP \fB-h | --help\f1 Show help .TP \fB-v | --version\f1 Show version information .SH FILES \fI/usr/local/etc/avahi/avahi-daemon.conf\f1: the default configuration file for avahi-daemon, \fBavahi-daemon.conf(5)\f1 for more information. \fI/usr/local/etc/avahi/hosts\f1: additional static hostname mappings to publish in mDNS, see \fBavahi.hosts(5)\f1 for more information. \fI/usr/local/etc/avahi/services/*.service\f1: static service definitions, see \fBavahi.service(5)\f1 for more information. .SH SIGNALS \fISIGINT, SIGTERM\f1: avahi-daemon will shutdown. (Same as \fB--kill\f1). \fISIGHUP\f1: avahi-daemon will reload unicast DNS server data from \fI/etc/resolv.conf\f1 and static service definitions from \fI/usr/local/etc/avahi/services/\f1. (Same as \fB--reload\f1) \fISIGUSR1\f1: avahi-daemon will dump local and remote cached resource record data to syslog. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-daemon.conf(5)\f1, \fBavahi.hosts(5)\f1, \fBavahi.service(5)\f1, \fBavahi-dnsconfd(8)\f1, \fBavahi-set-host-name(1)\f1 http://avahi.org/wiki/AvahiAndUnicastDotLocal documents the problems when using Avahi in a unicast DNS zone .local. .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-daemon.conf.50000644000000000000000000000013113130652072016313 xustar0030 mtime=1499681850.879970565 30 atime=1499681850.867970834 29 ctime=1499681851.06796637 avahi-0.7/man/avahi-daemon.conf.50000644000175000017500000003055413130652072017732 0ustar00lathiatlathiat00000000000000.TH avahi-daemon.conf 5 User Manuals .SH NAME avahi-daemon.conf \- avahi-daemon configuration file .SH SYNOPSIS \fB/usr/local/etc/avahi/avahi-daemon.conf \f1 .SH DESCRIPTION \fIavahi-daemon.conf\f1 is the configuration file for avahi-daemon. .SH SECTION [SERVER] .TP \fBhost-name=\f1 Set the host name avahi-daemon tries to register on the LAN. If omited defaults to the system host name as set with the sethostname() system call. .TP \fBhost-name-from-machine-id=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will use the machine-id as name on the LAN. .TP \fBdomain-name=\f1 Set the default domain name avahi-daemon tries to register its host name and services on the LAN in. If omitted defaults to ".local". .TP \fBbrowse-domains=\f1 Set a comma separated list of browsing domains (in addition to the default one and those announced inside the default browsing domain). Please note that the user may specify additional browsing domains on the client side, either by setting $AVAHI_BROWSE_DOMAINS to a list of colon separated domains or by adding them to the XDG config file \fI~/.config/avahi/browse-domains\f1 (separated by newlines). .TP \fBuse-ipv4=\f1 Takes a boolean value ("yes" or "no"). If set to "no" avahi-daemon will not use IPv4 sockets. Default is "yes". .TP \fBuse-ipv6=\f1 Takes a boolean value ("yes" or "no"). If set to "no" avahi-daemon will not use IPv6 sockets. Default is "yes". .TP \fBallow-interfaces=\f1 Set a comma separated list of allowed network interfaces that should be used by the avahi-daemon. Traffic on other interfaces will be ignored. If set to an empty list all local interfaces except loopback and point-to-point will be used. .TP \fBdeny-interfaces=\f1 Set a comma separated list of network interfaces that should be ignored by avahi-daemon. Other not specified interfaces will be used, unless \fBallow-interfaces=\f1 is set. This option takes precedence over \fBallow-interfaces=\f1. .TP \fBcheck-response-ttl=\f1 Takes a boolean value ("yes" or "no"). If set to "yes", an additional security check is activated: incoming IP packets will be ignored unless the IP TTL is 255. Earlier mDNS specifications required this check. Since this feature may be incompatible with newer implementations of mDNS it defaults to "no". On the other hand it provides extra security. .TP \fBuse-iff-running=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon monitors the IFF_RUNNING flag bit which is used by some (modern) network drivers to tell user space if a network cable is plugged in (in case of copper ethernet), or the network card is associated with some kind of network (in case of WLAN). If IFF_RUNNING is set avahi-daemon will automatically announce its services on that network. Unfortunately far too many network drivers do not support this flag or support it in a broken way. Therefore this option defaults to "no". .TP \fBenable-dbus=\f1 Takes either "yes", "no" or "warn". If set to "yes" avahi-daemon connects to D-Bus, offering an object oriented client API. It is only available if Avahi has been compiled with \fB--enable-dbus\f1 in which case it defaults to "yes". "warn" behaves like "yes", but the daemon starts up even when it fails to connect to a D-Bus daemon. In addition, if the connection to the D-Bus daemon is terminated we try to reconnect. (Unless we are in a chroot() environment where this definitely will fail.) .TP \fBdisallow-other-stacks=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" no other process is allowed to bind to UDP port 5353. This effectively impedes other mDNS stacks from running on the host. Use this as a security measure to make sure that only Avahi is responsible for mDNS traffic. Please note that we do not recommend running multiple mDNS stacks on the same host simultaneously. This hampers reliability and is a waste of resources. However, to not annoy people this option defaults to "no". .TP \fBallow-point-to-point=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will make use of interfaces with the POINTOPOINT flag set. This option defaults to "no" as it might make mDNS unreliable due to usually large latencies with such links and opens a potential security hole by allowing mDNS access from Internet connections. Use with care and YMMV! .TP \fBcache-entries-max=\f1 Takes an unsigned integer specifying how many resource records are cached per interface. Bigger values allow mDNS work correctly in large LANs but also increase memory consumption. .TP \fBclients-max=\f1 Takes an unsigned integer. The maximum number of concurrent D-Bus clients allowed. If the maximum number is reached further clients will be refused until at least one existing client disconnects. .TP \fBobjects-per-client-max=\f1 Takes an unsigned integer. The maximum number of objects (entry groups, browsers, resolvers) that may be registered per D-Bus client at a time. If the maximum number is reached further object creation will be refused until at least one object is freed. .TP \fBentries-per-entry-group-max=\f1 Takes an unsigned integer. The maximum number of entries (resource records) per entry group registered by a D-Bus client at a time. If the maximum number is reached further resource records may not be added to an entry group. .TP \fBratelimit-interval-usec=\f1 Takes an unsigned integer. Sets the per-interface packet rate-limiting interval parameter. Together with \fBratelimit-burst=\f1 this may be used to control the maximum number of packets Avahi will generated in a specific period of time on an interface. .TP \fBratelimit-burst=\f1 Takes an unsigned integer. Sets the per-interface packet rate-limiting burst parameter. Together with \fBratelimit-interval-usec=\f1 this may be used to control the maximum number of packets Avahi will generated in a specific period of time on an interface. .SH SECTION [WIDE-AREA] .TP \fBenable-wide-area=\f1 Takes a boolean value ("yes" or "no"). Enable wide-area DNS-SD, aka DNS-SD over unicast DNS. If this is enabled only domains ending in .local will be resolved on mDNS, all other domains are resolved via unicast DNS. If you want to maintain multiple different multicast DNS domains even with this option enabled we encourage you to use subdomains of .local, such as "kitchen.local". This option defaults to "yes". .SH SECTION [PUBLISH] .TP \fBdisable-publishing=\f1 Takes a boolean value ("yes" or "no"). If set to "yes", no record will be published by Avahi, not even address records for the local host. Avahi will be started in a querying-only mode. Use this is a security measure. This option defaults to "no" .TP \fBdisable-user-service-publishing=\f1 Takes a boolean value ("yes" or "no"). If set to "yes", Avahi will still publish address records and suchlike but will not allow user applications to publish services. Use this is a security measure. This option defaults to "no" .TP \fBadd-service-cookie=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" an implicit TXT entry will be added to all locally registered services, containing a cookie value which is chosen randomly on daemon startup. This can be used to detect if two services on two different interfaces/protocols are actually identical. Defaults to "no". .TP \fBpublish-addresses=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will register mDNS address records for all local IP addresses. Unless you want to use avahi-daemon exclusively for browsing it's recommended to enable this. If you plan to register local services you need to enable this option. Defaults to "yes". .TP \fBpublish-hinfo=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will register an mDNS HINFO record on all interfaces which contains information about the local operating system and CPU, which might be useful for administrative purposes. This is recommended by the mDNS specification but not required. For the sake of privacy you might choose to disable this feature. Defaults to "no". .TP \fBpublish-workstation=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will register a service of type "_workstation._tcp" on the local LAN. This might be useful for administrative purposes (i.e. browse for all PCs on the LAN), but is not required or recommended by any specification. Newer MacOS X releases register a service of this type. Defaults to "no". .TP \fBpublish-domain=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will announce the locally used domain name (see above) for browsing by other hosts. Defaults to "yes". .TP \fBpublish-dns-servers=\f1 Takes a comma separated list of IP addresses for unicast DNS servers. You can use this to announce unicast DNS servers via mDNS. When used in conjunction with avahi-dnsconfd on the client side this allows DHCP-like configuration of unicast DNS servers. .TP \fBpublish-resolv-conf-dns-servers=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will publish the unicast DNS servers specified in \fI/etc/resolv.conf\f1 in addition to those specified with \fBpublish-dns-servers\f1. Send avahi-daemon a SIGHUP to have it reload this file. Defaults to "no". .TP \fBpublish-aaaa-on-ipv4=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will publish an IPv6 AAAA record via IPv4, i.e. the local IPv6 addresses can be resolved using an IPv4 transport. Only useful when IPv4 is enabled with \fBuse-ipv4=true\f1. Defaults to "yes". .TP \fBpublish-a-on-ipv6=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will publish an IPv4 A record via IPv6, i.e. the local IPv4 addresses can be resolved using an IPv6 transport. Only useful when IPv6 is enabled with \fBuse-ipv6=true\f1. Defaults to "no". .SH SECTION [REFLECTOR] .TP \fBenable-reflector=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" avahi-daemon will reflect incoming mDNS requests to all local network interfaces, effectively allowing clients to browse mDNS/DNS-SD services on all networks connected to the gateway. The gateway is somewhat intelligent and should work with all kinds of mDNS traffic, though some functionality is lost (specifically the unicast reply bit, which is used rarely anyway). Make sure to not run multiple reflectors between the same networks, this might cause them to play Ping Pong with mDNS packets. Defaults to "no". .TP \fBreflect-ipv=\f1 Takes a boolean value ("yes" or "no"). If set to "yes" and \fBenable-reflector\f1 is enabled, avahi-daemon will forward mDNS traffic between IPv4 and IPv6, which is usually not recommended. Defaults to "no". .SH SECTION [RLIMITS] This section is used to define system resource limits for the daemon. See \fBsetrlimit(2)\f1 for more information. If any of the options is not specified in the configuration file, avahi-daemon does not change it from the system defaults. .TP \fBrlimit-as=\f1 Value in bytes for RLIMIT_AS (maximum size of the process's virtual memory). Sensible values are heavily system dependent. .TP \fBrlimit-core=\f1 Value in bytes for RLIMIT_CORE (maximum core file size). Unless you want to debug avahi-daemon, it is safe to set this to 0. .TP \fBrlimit-data=\f1 Value in bytes for RLIMIT_DATA (maximum size of the process's data segment). Sensible values are heavily system dependent. .TP \fBrlimit-fsize=\f1 Value for RLIMIT_FSIZE (maximum size of files the process may create). Since avahi-daemon shouldn't write any files to disk, it is safe to set this to 0. .TP \fBrlimit-nofile=\f1 Value for RLIMIT_NOFILE (open file descriptors). avahi-daemon shouldn't need more than 15 to 20 open file descriptors concurrently. .TP \fBrlimit-stack=\f1 Value in bytes for RLIMIT_STACK (maximum size of the process stack). Sensible values are heavily system dependent. .TP \fBrlimit-nproc=\f1 Value for RLIMIT_NPROC (max number of processes a user can launch). avahi-daemon forks of a helper process on systems where \fBchroot(2)\f1 is available therefore this value should not be set below 2. Note that while the process limit only applies to this process, the total count of processes to reach that limit includes all processes on the system with the same UID, including any containers without UID remapping (such as lxd containers with security.privileged=true). The default configuration of 3 was removed to prevent problems in this scenario. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-daemon(8)\f1, \fBavahi-dnsconfd(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-bookmarks.10000644000000000000000000000013213130652073016112 xustar0030 mtime=1499681851.015967531 30 atime=1499681851.003967796 30 ctime=1499681851.075966193 avahi-0.7/man/avahi-bookmarks.10000644000175000017500000000346213130652073017526 0ustar00lathiatlathiat00000000000000.TH avahi-bookmarks 1 User Manuals .SH NAME avahi-bookmarks \- Web service showing mDNS/DNS-SD announced HTTP services using the Avahi daemon .SH SYNOPSIS \fBavahi-bookmarks \f1 .SH DESCRIPTION A web service for listing HTTP services that are announced via mDNS/DNS-SD using the Avahi daemon. avahi-bookmarks opens a TCP socket on port 8080 and waits for incoming HTTP connections returning a dynamic web site containing links to all services of type _http._tcp on the LAN. Point your browser to http://localhost:8080/ to make use of avahi-bookmarks. .SH OPTIONS .TP \fB-p | --port=\f1 \fIPORT\f1 Specify a TCP port number to listen on. If omitted defaults to 8080. .TP \fB-a | --address=\f1 \fIaddress\f1 Specify an IP address to listen on. If omitted defaults to 127.0.0.1. Specify 0.0.0.0 if you want to allow remote access. .TP \fB-H | --host-names\f1 Create links pointing to mDNS host names instead of resolved IP addreses. This is only compatible with your browser if you run some kind of local NSS module to resolve mDNS host names (e.g. nss-mdns). If both -A and -H are ommited avahi-bookmarks detects whether NSS support is available locally. This option conflicts with -A. .TP \fB-A | --addresses\f1 Create links pointing to numeric IP addresses instead of mDNS host names. This will break access to hosts running virtual servers. If both -A and -H are ommited avahi-bookmarks detects whether NSS support is available locally. This option conflicts with -H. .TP \fB-d | --domain\f1=\fIDOMAIN\f1 The domain to browse for services in. .TP \fB-h | --help\f1 Show help .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-browse(1)\f1, \fBavahi-daemon(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/xmltoman.css0000644000000000000000000000013213130651643015325 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681851.087965924 avahi-0.7/man/xmltoman.css0000644000175000017500000000222513130651643016735 0ustar00lathiatlathiat00000000000000/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ body { color: black; background-color: white; } a:link, a:visited { color: #900000; } h1 { text-transform:uppercase; font-size: 18pt; } p { margin-left:1cm; margin-right:1cm; } .cmd { font-family:monospace; } .file { font-family:monospace; } .arg { text-transform:uppercase; font-family:monospace; font-style: italic; } .opt { font-family:monospace; font-weight: bold; } .manref { font-family:monospace; } .option .optdesc { margin-left:2cm; } avahi-0.7/man/PaxHeaders.10109/avahi.service.5.xml.in0000644000000000000000000000013213130651643016775 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.899970119 30 ctime=1499681851.083966014 avahi-0.7/man/avahi.service.5.xml.in0000644000175000017500000001354413130651643020413 0ustar00lathiatlathiat00000000000000 @servicedir@/*.service

    @servicedir@/*.service are XML fragments containing static DNS-SD service data. Every service file can contain multiple service definitions which share the same name. This is useful for publishing service data for services which implement multiple protocols. (i.e. a printer implementing _ipp._tcp and _printer._tcp)

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    ,

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi-publish.10000644000000000000000000000013213130652072015567 xustar0030 mtime=1499681850.971968512 30 atime=1499681850.959968781 30 ctime=1499681851.071966279 avahi-0.7/man/avahi-publish.10000644000175000017500000000465513130652072017210 0ustar00lathiatlathiat00000000000000.TH avahi-publish-service 1 User Manuals .SH NAME avahi-publish-service \- Register an mDNS/DNS-SD service or host name or address mapping using the Avahi daemon .SH SYNOPSIS \fBavahi-publish -s [\fIoptions\fB] \fIname\fB \fIservice-type\fB \fIport\fB [\fITXT data\fB ...] avahi-publish-service [\fIoptions\fB] \fIname\fB \fIservice-type\fB \fIport\fB [\fITXT data\fB ...] avahi-publish -a [\fIoptions\fB] \fIhost name\fB \fIaddress\fB avahi-publish-address [\fIoptions\fB] \fIhost name\fB \fIaddress\fB \f1 .SH DESCRIPTION Register an mDNS/DNS-SD service or host name/address mapping using the Avahi daemon. .SH OPTIONS When calling in service registration mode, specify a DNS-SD service name (e.g. "Lennart's Files"), a service type (e.g. _http._tcp) and an IP port number for the service, optionally followed by any number of TXT record strings on the command line. When calling in address/host name registration mode specify a fully qualified host name and an address (IPv4 or IPv6). .TP \fB-s | --service\f1 Register a service. avahi-publish-service is equivalent to avahi-publish -s. .TP \fB-a | --address\f1 Register an address/host name mapping. avahi-publish-address is equivalent to avahi-publish -a. .TP \fB-v | --verbose\f1 Enable verbose mode. .TP \fB-H | --host=\f1 \fIHOSTNAME\f1 Specify a host name for this service, in case it doesn't reside on the local host. This host name needs to be fully qualified and resolvable using mDNS or unicast DNS. .TP \fB-d | --domain=\f1 \fIDOMAIN\f1 Publish the service in the specified domain. If omitted the Avahi daemon will publish it in its default domain (usually .local). .TP \fB--subtype=\f1 \fISUBTYPE\f1 Register the service with an additional subtype in addition to the main type. DNS-SD subtypes have the form _anon._sub._ftp._tcp, where _anon is the identifier of the subtype and _ftp._tcp is the main type. You may pass this option multiple times to register the service with multiple subtypes. .TP \fB-f | --no-fail\f1 Don't fail if the daemon is not found running. Instead, wait until it appears. If it disconnects, try to reconnect. .TP \fB-h | --help\f1 Show help .TP \fB-V | --version\f1 Show version information. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-resolve(1)\f1, \fBavahi-browse(1)\f1, \fBavahi-daemon(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/avahi-set-host-name.1.xml.in0000644000000000000000000000013213130651643020014 xustar0030 mtime=1499681699.139369856 30 atime=1499681850.971968512 30 ctime=1499681851.079966103 avahi-0.7/man/avahi-set-host-name.1.xml.in0000644000175000017500000000404413130651643021425 0ustar00lathiatlathiat00000000000000 avahi-set-host-name host-name

    Set the mDNS host name of a currently running Avahi daemon. The effect of this operation is not persistent across daemon restarts. This operation is usually privileged.

    The Avahi Developers <@PACKAGE_BUGREPORT@>; Avahi is available from

    This man page was written using by Oliver Kurth.

    avahi-0.7/man/PaxHeaders.10109/avahi.service.50000644000000000000000000000013213130652072015566 xustar0030 mtime=1499681850.911969848 30 atime=1499681850.899970119 30 ctime=1499681851.071966279 avahi-0.7/man/avahi.service.50000644000175000017500000000720613130652072017202 0ustar00lathiatlathiat00000000000000.TH avahi.service 5 User Manuals .SH NAME avahi.service \- avahi-daemon static service file .SH SYNOPSIS \fB/usr/local/etc/avahi/services/*.service \f1 .SH DESCRIPTION \fI/usr/local/etc/avahi/services/*.service\f1 are XML fragments containing static DNS-SD service data. Every service file can contain multiple service definitions which share the same name. This is useful for publishing service data for services which implement multiple protocols. (i.e. a printer implementing _ipp._tcp and _printer._tcp) .SH XML TAGS .TP \fB\f1 The document tag of avahi service files. Should contain one \fB\f1 and one or more \fB\f1 elements. .TP \fB\f1 The service name. If \fBreplace-wildcards\f1 is "yes", any occurence of the string "%h" will be replaced by the local host name. This can be used for service names like "Remote Terminal on %h". If \fBreplace-wildcards\f1 is not specified, defaults to "no". .TP \fB\f1 Contains the service information for exactly one service type. Should contain one \fB\f1 and one \fB\f1 element. Optionally it may contain one \fB\f1, one \fB\f1, any number of \fB\f1 and any number of \fB\f1 elements. The attribute \fBprotocol\f1 specifies the protocol to advertise the service on. If \fBany\f1 is used (which is the default), the service will be advertised on both IPv4 and IPv6. .TP \fB\f1 Contains the DNS-SD service type for this service. e.g. "_http._tcp". .TP \fB\f1 Contains an additional DNS-SD service subtype for this service. e.g. "_anon._sub._ftp._tcp". .TP \fB\f1 The domain name this service should be registered. If omited defaults to the default domain of the avahi daemon. (probably .local) .TP \fB\f1 The host name of the host that provides this service. This should be a host that is resolvable by multicast or unicast DNS. Please note that you need to specify a fully-qualified domain name (FQDN) here, i.e. .local is not appended implicitly! The host name doesn't need to be part of the domain specified in \fB\f1. See \fBavahi.hosts(5)\f1 for more information how to publish additional host name mappings. .TP \fB\f1 The IP port number the service listens on. .TP \fB\f1 DNS-SD TXT record data. If \fBvalue-format\f1 is "text", the value of the TXT record is taken verbatim. If \fBvalue-format\f1 is "binary-hex" then the value of TXT record is decoded by taking pairs of characters after the "=" char and interpreting them as the textual representation of the two-digit hexadecimal number. Both uppercase and lowercase hexadecimal digits are allowed. The 0x or 0X prefix is not allowed. This requires the length of the value to be even. If \fBvalue-format\f1 is "binary-base64" then the value of TXT record is decoded with a base64 decoder. The character set used is A-Za-z0-9+/. This requires the length of the value to be a multiple of 4, with "=" as padding at the end. If \fBvalue-format\f1 is not specified, defaults to "text". Examples (all the values are decoded to the string "value" without quotes): key=value key=value key=76616c7565 key=dmFsdWU= .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-daemon(8)\f1, \fBavahi.hosts(5)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/man/PaxHeaders.10109/xmltoman.dtd0000644000000000000000000000013213130651643015310 xustar0030 mtime=1499681699.139369856 30 atime=1499681699.139369856 30 ctime=1499681851.087965924 avahi-0.7/man/xmltoman.dtd0000644000175000017500000000270713130651643016725 0ustar00lathiatlathiat00000000000000 avahi-0.7/man/PaxHeaders.10109/avahi-resolve.10000644000000000000000000000013213130652072015600 xustar0030 mtime=1499681850.955968867 30 atime=1499681850.943969137 30 ctime=1499681851.071966279 avahi-0.7/man/avahi-resolve.10000644000175000017500000000303513130652072017210 0ustar00lathiatlathiat00000000000000.TH avahi-resolve 1 User Manuals .SH NAME avahi-resolve \- Resolve one or more mDNS/DNS host name(s) to IP address(es) (and vice versa) using the Avahi daemon .SH SYNOPSIS \fBavahi-resolve --name \fIhost-name ...\fB avahi-resolve-host-name \fIhost-name ...\fB avahi-resolve --address \fIaddress ...\fB avahi-resolve-address \fIaddress ...\fB \f1 .SH DESCRIPTION Resolve one or more mDNS/DNS host name(s) to IP address(es) (and vice versa) using the Avahi daemon. .SH OPTIONS When passing -n, specify one or more fully qualified mDNS/DNS host name(s) (e.g. "foo.local") to resolve into IP addresses on the command line. When passing -a, specify one or more IP address to resolve into host names. avahi-resolve-host-name is equivalent to avahi-resolve --name. avahi-resolve-address is equivalent to avahi-resolve --address. .TP \fB-n | --name\f1 Translate one or more fully qualified host names into addresses. .TP \fB-a | --address\f1 Translate one or more addresses into fully qualified host names. .TP \fB-v | --verbose\f1 Enable verbose mode. .TP \fB-6\f1 When resolving a host name, look for IPv6 addresses exclusively. .TP \fB-4\f1 When resolving a host name, look for IPv4 addresses exclusively. .TP \fB-h | --help\f1 Show help. .TP \fB-V | --version\f1 Show version information. .SH AUTHORS The Avahi Developers ; Avahi is available from \fBhttp://avahi.org/\f1 .SH SEE ALSO \fBavahi-publish-address(1)\f1, \fBavahi-daemon(8)\f1 .SH COMMENTS This man page was written using \fBxml2man(1)\f1 by Oliver Kurth. avahi-0.7/PaxHeaders.10109/bootstrap.sh0000644000000000000000000000013213130651643014552 xustar0030 mtime=1499681699.127370127 30 atime=1499681699.127370127 30 ctime=1499681850.007990023 avahi-0.7/bootstrap.sh0000755000175000017500000000447513130651643016176 0ustar00lathiatlathiat00000000000000#!/bin/sh # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. FLAGS="--sysconfdir=/etc --localstatedir=/var --enable-tests --enable-compat-howl --enable-compat-libdns_sd" # Feel free to add your own custom flags in here -Lathiat case `uname -s` in Darwin) export LIBTOOLIZE=/opt/local/bin/glibtoolize export CFLAGS="-I/opt/local/include" export LDFLAGS="-L/opt/local/lib" export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig" FLAGS="$FLAGS --prefix=/opt/local --disable-pygtk" ;; FreeBSD) cp /usr/local/share/aclocal/libtool15.m4 common cp /usr/local/share/aclocal/pkg.m4 common export LIBTOOLIZE=/usr/local/bin/libtoolize15 export CFLAGS="-I/usr/local/include" export LDFLAGS="-L/usr/local/lib" export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" FLAGS="$FLAGS --prefix=/opt/ --with-distro=none --disable-python --disable-dbus --disable-glib --disable-gtk" ;; NetBSD) export LIBTOOLIZE=libtoolize export CFLAGS="-I/usr/pkg/include" export LDFLAGS="-L/usr/pkg/lib" export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python --disable-glib --disable-gtk --disable-manpages" ;; Linux) ;; esac case "$USER" in lathiat|trentl) FLAGS="$FLAGS --disable-qt4" ;; sebest) FLAGS="$FLAGS --disable-monodoc --enable-dbus=no --enable-mono=no --enable-qt3=no --enable-qt4=no --sysconfdir=/etc --localstatedir=/var --prefix=/usr --disable-manpages --disable-xmltoman" ;; esac CFLAGS="$CFLAGS -g -O0" exec ./autogen.sh $FLAGS "$@" --enable-qt3=no avahi-0.7/PaxHeaders.10109/doxygen.cfg0000644000000000000000000000013213130651643014337 xustar0030 mtime=1499681699.135369946 30 atime=1499681699.135369946 30 ctime=1499681850.007990023 avahi-0.7/doxygen.cfg0000644000175000017500000002031613130651643015750 0ustar00lathiatlathiat00000000000000# Doxyfile 1.3.7 #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- PROJECT_NAME = $(PROJECT) PROJECT_NUMBER = $(VERSION) OUTPUT_DIRECTORY = $(DOCDIR) CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ABBREVIATE_BRIEF = ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO STRIP_FROM_INC_PATH = $(SRCDIR) FULL_PATH_NAMES = YES STRIP_FROM_PATH = $(SRCDIR) SHORT_NAMES = NO JAVADOC_AUTOBRIEF = YES MULTILINE_CPP_IS_BRIEF = NO DETAILS_AT_TOP = YES INHERIT_DOCS = YES DISTRIBUTE_GROUP_DOC = NO TAB_SIZE = 4 ALIASES = OPTIMIZE_OUTPUT_FOR_C = YES OPTIMIZE_OUTPUT_JAVA = NO SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- EXTRACT_ALL = YES EXTRACT_PRIVATE = NO EXTRACT_STATIC = NO EXTRACT_LOCAL_CLASSES = YES EXTRACT_LOCAL_METHODS = NO HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO HIDE_FRIEND_COMPOUNDS = NO HIDE_IN_BODY_DOCS = NO INTERNAL_DOCS = NO CASE_SENSE_NAMES = NO HIDE_SCOPE_NAMES = NO SHOW_INCLUDE_FILES = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES SORT_BRIEF_DOCS = NO SORT_BY_SCOPE_NAME = NO GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 SHOW_USED_FILES = YES SHOW_DIRECTORIES = NO #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = $(INPUT) FILE_PATTERNS = RECURSIVE = NO EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXAMPLE_PATH = $(EXAMPLE_PATH) EXAMPLE_PATTERNS = $(EXAMPLE_PATTERNS) EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- SOURCE_BROWSER = YES INLINE_SOURCES = NO STRIP_CODE_COMMENTS = YES REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = YES COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = Avahi AVAHI_ avahi_ #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- GENERATE_HTML = $(GENERATE_HTML) HTML_OUTPUT = html HTML_FILE_EXTENSION = .html HTML_HEADER = HTML_FOOTER = HTML_STYLESHEET = HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = $(GENERATE_CHM) CHM_FILE = ../$(PROJECT).chm HHC_LOCATION = $(HHC_PATH) GENERATE_CHI = $(GENERATE_CHI) BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 1 GENERATE_TREEVIEW = YES TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- GENERATE_LATEX = $(GENERATE_LATEX) LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = $(PAPER_SIZE) EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = YES LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- GENERATE_RTF = $(GENERATE_RTF) RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- GENERATE_MAN = $(GENERATE_MAN) MAN_OUTPUT = man MAN_EXTENSION = .1 MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = $(GENERATE_XML) XML_OUTPUT = xml XML_SCHEMA = XML_DTD = XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- GENERATE_PERLMOD = NO PERLMOD_LATEX = NO PERLMOD_PRETTY = YES PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES MACRO_EXPANSION = YES EXPAND_ONLY_PREDEF = YES SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = "DOXYGEN_SHOULD_SKIP_THIS" "AVAHI_C_DECL_BEGIN=" "AVAHI_C_DECL_END=" EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- TAGFILES = GENERATE_TAGFILE = $(DOCDIR)/$(PROJECT).tag ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = $(PERL_PATH) #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = NO HIDE_UNDOC_RELATIONS = NO HAVE_DOT = $(HAVE_DOT) CLASS_GRAPH = NO COLLABORATION_GRAPH = NO UML_LOOK = NO TEMPLATE_RELATIONS = NO INCLUDE_GRAPH = NO INCLUDED_BY_GRAPH = NO CALL_GRAPH = NO GRAPHICAL_HIERARCHY = NO DOT_IMAGE_FORMAT = png DOT_PATH = $(DOT_PATH) DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 MAX_DOT_GRAPH_DEPTH = 0 GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = NO avahi-0.7/PaxHeaders.10109/configure0000644000000000000000000000013213130652010014072 xustar0030 mtime=1499681800.417097948 30 atime=1499681802.049061443 30 ctime=1499681849.983990558 avahi-0.7/configure0000755000175000017500000323725213130652010015522 0ustar00lathiatlathiat00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for avahi 0.7. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and avahi (at) lists $0: (dot) freedesktop (dot) org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='avahi' PACKAGE_TARNAME='avahi' PACKAGE_VERSION='0.7' PACKAGE_STRING='avahi 0.7' PACKAGE_BUGREPORT='avahi (at) lists (dot) freedesktop (dot) org' PACKAGE_URL='' ac_unique_file="avahi-core/server.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS HAVE_SYSTEMD_FALSE HAVE_SYSTEMD_TRUE systemdsystemunitdir ENABLE_COMPAT_HOWL_FALSE ENABLE_COMPAT_HOWL_TRUE ENABLE_COMPAT_LIBDNS_SD_FALSE ENABLE_COMPAT_LIBDNS_SD_TRUE ENABLE_TESTS_FALSE ENABLE_TESTS_TRUE BUILD_MANPAGES_FALSE BUILD_MANPAGES_TRUE USE_XMLTOMAN_FALSE USE_XMLTOMAN_TRUE have_xmltoman ENABLE_CORE_DOCS_FALSE ENABLE_CORE_DOCS_TRUE DOXYGEN_PAPER_SIZE DX_COND_latex_FALSE DX_COND_latex_TRUE DX_COND_pdf_FALSE DX_COND_pdf_TRUE DX_PDFLATEX DX_FLAG_pdf DX_COND_ps_FALSE DX_COND_ps_TRUE DX_EGREP DX_DVIPS DX_MAKEINDEX DX_LATEX DX_FLAG_ps DX_COND_html_FALSE DX_COND_html_TRUE DX_FLAG_html DX_COND_chi_FALSE DX_COND_chi_TRUE DX_FLAG_chi DX_COND_chm_FALSE DX_COND_chm_TRUE DX_HHC DX_FLAG_chm DX_COND_xml_FALSE DX_COND_xml_TRUE DX_FLAG_xml DX_COND_rtf_FALSE DX_COND_rtf_TRUE DX_FLAG_rtf DX_COND_man_FALSE DX_COND_man_TRUE DX_FLAG_man DX_COND_dot_FALSE DX_COND_dot_TRUE DX_DOT DX_FLAG_dot DX_COND_doc_FALSE DX_COND_doc_TRUE DX_PERL DX_DOXYGEN DX_FLAG_doc DX_ENV DX_DOCDIR DX_CONFIG DX_PROJECT interfacesdir avahi_socket avahi_runtime_dir AVAHI_AUTOIPD_GROUP AVAHI_AUTOIPD_USER AVAHI_PRIV_ACCESS_GROUP AVAHI_GROUP AVAHI_USER ENABLE_AUTOIPD_FALSE ENABLE_AUTOIPD_TRUE HAVE_MONODOC_FALSE HAVE_MONODOC_TRUE MONODOC_DIR MDASSEMBLER MONODOCER MONODOC_LIBS MONODOC_CFLAGS HAVE_MONO_FALSE HAVE_MONO_TRUE GACUTIL MCS HAVE_PYTHON_DBUS_FALSE HAVE_PYTHON_DBUS_TRUE HAVE_PYGOBJECT_FALSE HAVE_PYGOBJECT_TRUE HAVE_PYTHON_FALSE HAVE_PYTHON_TRUE PYGOBJECT_LIBS PYGOBJECT_CFLAGS pkgpyexecdir pyexecdir pkgpythondir pythondir PYTHON_PLATFORM PYTHON_EXEC_PREFIX PYTHON_PREFIX PYTHON_VERSION PYTHON HAVE_LIBDAEMON_FALSE HAVE_LIBDAEMON_TRUE LIBDAEMON_LIBS LIBDAEMON_CFLAGS HAVE_DBM_FALSE HAVE_DBM_TRUE HAVE_GDBM_FALSE HAVE_GDBM_TRUE HAVE_XML_FALSE HAVE_XML_TRUE XML_CFLAGS XML_LIBS HAVE_DBUS_FALSE HAVE_DBUS_TRUE DBUS_SYSTEM_BUS_DEFAULT_ADDRESS DBUS_SYS_DIR DBUS_LIBS DBUS_CFLAGS HAVE_GTK2OR3_FALSE HAVE_GTK2OR3_TRUE HAVE_GTK3_FALSE HAVE_GTK3_TRUE GTK30_LIBS GTK30_CFLAGS HAVE_GTK_FALSE HAVE_GTK_TRUE GTK20_LIBS GTK20_CFLAGS HAVE_QT4_FALSE HAVE_QT4_TRUE MOC_QT4 QT4_LIBS QT4_CFLAGS HAVE_QT3_FALSE HAVE_QT3_TRUE MOC_QT3 QT3_LIBS QT3_CFLAGS HAVE_INTROSPECTION_FALSE HAVE_INTROSPECTION_TRUE INTROSPECTION_MAKEFILE INTROSPECTION_LIBS INTROSPECTION_CFLAGS INTROSPECTION_TYPELIBDIR INTROSPECTION_GIRDIR INTROSPECTION_GENERATE INTROSPECTION_COMPILER INTROSPECTION_SCANNER HAVE_GOBJECT_FALSE HAVE_GOBJECT_TRUE GOBJECT_LIBS GOBJECT_CFLAGS HAVE_GLIB_FALSE HAVE_GLIB_TRUE GLIB20_LIBS GLIB20_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG have_pkg_config avahilocaledir MKINSTALLDIRS POSUB POFILES PO_IN_DATADIR_FALSE PO_IN_DATADIR_TRUE INTLLIBS INSTOBJEXT GMOFILES DATADIRNAME CATOBJEXT CATALOGS MSGFMT_OPTS INTL_MACOSX_LIBS GETTEXT_PACKAGE ALL_LINGUAS INTLTOOL_PERL GMSGFMT MSGFMT MSGMERGE XGETTEXT INTLTOOL_POLICY_RULE INTLTOOL_SERVICE_RULE INTLTOOL_THEME_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_CAVES_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_XML_RULE INTLTOOL_KBD_RULE INTLTOOL_XAM_RULE INTLTOOL_UI_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_SHEET_RULE INTLTOOL_SERVER_RULE INTLTOOL_PONG_RULE INTLTOOL_OAF_RULE INTLTOOL_PROP_RULE INTLTOOL_KEYS_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_DESKTOP_RULE intltool__v_merge_options_0 intltool__v_merge_options_ INTLTOOL_V_MERGE_OPTIONS INTLTOOL__v_MERGE_0 INTLTOOL__v_MERGE_ INTLTOOL_V_MERGE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE USE_NLS HAVE_KQUEUE_FALSE HAVE_KQUEUE_TRUE HAVE_INOTIFY_FALSE HAVE_INOTIFY_TRUE HAVE_DLOPEN_FALSE HAVE_DLOPEN_TRUE ENABLE_CHROOT_FALSE ENABLE_CHROOT_TRUE VISIBILITY_HIDDEN_CFLAGS LIBOBJS TARGET_SLACKWARE_FALSE TARGET_SLACKWARE_TRUE TARGET_FREEBSD_FALSE TARGET_FREEBSD_TRUE TARGET_NETBSD_FALSE TARGET_NETBSD_TRUE TARGET_DARWIN_FALSE TARGET_DARWIN_TRUE TARGET_MANDRIVA_FALSE TARGET_MANDRIVA_TRUE TARGET_FEDORA_FALSE TARGET_FEDORA_TRUE TARGET_ARCHLINUX_FALSE TARGET_ARCHLINUX_TRUE TARGET_DEBIAN_FALSE TARGET_DEBIAN_TRUE TARGET_GENTOO_FALSE TARGET_GENTOO_TRUE TARGET_SUSE_FALSE TARGET_SUSE_TRUE TARGET_LFS_FALSE TARGET_LFS_TRUE HAVE_SYS_SYSCTL_H_FALSE HAVE_SYS_SYSCTL_H_TRUE HAVE_SYS_FILIO_H_FALSE HAVE_SYS_FILIO_H_TRUE HAVE_PF_ROUTE_FALSE HAVE_PF_ROUTE_TRUE HAVE_NETLINK_FALSE HAVE_NETLINK_TRUE PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC acx_pthread_config CXXCPP LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP NM ac_ct_DUMPBIN DUMPBIN LD FGREP SED LIBTOOL LN_S EGREP GREP CPP am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC STOW host_os host_vendor host_cpu host build_os build_vendor build_cpu build HOWL_COMPAT_VERSION LIBAVAHI_COMPAT_HOWL_VERSION_INFO LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO LIBAVAHI_UI_VERSION_INFO LIBAVAHI_QT4_VERSION_INFO LIBAVAHI_QT3_VERSION_INFO LIBAVAHI_GOBJECT_VERSION_INFO LIBAVAHI_GLIB_VERSION_INFO LIBAVAHI_CLIENT_VERSION_INFO LIBAVAHI_CORE_VERSION_INFO LIBAVAHI_COMMON_VERSION_INFO AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_stack_protector enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock with_distro enable_nls enable_glib enable_gobject enable_introspection enable_qt3 enable_qt4 enable_gtk enable_gtk3 enable_dbus with_dbus_sys with_dbus_system_socket with_xml enable_dbm enable_gdbm enable_libdaemon enable_python enable_pygobject enable_python_dbus enable_mono enable_monodoc enable_autoipd with_avahi_user with_avahi_group with_avahi_priv_access_group with_autoipd_user with_autoipd_group enable_doxygen_doc enable_doxygen_dot enable_doxygen_man enable_doxygen_rtf enable_doxygen_xml enable_doxygen_chm enable_doxygen_chi enable_doxygen_html enable_doxygen_ps enable_doxygen_pdf enable_core_docs enable_manpages enable_xmltoman enable_tests enable_compat_libdns_sd enable_compat_howl with_systemdsystemunitdir ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC CPP LT_SYS_LIBRARY_PATH CXXCPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR GLIB20_CFLAGS GLIB20_LIBS GOBJECT_CFLAGS GOBJECT_LIBS QT3_CFLAGS QT3_LIBS QT4_CFLAGS QT4_LIBS GTK20_CFLAGS GTK20_LIBS GTK30_CFLAGS GTK30_LIBS DBUS_CFLAGS DBUS_LIBS LIBDAEMON_CFLAGS LIBDAEMON_LIBS PYTHON PYGOBJECT_CFLAGS PYGOBJECT_LIBS MONODOC_CFLAGS MONODOC_LIBS DOXYGEN_PAPER_SIZE' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures avahi 0.7 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/avahi] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of avahi 0.7:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-stack-protector Disable GCC's/libc's stack-smashing protection --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --disable-glib Disable use of GLib --disable-gobject Disable use of GLib GObject --enable-introspection=[no/auto/yes] Enable introspection for this build --disable-qt3 Disable building of Qt3 mainloop integration --disable-qt4 Disable building of Qt4Core mainloop integration --disable-gtk Disable use of GTK+ 2 --disable-gtk3 Disable use of GTK+ 3 --disable-dbus Disable use of D-Bus --enable-dbm Enable use of DBM --disable-gdbm Disable use of GDBM --disable-libdaemon Disable use of libdaemon --disable-python Disable scripts that depends on python --disable-pygobject Disable use of Python GObject --disable-python-dbus Disable use of D-Bus in Python --disable-mono Disable mono bindings --disable-monodoc Disable documentation for mono bindings --disable-autoipd Disable building of avahi-autoipd --disable-doxygen-doc don't generate any doxygen documentation --disable-doxygen-dot don't generate graphics for doxygen documentation --enable-doxygen-man generate doxygen manual pages --enable-doxygen-rtf generate doxygen RTF documentation --disable-doxygen-xml don't generate doxygen XML documentation --enable-doxygen-chm generate doxygen compressed HTML help documentation --enable-doxygen-chi generate doxygen seperate compressed HTML help index file --disable-doxygen-html don't generate doxygen plain HTML documentation --enable-doxygen-ps generate doxygen PostScript documentation --enable-doxygen-pdf generate doxygen PDF documentation --enable-core-docs Enable building of documentation for avahi-core --disable-manpages Disable building and installation of man pages --disable-xmltoman Disable rebuilding of man pages with xmltoman --enable-tests Enable building of tests and examples --enable-compat-libdns_sd Enable compatibility layer for libdns_sd --enable-compat-howl Enable compatibility layer for HOWL Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-distro=DISTRO Specify the distribution to target: One of lfs, debian, gentoo, archlinux, fedora, mandriva, darwin, netbsd, freebsd, slackware or none --with-dbus-sys= Path to D-Bus system.d directory --with-dbus-system-address=
    Path to the D-Bus system socket, you probably want to put unix:path= at the start. Only needed for very old D-Bus releases --with-xml=expat/bsdxml/none XML library to use --with-avahi-user= User for running avahi-daemon (avahi) --with-avahi-group= Group for running avahi-daemon (avahi) --with-avahi-priv-access-group= Priviliged access group for Avahi clients (netdev) --with-autoipd-user= User for running the avahi-autoipd daemon (avahi-autoipd) --with-autoipd-group= Group for running the avahi-autoipd daemon (avahi-autoipd) --with-systemdsystemunitdir=DIR Directory for systemd service files Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor LT_SYS_LIBRARY_PATH User-defined run-time library search path. CXXCPP C++ preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path GLIB20_CFLAGS C compiler flags for GLIB20, overriding pkg-config GLIB20_LIBS linker flags for GLIB20, overriding pkg-config GOBJECT_CFLAGS C compiler flags for GOBJECT, overriding pkg-config GOBJECT_LIBS linker flags for GOBJECT, overriding pkg-config QT3_CFLAGS C compiler flags for QT3, overriding pkg-config QT3_LIBS linker flags for QT3, overriding pkg-config QT4_CFLAGS C compiler flags for QT4, overriding pkg-config QT4_LIBS linker flags for QT4, overriding pkg-config GTK20_CFLAGS C compiler flags for GTK20, overriding pkg-config GTK20_LIBS linker flags for GTK20, overriding pkg-config GTK30_CFLAGS C compiler flags for GTK30, overriding pkg-config GTK30_LIBS linker flags for GTK30, overriding pkg-config DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config DBUS_LIBS linker flags for DBUS, overriding pkg-config LIBDAEMON_CFLAGS C compiler flags for LIBDAEMON, overriding pkg-config LIBDAEMON_LIBS linker flags for LIBDAEMON, overriding pkg-config PYTHON the Python interpreter PYGOBJECT_CFLAGS C compiler flags for PYGOBJECT, overriding pkg-config PYGOBJECT_LIBS linker flags for PYGOBJECT, overriding pkg-config MONODOC_CFLAGS C compiler flags for MONODOC, overriding pkg-config MONODOC_LIBS linker flags for MONODOC, overriding pkg-config DOXYGEN_PAPER_SIZE a4wide (default), a4, letter, legal or executive Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF avahi configure 0.7 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## ----------------------------------------------------------- ## ## Report this to avahi (at) lists (dot) freedesktop (dot) org ## ## ----------------------------------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES # --------------------------------------------- # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR # accordingly. ac_fn_c_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack as_decl_name=`echo $2|sed 's/ *(.*//'` as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { #ifndef $as_decl_name #ifdef __cplusplus (void) $as_decl_use; #else (void) $as_decl_name; #endif #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_decl cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by avahi $as_me 0.7, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" am__api_version='1.15' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='avahi' VERSION='0.7' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 $as_echo_n "checking how to create a pax tar archive... " >&6; } # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_pax-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do { echo "$as_me:$LINENO: $_am_tar --version" >&5 ($_am_tar --version) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && break done am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x pax -w "$$tardir"' am__tar_='pax -L -x pax -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H pax -L' am__tar_='find "$tardir" -print | cpio -o -H pax -L' am__untar='cpio -i -H pax -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_pax}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -rf conftest.dir if test -s conftest.tar; then { echo "$as_me:$LINENO: $am__untar &5 ($am__untar &5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 (cat conftest.dir/file) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } grep GrepMe conftest.dir/file >/dev/null 2>&1 && break fi done rm -rf conftest.dir if ${am_cv_prog_tar_pax+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_prog_tar_pax=$_am_tool fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 $as_echo "$am_cv_prog_tar_pax" >&6; } # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi PACKAGE_URL=http://avahi.org/ LIBAVAHI_COMMON_VERSION_INFO=8:3:5 LIBAVAHI_CORE_VERSION_INFO=7:2:0 LIBAVAHI_CLIENT_VERSION_INFO=5:9:2 LIBAVAHI_GLIB_VERSION_INFO=1:2:0 LIBAVAHI_GOBJECT_VERSION_INFO=0:5:0 LIBAVAHI_QT3_VERSION_INFO=1:2:0 LIBAVAHI_QT4_VERSION_INFO=1:2:0 LIBAVAHI_UI_VERSION_INFO=1:4:1 # Do not touch these, since they we took this version-info from upstream HOWL/Bonjour LIBAVAHI_COMPAT_LIBDNS_SD_VERSION_INFO=1:0:0 LIBAVAHI_COMPAT_HOWL_VERSION_INFO=0:0:0 HOWL_COMPAT_VERSION=0.9.8 # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' # Extract the first word of "stow", so it can be a program name with args. set dummy stow; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STOW+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STOW"; then ac_cv_prog_STOW="$STOW" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STOW="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_STOW" && ac_cv_prog_STOW="no" fi fi STOW=$ac_cv_prog_STOW if test -n "$STOW"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STOW" >&5 $as_echo "$STOW" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$STOW" = "xyes" && test -d /usr/local/stow; then : { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5 $as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;} ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}" fi # Checks for programs. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } if ${ac_cv_prog_cc_c99+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include // Check varargs macros. These examples are taken from C99 6.10.3.5. #define debug(...) fprintf (stderr, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK your preprocessor is broken; #endif #if BIG_OK #else your preprocessor is broken; #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\0'; ++i) continue; return 0; } // Check varargs and va_copy. static void test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str; int number; float fnumber; while (*format) { switch (*format++) { case 's': // string str = va_arg (args_copy, const char *); break; case 'd': // int number = va_arg (args_copy, int); break; case 'f': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); } int main () { // Check bool. _Bool success = false; // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. test_varargs ("s, d' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' || dynamic_array[ni.number - 1] != 543); ; return 0; } _ACEOF for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c99=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c99" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c99" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; esac if test "x$ac_cv_prog_cc_c99" != xno; then : fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" if test "x$ac_cv_header_minix_config_h" = xyes; then : MINIX=yes else MINIX= fi if test "$MINIX" = yes; then $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h $as_echo "#define _MINIX 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } if ${ac_cv_safe_to_define___extensions__+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 $ac_includes_default int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_safe_to_define___extensions__=yes else ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } test $ac_cv_safe_to_define___extensions__ = yes && $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h $as_echo "#define _ALL_SOURCE 1" >>confdefs.h $as_echo "#define _GNU_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi if test $ac_cv_c_compiler_gnu = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 $as_echo_n "checking whether $CC needs -traditional... " >&6; } if ${ac_cv_prog_gcc_traditional+:} false; then : $as_echo_n "(cached) " >&6 else ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi # -fstack-protector # Check whether --enable-stack-protector was given. if test "${enable_stack_protector+set}" = set; then : enableval=$enable_stack_protector; case "${enableval}" in yes) enable_ssp=yes ;; no) enable_ssp=no ;; *) as_fn_error $? "invalid value ${enableval} for --disable-stack-protector" "$LINENO" 5 ;; esac else enable_ssp=yes fi if test x"$enable_ssp" = x"yes" && test x"$GCC" != x"yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling stack-smashing protection because compiler is not GCC" >&5 $as_echo "$as_me: Disabling stack-smashing protection because compiler is not GCC" >&6;} enable_ssp=no fi if test x"$enable_ssp" = x"yes"; then # Check for broken ssp in libc: http://www.avahi.org/ticket/105 # libc's brokenness will get in the way regardless of whether -lssp is # provided, but provide it anyway (otherwise non-libc ssp would wrongly # break here) # Get -lssp if it exists { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5 $as_echo_n "checking whether libssp exists... " >&6; } if ${ssp_cv_lib+:} false; then : $as_echo_n "(cached) " >&6 else ssp_old_libs="$LIBS" LIBS="$LIBS -lssp" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ssp_cv_lib=yes else ssp_cv_lib=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ssp_old_libs" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5 $as_echo "$ssp_cv_lib" >&6; } if test $ssp_cv_lib = yes; then LIBS="$LIBS -lssp" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack-smashing protection is available" >&5 $as_echo_n "checking whether stack-smashing protection is available... " >&6; } ssp_old_cflags="$CFLAGS" ssp_old_ldflags="$LDFLAGS" CFLAGS="$CFLAGS -Werror -fstack-protector-all -fPIC" LDFLAGS="$LDFLAGS -Wl,-z,defs" cat confdefs.h > conftest.c cat >>conftest.c <<_ACEOF void test_broken_ssp(c) const char *c; { char arr[123], *p; /* beware of possible double-braces if copying this */ for (p = arr; *c; ++p) { *p = *c; ++c; } } _ACEOF rm -f conftest.o if $CC -c $CFLAGS $CPPFLAGS -o conftest.o conftest.c >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack-smashing protection is buggy" >&5 $as_echo_n "checking whether stack-smashing protection is buggy... " >&6; } if $CC -o conftest.so $LDFLAGS -shared conftest.o $LIBS >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } enable_ssp=no fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f conftest.c conftest.o conftest.so CFLAGS="$ssp_old_cflags" LDFLAGS="$ssp_old_ldflags" fi if test x"$enable_ssp" = x"yes"; then # Do this the long way so we don't call GCC_STACK_PROTECT_LIB twice if test "X$CC" != "X"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; } if ${ssp_cv_cc+:} false; then : $as_echo_n "(cached) " >&6 else ssp_old_cflags="$CFLAGS" CFLAGS="$CFLAGS -fstack-protector -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ssp_cv_cc=yes else ssp_cv_cc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$ssp_old_cflags" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5 $as_echo "$ssp_cv_cc" >&6; } if test $ssp_cv_cc = yes; then CFLAGS="$CFLAGS -fstack-protector" $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test "X$CXX" != "X"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts -fstack-protector" >&5 $as_echo_n "checking whether ${CXX} accepts -fstack-protector... " >&6; } if ${ssp_cv_cxx+:} false; then : $as_echo_n "(cached) " >&6 else ssp_old_cxxflags="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -fstack-protector -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ssp_cv_cxx=yes else ssp_cv_cxx=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS="$ssp_old_cxxflags" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cxx" >&5 $as_echo "$ssp_cv_cxx" >&6; } if test $ssp_cv_cxx = yes; then CXXFLAGS="$CXXFLAGS -fstack-protector" $as_echo "#define ENABLE_SSP_CXX 1" >>confdefs.h fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # XXX: Update the enable_ssp value now for output later? fi # libtool stuff case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.6' macro_revision='2.4.6' ltmain=$ac_aux_dir/ltmain.sh # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 $as_echo "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 $as_echo_n "checking for a working dd... " >&6; } if ${ac_cv_path_lt_DD+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in dd; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 $as_echo "$ac_cv_path_lt_DD" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 $as_echo_n "checking how to truncate binary pipes... " >&6; } if ${lt_cv_truncate_bin+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 $as_echo "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done func_stripname_cnf () { case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; esac } # func_stripname_cnf # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else pic_mode=default fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test "${with_aix_soname+set}" = set; then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else if ${lt_cv_with_aix_soname+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 $as_echo "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi link_all_deplibs=no else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen=shl_load else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen=dlopen else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi fi fi fi fi fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report what library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC compiler_CXX=$CC func_cc_basename $compiler cc_basename=$func_cc_basename_result if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec_CXX='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. no_undefined_flag_CXX='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' $wl-bernotok' allow_undefined_flag_CXX=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='$wl--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" if test yes != "$lt_cv_apple_cc_single_mod"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi else ld_shlibs_CXX=no fi ;; os2*) hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_minus_L_CXX=yes allow_undefined_flag_CXX=unsupported shrext_cmds=.dll archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_CXX=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='$wl-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' export_dynamic_flag_spec_CXX='$wl--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='$wl-E' whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then no_undefined_flag_CXX=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='$wl-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='$wl-z,text' allow_undefined_flag_CXX='$wl-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX LD_CXX=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX=$prev$p else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX=$prev$p else postdeps_CXX="${postdeps_CXX} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$predep_objects_CXX"; then predep_objects_CXX=$p else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX=$p else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi lt_prog_compiler_pic_CXX='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static_CXX='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : else lt_prog_compiler_static_CXX= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs_CXX=no ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec_CXX='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test yes = "$hardcode_automatic_CXX"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct_CXX" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && test no != "$hardcode_minus_L_CXX"; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_commands="$ac_config_commands libtool" # Only expand once: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 $as_echo_n "checking whether the C++ compiler works... " >&6; } if ${avahi_cv_sys_cxx_works+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main() { return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : avahi_cv_sys_cxx_works=yes else avahi_cv_sys_cxx_works=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $avahi_cv_sys_cxx_works" >&5 $as_echo "$avahi_cv_sys_cxx_works" >&6; } if [ "x$avahi_cv_sys_cxx_works" = "xno" ]; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The C++ compiler does not work See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu acx_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on True64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_join (); int main () { return pthread_join (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : acx_pthread_ok=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 $as_echo "$acx_pthread_ok" >&6; } if test x"$acx_pthread_ok" = xno; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) # -pthreads: Solaris/gcc # -mthreads: Mingw32/gcc, Lynx/gcc # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads too; # also defines -D_REENTRANT) # ... -mt is also the pthreads flag for HP/aCC # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case "${host_cpu}-${host_os}" in *solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (We need to link with -pthreads/-mt/ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather # a function called by this macro, so we could check for that, but # who knows whether they'll stub that too in a future libc.) So, # we'll just look for -pthreads and -lpthread first: acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" ;; esac if test x"$acx_pthread_ok" = xno; then for flag in $acx_pthread_flags; do case $flag in none) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 $as_echo_n "checking whether pthreads work without any flags... " >&6; } ;; -*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 $as_echo_n "checking whether pthreads work with $flag... " >&6; } PTHREAD_CFLAGS="$flag" ;; pthread-config) # Extract the first word of "pthread-config", so it can be a program name with args. set dummy pthread-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_acx_pthread_config+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$acx_pthread_config"; then ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_acx_pthread_config="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" fi fi acx_pthread_config=$ac_cv_prog_acx_pthread_config if test -n "$acx_pthread_config"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 $as_echo "$acx_pthread_config" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x"$acx_pthread_config" = xno; then continue; fi PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } PTHREAD_LIBS="-l$flag" ;; esac save_LIBS="$LIBS" save_CFLAGS="$CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : acx_pthread_ok=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 $as_echo "$acx_pthread_ok" >&6; } if test "x$acx_pthread_ok" = xyes; then break; fi PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$acx_pthread_ok" = xyes; then save_LIBS="$LIBS" LIBS="$PTHREAD_LIBS $LIBS" save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 $as_echo_n "checking for joinable pthread attribute... " >&6; } attr_name=unknown for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { int attr=$attr; return attr; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : attr_name=$attr; break fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 $as_echo "$attr_name" >&6; } if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then cat >>confdefs.h <<_ACEOF #define PTHREAD_CREATE_JOINABLE $attr_name _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } flag=no case "${host_cpu}-${host_os}" in *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 $as_echo "${flag}" >&6; } if test "x$flag" != xno; then PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" fi LIBS="$save_LIBS" CFLAGS="$save_CFLAGS" # More AIX lossage: must compile with xlc_r or cc_r if test x"$GCC" != xyes; then for ac_prog in xlc_r cc_r do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PTHREAD_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PTHREAD_CC"; then ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PTHREAD_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PTHREAD_CC=$ac_cv_prog_PTHREAD_CC if test -n "$PTHREAD_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 $as_echo "$PTHREAD_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$PTHREAD_CC" && break done test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" else PTHREAD_CC=$CC fi # The next part tries to detect GCC inconsistency with -shared on some # architectures and systems. The problem is that in certain # configurations, when -shared is specified, GCC "forgets" to # internally use various flags which are still necessary. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } check_inconsistencies=yes case "${host_cpu}-${host_os}" in *-darwin*) check_inconsistencies=no ;; esac if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # In order not to create several levels of indentation, we test # the value of "$ok" until we find out the cure or run out of # ideas. ok="no" # # Prepare the flags # save_CFLAGS="$CFLAGS" save_LIBS="$LIBS" save_CC="$CC" # Try with the flags determined by the earlier checks. # # -Wl,-z,defs forces link-time symbol resolution, so that the # linking checks with -shared actually have any value # # FIXME: -fPIC is required for -shared on many architectures, # so we specify it here, but the right way would probably be to # properly detect whether it is actually required. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" CC="$PTHREAD_CC" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ok=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$ok" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # # Linux gcc on some architectures such as mips/mipsel forgets # about -lpthread # if test x"$ok" = xno; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 $as_echo_n "checking whether -lpthread fixes that... " >&6; } LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ok=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$ok" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi # # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc # if test x"$ok" = xno; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 $as_echo_n "checking whether -lc_r fixes that... " >&6; } LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_t th; pthread_join(th, 0); pthread_attr_init(0); pthread_cleanup_push(0, 0); pthread_create(0,0,0,0); pthread_cleanup_pop(0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ok=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "x$ok" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test x"$ok" = xno; then # OK, we have run out of ideas { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} # so it's not safe to assume that we may use pthreads acx_pthread_ok=no fi CFLAGS="$save_CFLAGS" LIBS="$save_LIBS" CC="$save_CC" fi else PTHREAD_CC="$CC" fi # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test x"$acx_pthread_ok" = xyes; then $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h : else acx_pthread_ok=no as_fn_error $? "Missing POSIX Threads support" "$LINENO" 5 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # # Check for netlink.h # ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " #include #include " if test "x$ac_cv_header_linux_netlink_h" = xyes; then : HAVE_NETLINK=yes $as_echo "#define HAVE_NETLINK /**/" >>confdefs.h fi if test x"$HAVE_NETLINK" = xyes ; then HAVE_NETLINK_TRUE= HAVE_NETLINK_FALSE='#' else HAVE_NETLINK_TRUE='#' HAVE_NETLINK_FALSE= fi # # Check for net/route.h # ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" " #include #include #include " if test "x$ac_cv_header_net_route_h" = xyes; then : HAVE_PF_ROUTE=yes $as_echo "#define HAVE_PF_ROUTE /**/" >>confdefs.h fi if test x"$HAVE_PF_ROUTE" = xyes ; then HAVE_PF_ROUTE_TRUE= HAVE_PF_ROUTE_FALSE='#' else HAVE_PF_ROUTE_TRUE='#' HAVE_PF_ROUTE_FALSE= fi # # Check for sys/filio.h; needed for FIONREAD on Solaris # ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" " " if test "x$ac_cv_header_sys_filio_h" = xyes; then : HAVE_SYS_FILIO_H=yes $as_echo "#define HAVE_SYS_FILIO_H /**/" >>confdefs.h fi if test x"$HAVE_SYS_FILIO_H" = xyes ; then HAVE_SYS_FILIO_H_TRUE= HAVE_SYS_FILIO_H_FALSE='#' else HAVE_SYS_FILIO_H_TRUE='#' HAVE_SYS_FILIO_H_FALSE= fi # # Check for sys/sysctl.h; not present on Solaris # ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " #include #include #include " if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : HAVE_SYS_SYSCTL=yes $as_echo "#define HAVE_SYS_SYSCTL_H /**/" >>confdefs.h fi if test x"$HAVE_SYS_SYSCTL_H" = xyes ; then HAVE_SYS_SYSCTL_H_TRUE= HAVE_SYS_SYSCTL_H_FALSE='#' else HAVE_SYS_SYSCTL_H_TRUE='#' HAVE_SYS_SYSCTL_H_FALSE= fi # # Check for lifconf struct; only present on Solaris # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5 $as_echo_n "checking for struct lifconf... " >&6; } if ${avahi_cv_has_struct_lifconf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { sizeof (struct lifconf); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : avahi_cv_has_struct_lifconf=yes else avahi_cv_has_struct_lifconf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $avahi_cv_has_struct_lifconf" >&5 $as_echo "$avahi_cv_has_struct_lifconf" >&6; } if test $avahi_cv_has_struct_lifconf = yes; then $as_echo "#define HAVE_STRUCT_LIFCONF 1" >>confdefs.h fi # # Check for struct ip_mreqn # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreqn" >&5 $as_echo_n "checking for struct ip_mreqn... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct ip_mreqn mreq; mreq.imr_address.s_addr = 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Yes, we have it... { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_STRUCT_IP_MREQN /**/" >>confdefs.h else # We'll just have to try and use struct ip_mreq { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5 $as_echo_n "checking for struct ip_mreq... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { struct ip_mreq mreq; mreq.imr_interface.s_addr = 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Yes, we have it... { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_STRUCT_IP_MREQ /**/" >>confdefs.h else # No multicast support { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # # Detecting the linux distribution for specific things like init scripts. # # Check whether --with-distro was given. if test "${with_distro+set}" = set; then : withval=$with_distro; fi if test "z$with_distro" = "z"; then if test "$cross_compiling" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)" >&5 $as_echo "$as_me: WARNING: Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)" >&2;} else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/lfs-release" >&5 $as_echo_n "checking for /etc/lfs-release... " >&6; } if ${ac_cv_file__etc_lfs_release+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/etc/lfs-release"; then ac_cv_file__etc_lfs_release=yes else ac_cv_file__etc_lfs_release=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_lfs_release" >&5 $as_echo "$ac_cv_file__etc_lfs_release" >&6; } if test "x$ac_cv_file__etc_lfs_release" = xyes; then : with_distro="lfs" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/SuSE-release" >&5 $as_echo_n "checking for /etc/SuSE-release... " >&6; } if ${ac_cv_file__etc_SuSE_release+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/etc/SuSE-release"; then ac_cv_file__etc_SuSE_release=yes else ac_cv_file__etc_SuSE_release=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_SuSE_release" >&5 $as_echo "$ac_cv_file__etc_SuSE_release" >&6; } if test "x$ac_cv_file__etc_SuSE_release" = xyes; then : with_distro="suse" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/gentoo-release" >&5 $as_echo_n "checking for /etc/gentoo-release... " >&6; } if ${ac_cv_file__etc_gentoo_release+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/etc/gentoo-release"; then ac_cv_file__etc_gentoo_release=yes else ac_cv_file__etc_gentoo_release=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_gentoo_release" >&5 $as_echo "$ac_cv_file__etc_gentoo_release" >&6; } if test "x$ac_cv_file__etc_gentoo_release" = xyes; then : with_distro="gentoo" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/arch-release" >&5 $as_echo_n "checking for /etc/arch-release... " >&6; } if ${ac_cv_file__etc_arch_release+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/etc/arch-release"; then ac_cv_file__etc_arch_release=yes else ac_cv_file__etc_arch_release=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_arch_release" >&5 $as_echo "$ac_cv_file__etc_arch_release" >&6; } if test "x$ac_cv_file__etc_arch_release" = xyes; then : with_distro="archlinux" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/debian_version" >&5 $as_echo_n "checking for /etc/debian_version... " >&6; } if ${ac_cv_file__etc_debian_version+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/etc/debian_version"; then ac_cv_file__etc_debian_version=yes else ac_cv_file__etc_debian_version=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_debian_version" >&5 $as_echo "$ac_cv_file__etc_debian_version" >&6; } if test "x$ac_cv_file__etc_debian_version" = xyes; then : with_distro="debian" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/redhat-release" >&5 $as_echo_n "checking for /etc/redhat-release... " >&6; } if ${ac_cv_file__etc_redhat_release+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/etc/redhat-release"; then ac_cv_file__etc_redhat_release=yes else ac_cv_file__etc_redhat_release=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_redhat_release" >&5 $as_echo "$ac_cv_file__etc_redhat_release" >&6; } if test "x$ac_cv_file__etc_redhat_release" = xyes; then : with_distro="fedora" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/mandriva-release" >&5 $as_echo_n "checking for /etc/mandriva-release... " >&6; } if ${ac_cv_file__etc_mandriva_release+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/etc/mandriva-release"; then ac_cv_file__etc_mandriva_release=yes else ac_cv_file__etc_mandriva_release=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_mandriva_release" >&5 $as_echo "$ac_cv_file__etc_mandriva_release" >&6; } if test "x$ac_cv_file__etc_mandriva_release" = xyes; then : with_distro="mandriva" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /etc/slackware-version" >&5 $as_echo_n "checking for /etc/slackware-version... " >&6; } if ${ac_cv_file__etc_slackware_version+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "/etc/slackware-version"; then ac_cv_file__etc_slackware_version=yes else ac_cv_file__etc_slackware_version=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_slackware_version" >&5 $as_echo "$ac_cv_file__etc_slackware_version" >&6; } if test "x$ac_cv_file__etc_slackware_version" = xyes; then : with_distro="slackware" fi fi if test "z$with_distro" = "z"; then with_distro=`uname -s` fi fi with_distro=`echo ${with_distro} | tr '[:upper:]' '[:lower:]' ` case $with_distro in lfs|debian|gentoo|archlinux|suse|fedora|mandriva|darwin|freebsd|slackware|none) ;; netbsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)" >&5 $as_echo "$as_me: WARNING: Your distribution (${with_distro}) is supported but no init script exist yet! (patches welcome)" >&2;} ;; linux) as_fn_error $? "Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO, set DISTRO to none if your distribution is not supported." "$LINENO" 5 ;; *) as_fn_error $? "Your distribution (${with_distro}) is not yet supported, init scripts and D-Bus configuration will not be installed! (patches welcome), you can specify --with-distro=none to skip this check" "$LINENO" 5 ;; esac if test x"$with_distro" = xlfs; then TARGET_LFS_TRUE= TARGET_LFS_FALSE='#' else TARGET_LFS_TRUE='#' TARGET_LFS_FALSE= fi if test x"$with_distro" = xsuse; then TARGET_SUSE_TRUE= TARGET_SUSE_FALSE='#' else TARGET_SUSE_TRUE='#' TARGET_SUSE_FALSE= fi if test x"$with_distro" = xgentoo; then TARGET_GENTOO_TRUE= TARGET_GENTOO_FALSE='#' else TARGET_GENTOO_TRUE='#' TARGET_GENTOO_FALSE= fi if test x"$with_distro" = xdebian; then TARGET_DEBIAN_TRUE= TARGET_DEBIAN_FALSE='#' else TARGET_DEBIAN_TRUE='#' TARGET_DEBIAN_FALSE= fi if test x"$with_distro" = xarchlinux; then TARGET_ARCHLINUX_TRUE= TARGET_ARCHLINUX_FALSE='#' else TARGET_ARCHLINUX_TRUE='#' TARGET_ARCHLINUX_FALSE= fi if test x"$with_distro" = xfedora; then TARGET_FEDORA_TRUE= TARGET_FEDORA_FALSE='#' else TARGET_FEDORA_TRUE='#' TARGET_FEDORA_FALSE= fi if test x"$with_distro" = xmandriva; then TARGET_MANDRIVA_TRUE= TARGET_MANDRIVA_FALSE='#' else TARGET_MANDRIVA_TRUE='#' TARGET_MANDRIVA_FALSE= fi if test x"$with_distro" = xdarwin; then TARGET_DARWIN_TRUE= TARGET_DARWIN_FALSE='#' else TARGET_DARWIN_TRUE='#' TARGET_DARWIN_FALSE= fi if test x"$with_distro" = xnetbsd; then TARGET_NETBSD_TRUE= TARGET_NETBSD_FALSE='#' else TARGET_NETBSD_TRUE='#' TARGET_NETBSD_FALSE= fi if test x"$with_distro" = xfreebsd; then TARGET_FREEBSD_TRUE= TARGET_FREEBSD_FALSE='#' else TARGET_FREEBSD_TRUE='#' TARGET_FREEBSD_FALSE= fi if test x"$with_distro" = xslackware; then TARGET_SLACKWARE_TRUE= TARGET_SLACKWARE_FALSE='#' else TARGET_SLACKWARE_TRUE='#' TARGET_SLACKWARE_FALSE= fi test_gcc_flag() { cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main() {} _ACEOF $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null ret=$? rm -f conftest.o return $ret } # If using GCC specify some additional parameters if test "x$GCC" = "xyes" ; then DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing" if test "x$HAVE_NETLINK" = "xyes" ; then # Test whether rtnetlink.h can be included when compiled with -std=c99 # some distributions (e.g. archlinux) have broken headers that dont # define __u64 with -std=c99 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking whether rtnetlink.h can be included with -std=c99" >&5 $as_echo_n "checking checking whether rtnetlink.h can be included with -std=c99... " >&6; } OLDCFLAGS="$CFLAGS" CFLAGS="-std=c99" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : use_stdc99=yes else use_stdc99=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test x"$use_stdc99" = xyes; then DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi CFLAGS="$OLDCFLAGS" else DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS" fi for flag in $DESIRED_FLAGS ; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $flag" >&5 $as_echo_n "checking whether $CC accepts $flag... " >&6; } if test_gcc_flag $flag ; then CFLAGS="$CFLAGS $flag" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi done fi # Checks for header files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h netdb.h syslog.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } if ${ac_cv_header_stdbool_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; /* See body of main program for 'e'. */ char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; /* The following fails for HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; int main () { bool e = &s; *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdbool_h=yes else ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 $as_echo "$ac_cv_header_stdbool_h" >&6; } ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" if test "x$ac_cv_type__Bool" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h fi # Checks for typedefs, structures, and compiler characteristics. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } if ${ac_cv_header_sys_wait_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_sys_wait_h=yes else ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 $as_echo "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi # Solaris stuff { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 $as_echo_n "checking for library containing inet_ntop... " >&6; } if ${ac_cv_search_inet_ntop+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char inet_ntop (); int main () { return inet_ntop (); ; return 0; } _ACEOF for ac_lib in '' nsl; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_inet_ntop=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_inet_ntop+:} false; then : break fi done if ${ac_cv_search_inet_ntop+:} false; then : else ac_cv_search_inet_ntop=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 $as_echo "$ac_cv_search_inet_ntop" >&6; } ac_res=$ac_cv_search_inet_ntop if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recv" >&5 $as_echo_n "checking for library containing recv... " >&6; } if ${ac_cv_search_recv+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char recv (); int main () { return recv (); ; return 0; } _ACEOF for ac_lib in '' socket; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_recv=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_recv+:} false; then : break fi done if ${ac_cv_search_recv+:} false; then : else ac_cv_search_recv=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recv" >&5 $as_echo "$ac_cv_search_recv" >&6; } ac_res=$ac_cv_search_recv if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi ac_fn_c_check_decl "$LINENO" "CMSG_SPACE" "ac_cv_have_decl_CMSG_SPACE" "#include " if test "x$ac_cv_have_decl_CMSG_SPACE" = xyes; then : else CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__" fi # Checks for library functions. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 $as_echo_n "checking for working memcmp... " >&6; } if ${ac_cv_func_memcmp_working+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_memcmp_working=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Some versions of memcmp are not 8-bit clean. */ char c0 = '\100', c1 = '\200', c2 = '\201'; if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) return 1; /* The Next x86 OpenStep bug shows up only when comparing 16 bytes or more and with at least one buffer not starting on a 4-byte boundary. William Lewis provided this test program. */ { char foo[21]; char bar[21]; int i; for (i = 0; i < 4; i++) { char *a = foo + i; char *b = bar + i; strcpy (a, "--------01111111"); strcpy (b, "--------10000000"); if (memcmp (a, b, 16) >= 0) return 1; } return 0; } ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_memcmp_working=yes else ac_cv_func_memcmp_working=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 $as_echo "$ac_cv_func_memcmp_working" >&6; } test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in *" memcmp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; esac for ac_header in sys/select.h sys/socket.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 $as_echo_n "checking types of arguments for select... " >&6; } if ${ac_cv_func_select_args+:} false; then : $as_echo_n "(cached) " >&6 else for ac_arg234 in 'fd_set *' 'int *' 'void *'; do for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #ifdef HAVE_SYS_SELECT_H # include #endif #ifdef HAVE_SYS_SOCKET_H # include #endif int main () { extern int select ($ac_arg1, $ac_arg234, $ac_arg234, $ac_arg234, $ac_arg5); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done done done # Provide a safe default value. : "${ac_cv_func_select_args=int,int *,struct timeval *}" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 $as_echo "$ac_cv_func_select_args" >&6; } ac_save_IFS=$IFS; IFS=',' set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` IFS=$ac_save_IFS shift cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG1 $1 _ACEOF cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG234 ($2) _ACEOF cat >>confdefs.h <<_ACEOF #define SELECT_TYPE_ARG5 ($3) _ACEOF rm -f conftest* # avahi_malloc actually returns NULL for avahi_malloc(0), so it does not matter # whether libc's malloc does too. (Same for realloc.) #AC_FUNC_MALLOC #AC_FUNC_REALLOC for ac_func in gethostname memchr memmove memset mkdir select socket strchr strcspn strdup strerror strrchr strspn strstr uname setresuid setreuid setresgid setregid strcasecmp gettimeofday putenv strncasecmp strlcpy gethostbyname seteuid setegid setproctitle getprogname do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } if ${ac_cv_type_uid_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "uid_t" >/dev/null 2>&1; then : ac_cv_type_uid_t=yes else ac_cv_type_uid_t=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 $as_echo "$ac_cv_type_uid_t" >&6; } if test $ac_cv_type_uid_t = no; then $as_echo "#define uid_t int" >>confdefs.h $as_echo "#define gid_t int" >>confdefs.h fi for ac_header in unistd.h do : ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" if test "x$ac_cv_header_unistd_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UNISTD_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 $as_echo_n "checking for working chown... " >&6; } if ${ac_cv_func_chown_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_chown_works=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #include int main () { char *f = "conftest.chown"; struct stat before, after; if (creat (f, 0600) < 0) return 1; if (stat (f, &before) < 0) return 1; if (chown (f, (uid_t) -1, (gid_t) -1) == -1) return 1; if (stat (f, &after) < 0) return 1; return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_chown_works=yes else ac_cv_func_chown_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi rm -f conftest.chown fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 $as_echo "$ac_cv_func_chown_works" >&6; } if test $ac_cv_func_chown_works = yes; then $as_echo "#define HAVE_CHOWN 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : $as_echo_n "(cached) " >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then if test "$cross_compiling" = yes; then : ac_cv_func_lstat_dereferences_slashed_symlink=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; /* Linux will dereference the symlink and fail, as required by POSIX. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_lstat_dereferences_slashed_symlink=yes else ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi else # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi rm -f conftest.sym conftest.file fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && cat >>confdefs.h <<_ACEOF #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 _ACEOF if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 $as_echo_n "checking whether stat accepts an empty string... " >&6; } if ${ac_cv_func_stat_empty_string_bug+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_stat_empty_string_bug=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; return stat ("", &sbuf) == 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_stat_empty_string_bug=no else ac_cv_func_stat_empty_string_bug=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in *" stat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; esac cat >>confdefs.h <<_ACEOF #define HAVE_STAT_EMPTY_STRING_BUG 1 _ACEOF fi ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" if test "x$ac_cv_type_mode_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define mode_t int _ACEOF fi ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" if test "x$ac_cv_have_decl_environ" = xyes; then : ac_have_decl=1 else ac_have_decl=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_ENVIRON $ac_have_decl _ACEOF # check if gcc's -fvisibility is supported save_CFLAGS="$CFLAGS" VISIBILITY_HIDDEN_CFLAGS="" OPTION=-fvisibility=hidden { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc $OPTION support" >&5 $as_echo_n "checking for gcc $OPTION support... " >&6; } CFLAGS="$CFLAGS $OPTION" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int default_vis __attribute__ ((visibility("default"))); int hidden_vis __attribute__ ((visibility("hidden"))); int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_visibility_supported=yes else ac_visibility_supported=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_visibility_supported" >&5 $as_echo "$ac_visibility_supported" >&6; } if test x"$ac_visibility_supported" = xyes; then $as_echo "#define HAVE_GCC_VISIBILITY 1" >>confdefs.h VISIBILITY_HIDDEN_CFLAGS="$OPTION -DHAVE_VISIBILITY_HIDDEN" $as_echo "#define HAVE_VISIBILITY_HIDDEN /**/" >>confdefs.h else : fi CFLAGS="$save_CFLAGS" enable_chroot=yes for ac_header in sys/capability.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" if test "x$ac_cv_header_sys_capability_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_CAPABILITY_H 1 _ACEOF else enable_chroot=no fi done for ac_header in sys/prctl.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" if test "x$ac_cv_header_sys_prctl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_PRCTL_H 1 _ACEOF else enable_chroot=no fi done for ac_func in chroot do : ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" if test "x$ac_cv_func_chroot" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CHROOT 1 _ACEOF else enable_chroot=no fi done if test "x$enable_chroot" = "xyes"; then ENABLE_CHROOT_TRUE= ENABLE_CHROOT_FALSE='#' else ENABLE_CHROOT_TRUE='#' ENABLE_CHROOT_FALSE= fi if test "x$enable_chroot" = "xyes" ; then $as_echo "#define ENABLE_CHROOT 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : for ac_header in dlfcn.h do : ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF HAVE_DLOPEN=yes else HAVE_DLOPEN=no fi done else HAVE_DLOPEN=no fi if test "x$HAVE_DLOPEN" = "xyes" ; then $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h fi if test "x$HAVE_DLOPEN" = "xyes"; then HAVE_DLOPEN_TRUE= HAVE_DLOPEN_FALSE='#' else HAVE_DLOPEN_TRUE='#' HAVE_DLOPEN_FALSE= fi have_inotify=no for ac_header in sys/inotify.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" if test "x$ac_cv_header_sys_inotify_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_INOTIFY_H 1 _ACEOF have_inotify=yes fi done if test "x$have_inotify" = "xyes"; then HAVE_INOTIFY_TRUE= HAVE_INOTIFY_FALSE='#' else HAVE_INOTIFY_TRUE='#' HAVE_INOTIFY_FALSE= fi if test "x$have_inotify" = "xyes" ; then $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h fi have_kqueue=yes for ac_func in kqueue do : ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" if test "x$ac_cv_func_kqueue" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_KQUEUE 1 _ACEOF else have_kqueue=no fi done if test "x$have_kqueue" = "xyes"; then HAVE_KQUEUE_TRUE= HAVE_KQUEUE_FALSE='#' else HAVE_KQUEUE_TRUE='#' HAVE_KQUEUE_FALSE= fi if test "x$have_kqueue" = "xyes" ; then $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } case "$am__api_version" in 1.01234) as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 ;; *) ;; esac INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` if test -n "0.35.0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5 $as_echo_n "checking for intltool >= 0.35.0... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5 fi # Extract the first word of "intltool-update", so it can be a program name with args. set dummy intltool-update; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_UPDATE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE if test -n "$INTLTOOL_UPDATE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 $as_echo "$INTLTOOL_UPDATE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-merge", so it can be a program name with args. set dummy intltool-merge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_MERGE in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE if test -n "$INTLTOOL_MERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 $as_echo "$INTLTOOL_MERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "intltool-extract", so it can be a program name with args. set dummy intltool-extract; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_EXTRACT in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT if test -n "$INTLTOOL_EXTRACT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 $as_echo "$INTLTOOL_EXTRACT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 fi if test -z "$AM_DEFAULT_VERBOSITY"; then AM_DEFAULT_VERBOSITY=1 fi INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;' INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' intltool__v_merge_options_0='-q' INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@' INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@' else INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir' fi INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' # Check the gettext tools to make sure they are GNU # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case $XGETTEXT in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi XGETTEXT=$ac_cv_path_XGETTEXT if test -n "$XGETTEXT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGMERGE in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MSGMERGE=$ac_cv_path_MSGMERGE if test -n "$MSGMERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MSGFMT=$ac_cv_path_MSGFMT if test -n "$MSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_INTLTOOL_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $INTLTOOL_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL if test -n "$INTLTOOL_PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 $as_echo "$INTLTOOL_PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$INTLTOOL_PERL"; then as_fn_error $? "perl not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 $as_echo_n "checking for perl >= 5.8.1... " >&6; } $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 if test $? -ne 0; then as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 else IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 $as_echo "$IT_PERL_VERSION" >&6; } fi if test "x" != "xno-xml"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 $as_echo_n "checking for XML::Parser... " >&6; } if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } else as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 fi fi # Substitute ALL_LINGUAS so we can use it in po/Makefile GETTEXT_PACKAGE=avahi cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF for ac_header in locale.h do : ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" if test "x$ac_cv_header_locale_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LOCALE_H 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 $as_echo_n "checking for LC_MESSAGES... " >&6; } if ${am_cv_val_LC_MESSAGES+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_val_LC_MESSAGES=yes else am_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 $as_echo "$am_cv_val_LC_MESSAGES" >&6; } if test $am_cv_val_LC_MESSAGES = yes; then $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h fi fi USE_NLS=yes gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" if test "x$ac_cv_header_libintl_h" = xyes; then : gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 $as_echo_n "checking for ngettext in libc... " >&6; } if ${gt_cv_func_ngettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_ngettext_libc=yes else gt_cv_func_ngettext_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 $as_echo "$gt_cv_func_ngettext_libc" >&6; } if test "$gt_cv_func_ngettext_libc" = "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 $as_echo_n "checking for dgettext in libc... " >&6; } if ${gt_cv_func_dgettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return !dgettext ("","") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_dgettext_libc=yes else gt_cv_func_dgettext_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 $as_echo "$gt_cv_func_dgettext_libc" >&6; } fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then for ac_func in bind_textdomain_codeset do : ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BIND_TEXTDOMAIN_CODESET 1 _ACEOF fi done fi # # If we don't have everything we want, check in libintl # if test "$gt_cv_func_dgettext_libc" != "yes" \ || test "$gt_cv_func_ngettext_libc" != "yes" \ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; } if ${ac_cv_lib_intl_bindtextdomain+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bindtextdomain (); int main () { return bindtextdomain (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_bindtextdomain=yes else ac_cv_lib_intl_bindtextdomain=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 $as_echo_n "checking for ngettext in -lintl... " >&6; } if ${ac_cv_lib_intl_ngettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_ngettext=yes else ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 $as_echo "$ac_cv_lib_intl_ngettext" >&6; } if test "x$ac_cv_lib_intl_ngettext" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 $as_echo_n "checking for dgettext in -lintl... " >&6; } if ${ac_cv_lib_intl_dgettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dgettext (); int main () { return dgettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_dgettext=yes else ac_cv_lib_intl_dgettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } if test "x$ac_cv_lib_intl_dgettext" = xyes; then : gt_cv_func_dgettext_libintl=yes fi fi fi if test "$gt_cv_func_dgettext_libintl" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 $as_echo_n "checking for ngettext in -lintl... " >&6; } if ${ac_cv_lib_intl_ngettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_ngettext=yes else ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 $as_echo "$ac_cv_lib_intl_ngettext" >&6; } if test "x$ac_cv_lib_intl_ngettext" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 $as_echo_n "checking for dcgettext in -lintl... " >&6; } if ${ac_cv_lib_intl_dcgettext+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dcgettext (); int main () { return dcgettext (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_intl_dcgettext=yes else ac_cv_lib_intl_dcgettext=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; } if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv else : fi else : fi fi # # If we found libintl, then check in it for bind_textdomain_codeset(); # we'll prefer libc if neither have bind_textdomain_codeset(), # and both have dgettext and ngettext # if test "$gt_cv_func_dgettext_libintl" = "yes" ; then glib_save_LIBS="$LIBS" LIBS="$LIBS -lintl $libintl_extra_libs" unset ac_cv_func_bind_textdomain_codeset for ac_func in bind_textdomain_codeset do : ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BIND_TEXTDOMAIN_CODESET 1 _ACEOF fi done LIBS="$glib_save_LIBS" if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then gt_cv_func_dgettext_libc=no else if test "$gt_cv_func_dgettext_libc" = "yes" \ && test "$gt_cv_func_ngettext_libc" = "yes"; then gt_cv_func_dgettext_libintl=no fi fi fi fi if test "$gt_cv_func_dgettext_libc" = "yes" \ || test "$gt_cv_func_dgettext_libintl" = "yes"; then gt_cv_have_gettext=yes fi if test "$gt_cv_func_dgettext_libintl" = "yes"; then INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS" fi if test "$gt_cv_have_gettext" = "yes"; then $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do : ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" if test "x$ac_cv_func_dcgettext" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DCGETTEXT 1 _ACEOF fi done MSGFMT_OPTS= { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 $as_echo_n "checking if msgfmt accepts -c... " >&6; } cat >conftest.foo <<_ACEOF msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Project-Id-Version: test 1.0\n" "PO-Revision-Date: 2007-02-15 12:01+0100\n" "Last-Translator: test \n" "Language-Team: C \n" "MIME-Version: 1.0\n" "Content-Transfer-Encoding: 8bit\n" _ACEOF if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } echo "$as_me: failed input was:" >&5 sed 's/^/| /' conftest.foo >&5 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : CATOBJEXT=.gmo DATADIRNAME=share else case $host in *-*-solaris*) ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : CATOBJEXT=.gmo DATADIRNAME=share else CATOBJEXT=.mo DATADIRNAME=lib fi ;; *-*-openbsd*) CATOBJEXT=.mo DATADIRNAME=share ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi fi if test "$gt_cv_have_gettext" = "yes" ; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po ac_config_commands="$ac_config_commands default-1" for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 $as_echo_n "checking for catalogs to be installed... " >&6; } NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then NEW_LINGUAS="$NEW_LINGUAS $presentlang" fi done LINGUAS=$NEW_LINGUAS { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 $as_echo "$LINGUAS" >&6; } fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi test -d po || mkdir po if test "x$srcdir" != "x."; then if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then posrcprefix="$srcdir/" else posrcprefix="../$srcdir/" fi else posrcprefix="../" fi rm -f po/POTFILES sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES avahilocaledir='${prefix}/${DATADIRNAME}/locale' # Check for pkg-config manually first, as if its not installed the # PKG_PROG_PKG_CONFIG macro won't be defined. # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_have_pkg_config+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$have_pkg_config"; then ac_cv_prog_have_pkg_config="$have_pkg_config" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_have_pkg_config="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_have_pkg_config" && ac_cv_prog_have_pkg_config="no" fi fi have_pkg_config=$ac_cv_prog_have_pkg_config if test -n "$have_pkg_config"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pkg_config" >&5 $as_echo "$have_pkg_config" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x"$have_pkg_config" = "xno"; then as_fn_error $? "pkg-config is required to install this program" "$LINENO" 5 fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi # # Check for GLIB 2.0 # # Check whether --enable-glib was given. if test "${enable_glib+set}" = set; then : enableval=$enable_glib; case "${enableval}" in yes) HAVE_GLIB=yes ;; no) HAVE_GLIB=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-glib" "$LINENO" 5 ;; esac else HAVE_GLIB=yes fi if test "x$HAVE_GLIB" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB20" >&5 $as_echo_n "checking for GLIB20... " >&6; } if test -n "$GLIB20_CFLAGS"; then pkg_cv_GLIB20_CFLAGS="$GLIB20_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB20_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.4.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB20_LIBS"; then pkg_cv_GLIB20_LIBS="$GLIB20_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB20_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.4.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " glib-2.0 >= 2.4.0 " 2>&1` else GLIB20_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " glib-2.0 >= 2.4.0 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB20_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ( glib-2.0 >= 2.4.0 ) were not met: $GLIB20_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GLIB20_CFLAGS and GLIB20_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GLIB20_CFLAGS and GLIB20_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GLIB20_CFLAGS=$pkg_cv_GLIB20_CFLAGS GLIB20_LIBS=$pkg_cv_GLIB20_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi if test "x$HAVE_GLIB" = "xyes"; then HAVE_GLIB_TRUE= HAVE_GLIB_FALSE='#' else HAVE_GLIB_TRUE='#' HAVE_GLIB_FALSE= fi # # Check for GLIB's gobject 2.0 # # Check whether --enable-gobject was given. if test "${enable_gobject+set}" = set; then : enableval=$enable_gobject; case "${enableval}" in yes) HAVE_GOBJECT=yes ;; no) HAVE_GOBJECT=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-gobject" "$LINENO" 5 ;; esac else HAVE_GOBJECT=yes fi if test "x$HAVE_GOBJECT" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5 $as_echo_n "checking for GOBJECT... " >&6; } if test -n "$GOBJECT_CFLAGS"; then pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 gobject-2.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags " glib-2.0 >= 2.4.0 gobject-2.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GOBJECT_LIBS"; then pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" glib-2.0 >= 2.4.0 gobject-2.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " glib-2.0 >= 2.4.0 gobject-2.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs " glib-2.0 >= 2.4.0 gobject-2.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " glib-2.0 >= 2.4.0 gobject-2.0 " 2>&1` else GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " glib-2.0 >= 2.4.0 gobject-2.0 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GOBJECT_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ( glib-2.0 >= 2.4.0 gobject-2.0 ) were not met: $GOBJECT_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GOBJECT_CFLAGS and GOBJECT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GOBJECT_CFLAGS and GOBJECT_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi if test "x$HAVE_GOBJECT" = "xyes"; then HAVE_GOBJECT_TRUE= HAVE_GOBJECT_FALSE='#' else HAVE_GOBJECT_TRUE='#' HAVE_GOBJECT_FALSE= fi # # Introspection support. # # Check whether --enable-introspection was given. if test "${enable_introspection+set}" = set; then : enableval=$enable_introspection; else enable_introspection=auto fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 $as_echo_n "checking for gobject-introspection... " >&6; } case $enable_introspection in #( no) : found_introspection="no (disabled, use --enable-introspection to enable)" ;; #( yes) : if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : else as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 fi if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then found_introspection=yes else as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build avahi" "$LINENO" 5 fi ;; #( auto) : if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then found_introspection=yes else found_introspection=no fi ;; #( *) : as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 $as_echo "$found_introspection" >&6; } INTROSPECTION_SCANNER= INTROSPECTION_COMPILER= INTROSPECTION_GENERATE= INTROSPECTION_GIRDIR= INTROSPECTION_TYPELIBDIR= if test "x$found_introspection" = "xyes"; then INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection fi if test "x$found_introspection" = "xyes"; then HAVE_INTROSPECTION_TRUE= HAVE_INTROSPECTION_FALSE='#' else HAVE_INTROSPECTION_TRUE='#' HAVE_INTROSPECTION_FALSE= fi # # Check for Qt 3 # # Check whether --enable-qt3 was given. if test "${enable_qt3+set}" = set; then : enableval=$enable_qt3; case "${enableval}" in yes) HAVE_QT3=yes ;; no) HAVE_QT3=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-qt3" "$LINENO" 5 ;; esac else HAVE_QT3=yes fi if test "x$HAVE_QT3" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT3" >&5 $as_echo_n "checking for QT3... " >&6; } if test -n "$QT3_CFLAGS"; then pkg_cv_QT3_CFLAGS="$QT3_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" qt-mt >= 3.0.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " qt-mt >= 3.0.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_QT3_CFLAGS=`$PKG_CONFIG --cflags " qt-mt >= 3.0.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$QT3_LIBS"; then pkg_cv_QT3_LIBS="$QT3_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" qt-mt >= 3.0.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " qt-mt >= 3.0.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_QT3_LIBS=`$PKG_CONFIG --libs " qt-mt >= 3.0.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then QT3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " qt-mt >= 3.0.0 " 2>&1` else QT3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " qt-mt >= 3.0.0 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$QT3_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ( qt-mt >= 3.0.0 ) were not met: $QT3_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables QT3_CFLAGS and QT3_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables QT3_CFLAGS and QT3_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else QT3_CFLAGS=$pkg_cv_QT3_CFLAGS QT3_LIBS=$pkg_cv_QT3_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi QT3_PREFIX="`$PKG_CONFIG --variable=prefix qt-mt`/bin" for ac_prog in moc-qt3 moc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MOC_QT3+:} false; then : $as_echo_n "(cached) " >&6 else case $MOC_QT3 in [\\/]* | ?:[\\/]*) ac_cv_path_MOC_QT3="$MOC_QT3" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $QT3_PREFIX do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MOC_QT3="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MOC_QT3=$ac_cv_path_MOC_QT3 if test -n "$MOC_QT3"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC_QT3" >&5 $as_echo "$MOC_QT3" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$MOC_QT3" && break done test -n "$MOC_QT3" || MOC_QT3="no" if test "$MOC_QT3" = no; then as_fn_error $? "Could not find QT3 moc" "$LINENO" 5 fi fi if test "x$HAVE_QT3" = "xyes"; then HAVE_QT3_TRUE= HAVE_QT3_FALSE='#' else HAVE_QT3_TRUE='#' HAVE_QT3_FALSE= fi # # Check for Qt 4 # # Check whether --enable-qt4 was given. if test "${enable_qt4+set}" = set; then : enableval=$enable_qt4; case "${enableval}" in yes) HAVE_QT4=yes ;; no) HAVE_QT4=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-qt4" "$LINENO" 5 ;; esac else HAVE_QT4=yes fi if test "x$HAVE_QT4" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT4" >&5 $as_echo_n "checking for QT4... " >&6; } if test -n "$QT4_CFLAGS"; then pkg_cv_QT4_CFLAGS="$QT4_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" QtCore >= 4.0.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " QtCore >= 4.0.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_QT4_CFLAGS=`$PKG_CONFIG --cflags " QtCore >= 4.0.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$QT4_LIBS"; then pkg_cv_QT4_LIBS="$QT4_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" QtCore >= 4.0.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " QtCore >= 4.0.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_QT4_LIBS=`$PKG_CONFIG --libs " QtCore >= 4.0.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " QtCore >= 4.0.0 " 2>&1` else QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " QtCore >= 4.0.0 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$QT4_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ( QtCore >= 4.0.0 ) were not met: $QT4_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables QT4_CFLAGS and QT4_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables QT4_CFLAGS and QT4_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else QT4_CFLAGS=$pkg_cv_QT4_CFLAGS QT4_LIBS=$pkg_cv_QT4_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi QT4_PREFIX="`$PKG_CONFIG --variable=prefix QtCore`/bin" for ac_prog in moc-qt4 moc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MOC_QT4+:} false; then : $as_echo_n "(cached) " >&6 else case $MOC_QT4 in [\\/]* | ?:[\\/]*) ac_cv_path_MOC_QT4="$MOC_QT4" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $QT4_PREFIX do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MOC_QT4="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MOC_QT4=$ac_cv_path_MOC_QT4 if test -n "$MOC_QT4"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC_QT4" >&5 $as_echo "$MOC_QT4" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$MOC_QT4" && break done test -n "$MOC_QT4" || MOC_QT4="no" if test "$MOC_QT4" = no; then as_fn_error $? "Could not find QT4 moc" "$LINENO" 5 fi fi if test "x$HAVE_QT4" = "xyes"; then HAVE_QT4_TRUE= HAVE_QT4_FALSE='#' else HAVE_QT4_TRUE='#' HAVE_QT4_FALSE= fi # # Check for GTK+ 2.0 # # Check whether --enable-gtk was given. if test "${enable_gtk+set}" = set; then : enableval=$enable_gtk; case "${enableval}" in yes) HAVE_GTK=yes ;; no) HAVE_GTK=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-gtk" "$LINENO" 5 ;; esac else HAVE_GTK=yes fi if test "x$HAVE_GTK" = "xyes" ; then # Check for GTK 2.0 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK20" >&5 $as_echo_n "checking for GTK20... " >&6; } if test -n "$GTK20_CFLAGS"; then pkg_cv_GTK20_CFLAGS="$GTK20_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.14.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.14.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK20_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 >= 2.14.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTK20_LIBS"; then pkg_cv_GTK20_LIBS="$GTK20_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 >= 2.14.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 >= 2.14.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK20_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 >= 2.14.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK20_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gtk+-2.0 >= 2.14.0 " 2>&1` else GTK20_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gtk+-2.0 >= 2.14.0 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK20_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ( gtk+-2.0 >= 2.14.0 ) were not met: $GTK20_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTK20_CFLAGS and GTK20_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GTK20_CFLAGS and GTK20_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GTK20_CFLAGS=$pkg_cv_GTK20_CFLAGS GTK20_LIBS=$pkg_cv_GTK20_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi if test "x$HAVE_GTK" = "xyes"; then HAVE_GTK_TRUE= HAVE_GTK_FALSE='#' else HAVE_GTK_TRUE='#' HAVE_GTK_FALSE= fi # # Check for GTK+ 3.0 # # Check whether --enable-gtk3 was given. if test "${enable_gtk3+set}" = set; then : enableval=$enable_gtk3; case "${enableval}" in yes) HAVE_GTK3=yes ;; no) HAVE_GTK3=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-gtk3" "$LINENO" 5 ;; esac else HAVE_GTK3=yes fi if test "x$HAVE_GTK3" = "xyes" ; then # Check for GTK 3.0 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK30" >&5 $as_echo_n "checking for GTK30... " >&6; } if test -n "$GTK30_CFLAGS"; then pkg_cv_GTK30_CFLAGS="$GTK30_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-3.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " gtk+-3.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK30_CFLAGS=`$PKG_CONFIG --cflags " gtk+-3.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTK30_LIBS"; then pkg_cv_GTK30_LIBS="$GTK30_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" gtk+-3.0 \""; } >&5 ($PKG_CONFIG --exists --print-errors " gtk+-3.0 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK30_LIBS=`$PKG_CONFIG --libs " gtk+-3.0 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK30_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " gtk+-3.0 " 2>&1` else GTK30_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " gtk+-3.0 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK30_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ( gtk+-3.0 ) were not met: $GTK30_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTK30_CFLAGS and GTK30_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GTK30_CFLAGS and GTK30_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GTK30_CFLAGS=$pkg_cv_GTK30_CFLAGS GTK30_LIBS=$pkg_cv_GTK30_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi if test "x$HAVE_GTK3" = "xyes"; then HAVE_GTK3_TRUE= HAVE_GTK3_FALSE='#' else HAVE_GTK3_TRUE='#' HAVE_GTK3_FALSE= fi if test "x$HAVE_GTK3" = "xyes" -o "x$HAVE_GTK" = "xyes" ; then HAVE_GTK2OR3_TRUE= HAVE_GTK2OR3_FALSE='#' else HAVE_GTK2OR3_TRUE='#' HAVE_GTK2OR3_FALSE= fi # # D-Bus # # Check whether --enable-dbus was given. if test "${enable_dbus+set}" = set; then : enableval=$enable_dbus; case "${enableval}" in yes) HAVE_DBUS=yes ;; no) HAVE_DBUS=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-dbus" "$LINENO" 5 ;; esac else HAVE_DBUS=yes fi # Check whether --with-dbus-sys was given. if test "${with_dbus_sys+set}" = set; then : withval=$with_dbus_sys; fi # Check whether --with-dbus-system-socket was given. if test "${with_dbus_system_socket+set}" = set; then : withval=$with_dbus_system_socket; fi DBUS_VERSION="Disabled" DBUS_SYS_DIR="Disabled" DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="Disabled" if test "x$HAVE_DBUS" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 $as_echo_n "checking for DBUS... " >&6; } if test -n "$DBUS_CFLAGS"; then pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" dbus-1 >= 0.34 \""; } >&5 ($PKG_CONFIG --exists --print-errors " dbus-1 >= 0.34 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags " dbus-1 >= 0.34 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$DBUS_LIBS"; then pkg_cv_DBUS_LIBS="$DBUS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" dbus-1 >= 0.34 \""; } >&5 ($PKG_CONFIG --exists --print-errors " dbus-1 >= 0.34 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs " dbus-1 >= 0.34 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " dbus-1 >= 0.34 " 2>&1` else DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " dbus-1 >= 0.34 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$DBUS_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ( dbus-1 >= 0.34 ) were not met: $DBUS_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables DBUS_CFLAGS and DBUS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables DBUS_CFLAGS and DBUS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS DBUS_LIBS=$pkg_cv_DBUS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi $as_echo "#define HAVE_DBUS 1" >>confdefs.h DBUS_VERSION=`$PKG_CONFIG dbus-1 --modversion` DBUS_VERSION_MAJOR=`echo $DBUS_VERSION | awk -F. '{print $1}'` DBUS_VERSION_MINOR=`echo $DBUS_VERSION | awk -F. '{print $2}'` DBUS_VERSION_MICRO=`echo $DBUS_VERSION | awk -F. '{print $3}'` if test "z$DBUS_VERSION_MAJOR" = "z"; then DBUS_VERSION_MAJOR="0" fi if test "z$DBUS_VERSION_MINOR" = "z"; then DBUS_VERSION_MINOR="0" fi if test "z$DBUS_VERSION_MICRO" = "z"; then DBUS_VERSION_MICRO="0" fi if test "z$DBUS_VERSION_MAJOR" = "z0" -a "z$DBUS_VERSION_MINOR" = "z0" -a "z$DBUS_VERSION_MICRO" = "z0"; then echo "Error: Couldn't determine the version of your D-Bus package." echo " This is probably an error in this script, please report it" echo " along with the following information:" echo " Base D-Buss version ='$DBUS_VERSION'" echo " DBUS_VERSION_MAJOR='$DBUS_VERSION_MAJOR'" echo " DBUS_VERSION_MINOR='$DBUS_VERSION_MINOR'" echo " DBUS_VERSION_MICRO='$DBUS_VERSION_MICRO'" exit 1 else echo "Your D-Bus version is $DBUS_VERSION_MAJOR,$DBUS_VERSION_MINOR,$DBUS_VERSION_MICRO." DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR" DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR" DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO" fi DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE" if ! test -z "$with_dbus_sys" ; then DBUS_SYS_DIR="$with_dbus_sys" else DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d" fi if ! test -z "$with_dbus_system_address" ; then DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="$with_dbus_system_address" else # This is ugly, but D-Bus doesn't export this address for us # so we have to guess, pretty much all setups i've seen have # it in /var/lib/dbus or /var/run/dbus, and its defaulted to # /var/run upstream so we will try guess first then default # to /var/run/dbus. DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=/var/run/dbus/system_bus_socket" TRY_SOCKETS="/var/lib/dbus/system_bus_socket /var/run/dbus/system_bus_socket ${localstatedir}/run/dbus/system_bus_socket ${prefix}/var/run/dbus/system_bus_socket" for sock in $TRY_SOCKETS; do if test -S $sock; then DBUS_SYSTEM_BUS_DEFAULT_ADDRESS="unix:path=$sock" fi done fi SAVED_LIBS="$LIBS" LIBS="$LIBS $DBUS_LIBS" for ac_func in dbus_connection_close dbus_bus_get_private do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done LIBS="$SAVED_LIBS" fi if test "x$HAVE_DBUS" = "xyes"; then HAVE_DBUS_TRUE= HAVE_DBUS_FALSE='#' else HAVE_DBUS_TRUE='#' HAVE_DBUS_FALSE= fi # # Expat # # Check whether --with-xml was given. if test "${with_xml+set}" = set; then : withval=$with_xml; fi use_expat=false use_bsdxml=false # See what we have { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; } if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lexpat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XML_ParserCreate (); int main () { return XML_ParserCreate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_expat_XML_ParserCreate=yes else ac_cv_lib_expat_XML_ParserCreate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; } if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then : for ac_header in expat.h do : ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" if test "x$ac_cv_header_expat_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_EXPAT_H 1 _ACEOF have_expat=true else have_expat=false fi done else have_expat=false fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lbsdxml" >&5 $as_echo_n "checking for XML_ParserCreate in -lbsdxml... " >&6; } if ${ac_cv_lib_bsdxml_XML_ParserCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsdxml $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XML_ParserCreate (); int main () { return XML_ParserCreate (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsdxml_XML_ParserCreate=yes else ac_cv_lib_bsdxml_XML_ParserCreate=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsdxml_XML_ParserCreate" >&5 $as_echo "$ac_cv_lib_bsdxml_XML_ParserCreate" >&6; } if test "x$ac_cv_lib_bsdxml_XML_ParserCreate" = xyes; then : for ac_header in bsdxml.h do : ac_fn_c_check_header_mongrel "$LINENO" "bsdxml.h" "ac_cv_header_bsdxml_h" "$ac_includes_default" if test "x$ac_cv_header_bsdxml_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BSDXML_H 1 _ACEOF have_bsdxml=true else have_bsdxml=false fi done else have_bsdxml=false fi if test "x$with_xml" = "xnone"; then : elif test "x$with_xml" = "xexpat"; then use_expat=true if ! $have_expat ; then as_fn_error $? "*** libexpat requested, but not found ***" "$LINENO" 5 fi elif test "x$with_xml" = "xbsdxml"; then use_bsdxml=true if ! $have_bsdxml ; then as_fn_error $? "*** libbsdxml requested, but not found ***" "$LINENO" 5 fi elif test "x$with_xml" != "x"; then as_fn_error $? "*** unknown with-xml option ***" "$LINENO" 5 else if $have_expat ; then use_expat=true elif $have_bsdxml ; then use_bsdxml=true else as_fn_error $? "*** neither libexpat not libbsdxml could be found ***" "$LINENO" 5 fi fi if $use_expat; then with_xml=expat XML_CFLAGS=-DUSE_EXPAT_H XML_LIBS=-lexpat fi if $use_bsdxml; then with_xml=bsdxml XML_CFLAGS=-DUSE_BSDXML_H XML_LIBS=-lbsdxml fi if $use_expat || $use_bsdxml; then HAVE_XML=yes fi if test "x$HAVE_XML" = "xyes"; then HAVE_XML_TRUE= HAVE_XML_FALSE='#' else HAVE_XML_TRUE='#' HAVE_XML_FALSE= fi # # GDBM # # # Check for dbm # # Check whether --enable-dbm was given. if test "${enable_dbm+set}" = set; then : enableval=$enable_dbm; case "${enableval}" in yes) HAVE_DBM=yes ;; no) HAVE_DBM=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-dbm" "$LINENO" 5 ;; esac else HAVE_DBM=no fi # Check whether --enable-gdbm was given. if test "${enable_gdbm+set}" = set; then : enableval=$enable_gdbm; case "${enableval}" in yes) HAVE_GDBM=yes ;; no) HAVE_GDBM=no ;; *) as_fn_error $? "bad value ${enableval} for --disable-gdbm" "$LINENO" 5 ;; esac else HAVE_GDBM=yes fi if test "x$HAVE_GDBM" = "xyes" ; then if test "x$HAVE_DBM" = "xyes" ; then as_fn_error $? "*** --enable-gdbm and --enable-dbm both specified ***" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgdbm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gdbm_open (); int main () { return gdbm_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_gdbm_gdbm_open=yes else ac_cv_lib_gdbm_gdbm_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : for ac_header in gdbm.h do : ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" if test "x$ac_cv_header_gdbm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GDBM_H 1 _ACEOF have_gdbm=true else have_gdbm=false fi done else have_gdbm=false fi if ! $have_gdbm ; then as_fn_error $? "*** libgdbm not found ***" "$LINENO" 5 fi $as_echo "#define HAVE_GDBM /**/" >>confdefs.h else if test "x$HAVE_DBM" = "xyes" ; then for ac_header in ndbm.h do : ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" if test "x$ac_cv_header_ndbm_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_NDBM_H 1 _ACEOF have_dbm=true else have_dbm=false fi done if ! $have_dbm ; then as_fn_error $? "*** dbm not found ***" "$LINENO" 5 fi $as_echo "#define HAVE_DBM /**/" >>confdefs.h fi fi if test "x$HAVE_GDBM" = "xyes"; then HAVE_GDBM_TRUE= HAVE_GDBM_FALSE='#' else HAVE_GDBM_TRUE='#' HAVE_GDBM_FALSE= fi if test "x$HAVE_DBM" = "xyes"; then HAVE_DBM_TRUE= HAVE_DBM_FALSE='#' else HAVE_DBM_TRUE='#' HAVE_DBM_FALSE= fi # # libdaemon # # Check whether --enable-libdaemon was given. if test "${enable_libdaemon+set}" = set; then : enableval=$enable_libdaemon; case "${enableval}" in yes) HAVE_LIBDAEMON=yes ;; no) HAVE_LIBDAEMON=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-libdaemon" "$LINENO" 5 ;; esac else HAVE_LIBDAEMON=yes fi if test "x$HAVE_LIBDAEMON" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDAEMON" >&5 $as_echo_n "checking for LIBDAEMON... " >&6; } if test -n "$LIBDAEMON_CFLAGS"; then pkg_cv_LIBDAEMON_CFLAGS="$LIBDAEMON_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libdaemon >= 0.14 \""; } >&5 ($PKG_CONFIG --exists --print-errors " libdaemon >= 0.14 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBDAEMON_CFLAGS=`$PKG_CONFIG --cflags " libdaemon >= 0.14 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LIBDAEMON_LIBS"; then pkg_cv_LIBDAEMON_LIBS="$LIBDAEMON_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libdaemon >= 0.14 \""; } >&5 ($PKG_CONFIG --exists --print-errors " libdaemon >= 0.14 ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBDAEMON_LIBS=`$PKG_CONFIG --libs " libdaemon >= 0.14 " 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LIBDAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " libdaemon >= 0.14 " 2>&1` else LIBDAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " libdaemon >= 0.14 " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LIBDAEMON_PKG_ERRORS" >&5 as_fn_error $? "Package requirements ( libdaemon >= 0.14 ) were not met: $LIBDAEMON_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBDAEMON_CFLAGS and LIBDAEMON_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables LIBDAEMON_CFLAGS and LIBDAEMON_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else LIBDAEMON_CFLAGS=$pkg_cv_LIBDAEMON_CFLAGS LIBDAEMON_LIBS=$pkg_cv_LIBDAEMON_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi if test "x$HAVE_LIBDAEMON" = "xyes"; then HAVE_LIBDAEMON_TRUE= HAVE_LIBDAEMON_FALSE='#' else HAVE_LIBDAEMON_TRUE='#' HAVE_LIBDAEMON_FALSE= fi # # Python stuff # # Check whether --enable-python was given. if test "${enable_python+set}" = set; then : enableval=$enable_python; case "${enableval}" in yes) HAVE_PYTHON=yes ;; no) HAVE_PYTHON=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-python" "$LINENO" 5 ;; esac else HAVE_PYTHON=yes fi HAVE_PYTHON_DBUS=no HAVE_PYGOBJECT=no if test "x$HAVE_PYTHON" = "xyes" ; then if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; } prog="import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 ($PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Python interpreter is too old" "$LINENO" 5 fi am_display_PYTHON=$PYTHON else # Otherwise, try each interpreter until we find one that satisfies # VERSION. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; } if ${am_cv_pathless_PYTHON+:} false; then : $as_echo_n "(cached) " >&6 else for am_cv_pathless_PYTHON in python python2 python3 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do test "$am_cv_pathless_PYTHON" = none && break prog="import sys # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. # map returns an iterator in Python 3.0 and a list in 2.x minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] minverhex = 0 # xrange is not present in Python 3.0 and range returns an iterator for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then : break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 $as_echo "$am_cv_pathless_PYTHON" >&6; } # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. if test "$am_cv_pathless_PYTHON" = none; then PYTHON=: else # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. set dummy $am_cv_pathless_PYTHON; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PYTHON+:} false; then : $as_echo_n "(cached) " >&6 else case $PYTHON in [\\/]* | ?:[\\/]*) ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PYTHON=$ac_cv_path_PYTHON if test -n "$PYTHON"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 $as_echo "$PYTHON" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi am_display_PYTHON=$am_cv_pathless_PYTHON fi if test "$PYTHON" = :; then as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 $as_echo_n "checking for $am_display_PYTHON version... " >&6; } if ${am_cv_python_version+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 $as_echo "$am_cv_python_version" >&6; } PYTHON_VERSION=$am_cv_python_version PYTHON_PREFIX='${prefix}' PYTHON_EXEC_PREFIX='${exec_prefix}' { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; } if ${am_cv_python_platform+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 $as_echo "$am_cv_python_platform" >&6; } PYTHON_PLATFORM=$am_cv_python_platform # Just factor out some code duplication. am_python_setup_sysconfig="\ import sys # Prefer sysconfig over distutils.sysconfig, for better compatibility # with python 3.x. See automake bug#10227. try: import sysconfig except ImportError: can_use_sysconfig = 0 else: can_use_sysconfig = 1 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: # try: from platform import python_implementation if python_implementation() == 'CPython' and sys.version[:3] == '2.7': can_use_sysconfig = 0 except ImportError: pass" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } if ${am_cv_python_pythondir+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$prefix" = xNONE then am_py_prefix=$ac_default_prefix else am_py_prefix=$prefix fi am_cv_python_pythondir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` case $am_cv_python_pythondir in $am_py_prefix*) am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` ;; *) case $am_py_prefix in /usr|/System*) ;; *) am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 $as_echo "$am_cv_python_pythondir" >&6; } pythondir=$am_cv_python_pythondir pkgpythondir=\${pythondir}/$PACKAGE { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } if ${am_cv_python_pyexecdir+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$exec_prefix" = xNONE then am_py_exec_prefix=$am_py_prefix else am_py_exec_prefix=$exec_prefix fi am_cv_python_pyexecdir=`$PYTHON -c " $am_python_setup_sysconfig if can_use_sysconfig: sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) else: from distutils import sysconfig sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') sys.stdout.write(sitedir)"` case $am_cv_python_pyexecdir in $am_py_exec_prefix*) am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` ;; *) case $am_py_exec_prefix in /usr|/System*) ;; *) am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages ;; esac ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 $as_echo "$am_cv_python_pyexecdir" >&6; } pyexecdir=$am_cv_python_pyexecdir pkgpyexecdir=\${pyexecdir}/$PACKAGE fi # Check whether --enable-pygobject was given. if test "${enable_pygobject+set}" = set; then : enableval=$enable_pygobject; case "${enableval}" in yes) HAVE_PYGOBJECT=yes ;; no) HAVE_PYGOBJECT=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-pygobject" "$LINENO" 5 ;; esac else HAVE_PYGOBJECT=yes fi if test "x$HAVE_PYGOBJECT" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYGOBJECT" >&5 $as_echo_n "checking for PYGOBJECT... " >&6; } if test -n "$PYGOBJECT_CFLAGS"; then pkg_cv_PYGOBJECT_CFLAGS="$PYGOBJECT_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "pygobject-3.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PYGOBJECT_CFLAGS=`$PKG_CONFIG --cflags "pygobject-3.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PYGOBJECT_LIBS"; then pkg_cv_PYGOBJECT_LIBS="$PYGOBJECT_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygobject-3.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "pygobject-3.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PYGOBJECT_LIBS=`$PKG_CONFIG --libs "pygobject-3.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pygobject-3.0" 2>&1` else PYGOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pygobject-3.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PYGOBJECT_PKG_ERRORS" >&5 as_fn_error $? "Could not find Python GObject" "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Could not find Python GObject" "$LINENO" 5 else PYGOBJECT_CFLAGS=$pkg_cv_PYGOBJECT_CFLAGS PYGOBJECT_LIBS=$pkg_cv_PYGOBJECT_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi fi if test "x$HAVE_DBUS" = "xyes" ; then # Check whether --enable-python-dbus was given. if test "${enable_python_dbus+set}" = set; then : enableval=$enable_python_dbus; case "${enableval}" in yes) HAVE_PYTHON_DBUS=yes ;; no) HAVE_PYTHON_DBUS=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-python-dbus" "$LINENO" 5 ;; esac else HAVE_PYTHON_DBUS=yes fi if test "x$HAVE_PYTHON_DBUS" = "xyes"; then py_mod_var=`echo dbus'_' | sed 'y%./+-%__p_%'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module dbus" >&5 $as_echo_n "checking for python module dbus... " >&6; } if eval \${py_cv_mod_$py_mod_var+:} false; then : $as_echo_n "(cached) " >&6 else prog=" import sys try: import dbus except ImportError: sys.exit(1) except: sys.exit(0) sys.exit(0)" if $PYTHON -c "$prog" 1>&5 2>&5 then eval "py_cv_mod_$py_mod_var=yes" else eval "py_cv_mod_$py_mod_var=no" fi fi py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` if test "x$py_val" != xno; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Could not find Python module dbus" "$LINENO" 5 fi fi py_mod_var=`echo socket'_' | sed 'y%./+-%__p_%'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module socket" >&5 $as_echo_n "checking for python module socket... " >&6; } if eval \${py_cv_mod_$py_mod_var+:} false; then : $as_echo_n "(cached) " >&6 else prog=" import sys try: import socket except ImportError: sys.exit(1) except: sys.exit(0) sys.exit(0)" if $PYTHON -c "$prog" 1>&5 2>&5 then eval "py_cv_mod_$py_mod_var=yes" else eval "py_cv_mod_$py_mod_var=no" fi fi py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` if test "x$py_val" != xno; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Could not find Python module socket" "$LINENO" 5 fi if test "x$HAVE_GDBM" = "xyes"; then py_mod_var=`echo gdbm'_' | sed 'y%./+-%__p_%'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module gdbm" >&5 $as_echo_n "checking for python module gdbm... " >&6; } if eval \${py_cv_mod_$py_mod_var+:} false; then : $as_echo_n "(cached) " >&6 else prog=" import sys try: import gdbm except ImportError: sys.exit(1) except: sys.exit(0) sys.exit(0)" if $PYTHON -c "$prog" 1>&5 2>&5 then eval "py_cv_mod_$py_mod_var=yes" else eval "py_cv_mod_$py_mod_var=no" fi fi py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` if test "x$py_val" != xno; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Could not find Python module gdbm" "$LINENO" 5 fi fi if test "x$HAVE_DBM" = "xyes"; then py_mod_var=`echo dbm'_' | sed 'y%./+-%__p_%'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module dbm" >&5 $as_echo_n "checking for python module dbm... " >&6; } if eval \${py_cv_mod_$py_mod_var+:} false; then : $as_echo_n "(cached) " >&6 else prog=" import sys try: import dbm except ImportError: sys.exit(1) except: sys.exit(0) sys.exit(0)" if $PYTHON -c "$prog" 1>&5 2>&5 then eval "py_cv_mod_$py_mod_var=yes" else eval "py_cv_mod_$py_mod_var=no" fi fi py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` if test "x$py_val" != xno; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "Could not find Python module dbm" "$LINENO" 5 fi fi fi fi if test "x$HAVE_PYTHON" = "xyes" ; then HAVE_PYTHON_TRUE= HAVE_PYTHON_FALSE='#' else HAVE_PYTHON_TRUE='#' HAVE_PYTHON_FALSE= fi if test "x$HAVE_PYGOBJECT" = "xyes"; then HAVE_PYGOBJECT_TRUE= HAVE_PYGOBJECT_FALSE='#' else HAVE_PYGOBJECT_TRUE='#' HAVE_PYGOBJECT_FALSE= fi if test "x$HAVE_PYTHON_DBUS" = "xyes"; then HAVE_PYTHON_DBUS_TRUE= HAVE_PYTHON_DBUS_FALSE='#' else HAVE_PYTHON_DBUS_TRUE='#' HAVE_PYTHON_DBUS_FALSE= fi # # Check for mono stuff # HAVE_MONO=no if test "x$HAVE_DBUS" = "xyes" ; then # Check whether --enable-mono was given. if test "${enable_mono+set}" = set; then : enableval=$enable_mono; case "${enableval}" in yes) HAVE_MONO=yes ;; no) HAVE_MONO=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-mono" "$LINENO" 5 ;; esac else HAVE_MONO=yes fi if test "x$HAVE_MONO" = "xyes" ; then # Extract the first word of "mcs", so it can be a program name with args. set dummy mcs; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MCS+:} false; then : $as_echo_n "(cached) " >&6 else case $MCS in [\\/]* | ?:[\\/]*) ac_cv_path_MCS="$MCS" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MCS=$ac_cv_path_MCS if test -n "$MCS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 $as_echo "$MCS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$MCS" = "x" ; then as_fn_error $? "Can not find \"mcs\" - The Mono C-Sharp Compiler) in your PATH" "$LINENO" 5 fi # Extract the first word of "gacutil", so it can be a program name with args. set dummy gacutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GACUTIL+:} false; then : $as_echo_n "(cached) " >&6 else case $GACUTIL in [\\/]* | ?:[\\/]*) ac_cv_path_GACUTIL="$GACUTIL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi GACUTIL=$ac_cv_path_GACUTIL if test -n "$GACUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GACUTIL" >&5 $as_echo "$GACUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$GACUTIL" = "x" ; then as_fn_error $? "Can not find \"gacutil\" in your PATH" "$LINENO" 5 fi fi fi if test "x$HAVE_MONO" = "xyes"; then HAVE_MONO_TRUE= HAVE_MONO_FALSE='#' else HAVE_MONO_TRUE='#' HAVE_MONO_FALSE= fi # # Check for monodoc stuff # HAVE_MONODOC=no # Check whether --enable-monodoc was given. if test "${enable_monodoc+set}" = set; then : enableval=$enable_monodoc; case "${enableval}" in yes) HAVE_MONODOC=yes ;; no) HAVE_MONODOC=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-monodoc" "$LINENO" 5 ;; esac else HAVE_MONODOC=yes fi if test "x$HAVE_MONO" = "xyes" && test "x$HAVE_MONODOC" = "xyes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONODOC" >&5 $as_echo_n "checking for MONODOC... " >&6; } if test -n "$MONODOC_CFLAGS"; then pkg_cv_MONODOC_CFLAGS="$MONODOC_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"monodoc >= 1.1.8\""; } >&5 ($PKG_CONFIG --exists --print-errors "monodoc >= 1.1.8") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONODOC_CFLAGS=`$PKG_CONFIG --cflags "monodoc >= 1.1.8" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$MONODOC_LIBS"; then pkg_cv_MONODOC_LIBS="$MONODOC_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"monodoc >= 1.1.8\""; } >&5 ($PKG_CONFIG --exists --print-errors "monodoc >= 1.1.8") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONODOC_LIBS=`$PKG_CONFIG --libs "monodoc >= 1.1.8" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then MONODOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "monodoc >= 1.1.8" 2>&1` else MONODOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "monodoc >= 1.1.8" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$MONODOC_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (monodoc >= 1.1.8) were not met: $MONODOC_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MONODOC_CFLAGS and MONODOC_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables MONODOC_CFLAGS and MONODOC_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else MONODOC_CFLAGS=$pkg_cv_MONODOC_CFLAGS MONODOC_LIBS=$pkg_cv_MONODOC_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi MONODOC_DIR=`$PKG_CONFIG --variable=sourcesdir monodoc` # Extract the first word of "monodocer", so it can be a program name with args. set dummy monodocer; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MONODOCER+:} false; then : $as_echo_n "(cached) " >&6 else case $MONODOCER in [\\/]* | ?:[\\/]*) ac_cv_path_MONODOCER="$MONODOCER" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MONODOCER="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MONODOCER=$ac_cv_path_MONODOCER if test -n "$MONODOCER"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONODOCER" >&5 $as_echo "$MONODOCER" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "mdassembler", so it can be a program name with args. set dummy mdassembler; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MDASSEMBLER+:} false; then : $as_echo_n "(cached) " >&6 else case $MDASSEMBLER in [\\/]* | ?:[\\/]*) ac_cv_path_MDASSEMBLER="$MDASSEMBLER" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MDASSEMBLER="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MDASSEMBLER=$ac_cv_path_MDASSEMBLER if test -n "$MDASSEMBLER"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MDASSEMBLER" >&5 $as_echo "$MDASSEMBLER" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$HAVE_MONODOC" = "xyes"; then HAVE_MONODOC_TRUE= HAVE_MONODOC_FALSE='#' else HAVE_MONODOC_TRUE='#' HAVE_MONODOC_FALSE= fi # # Build autoipd? # # Check whether --enable-autoipd was given. if test "${enable_autoipd+set}" = set; then : enableval=$enable_autoipd; case "${enableval}" in yes) ENABLE_AUTOIPD=yes ;; no) ENABLE_AUTOIPD=no ;; *) as_fn_error $? "bad value ${enableval} for --disable-autoipd" "$LINENO" 5 ;; esac else ENABLE_AUTOIPD=yes fi if test "x$ENABLE_AUTOIPD" = "xyes"; then ENABLE_AUTOIPD_TRUE= ENABLE_AUTOIPD_FALSE='#' else ENABLE_AUTOIPD_TRUE='#' ENABLE_AUTOIPD_FALSE= fi # # Defining users and groups # # Check whether --with-avahi_user was given. if test "${with_avahi_user+set}" = set; then : withval=$with_avahi_user; fi if test -z "$with_avahi_user" ; then AVAHI_USER=avahi else AVAHI_USER=$with_avahi_user fi cat >>confdefs.h <<_ACEOF #define AVAHI_USER "$AVAHI_USER" _ACEOF # Check whether --with-avahi_group was given. if test "${with_avahi_group+set}" = set; then : withval=$with_avahi_group; fi if test -z "$with_avahi_group" ; then AVAHI_GROUP=avahi else AVAHI_GROUP=$with_avahi_group fi cat >>confdefs.h <<_ACEOF #define AVAHI_GROUP "$AVAHI_GROUP" _ACEOF # Check whether --with-avahi_priv_access_group was given. if test "${with_avahi_priv_access_group+set}" = set; then : withval=$with_avahi_priv_access_group; fi if test -z "$with_avahi_priv_access_group" ; then AVAHI_PRIV_ACCESS_GROUP=netdev else AVAHI_PRIV_ACCESS_GROUP=$with_avahi_priv_access_group fi cat >>confdefs.h <<_ACEOF #define AVAHI_PRIV_ACCESS_GROUP "$AVAHI_PRIV_ACCESS_GROUP" _ACEOF # Check whether --with-autoipd_user was given. if test "${with_autoipd_user+set}" = set; then : withval=$with_autoipd_user; fi if test -z "$with_autoipd_user" ; then AVAHI_AUTOIPD_USER=avahi-autoipd else AVAHI_AUTOIPD_USER=$with_autoipd_user fi cat >>confdefs.h <<_ACEOF #define AVAHI_AUTOIPD_USER "$AVAHI_AUTOIPD_USER" _ACEOF # Check whether --with-autoipd_group was given. if test "${with_autoipd_group+set}" = set; then : withval=$with_autoipd_group; fi if test -z "$with_autoipd_group" ; then AVAHI_AUTOIPD_GROUP=avahi-autoipd else AVAHI_AUTOIPD_GROUP=$with_autoipd_group fi cat >>confdefs.h <<_ACEOF #define AVAHI_AUTOIPD_GROUP "$AVAHI_AUTOIPD_GROUP" _ACEOF # # Avahi runtime dir # avahi_runtime_dir="/run" avahi_socket="${avahi_runtime_dir}/avahi-daemon/socket" # # Avahi interfaces dir # if test "x$HAVE_PYTHON_DBUS" = "xyes" -o "x$HAVE_GTK" = "xyes" -o "x$HAVE_GTK3" = "xyes"; then interfacesdir="${datadir}/${PACKAGE}/interfaces/" fi # # Doxygen # # Files: DX_PROJECT=avahi DX_CONFIG=doxygen.cfg DX_DOCDIR=doxygen # Environment variables used inside doxygen.cfg: DX_ENV="$DX_ENV SRCDIR='$srcdir'" DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'" DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'" DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'" # Doxygen itself: # Check whether --enable-doxygen-doc was given. if test "${enable_doxygen_doc+set}" = set; then : enableval=$enable_doxygen_doc; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_doc=1 ;; #( n|N|no|No|NO) DX_FLAG_doc=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5 ;; esac else DX_FLAG_doc=1 fi if test "$DX_FLAG_doc" = 1; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. set dummy ${ac_tool_prefix}doxygen; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_DOXYGEN+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_DOXYGEN in [\\/]* | ?:[\\/]*) ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN if test -n "$DX_DOXYGEN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5 $as_echo "$DX_DOXYGEN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_DOXYGEN"; then ac_pt_DX_DOXYGEN=$DX_DOXYGEN # Extract the first word of "doxygen", so it can be a program name with args. set dummy doxygen; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_DOXYGEN in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN if test -n "$ac_pt_DX_DOXYGEN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5 $as_echo "$ac_pt_DX_DOXYGEN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_DOXYGEN" = x; then DX_DOXYGEN="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_DOXYGEN=$ac_pt_DX_DOXYGEN fi else DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN" fi if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;} DX_FLAG_doc=0 fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args. set dummy ${ac_tool_prefix}perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_PERL=$ac_cv_path_DX_PERL if test -n "$DX_PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5 $as_echo "$DX_PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_PERL"; then ac_pt_DX_PERL=$DX_PERL # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_PERL in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL if test -n "$ac_pt_DX_PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5 $as_echo "$ac_pt_DX_PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_PERL" = x; then DX_PERL="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_PERL=$ac_pt_DX_PERL fi else DX_PERL="$ac_cv_path_DX_PERL" fi if test "$DX_FLAG_doc$DX_PERL" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;} DX_FLAG_doc=0 fi : fi if test "$DX_FLAG_doc" = 1; then if :; then DX_COND_doc_TRUE= DX_COND_doc_FALSE='#' else DX_COND_doc_TRUE='#' DX_COND_doc_FALSE= fi DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'" : else if false; then DX_COND_doc_TRUE= DX_COND_doc_FALSE='#' else DX_COND_doc_TRUE='#' DX_COND_doc_FALSE= fi : fi # Dot for graphics: # Check whether --enable-doxygen-dot was given. if test "${enable_doxygen_dot+set}" = set; then : enableval=$enable_doxygen_dot; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_dot=1 test "$DX_FLAG_doc" = "1" \ || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_dot=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5 ;; esac else DX_FLAG_dot=1 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0 fi if test "$DX_FLAG_dot" = 1; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. set dummy ${ac_tool_prefix}dot; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_DOT+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_DOT in [\\/]* | ?:[\\/]*) ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_DOT=$ac_cv_path_DX_DOT if test -n "$DX_DOT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5 $as_echo "$DX_DOT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_DOT"; then ac_pt_DX_DOT=$DX_DOT # Extract the first word of "dot", so it can be a program name with args. set dummy dot; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_DOT+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_DOT in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT if test -n "$ac_pt_DX_DOT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5 $as_echo "$ac_pt_DX_DOT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_DOT" = x; then DX_DOT="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_DOT=$ac_pt_DX_DOT fi else DX_DOT="$ac_cv_path_DX_DOT" fi if test "$DX_FLAG_dot$DX_DOT" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;} DX_FLAG_dot=0 fi : fi if test "$DX_FLAG_dot" = 1; then if :; then DX_COND_dot_TRUE= DX_COND_dot_FALSE='#' else DX_COND_dot_TRUE='#' DX_COND_dot_FALSE= fi DX_ENV="$DX_ENV HAVE_DOT='YES'" DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'" : else if false; then DX_COND_dot_TRUE= DX_COND_dot_FALSE='#' else DX_COND_dot_TRUE='#' DX_COND_dot_FALSE= fi DX_ENV="$DX_ENV HAVE_DOT='NO'" : fi # Man pages generation: # Check whether --enable-doxygen-man was given. if test "${enable_doxygen_man+set}" = set; then : enableval=$enable_doxygen_man; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_man=1 test "$DX_FLAG_doc" = "1" \ || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_man=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5 ;; esac else DX_FLAG_man=0 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0 fi if test "$DX_FLAG_man" = 1; then : fi if test "$DX_FLAG_man" = 1; then if :; then DX_COND_man_TRUE= DX_COND_man_FALSE='#' else DX_COND_man_TRUE='#' DX_COND_man_FALSE= fi DX_ENV="$DX_ENV GENERATE_MAN='YES'" : else if false; then DX_COND_man_TRUE= DX_COND_man_FALSE='#' else DX_COND_man_TRUE='#' DX_COND_man_FALSE= fi DX_ENV="$DX_ENV GENERATE_MAN='NO'" : fi # RTF file generation: # Check whether --enable-doxygen-rtf was given. if test "${enable_doxygen_rtf+set}" = set; then : enableval=$enable_doxygen_rtf; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_rtf=1 test "$DX_FLAG_doc" = "1" \ || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_rtf=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5 ;; esac else DX_FLAG_rtf=0 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0 fi if test "$DX_FLAG_rtf" = 1; then : fi if test "$DX_FLAG_rtf" = 1; then if :; then DX_COND_rtf_TRUE= DX_COND_rtf_FALSE='#' else DX_COND_rtf_TRUE='#' DX_COND_rtf_FALSE= fi DX_ENV="$DX_ENV GENERATE_RTF='YES'" : else if false; then DX_COND_rtf_TRUE= DX_COND_rtf_FALSE='#' else DX_COND_rtf_TRUE='#' DX_COND_rtf_FALSE= fi DX_ENV="$DX_ENV GENERATE_RTF='NO'" : fi # XML file generation: # Check whether --enable-doxygen-xml was given. if test "${enable_doxygen_xml+set}" = set; then : enableval=$enable_doxygen_xml; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_xml=1 test "$DX_FLAG_doc" = "1" \ || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_xml=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5 ;; esac else DX_FLAG_xml=1 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0 fi if test "$DX_FLAG_xml" = 1; then : fi if test "$DX_FLAG_xml" = 1; then if :; then DX_COND_xml_TRUE= DX_COND_xml_FALSE='#' else DX_COND_xml_TRUE='#' DX_COND_xml_FALSE= fi DX_ENV="$DX_ENV GENERATE_XML='YES'" : else if false; then DX_COND_xml_TRUE= DX_COND_xml_FALSE='#' else DX_COND_xml_TRUE='#' DX_COND_xml_FALSE= fi DX_ENV="$DX_ENV GENERATE_XML='NO'" : fi # (Compressed) HTML help generation: # Check whether --enable-doxygen-chm was given. if test "${enable_doxygen_chm+set}" = set; then : enableval=$enable_doxygen_chm; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_chm=1 test "$DX_FLAG_doc" = "1" \ || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_chm=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5 ;; esac else DX_FLAG_chm=0 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0 fi if test "$DX_FLAG_chm" = 1; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args. set dummy ${ac_tool_prefix}hhc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_HHC+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_HHC in [\\/]* | ?:[\\/]*) ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_HHC=$ac_cv_path_DX_HHC if test -n "$DX_HHC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5 $as_echo "$DX_HHC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_HHC"; then ac_pt_DX_HHC=$DX_HHC # Extract the first word of "hhc", so it can be a program name with args. set dummy hhc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_HHC+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_HHC in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC if test -n "$ac_pt_DX_HHC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5 $as_echo "$ac_pt_DX_HHC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_HHC" = x; then DX_HHC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_HHC=$ac_pt_DX_HHC fi else DX_HHC="$ac_cv_path_DX_HHC" fi if test "$DX_FLAG_chm$DX_HHC" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;} DX_FLAG_chm=0 fi : fi if test "$DX_FLAG_chm" = 1; then if :; then DX_COND_chm_TRUE= DX_COND_chm_FALSE='#' else DX_COND_chm_TRUE='#' DX_COND_chm_FALSE= fi DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'" DX_ENV="$DX_ENV GENERATE_HTML='YES'" DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'" : else if false; then DX_COND_chm_TRUE= DX_COND_chm_FALSE='#' else DX_COND_chm_TRUE='#' DX_COND_chm_FALSE= fi DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'" : fi # Seperate CHI file generation. # Check whether --enable-doxygen-chi was given. if test "${enable_doxygen_chi+set}" = set; then : enableval=$enable_doxygen_chi; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_chi=1 test "$DX_FLAG_chm" = "1" \ || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_chi=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5 ;; esac else DX_FLAG_chi=0 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0 fi if test "$DX_FLAG_chi" = 1; then : fi if test "$DX_FLAG_chi" = 1; then if :; then DX_COND_chi_TRUE= DX_COND_chi_FALSE='#' else DX_COND_chi_TRUE='#' DX_COND_chi_FALSE= fi DX_ENV="$DX_ENV GENERATE_CHI='YES'" : else if false; then DX_COND_chi_TRUE= DX_COND_chi_FALSE='#' else DX_COND_chi_TRUE='#' DX_COND_chi_FALSE= fi DX_ENV="$DX_ENV GENERATE_CHI='NO'" : fi # Plain HTML pages generation: # Check whether --enable-doxygen-html was given. if test "${enable_doxygen_html+set}" = set; then : enableval=$enable_doxygen_html; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_html=1 test "$DX_FLAG_doc" = "1" \ || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5 test "$DX_FLAG_chm" = "0" \ || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_html=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5 ;; esac else DX_FLAG_html=1 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0 fi if test "$DX_FLAG_html" = 1; then : fi if test "$DX_FLAG_html" = 1; then if :; then DX_COND_html_TRUE= DX_COND_html_FALSE='#' else DX_COND_html_TRUE='#' DX_COND_html_FALSE= fi DX_ENV="$DX_ENV GENERATE_HTML='YES'" : else if false; then DX_COND_html_TRUE= DX_COND_html_FALSE='#' else DX_COND_html_TRUE='#' DX_COND_html_FALSE= fi test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'" : fi # PostScript file generation: # Check whether --enable-doxygen-ps was given. if test "${enable_doxygen_ps+set}" = set; then : enableval=$enable_doxygen_ps; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_ps=1 test "$DX_FLAG_doc" = "1" \ || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_ps=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5 ;; esac else DX_FLAG_ps=0 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0 fi if test "$DX_FLAG_ps" = 1; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args. set dummy ${ac_tool_prefix}latex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_LATEX+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_LATEX in [\\/]* | ?:[\\/]*) ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_LATEX=$ac_cv_path_DX_LATEX if test -n "$DX_LATEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5 $as_echo "$DX_LATEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_LATEX"; then ac_pt_DX_LATEX=$DX_LATEX # Extract the first word of "latex", so it can be a program name with args. set dummy latex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_LATEX in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX if test -n "$ac_pt_DX_LATEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5 $as_echo "$ac_pt_DX_LATEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_LATEX" = x; then DX_LATEX="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_LATEX=$ac_pt_DX_LATEX fi else DX_LATEX="$ac_cv_path_DX_LATEX" fi if test "$DX_FLAG_ps$DX_LATEX" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;} DX_FLAG_ps=0 fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. set dummy ${ac_tool_prefix}makeindex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_MAKEINDEX+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_MAKEINDEX in [\\/]* | ?:[\\/]*) ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX if test -n "$DX_MAKEINDEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 $as_echo "$DX_MAKEINDEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_MAKEINDEX"; then ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX # Extract the first word of "makeindex", so it can be a program name with args. set dummy makeindex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_MAKEINDEX in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX if test -n "$ac_pt_DX_MAKEINDEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_MAKEINDEX" = x; then DX_MAKEINDEX="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX fi else DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" fi if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;} DX_FLAG_ps=0 fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args. set dummy ${ac_tool_prefix}dvips; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_DVIPS+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_DVIPS in [\\/]* | ?:[\\/]*) ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_DVIPS=$ac_cv_path_DX_DVIPS if test -n "$DX_DVIPS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5 $as_echo "$DX_DVIPS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_DVIPS"; then ac_pt_DX_DVIPS=$DX_DVIPS # Extract the first word of "dvips", so it can be a program name with args. set dummy dvips; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_DVIPS in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS if test -n "$ac_pt_DX_DVIPS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5 $as_echo "$ac_pt_DX_DVIPS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_DVIPS" = x; then DX_DVIPS="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_DVIPS=$ac_pt_DX_DVIPS fi else DX_DVIPS="$ac_cv_path_DX_DVIPS" fi if test "$DX_FLAG_ps$DX_DVIPS" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;} DX_FLAG_ps=0 fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. set dummy ${ac_tool_prefix}egrep; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_EGREP in [\\/]* | ?:[\\/]*) ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_EGREP=$ac_cv_path_DX_EGREP if test -n "$DX_EGREP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 $as_echo "$DX_EGREP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_EGREP"; then ac_pt_DX_EGREP=$DX_EGREP # Extract the first word of "egrep", so it can be a program name with args. set dummy egrep; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_EGREP in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP if test -n "$ac_pt_DX_EGREP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 $as_echo "$ac_pt_DX_EGREP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_EGREP" = x; then DX_EGREP="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_EGREP=$ac_pt_DX_EGREP fi else DX_EGREP="$ac_cv_path_DX_EGREP" fi if test "$DX_FLAG_ps$DX_EGREP" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;} DX_FLAG_ps=0 fi : fi if test "$DX_FLAG_ps" = 1; then if :; then DX_COND_ps_TRUE= DX_COND_ps_FALSE='#' else DX_COND_ps_TRUE='#' DX_COND_ps_FALSE= fi : else if false; then DX_COND_ps_TRUE= DX_COND_ps_FALSE='#' else DX_COND_ps_TRUE='#' DX_COND_ps_FALSE= fi : fi # PDF file generation: # Check whether --enable-doxygen-pdf was given. if test "${enable_doxygen_pdf+set}" = set; then : enableval=$enable_doxygen_pdf; case "$enableval" in #( y|Y|yes|Yes|YES) DX_FLAG_pdf=1 test "$DX_FLAG_doc" = "1" \ || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5 ;; #( n|N|no|No|NO) DX_FLAG_pdf=0 ;; #( *) as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5 ;; esac else DX_FLAG_pdf=0 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0 fi if test "$DX_FLAG_pdf" = 1; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_PDFLATEX+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_PDFLATEX in [\\/]* | ?:[\\/]*) ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX if test -n "$DX_PDFLATEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5 $as_echo "$DX_PDFLATEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_PDFLATEX"; then ac_pt_DX_PDFLATEX=$DX_PDFLATEX # Extract the first word of "pdflatex", so it can be a program name with args. set dummy pdflatex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_PDFLATEX in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX if test -n "$ac_pt_DX_PDFLATEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5 $as_echo "$ac_pt_DX_PDFLATEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_PDFLATEX" = x; then DX_PDFLATEX="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_PDFLATEX=$ac_pt_DX_PDFLATEX fi else DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX" fi if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;} DX_FLAG_pdf=0 fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. set dummy ${ac_tool_prefix}makeindex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_MAKEINDEX+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_MAKEINDEX in [\\/]* | ?:[\\/]*) ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX if test -n "$DX_MAKEINDEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 $as_echo "$DX_MAKEINDEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_MAKEINDEX"; then ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX # Extract the first word of "makeindex", so it can be a program name with args. set dummy makeindex; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_MAKEINDEX in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX if test -n "$ac_pt_DX_MAKEINDEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_MAKEINDEX" = x; then DX_MAKEINDEX="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX fi else DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" fi if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;} DX_FLAG_pdf=0 fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. set dummy ${ac_tool_prefix}egrep; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DX_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else case $DX_EGREP in [\\/]* | ?:[\\/]*) ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DX_EGREP=$ac_cv_path_DX_EGREP if test -n "$DX_EGREP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 $as_echo "$DX_EGREP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_DX_EGREP"; then ac_pt_DX_EGREP=$DX_EGREP # Extract the first word of "egrep", so it can be a program name with args. set dummy egrep; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_DX_EGREP in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP if test -n "$ac_pt_DX_EGREP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 $as_echo "$ac_pt_DX_EGREP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_DX_EGREP" = x; then DX_EGREP="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DX_EGREP=$ac_pt_DX_EGREP fi else DX_EGREP="$ac_cv_path_DX_EGREP" fi if test "$DX_FLAG_pdf$DX_EGREP" = 1; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;} DX_FLAG_pdf=0 fi : fi if test "$DX_FLAG_pdf" = 1; then if :; then DX_COND_pdf_TRUE= DX_COND_pdf_FALSE='#' else DX_COND_pdf_TRUE='#' DX_COND_pdf_FALSE= fi : else if false; then DX_COND_pdf_TRUE= DX_COND_pdf_FALSE='#' else DX_COND_pdf_TRUE='#' DX_COND_pdf_FALSE= fi : fi # LaTeX generation for PS and/or PDF: if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then if :; then DX_COND_latex_TRUE= DX_COND_latex_FALSE='#' else DX_COND_latex_TRUE='#' DX_COND_latex_FALSE= fi DX_ENV="$DX_ENV GENERATE_LATEX='YES'" else if false; then DX_COND_latex_TRUE= DX_COND_latex_FALSE='#' else DX_COND_latex_TRUE='#' DX_COND_latex_FALSE= fi DX_ENV="$DX_ENV GENERATE_LATEX='NO'" fi # Paper size for PS and/or PDF: case "$DOXYGEN_PAPER_SIZE" in #( "") DOXYGEN_PAPER_SIZE="" ;; #( a4wide|a4|letter|legal|executive) DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" ;; #( *) as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5 ;; esac #For debugging: #echo DX_FLAG_doc=$DX_FLAG_doc #echo DX_FLAG_dot=$DX_FLAG_dot #echo DX_FLAG_man=$DX_FLAG_man #echo DX_FLAG_html=$DX_FLAG_html #echo DX_FLAG_chm=$DX_FLAG_chm #echo DX_FLAG_chi=$DX_FLAG_chi #echo DX_FLAG_rtf=$DX_FLAG_rtf #echo DX_FLAG_xml=$DX_FLAG_xml #echo DX_FLAG_pdf=$DX_FLAG_pdf #echo DX_FLAG_ps=$DX_FLAG_ps #echo DX_ENV=$DX_ENV # Check whether --enable-core-docs was given. if test "${enable_core_docs+set}" = set; then : enableval=$enable_core_docs; case "${enableval}" in yes) ENABLE_CORE_DOCS=yes ;; no) ENABLE_CORE_DOCS=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-core-docs" "$LINENO" 5 ;; esac else ENABLE_CORE_DOCS=no fi if test "x$ENABLE_CORE_DOCS" = xyes; then ENABLE_CORE_DOCS_TRUE= ENABLE_CORE_DOCS_FALSE='#' else ENABLE_CORE_DOCS_TRUE='#' ENABLE_CORE_DOCS_FALSE= fi # # Build and Install man pages # # Check whether --enable-manpages was given. if test "${enable_manpages+set}" = set; then : enableval=$enable_manpages; case "${enableval}" in yes) manpages=yes ;; no) manpages=no ;; *) as_fn_error $? "bad value ${enableval} for --disable-manpages" "$LINENO" 5 ;; esac else manpages=yes fi if test x$manpages = xyes ; then # # XMLTOMAN manpage generation # # Check whether --enable-xmltoman was given. if test "${enable_xmltoman+set}" = set; then : enableval=$enable_xmltoman; case "${enableval}" in yes) xmltoman=yes ;; no) xmltoman=no ;; *) as_fn_error $? "bad value ${enableval} for --disable-xmltoman" "$LINENO" 5 ;; esac else xmltoman=yes fi if test x$xmltoman = xyes ; then # Extract the first word of "xmltoman", so it can be a program name with args. set dummy xmltoman; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_have_xmltoman+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$have_xmltoman"; then ac_cv_prog_have_xmltoman="$have_xmltoman" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_have_xmltoman="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_have_xmltoman" && ac_cv_prog_have_xmltoman="no" fi fi have_xmltoman=$ac_cv_prog_have_xmltoman if test -n "$have_xmltoman"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmltoman" >&5 $as_echo "$have_xmltoman" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test x$have_xmltoman = xno -o x$xmltoman = xno; then if ! test -e $srcdir/man/avahi-daemon.8 ; then as_fn_error $? "*** xmltoman was not found or was disabled, it is required to build the manpages as they have not been pre-built, install xmltoman, pass --disable-manpages or dont pass --disable-xmltoman" "$LINENO" 5 exit 1 fi { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&5 $as_echo "$as_me: WARNING: *** Not rebuilding man pages as xmltoman is not found ***" >&2;} xmltoman=no fi fi if test "x$xmltoman" = xyes; then USE_XMLTOMAN_TRUE= USE_XMLTOMAN_FALSE='#' else USE_XMLTOMAN_TRUE='#' USE_XMLTOMAN_FALSE= fi if test "x$manpages" = xyes; then BUILD_MANPAGES_TRUE= BUILD_MANPAGES_FALSE='#' else BUILD_MANPAGES_TRUE='#' BUILD_MANPAGES_FALSE= fi # # Conditionally compile test and example programs # # Check whether --enable-tests was given. if test "${enable_tests+set}" = set; then : enableval=$enable_tests; case "${enableval}" in yes) ENABLE_TESTS=yes ;; no) ENABLE_TESTS=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;; esac else ENABLE_TESTS=no fi if test "x$ENABLE_TESTS" = "xyes"; then ENABLE_TESTS_TRUE= ENABLE_TESTS_FALSE='#' else ENABLE_TESTS_TRUE='#' ENABLE_TESTS_FALSE= fi # # Optionally enable libdns_sd compatibility support # # Check whether --enable-compat-libdns_sd was given. if test "${enable_compat_libdns_sd+set}" = set; then : enableval=$enable_compat_libdns_sd; case "${enableval}" in yes) ENABLE_COMPAT_LIBDNS_SD=yes ;; no) ENABLE_COMPAT_LIBDNS_SD=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-compat-libdns_sd" "$LINENO" 5 ;; esac else ENABLE_COMPAT_LIBDNS_SD=no fi if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes"; then ENABLE_COMPAT_LIBDNS_SD_TRUE= ENABLE_COMPAT_LIBDNS_SD_FALSE='#' else ENABLE_COMPAT_LIBDNS_SD_TRUE='#' ENABLE_COMPAT_LIBDNS_SD_FALSE= fi # # Optionally enable HOWL compatibility support # # Check whether --enable-compat-howl was given. if test "${enable_compat_howl+set}" = set; then : enableval=$enable_compat_howl; case "${enableval}" in yes) ENABLE_COMPAT_HOWL=yes ;; no) ENABLE_COMPAT_HOWL=no ;; *) as_fn_error $? "bad value ${enableval} for --enable-compat-howl" "$LINENO" 5 ;; esac else ENABLE_COMPAT_HOWL=no fi if test "x$ENABLE_COMPAT_HOWL" = "xyes"; then ENABLE_COMPAT_HOWL_TRUE= ENABLE_COMPAT_HOWL_FALSE='#' else ENABLE_COMPAT_HOWL_TRUE='#' ENABLE_COMPAT_HOWL_FALSE= fi # # systemd # # Check whether --with-systemdsystemunitdir was given. if test "${with_systemdsystemunitdir+set}" = set; then : withval=$with_systemdsystemunitdir; else with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) fi if test "x$with_systemdsystemunitdir" != xno; then systemdsystemunitdir=$with_systemdsystemunitdir fi if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then HAVE_SYSTEMD_TRUE= HAVE_SYSTEMD_FALSE='#' else HAVE_SYSTEMD_TRUE='#' HAVE_SYSTEMD_FALSE= fi # ========================================================================== ac_config_files="$ac_config_files Makefile avahi-common/Makefile avahi-core/Makefile avahi-glib/Makefile avahi-gobject/Makefile avahi-qt/Makefile avahi-daemon/Makefile avahi-daemon/avahi-dbus.conf avahi-discover-standalone/Makefile avahi-client/Makefile initscript/Makefile initscript/debian/Makefile initscript/gentoo/Makefile initscript/suse/Makefile initscript/fedora/Makefile initscript/lfs/Makefile initscript/mandriva/Makefile initscript/darwin/Makefile initscript/freebsd/Makefile initscript/slackware/Makefile avahi-dnsconfd/Makefile avahi-utils/Makefile avahi-python/Makefile avahi-python/avahi/Makefile avahi-python/avahi-discover/Makefile examples/Makefile common/Makefile man/Makefile tests/Makefile service-type-database/Makefile avahi-sharp/Makefile avahi-ui-sharp/Makefile avahi-compat-libdns_sd/Makefile avahi-compat-howl/Makefile avahi-compat-howl/samples/Makefile avahi-autoipd/Makefile avahi-ui/Makefile po/Makefile.in" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PF_ROUTE_TRUE}" && test -z "${HAVE_PF_ROUTE_FALSE}"; then as_fn_error $? "conditional \"HAVE_PF_ROUTE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_SYS_FILIO_H_TRUE}" && test -z "${HAVE_SYS_FILIO_H_FALSE}"; then as_fn_error $? "conditional \"HAVE_SYS_FILIO_H\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_SYS_SYSCTL_H_TRUE}" && test -z "${HAVE_SYS_SYSCTL_H_FALSE}"; then as_fn_error $? "conditional \"HAVE_SYS_SYSCTL_H\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_LFS_TRUE}" && test -z "${TARGET_LFS_FALSE}"; then as_fn_error $? "conditional \"TARGET_LFS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_SUSE_TRUE}" && test -z "${TARGET_SUSE_FALSE}"; then as_fn_error $? "conditional \"TARGET_SUSE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_GENTOO_TRUE}" && test -z "${TARGET_GENTOO_FALSE}"; then as_fn_error $? "conditional \"TARGET_GENTOO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_DEBIAN_TRUE}" && test -z "${TARGET_DEBIAN_FALSE}"; then as_fn_error $? "conditional \"TARGET_DEBIAN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_ARCHLINUX_TRUE}" && test -z "${TARGET_ARCHLINUX_FALSE}"; then as_fn_error $? "conditional \"TARGET_ARCHLINUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_FEDORA_TRUE}" && test -z "${TARGET_FEDORA_FALSE}"; then as_fn_error $? "conditional \"TARGET_FEDORA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_MANDRIVA_TRUE}" && test -z "${TARGET_MANDRIVA_FALSE}"; then as_fn_error $? "conditional \"TARGET_MANDRIVA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_NETBSD_TRUE}" && test -z "${TARGET_NETBSD_FALSE}"; then as_fn_error $? "conditional \"TARGET_NETBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_FREEBSD_TRUE}" && test -z "${TARGET_FREEBSD_FALSE}"; then as_fn_error $? "conditional \"TARGET_FREEBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${TARGET_SLACKWARE_TRUE}" && test -z "${TARGET_SLACKWARE_FALSE}"; then as_fn_error $? "conditional \"TARGET_SLACKWARE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_CHROOT_TRUE}" && test -z "${ENABLE_CHROOT_FALSE}"; then as_fn_error $? "conditional \"ENABLE_CHROOT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then as_fn_error $? "conditional \"HAVE_DLOPEN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then as_fn_error $? "conditional \"HAVE_KQUEUE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi ac_config_commands="$ac_config_commands po/stamp-it" if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then as_fn_error $? "conditional \"HAVE_GLIB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_QT3_TRUE}" && test -z "${HAVE_QT3_FALSE}"; then as_fn_error $? "conditional \"HAVE_QT3\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_QT4_TRUE}" && test -z "${HAVE_QT4_FALSE}"; then as_fn_error $? "conditional \"HAVE_QT4\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then as_fn_error $? "conditional \"HAVE_GTK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_GTK3_TRUE}" && test -z "${HAVE_GTK3_FALSE}"; then as_fn_error $? "conditional \"HAVE_GTK3\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_GTK2OR3_TRUE}" && test -z "${HAVE_GTK2OR3_FALSE}"; then as_fn_error $? "conditional \"HAVE_GTK2OR3\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_XML_TRUE}" && test -z "${HAVE_XML_FALSE}"; then as_fn_error $? "conditional \"HAVE_XML\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_GDBM_TRUE}" && test -z "${HAVE_GDBM_FALSE}"; then as_fn_error $? "conditional \"HAVE_GDBM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_DBM_TRUE}" && test -z "${HAVE_DBM_FALSE}"; then as_fn_error $? "conditional \"HAVE_DBM\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_LIBDAEMON_TRUE}" && test -z "${HAVE_LIBDAEMON_FALSE}"; then as_fn_error $? "conditional \"HAVE_LIBDAEMON\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYGOBJECT_TRUE}" && test -z "${HAVE_PYGOBJECT_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYGOBJECT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PYTHON_DBUS_TRUE}" && test -z "${HAVE_PYTHON_DBUS_FALSE}"; then as_fn_error $? "conditional \"HAVE_PYTHON_DBUS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_MONO_TRUE}" && test -z "${HAVE_MONO_FALSE}"; then as_fn_error $? "conditional \"HAVE_MONO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_MONODOC_TRUE}" && test -z "${HAVE_MONODOC_FALSE}"; then as_fn_error $? "conditional \"HAVE_MONODOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_AUTOIPD_TRUE}" && test -z "${ENABLE_AUTOIPD_FALSE}"; then as_fn_error $? "conditional \"ENABLE_AUTOIPD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then as_fn_error $? "conditional \"DX_COND_doc\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then as_fn_error $? "conditional \"DX_COND_doc\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then as_fn_error $? "conditional \"DX_COND_dot\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then as_fn_error $? "conditional \"DX_COND_dot\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then as_fn_error $? "conditional \"DX_COND_man\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then as_fn_error $? "conditional \"DX_COND_man\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then as_fn_error $? "conditional \"DX_COND_rtf\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then as_fn_error $? "conditional \"DX_COND_rtf\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then as_fn_error $? "conditional \"DX_COND_xml\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then as_fn_error $? "conditional \"DX_COND_xml\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then as_fn_error $? "conditional \"DX_COND_chm\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then as_fn_error $? "conditional \"DX_COND_chm\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then as_fn_error $? "conditional \"DX_COND_chi\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then as_fn_error $? "conditional \"DX_COND_chi\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then as_fn_error $? "conditional \"DX_COND_html\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then as_fn_error $? "conditional \"DX_COND_html\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then as_fn_error $? "conditional \"DX_COND_ps\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then as_fn_error $? "conditional \"DX_COND_ps\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then as_fn_error $? "conditional \"DX_COND_pdf\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then as_fn_error $? "conditional \"DX_COND_pdf\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then as_fn_error $? "conditional \"DX_COND_latex\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then as_fn_error $? "conditional \"DX_COND_latex\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_CORE_DOCS_TRUE}" && test -z "${ENABLE_CORE_DOCS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_CORE_DOCS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${USE_XMLTOMAN_TRUE}" && test -z "${USE_XMLTOMAN_FALSE}"; then as_fn_error $? "conditional \"USE_XMLTOMAN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then as_fn_error $? "conditional \"BUILD_MANPAGES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_COMPAT_LIBDNS_SD_TRUE}" && test -z "${ENABLE_COMPAT_LIBDNS_SD_FALSE}"; then as_fn_error $? "conditional \"ENABLE_COMPAT_LIBDNS_SD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_COMPAT_HOWL_TRUE}" && test -z "${ENABLE_COMPAT_HOWL_FALSE}"; then as_fn_error $? "conditional \"ENABLE_COMPAT_HOWL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by avahi $as_me 0.7, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ avahi config.status 0.7 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ reload_flag_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_separator_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path \ reload_cmds_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX \ postlink_cmds_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "avahi-common/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-common/Makefile" ;; "avahi-core/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-core/Makefile" ;; "avahi-glib/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-glib/Makefile" ;; "avahi-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-gobject/Makefile" ;; "avahi-qt/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-qt/Makefile" ;; "avahi-daemon/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-daemon/Makefile" ;; "avahi-daemon/avahi-dbus.conf") CONFIG_FILES="$CONFIG_FILES avahi-daemon/avahi-dbus.conf" ;; "avahi-discover-standalone/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-discover-standalone/Makefile" ;; "avahi-client/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-client/Makefile" ;; "initscript/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/Makefile" ;; "initscript/debian/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/debian/Makefile" ;; "initscript/gentoo/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/gentoo/Makefile" ;; "initscript/suse/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/suse/Makefile" ;; "initscript/fedora/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/fedora/Makefile" ;; "initscript/lfs/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/lfs/Makefile" ;; "initscript/mandriva/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/mandriva/Makefile" ;; "initscript/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/darwin/Makefile" ;; "initscript/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/freebsd/Makefile" ;; "initscript/slackware/Makefile") CONFIG_FILES="$CONFIG_FILES initscript/slackware/Makefile" ;; "avahi-dnsconfd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-dnsconfd/Makefile" ;; "avahi-utils/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-utils/Makefile" ;; "avahi-python/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/Makefile" ;; "avahi-python/avahi/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/avahi/Makefile" ;; "avahi-python/avahi-discover/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-python/avahi-discover/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "service-type-database/Makefile") CONFIG_FILES="$CONFIG_FILES service-type-database/Makefile" ;; "avahi-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-sharp/Makefile" ;; "avahi-ui-sharp/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-ui-sharp/Makefile" ;; "avahi-compat-libdns_sd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-libdns_sd/Makefile" ;; "avahi-compat-howl/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl/Makefile" ;; "avahi-compat-howl/samples/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-compat-howl/samples/Makefile" ;; "avahi-autoipd/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-autoipd/Makefile" ;; "avahi-ui/Makefile") CONFIG_FILES="$CONFIG_FILES avahi-ui/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # The names of the tagged configurations supported by this script. available_tags='CXX ' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; "po/stamp-it":C) if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 fi rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" >"po/stamp-it.tmp" sed '/^#/d s/^[[].*] *// /^[ ]*$/d '"s|^| $ac_top_srcdir/|" \ "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" sed '/^POTFILES =/,/[^\\]$/ { /^POTFILES =/!d r po/POTFILES } ' "po/Makefile.in" >"po/Makefile" rm -f "po/Makefile.tmp" mv "po/stamp-it.tmp" "po/stamp-it" ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi # ========================================================================== echo " ---{ $PACKAGE_NAME $VERSION }--- prefix: ${prefix} sysconfdir: ${sysconfdir} localstatedir: ${localstatedir} avahi socket: ${avahi_socket} dbus-1 system.d dir: ${DBUS_SYS_DIR} dbus-1 version: ${DBUS_VERSION} dbus-1 system socket: ${DBUS_SYSTEM_BUS_DEFAULT_ADDRESS} C Compiler: ${CC} CFLAGS: ${CFLAGS} Enable GLIB: ${HAVE_GLIB} Enable GLIB GObject: ${HAVE_GOBJECT} Enable GObject Introspection: ${found_introspection} Enable GTK 2.0: ${HAVE_GTK} Enable GTK 3.0: ${HAVE_GTK3} Enable D-Bus: ${HAVE_DBUS} With XML: ${with_xml} Enable GDBM: ${HAVE_GDBM} Enable DBM: ${HAVE_DBM} Enable libdaemon: ${HAVE_LIBDAEMON} Enable Python: ${HAVE_PYTHON} Enable pygobject: ${HAVE_PYGOBJECT} Enable python-dbus: ${HAVE_PYTHON_DBUS} Enable QT3: ${HAVE_QT3} Enable QT4: ${HAVE_QT4} Enable Mono: ${HAVE_MONO} Enable Monodoc: ${HAVE_MONODOC} Distribution/OS: ${with_distro} User for avahi-daemon: ${AVAHI_USER} Group for avahi-daemon: ${AVAHI_GROUP} Priviliged access group for Avahi clients: ${AVAHI_PRIV_ACCESS_GROUP} User for avahi-autoipd: ${AVAHI_AUTOIPD_USER} Group for avahi-autoipd: ${AVAHI_AUTOIPD_GROUP} Enable chroot(): ${enable_chroot} Enable Linux inotify: ${have_inotify} Enable stack-smashing protection: ${enable_ssp} systemd unit directory: ${with_systemdsystemunitdir} " BUILD_DAEMON="no (You need libdaemon and expat/bsdxml!)" if test "x$HAVE_XML" = "xyes" -a "x$HAVE_LIBDAEMON" = "xyes" ; then BUILD_DAEMON=yes fi BUILD_PYTHON="no (You need python, pygobject and python-dbus!)" if test "x$BUILD_DAEMON" = "xyes" -a "x$HAVE_DBUS" = "xyes" -a "x$HAVE_PYTHON" = "xyes" -a "x$HAVE_PYTHON_DBUS" = "xyes" -a "x$HAVE_PYGOBJECT" = "xyes" ; then BUILD_PYTHON=yes fi BUILD_CLIENT="no (You need avahi-daemon and D-Bus!)" if test "x$HAVE_DBUS" = "xyes" ; then BUILD_CLIENT=yes fi if test "x$ENABLE_COMPAT_LIBDNS_SD" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then ENABLE_COMPAT_LIBDNS_SD="no (You need libavahi-client!)" fi if test "x$ENABLE_COMPAT_HOWL" = "xyes" -a "x$BUILD_CLIENT" != "xyes" ; then ENABLE_COMPAT_HOWL="no (You need libavahi-client!)" fi if test "x$ENABLE_AUTOIPD" = "xyes" -a "x$HAVE_LIBDAEMON" != "xyes" ; then ENABLE_AUTOIPD="no (You need libdaemon!)" fi HAVE_GTK2OR3=no if test "x$HAVE_GTK" = "xyes" -o "x$HAVE_GTK3" = "xyes" ; then HAVE_GTK2OR3=yes fi BUILD_UI="no" if test "x$HAVE_GTK2OR3" = "xyes" -a "x$BUILD_CLIENT" = "xyes" ; then BUILD_UI="yes" fi BUILD_GOBJECT="no" if test "x$BUILD_CLIENT" = "xyes" -a "x$HAVE_GOBJECT" = "xyes" ; then BUILD_GOBJECT="yes" fi echo "\ Building libavahi-core yes Building avahi-daemon: ${BUILD_DAEMON} Building avahi-dnsconfd: ${BUILD_DAEMON} Building libavahi-client: ${BUILD_CLIENT} Building avahi-utils: ${BUILD_CLIENT} Building avahi-python: ${BUILD_PYTHON} Building libavahi-glib: ${HAVE_GLIB} Building libavahi-gobject: ${BUILD_GOBJECT} Building avahi-discover-standalone: ${HAVE_GTK2OR3} Building libavahi-qt3: ${HAVE_QT3} Building libavahi-qt4: ${HAVE_QT4} Building avahi-sharp: ${HAVE_MONO} Building avahi-compat-libdns_sd: ${ENABLE_COMPAT_LIBDNS_SD} Building avahi-compat-howl: ${ENABLE_COMPAT_HOWL} Building tests: ${ENABLE_TESTS} Building avahi-core documentation: ${ENABLE_CORE_DOCS} Building avahi-autoipd: ${ENABLE_AUTOIPD} Building libavahi-ui: ${BUILD_UI} " avahi-0.7/PaxHeaders.10109/compile0000644000000000000000000000013013130652011013540 xustar0030 mtime=1499681801.009084706 30 atime=1499681801.009084706 28 ctime=1499681849.9999902 avahi-0.7/compile0000755000175000017500000001624513130652011015164 0ustar00lathiatlathiat00000000000000#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-10-14.11; # UTC # Copyright (C) 1999-2014 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: